SuperAPI AI Directory

subsystem-compile

General & other

View repository

Updated 10-15 17:18

About this skill

/subsystem-compile — generating a subsystem from JSON

Accepts a JSON subsystem definition → generates XML + file structure + registers in the parent (Configuration.xml or parent subsystem).

Parameters and command

Parameter Description
DefinitionFile Path to the JSON definition file
Value Inline JSON string (alternative to DefinitionFile)
OutputDir Export root (where Subsystems/, Configuration.xml)
Parent Path to the parent subsystem XML (for nested ones)
NoValidate Skip auto-validation
powershell.exe -NoProfile -File '.claude/skills/subsystem-compile/scripts/subsystem-compile.ps1' -Value '<json>' -OutputDir '<ConfigDir>'

JSON definition

{
  "name": "МояПодсистема",
  "synonym": "Моя подсистема",
  "comment": "",
  "includeInCommandInterface": true,
  "useOneCommand": false,
  "explanation": "Описание раздела",
  "picture": "CommonPicture.МояКартинка",
  "content": ["Catalog.Товары", "Document.Заказ"],
  "children": ["ДочерняяА", "ДочерняяБ"]
}

Minimally: only name. The rest are defaults.

Examples

# Минимальная подсистема
... -Value '{"name":"Тест"}' -OutputDir config/

# С составом и картинкой
... -Value '{"name":"Продажи","content":["Catalog.Товары","Report.Продажи"],"picture":"CommonPicture.Продажи"}' -OutputDir config/

# Вложенная подсистема
... -Value '{"name":"Дочерняя"}' -OutputDir config/ -Parent config/Subsystems/Продажи.xml

What is generated

  • {OutputDir}/Subsystems/{Name}.xml — subsystem definition
  • {OutputDir}/Subsystems/{Name}/ — directory (if there are children)
  • Configuration.xml or parent subsystem — registration in <ChildObjects>