Checks the command interface XML from the configuration export for structural errors: root element, allowed sections, order, format of command references, duplicates.
Parameters
| Parameter | Required | Default | Description |
|---|---|---|---|
| CIPath | yes | — | Path to CommandInterface.xml |
| MaxErrors | no | 30 | Stop after N errors |
| OutFile | no | — | Write the result to a file (UTF-8 BOM) |
Command
powershell.exe -NoProfile -File '.claude/skills/interface-validate/scripts/interface-validate.ps1' -CIPath '<path>'
Checks (13)
| # | Check | Severity |
|---|---|---|
| 1 | XML well-formedness + root element (CommandInterface, version, namespace) | ERROR |
| 2 | Allowed child elements (only 5 sections) | ERROR |
| 3 | Section order is correct | ERROR |
| 4 | No duplicate sections | ERROR |
| 5 | CommandsVisibility — Command.name + Visibility/xr:Common | ERROR |
| 6 | CommandsVisibility — no duplicates by name | WARN |
| 7 | CommandsPlacement — Command.name + CommandGroup + Placement | ERROR |
| 8 | CommandsOrder — Command.name + CommandGroup | ERROR |
| 9 | SubsystemsOrder — Subsystem is non-empty, format Subsystem.X | ERROR |
| 10 | SubsystemsOrder — no duplicates | WARN |
| 11 | GroupsOrder — Group is non-empty | ERROR |
| 12 | GroupsOrder — no duplicates | WARN |
| 13 | Format of command references | WARN |
Output
=== Validation: CommandInterface (Продажи) ===
[OK] 1. Root structure: CommandInterface, version 2.17, namespace valid
[OK] 2. Child elements: 5 valid sections
[OK] 3. Section order: correct
[OK] 4. No duplicate sections
[OK] 5. CommandsVisibility: 55 entries, all valid
[OK] 6. CommandsVisibility: no duplicates
[OK] 7. CommandsPlacement: 3 entries, all valid
[OK] 8. CommandsOrder: 12 entries, all valid
[OK] 9. SubsystemsOrder: 9 entries, all valid format
[OK] 10. SubsystemsOrder: no duplicates
[OK] 11. GroupsOrder: 7 entries, all valid
[OK] 12. GroupsOrder: no duplicates
[OK] 13. Command reference format: all valid
---
Errors: 0, Warnings: 0
Return code: 0 = all checks passed, 1 = there are errors.
Examples
# CommandInterface подсистемы
... -CIPath upload/acc_8.3.24/Subsystems/Продажи/Ext/CommandInterface.xml
# Корневой CommandInterface конфигурации
... -CIPath upload/acc_8.3.24/Ext/CommandInterface.xml
# С лимитом ошибок
... -CIPath <path> -MaxErrors 10