erf-init — Claude Code skill: scaffold a 1C external report
Generates the minimal XML source set for a 1C external report: a root metadata file and the report directory. Useful when you start a new report and don't want to build the skeleton by hand.
/plugin marketplace add Nikolay-Shirokov/cc-1c-skills
/plugin install 1c-skills@cc-1c-skillsWhat erf-init does
The skill takes a report name and runs scripts/init.ps1 through powershell.exe. Alongside the name you can pass a synonym, a source directory, a format version and the --with-skd flag, which creates an empty data composition schema and binds it to MainDataCompositionSchema. Without a synonym it defaults to the name, the source directory defaults to src, and the format version defaults to 2.17.
Pick a format version no higher than the platform that will build and open the object: 8.3.24 — 2.17, 8.3.25 — 2.18, 8.3.26 — 2.19, 8.3.27 — 2.20, 8.5 — 2.21. A platform reads its own format and any older one, so 2.17 covers the whole 8.3.24 line and above. For 8.3.23 and older the count runs the same way, one version per release, but the skills were not tested there — such a value is accepted with a warning. Worth checking your platform version before you build.
Once the scaffold exists you can extend it: a form with /form-add, a template with /template-add, help with /help-add, and the ERF build with /erf-build. The tools the skill may call are Bash, Read, Write, Edit, Glob and Grep.
What it helps with
- scaffold a 1C external report from scratch
- get the root metadata file and report directory in one command
- set the export format version for a specific platform release
- bind an empty data composition schema to
MainDataCompositionSchemaat init - prepare sources for a later ERF build
Example prompts for the agent
- /erf-init SalesReport
- /erf-init SalesReport Sales --with-skd
- /erf-init SalesReport Sales src 2.18
How to install erf-init
1Plugin marketplace
/plugin marketplace add Nikolay-Shirokov/cc-1c-skills/plugin install 1c-skills@cc-1c-skillsThis installs the whole 1c-skills plugin with all its skills
2Skills CLI (Vercel)
npx skills add Nikolay-Shirokov/cc-1c-skills --skill erf-init -a claude-code3Manually: put the files in place
~/.claude/skills/erf-init/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/erf-init/
1Skills CLI (Vercel)
npx skills add Nikolay-Shirokov/cc-1c-skills --skill erf-init -a codex2Manually: put the files in place
.agents/skills/erf-init/SKILL.mdFor all projects use ~/.agents/skills/
Manually: put the files in place
.cursor/skills/erf-init/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install Nikolay-Shirokov/cc-1c-skills erf-init2Manually: put the files in place
.github/skills/erf-init/SKILL.mdPlatform CLI
gemini skills install https://github.com/Nikolay-Shirokov/cc-1c-skills --path .claude/skills/erf-initManually: put the files in place
.devin/skills/erf-init/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about erf-init
How do I install erf-init in Claude?
Through the marketplace: first /plugin marketplace add Nikolay-Shirokov/cc-1c-skills, then /plugin install 1c-skills@cc-1c-skills.
What does erf-init do?
It generates the minimal XML source set for a 1C external report: a root metadata file and the report directory. With --with-skd it also creates an empty data composition schema and binds it to MainDataCompositionSchema.
Which export format version should I use?
No higher than the platform that will build and open the report: 8.3.24 — 2.17, 8.3.25 — 2.18, 8.3.26 — 2.19, 8.3.27 — 2.20, 8.5 — 2.21. The default 2.17 works for 8.3.24 and above.
Source text
SKILL.md · MIT
---
name: erf-init
description: Создать пустой внешний отчёт 1С (scaffold XML-исходников). Используй когда нужно создать новый внешний отчёт с нуля
argument-hint: <Name> [Synonym] [--with-skd]
allowed-tools:
- Bash
- Read
- Write
- Edit
- Glob
- Grep
---
# /erf-init — Создание нового отчёта
Генерирует минимальный набор XML-исходников для внешнего отчёта 1С: корневой файл метаданных и каталог отчёта.
## Usage
```
/erf-init <Name> [Synonym] [SrcDir] [FormatVersion] [--with-skd]
```
| Параметр | Обязательный | По умолчанию | Описание |
|---------------|:------------:|--------------|---------------------------------------|
| Name | да | — | Имя отчёта (латиница/кириллица) |
| Synonym | нет | = Name | Синоним (отображаемое имя) |
| SrcDir | нет | `src` | Каталог исходников относительно CWD |
| FormatVersion | нет | `2.17` | Версия формата выгрузки — см. ниже |
| --WithSKD | нет | — | Создать пустую СКД и привязать к MainDataCompositionSchema |
`FormatVersion` — **не выше** версии формата платформы, на которой объект будут собирать и открывать:
8.3.24 — `2.17`, 8.3.25 — `2.18`, 8.3.26 — `2.19`, 8.3.27 — `2.20`, 8.5 — `2.21`. Ниже брать можно:
платформа читает свой формат и любой более старый, поэтому дефолт `2.17` подходит для всей линейки
8.3.24 и выше. Для более старых платформ счёт идёт так же, по одной версии на релиз (8.3.23 — `2.16`),
но на них навыки не проверялись — такое значение принимается с предупреждением.
## Команда
```powershell
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/init.ps1" -Name "<Name>" [-Synonym "<Synonym>"] [-SrcDir "<SrcDir>"] [-FormatVersion "<версия>"] [-WithSKD]
```
## Дальнейшие шаги
- Добавить форму: `/form-add`
- Добавить макет: `/template-add`
- Добавить справку: `/help-add`
- Собрать ERF: `/erf-build`
© Nikolay Shirokov · MIT · Nikolay-Shirokov/cc-1c-skills