{"id":86331,"plugin_id":"plugin_asdk_app_697254461bb0819199d9f896114e1b98","kind":"skill","collection_source":"plugin_package","comparison_source":null,"observed_at":"2026-11-09T00:21:26.109Z","digest":"798009c187d981baec26533ad7efa60a885ebc7f3be283593ee7ce9e1c4b5b61","against":null,"payload":{"description":"Use when a standard 101 PDF or XLSX document is needed for a project, category, event, contractor, requisites, or conversation.","included_files":[{"relative_path":"agents/openai.yaml","size_in_bytes":43}],"name":"document-generation","skill_md_contents":"---\nname: document-generation\ndescription: Use when a standard 101 PDF or XLSX document is needed for a project, category, event, contractor, requisites, or conversation.\nversion: \"1.0.0\"\nrole: primary\ninvocation: internal\nintents:\n  - documents.generate\ndepends_on:\n  - entity-resolution\nrequired_tools:\n  - generate_document\noptional_tools:\n  - whoami\n  - list_projects\n  - list_bills\n  - list_events\n  - get_event\n  - list_contractors\nresources:\n  - path: ../shared-resources/context-and-identity.md\n    kind: semantic-guide\n    required: true\n  - path: ../shared-resources/safety-and-permissions.md\n    kind: semantic-guide\n    required: true\ncompletion:\n  statuses:\n    - готово\n    - частично\n    - заблокировано\n---\n\n# Standard Documents\n\nGenerate an existing server document for the selected object. This is not the creation of a financial “Report” event or arbitrary text generation.\n\n| `document_type` | Required object |\n| --- | --- |\n| `ks2`, `expense_statement` | `bill_guid` |\n| `acceptance_act`, `balance`, `estimate_act` | `project_guid` |\n| `preliminary_report` | `estimate_guid` |\n| `single_report` | `expense_guid` |\n| `detailed_balance` | `contractor_guid`, a determined `company_guid`; `project_guids` if needed |\n| `chat_pdf` | Verified `chat_guid` of an accessible conversation |\n| `requisites_pdf` | Current user; optional `bank_ids` |\n\n1. 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.\n2. 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.\n3. 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.\n4. 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.\n5. 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.\n\nWhen a chat or bank-account search tool is missing, use only already verified context; otherwise identify the missing data.\n\nGeneral rules: [context-and-identity](../shared-resources/context-and-identity.md), [safety-and-permissions](../shared-resources/safety-and-permissions.md).\nBefore the domain operation, use [entity-resolution](../entity-resolution/SKILL.md).\n"},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}