cf-validate — Claude Code skill: check a 1C configuration
Runs structural checks over a 1C Configuration.xml after you create or edit a configuration. One command from Claude or Codex.
/plugin marketplace add Nikolay-Shirokov/cc-1c-skills
/plugin install 1c-skills@cc-1c-skillsWhat cf-validate does
The skill walks a configuration dump through a fixed list of checks: XML well-formedness, InternalInfo, properties, enum values, ChildObjects, DefaultLanguage. It also looks at language files and object directories, so mismatches between the description and what sits on disk show up.
A PowerShell script, scripts/cf-validate.ps1, does the work. One argument is required: ConfigPath, either the Configuration.xml itself or the dump directory. Output stops after 30 errors unless you pass -MaxErrors. Add -Detailed to see passed checks too, or OutFile to save the report as UTF-8 BOM.
The skill relies on Bash, Read and Glob, so the dump has to be reachable from the machine running the agent. Calling it without ConfigPath fails — the path is mandatory.
What it helps with
- catch malformed XML in a configuration dump before building
- match
DefaultLanguageagainst the language files that actually exist - spot objects missing from their directories on disk
- recheck enum values and properties after hand-editing
Configuration.xml - save an error report to a file for later review
Example prompts for the agent
- Validate the configuration in
upload/cfempty - Run
/cf-validateonupload/cfempty/Configuration.xmlwith-Detailed - Check the configuration and stop after 10 errors
How to install cf-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 cf-validate -a claude-code3Manually: put the files in place
~/.claude/skills/cf-validate/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/cf-validate/
1Skills CLI (Vercel)
npx skills add Nikolay-Shirokov/cc-1c-skills --skill cf-validate -a codex2Manually: put the files in place
.agents/skills/cf-validate/SKILL.mdFor all projects use ~/.agents/skills/
Manually: put the files in place
.cursor/skills/cf-validate/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install Nikolay-Shirokov/cc-1c-skills cf-validate2Manually: put the files in place
.github/skills/cf-validate/SKILL.mdPlatform CLI
gemini skills install https://github.com/Nikolay-Shirokov/cc-1c-skills --path .claude/skills/cf-validateManually: put the files in place
.devin/skills/cf-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 cf-validate
How do I install cf-validate in Claude Code?
Use the marketplace: /plugin marketplace add Nikolay-Shirokov/cc-1c-skills first, then /plugin install 1c-skills@cc-1c-skills.
What does cf-validate do?
It checks Configuration.xml for structural problems: XML well-formedness, InternalInfo, properties, enum values, ChildObjects, DefaultLanguage, language files and object directories.
What arguments does the skill take?
ConfigPath is required — a path to Configuration.xml or to the dump directory. Optional flags are -Detailed for full output and -MaxErrors to cap the error count, 30 by default.
Source text
SKILL.md · MIT
---
name: cf-validate
description: Валидация конфигурации 1С. Используй после создания или модификации конфигурации для проверки корректности
argument-hint: <ConfigPath> [-Detailed] [-MaxErrors 30]
allowed-tools:
- Bash
- Read
- Glob
---
# /cf-validate — валидация конфигурации 1С
Проверяет Configuration.xml на структурные ошибки: XML well-formedness, InternalInfo, свойства, enum-значения, ChildObjects, DefaultLanguage, файлы языков, каталоги объектов.
## Параметры
| Параметр | Обяз. | Умолч. | Описание |
|------------|:-----:|---------|-------------------------------------------------|
| ConfigPath | да | — | Путь к Configuration.xml или каталогу выгрузки |
| Detailed | нет | — | Подробный вывод (все проверки, включая успешные) |
| MaxErrors | нет | 30 | Остановиться после N ошибок |
| OutFile | нет | — | Записать результат в файл (UTF-8 BOM) |
## Команда
```powershell
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/cf-validate.ps1" -ConfigPath "upload/cfempty"
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/cf-validate.ps1" -ConfigPath "upload/cfempty/Configuration.xml"
```
© Nikolay Shirokov · MIT · Nikolay-Shirokov/cc-1c-skills