SuperAPI AI Directory

skd-validate

Coding & development

View repository

Updated 10-15 21:52

About this skill

/skd-validate — DCS validation (DataCompositionSchema)

Checks the structural correctness of the Data Composition Schema Template.xml. Identifies format errors, broken references, duplicate names.

Parameters

Parameter Required Default Description
TemplatePath yes — Path to Template.xml or the template directory
Detailed no — Verbose output (all checks, including successful ones)
MaxErrors no 20 Stop after N errors
OutFile no — Write the result to a file

Command

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 validation

Element order, types, and values are additionally checked against the platform's XSD schemas, if they are downloaded into the project. Otherwise the final line ends with XSD not checked: <причина> — this is not "everything checked". When validation is needed (e.g., the platform says "the sequence order is violated"), download the schemas of the export format version — attribute version в Configuration.xml — via /v8-xsd-fetch -Versions <версия> and run again. The same applies for [WARN] XSD: no schemas for format <версия>.

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

  • must come before <X> — move the element directly before <X>, do not change the contents. duplicate — remove the duplicate. not allowed in <P> — the element does not belong here. Otherwise — the text about an invalid value.
  • [WARN] с (no schemas for <версия>) — verified against schemas of a newer version: a guide, not a verdict.
  • If the template was just assembled or modified by you /skd-compile or /skd-edit, the violation is a skill defect: report it to the user.