Skip to main content
skill CX Codex

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.

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add Nikolay-Shirokov/cc-1c-skills
/plugin install 1c-skills@cc-1c-skills
Open on GitHub

What 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 DefaultLanguage against 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-validate on upload/cfempty/Configuration.xml with -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-skills

This 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-code

3Manually: put the files in place

~/.claude/skills/cf-validate/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/cf-validate/

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

Similar skills

SKILL.md skills catalog →

From the same set59

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor