← Files 101ARCHIVED FILE

skills/document-generation/SKILL.md

2.86 KB · Nov 28, 2026 · 18:12 UTC

↓ Download file

---
name: document-generation
description: Use when a standard 101 PDF or XLSX document is needed for a project, category, event, contractor, requisites, or conversation.
version: "1.0.0"
role: primary
invocation: internal
intents:
  - documents.generate
depends_on:
  - entity-resolution
required_tools:
  - generate_document
optional_tools:
  - whoami
  - list_projects
  - list_bills
  - list_events
  - get_event
  - list_contractors
resources:
  - path: ../shared-resources/context-and-identity.md
    kind: semantic-guide
    required: true
  - path: ../shared-resources/safety-and-permissions.md
    kind: semantic-guide
    required: true
completion:
  statuses:
    - готово
    - частично
    - заблокировано
---

# Standard Documents

Generate an existing server document for the selected object. This is not the creation of a financial “Report” event or arbitrary text generation.

| `document_type` | Required object |
| --- | --- |
| `ks2`, `expense_statement` | `bill_guid` |
| `acceptance_act`, `balance`, `estimate_act` | `project_guid` |
| `preliminary_report` | `estimate_guid` |
| `single_report` | `expense_guid` |
| `detailed_balance` | `contractor_guid`, a determined `company_guid`; `project_guids` if needed |
| `chat_pdf` | Verified `chat_guid` of an accessible conversation |
| `requisites_pdf` | Current user; optional `bank_ids` |

1. If the document type is ambiguous, briefly clarify it, then resolve the object from current data. An acceptance act is `acceptance_act`, and KS-2 is `ks2`; `estimate_act` is a consolidated preliminary calculation, and `preliminary_report` is a calculation for one estimate. Do not guess identifiers.
2. Use the current `generate_document` schema. `file_format=pdf|xlsx`, with PDF as the default; conversations and requisites support only PDF. The language is `locale`; if omitted, the server uses the profile locale, falling back to `ru`. The period is `date_from/date_to`; without a period, all data for the object is used.
3. Apply `price_mode=client|cost` according to the current published schema; the server checks access to cost data. Do not expand access because of the selected mode.
4. Call the tool upon a request to generate a document. It saves a file and an audit entry, but does not change financial events; no separate write confirmation is required.
5. Return the actual `downloadUrl` and `expiresAt`, format, and material limitations. The link is temporary; successful generation does not mean it has been downloaded. Do not invent a file on error.

When a chat or bank-account search tool is missing, use only already verified context; otherwise identify the missing data.

General rules: [context-and-identity](../shared-resources/context-and-identity.md), [safety-and-permissions](../shared-resources/safety-and-permissions.md).
Before the domain operation, use [entity-resolution](../entity-resolution/SKILL.md).

SHA-256: f349a49525524a97ebbdc95d45c6a8ed8116d1a28274c1b04a500b4b44723693