SuperAPI AI Directory

cfe-validate

General & other

View repository

Updated 10-16 08:06

About this skill

/cfe-validate — Configuration extension validation

Checks the structural correctness of the extension: XML format, properties, composition, borrowed objects. Analogous to /cf-validate, but for extensions.

Parameters

Parameter Description Default
ExtensionPath Path to the extension directory or Configuration.xml (required) —
MaxErrors Error limit 30
OutFile Write the result to a file —

Command

powershell.exe -NoProfile -File .claude/skills/cfe-validate/scripts/cfe-validate.ps1 -ExtensionPath src

Checks (9 steps)

# Check Level
1 XML well-formedness, MetaDataObject/Configuration, version ERROR
2 InternalInfo: 7 ContainedObject, valid ClassId ERROR
3 Extension properties: ObjectBelonging=Adopted, Name, Purpose, NamePrefix, KeepMapping ERROR
4 Enum values: ConfigurationExtensionCompatibilityMode, DefaultRunMode, ScriptVariant, InterfaceCompatibilityMode ERROR
5 ChildObjects: valid types (44), no duplicates, canonical order ERROR/WARN
6 DefaultLanguage references a Language in ChildObjects ERROR
7 Language files exist WARN
8 Object directories exist WARN
9 Borrowed objects: ObjectBelonging=Adopted, ExtendedConfigurationObject UUID ERROR/WARN

Example output

=== Validation: Extension.МоёРасширение ===
[OK]    1. Root structure: MetaDataObject/Configuration, version 2.17
[OK]    2. InternalInfo: 7 ContainedObject, all ClassIds valid
...
=== Result: 0 errors, 0 warnings ===