mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-09-04 01:00:52 +03:00
Calibrated against ~868 real ERP/БП reports — three false positives caught: 1. Composite types: <v8:Type>xs:string</v8:Type> followed by <v8:Type>d4p1:CatalogRef.X</v8:Type> with a single trailing <v8:StringQualifiers> is a legitimate pattern. Rewritten check to collect all <v8:Type> and qualifier blocks per <valueType>, then verify each qualifier has a matching scalar type anywhere in the block — not necessarily right before it. 2. System types: AccumulationRecordType (and similar enum-like system types) use the http://v8.1c.ru/8.1/data/enterprise namespace (without /current-config) and a plain TypeName local name with no dot. Whitelisted as a second valid namespace for ref-like types. 3. v8: scalar types extended: v8:Null, v8:Type, v8:ValueStorage — present in real configs as type-less placeholders. Also reverted SKILL.md change from previous commit (validator details don't belong in user-facing docs). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1.7 KiB
1.7 KiB
name, description, argument-hint, allowed-tools
| name | description | argument-hint | allowed-tools | |||
|---|---|---|---|---|---|---|
| skd-validate | Валидация схемы компоновки данных 1С (СКД). Используй после создания или модификации СКД для проверки корректности | <TemplatePath> [-Detailed] [-MaxErrors 20] |
|
/skd-validate — валидация СКД (DataCompositionSchema)
Проверяет структурную корректность Template.xml схемы компоновки данных. Выявляет ошибки формата, битые ссылки, дубликаты имён.
Параметры
| Параметр | Обяз. | Умолч. | Описание |
|---|---|---|---|
| TemplatePath | да | — | Путь к Template.xml или каталогу макета |
| Detailed | нет | — | Подробный вывод (все проверки, включая успешные) |
| MaxErrors | нет | 20 | Остановиться после N ошибок |
| OutFile | нет | — | Записать результат в файл |
Команда
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"