SuperAPI AI Directory

erf-init

General & other

View repository

Updated 10-16 03:42

About this skill

/erf-init — Creating a new report

Generates a minimal set of XML sources for a 1C external report: the root metadata file and the report directory.

Usage

/erf-init <Name> [Synonym] [SrcDir] [--with-skd]
Parameter Required Default Description
Name yes — Report name (Latin/Cyrillic)
Synonym no = Name Synonym (display name)
SrcDir no src Source directory relative to CWD
--WithSKD no — Create an empty DCS and bind it to MainDataCompositionSchema

Command

powershell.exe -NoProfile -File .claude/skills/erf-init/scripts/init.ps1 -Name "<Name>" [-Synonym "<Synonym>"] [-SrcDir "<SrcDir>"] [-WithSKD]

What is created

<SrcDir>/
├── <Name>.xml          # Корневой файл метаданных (4 UUID)
└── <Name>/
    └── Ext/
        └── ObjectModule.bsl  # Модуль объекта с 3 регионами

With --WithSKD additionally:

<SrcDir>/<Name>/
    Templates/
    ├── ОсновнаяСхемаКомпоновкиДанных.xml        # Метаданные макета
    └── ОсновнаяСхемаКомпоновкиДанных/
        └── Ext/
            └── Template.xml                      # Пустая СКД
  • The root XML contains MetaDataObject/ExternalReport with empty DefaultForm, MainDataCompositionSchema и ChildObjects
  • With --WithSKD — MainDataCompositionSchema is populated with a reference to the template, ChildObjects contains <Template>
  • ClassId is fixed: e41aff26-25cf-4bb6-b6c1-3f478a75f374
  • The file is created in UTF-8 with BOM

Next steps

  • Add a form: /form-add
  • Add a template: /template-add
  • Add help: /help-add
  • Build the ERF: /erf-build