SuperAPI AI Directory

subsystem-compile

General & other

View repository

Updated 10-15 21:03

About this skill

/subsystem-compile — generate a subsystem from JSON

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

Parameters and command

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

JSON definition

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

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