Skip to main content
skill CX Codex

skd-validate — Claude Code skill: validate 1C schema XML

skd-validate validates 1C Enterprise DataCompositionSchema XML files for broken references and schema mistakes.

MIT 47 installs ★ 811 updated 2026-10-23

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 skd-validate does

The skill runs a PowerShell script against a Template.xml file or schema template directory. It flags malformed markup, duplicate field identifiers, and broken references right after schema modifications.

Execution relies on powershell.exe. You must provide a TemplatePath argument, while MaxErrors (defaults to 20) and OutFile allow controlling error limits and exporting the report.

Tag sequence and element types are verified against platform XSD definitions when available in the workspace. Without local schema files fetched via /v8-xsd-fetch, full XSD compliance checks are skipped.

What it helps with

  • catch structural errors in 1C DataCompositionSchema XML
  • detect duplicate element names and broken references in templates
  • validate tag ordering against official 1C XSD definitions
  • write validation diagnostic reports directly to a target file

Example prompts for the agent

  • /skd-validate src/Reports/Sales/Templates/MainSchema -Detailed
  • /skd-validate Catalogs/Items/Templates/DCS/Ext/Template.xml -MaxErrors 10
  • /skd-validate Catalogs/Products/Templates/DCS -OutFile report.txt

How to install skd-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 skd-validate -a claude-code

3Manually: put the files in place

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

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

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about skd-validate

How to install skd-validate in Claude Code?

Run /plugin marketplace add Nikolay-Shirokov/cc-1c-skills and then /plugin install 1c-skills@cc-1c-skills.

What does skd-validate do?

It checks 1C Enterprise DCS Template.xml files for duplicate tags, broken references, and structural XSD compliance.

Why does the report say XSD not checked?

Local XSD schemas for your configuration version were not detected. Download them using /v8-xsd-fetch to enable full structure validation.

Source text

SKILL.md · MIT
---
name: skd-validate
description: Валидация схемы компоновки данных 1С (СКД). Используй после создания или модификации СКД для проверки корректности
argument-hint: <TemplatePath> [-Detailed] [-MaxErrors 20]
allowed-tools:
  - Bash
  - Read
  - Glob
---

# /skd-validate — валидация СКД (DataCompositionSchema)

Проверяет структурную корректность Template.xml схемы компоновки данных. Выявляет ошибки формата, битые ссылки, дубликаты имён.


## Параметры

| Параметр     | Обяз. | Умолч. | Описание                                              |
|--------------|:-----:|---------|---------------------------------------------------------|
| TemplatePath | да    | —       | Путь к Template.xml или каталогу макета                 |
| Detailed     | нет   | —       | Подробный вывод (все проверки, включая успешные)         |
| MaxErrors    | нет   | 20      | Остановиться после N ошибок                             |
| OutFile      | нет   | —       | Записать результат в файл                               |

## Команда

```powershell
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/skd-validate.ps1" -TemplatePath "src/МойОтчёт/Templates/ОсновнаяСхема"
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/skd-validate.ps1" -TemplatePath "Catalogs/Номенклатура/Templates/СКД/Ext/Template.xml"
```

## Проверка по XSD

Порядок элементов, типы и значения дополнительно сверяются с XSD-схемами платформы, если они скачаны в проект. Иначе итоговая строка заканчивается на `XSD not checked: <причина>` — это не «проверено всё». Когда проверка нужна (например, платформа пишет «нарушен порядок следования»), скачай схемы версии формата выгрузки — атрибут `version` в `Configuration.xml` — через `/v8-xsd-fetch -Versions <версия>` и запусти снова. То же при `[WARN] XSD: no schemas for format <версия>`.

Нарушение: `XSD <версия>, line N: <родитель>/<элемент>: <что не так>`.

- `must come before <X>` — перенеси элемент непосредственно перед `<X>`, содержимое не меняй. `duplicate` — удали повтор. `not allowed in <P>` — элементу здесь не место. Иначе — текст о недопустимом значении.
- `[WARN]` с `(no schemas for <версия>)` — сверено по схемам более новой версии: ориентир, не вердикт.
- Если шаблон ты только что собрал или изменил `/skd-compile` или `/skd-edit`, нарушение — дефект навыка: сообщи о нём пользователю.

© Nikolay Shirokov · MIT · Nikolay-Shirokov/cc-1c-skills

Similar skills

Everything for 1C →

From the same set81

The whole set →

More in the catalog

Project sponsors

Companies that keep this analytics open