erf-validate — Claude Code skill: ERF validation and setup
Checks the XML structure of a 1C external report after it is created or changed. Useful before building the report.
/plugin marketplace add Nikolay-Shirokov/cc-1c-skills
/plugin install 1c-skills@cc-1c-skillsWhat erf-validate does
This skill validates a 1C external report (ERF) at the XML level. It checks the root layout, InternalInfo, properties such as MainDataCompositionSchema, child objects, attributes, and tabular sections. It also looks for duplicate names and missing form or template files.
The skill runs the shared epf-validate script and identifies the item as an ExternalReport. You can pass either the report directory or its root XML file, request detailed output, and set an error limit. Module syntax is outside this check; use /epf-build or /erf-build for that.
Without /erf-build or /epf-build, module syntax errors will not be found by this skill.
What it helps with
- validate an ERF report structure
- inspect properties and
InternalInfo - check attributes and tabular sections
- find duplicate names or missing report files
Example prompts for the agent
- Run
/erf-validate <ObjectPath>to validate the external report at<ObjectPath>. - Request the full check output with
/erf-validate <ObjectPath> -Detailed. - Stop after 30 errors with
/erf-validate <ObjectPath> -MaxErrors 30.
How to install erf-validate
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-validate -a claude-code3Manually: put the files in place
~/.claude/skills/erf-validate/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/erf-validate/
1Skills CLI (Vercel)
npx skills add Nikolay-Shirokov/cc-1c-skills --skill erf-validate -a codex2Manually: put the files in place
.agents/skills/erf-validate/SKILL.mdFor all projects use ~/.agents/skills/
Manually: put the files in place
.cursor/skills/erf-validate/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install Nikolay-Shirokov/cc-1c-skills erf-validate2Manually: put the files in place
.github/skills/erf-validate/SKILL.mdPlatform CLI
gemini skills install https://github.com/Nikolay-Shirokov/cc-1c-skills --path .claude/skills/erf-validateManually: put the files in place
.devin/skills/erf-validate/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-validate
How do I install erf-validate in Claude Code?
Add the marketplace with /plugin marketplace add Nikolay-Shirokov/cc-1c-skills, then install the plugin with /plugin install 1c-skills@cc-1c-skills.
What does erf-validate do?
It checks the XML structure of a 1C external report, including properties, child objects, attributes, tabular sections, forms, and templates.
Does erf-validate check module syntax?
No. It validates XML; module syntax is checked during a build with /epf-build or /erf-build.
Source text
SKILL.md · MIT
---
name: erf-validate
description: Валидация внешнего отчёта 1С (ERF). Используй после создания или модификации отчёта для проверки корректности
argument-hint: <ObjectPath> [-Detailed] [-MaxErrors 30]
allowed-tools:
- Bash
- Read
- Glob
---
# /erf-validate — валидация внешнего отчёта (ERF)
Проверяет структурную корректность XML-исходников внешнего отчёта: корневую структуру, InternalInfo, свойства (включая MainDataCompositionSchema), ChildObjects, реквизиты, табличные части, уникальность имён, наличие файлов форм и макетов.
Использует тот же скрипт, что и `/epf-validate` — автоопределение по типу элемента (ExternalReport).
Проверяется XML. Синтаксис модулей проверяет сборка: `/epf-build`, `/erf-build`.
## Параметры
| Параметр | Обяз. | Умолч. | Описание |
|------------|:-----:|---------|-------------------------------------------------|
| ObjectPath | да | — | Путь к корневому XML или каталогу отчёта |
| Detailed | нет | — | Подробный вывод (все проверки, включая успешные) |
| MaxErrors | нет | 30 | Остановиться после N ошибок |
| OutFile | нет | — | Записать результат в файл (UTF-8 BOM) |
## Команда
```powershell
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/../epf-validate/scripts/epf-validate.ps1" -ObjectPath "src/МойОтчёт"
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/../epf-validate/scripts/epf-validate.ps1" -ObjectPath "src/МойОтчёт/МойОтчёт.xml"
```
© Nikolay Shirokov · MIT · Nikolay-Shirokov/cc-1c-skills