framework/skills/tool-usage/platform-data/xml-generation/epf-full/SKILL.md
Use for создания внешних обработок и отчётов (EPF/ERF), добавления форм, макетов и справки, подключения к подсистеме «Дополнительные отчёты и обработки» БСП. Helps пройти полный цикл init→add-form→template→BSP-регистрация через xml-gen.
npx skillsauth add steelmorgan/1c-agent-based-dev-framework epf-fullInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Workflow: epf init → add-form → add-template → BSP-регистрация (BSL). Шаги 1–3 — через xml-gen CLI, BSP — прямое редактирование ObjectModule.bsl. Для макетов конфигурационных объектов — §4.
| Задача | Команда |
|--------|---------|
| Создать обработку | xml-gen epf init --name <Name> output/ |
| Создать внешний отчёт (ERF) | xml-gen epf init --type report --name <Name> output/ |
| Добавить форму | xml-gen epf add-form --epf <Name> --name <FormName> output/ |
| Добавить MXL-шаблон к EPF | xml-gen epf add-template --epf <Name> --name <T> --type spreadsheet output/ |
| Добавить реквизит в обработку | xml-gen epf add-attribute --name <N> --type <T> output/<Name>.xml |
| Добавить ТЧ в обработку | xml-gen epf add-tabular-section --name <N> output/<Name>.xml |
| Зарегистрировать в БСП (печать) | Вставить СведенияОВнешнейОбработке() в ObjectModule.bsl — см. §5 |
| Добавить команду БСП | Вставить блок команды перед Возврат — см. §5 |
| Добавить макет к Справочнику/Документу | xml-gen template add --object <Type.Name> --name <T> --type <TemplateType> src/ |
| Удалить макет | xml-gen template remove --object <Type.Name> --name <T> src/ |
| Добавить встроенную справку | xml-gen template add-help --object <Type.Name> src/ |
Ключевые пути (Designer):
output/<Name>.xmloutput/<Name>/Ext/ObjectModule.bsloutput/<Name>/Forms/<FormName>/Ext/Form.xmloutput/<Name>/Templates/<TName>/Ext/Template.xmlreferences/epf-base.md
--epf, --name; output_dir — последний позиционный.epf add-attribute редактирует корневой XML обработки (<Name>.xml), а не Form.xml. Для формы — form add-attribute.template add / remove / add-help — для Catalog, Document, Report, DataProcessor, InformationRegister, AccumulationRegister и др.
references/templates.md
--object обязателен, формат Type.Name (пример: Document.ЗаказКлиента).--set-main-dcs.ПФ_ для SpreadsheetDocument применять автоматически.Типы макетов для xml-gen epf add-template (поддерживаются 4):
| --type | Назначение |
|----------|-----------|
| SpreadsheetDocument | Печатная форма (MXL) |
| HTMLDocument | HTML-шаблон |
| TextDocument | Текстовый шаблон |
| BinaryData | Двоичные данные |
DataCompositionSchemaвepf add-templateНЕ поддерживается — CLI отвечаетFailed to add template: Unknown template type: DataCompositionSchema. Для добавления СКД-макета в EPF используй универсальную командуxml-gen template add --object DataProcessor.<EpfName> --name <T> --type DataCompositionSchema <output_dir>(она знает все 5 типов, включаяDataCompositionSchema). См. также раздел §3 в xml-generation/SKILL.md и references/universal-commands.md.
После добавления MXL-макета — заполни содержимым через xml-gen mxl compile invoice.json <путь к Template.xml>.
references/epf-bsp.md
ObjectModule.bsl, не CLI-команда.СведенияОВнешнейОбработке() — в область #Область ПрограммныйИнтерфейс.Назначение.Добавить(...).НСтр("ru = '...'") для Представления (не МетаданныеОбработки.Представление()).depends_on:
testing
MUST use BEFORE making a judgment about the cause of a conflict, a test failure, or an artifact dispute. Defines the end-to-end verification method L1→L6 and the classification of the first broken link.
development
MUST use AFTER a work cycle with ≥2 iterations (wrote → error → fixed → success). Provides the retrospective procedure and the format for recording practice/anti-patterns in references/learned-patterns.md or {project}/.context/learned-patterns.md.
tools
MUST use WHEN you are writing reusable knowledge into RLM (pattern / architectural decision / stable domain fact) OR reading it before a non-trivial task/solution in the domain. Provides the breakdown of native-push vs RLM-pull, tools for writing and reading RLM, H-MEM levels, and hygiene.
testing
MUST use WHEN the task is classified as simple (< 20 lines, 1 file, no new metadata objects, no architectural decisions). Provides a short cycle of 3 steps with a guard on the self path and mandatory verify.