About subsystem-compile
subsystem-compile is a skill for generating a 1C subsystem from a JSON definition. It creates the XML and file structure and registers the subsystem in the configuration or a parent subsystem.
Key features
- 01Generate subsystem XML from JSON
- 02Create the subsystem file structure
- 03Register in configuration or parent
- 04Support nested subsystems
- 05Optional automatic validation
Use cases
- 01Create a top-level subsystem
- 02Add a nested subsystem
- 03Generate subsystem contents from a definition
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ nikolay-shirokov/ cc-1c-skills --skill subsystem-compileAfter installing, type/subsystem-compilein Claude Code to confirm it loaded.
Bundled filesscripts/subsystem-compile.ps1scripts/subsystem-compile.py
Details
From the project README/subsystem-compile — генерация подсистемы из JSON
Принимает JSON-определение подсистемы → генерирует XML + файловую структуру + регистрирует в родителе (Configuration.xml или родительская подсистема).
Параметры и команда
| Параметр | Описание |
|---|---|
DefinitionFile | Путь к JSON-файлу определения |
Value | Инлайн JSON-строка (альтернатива DefinitionFile) |
OutputDir | Корень выгрузки (где Subsystems/, Configuration.xml) |
Parent | Путь к XML родительской подсистемы (для вложенных) |
NoValidate | Пропустить авто-валидацию |
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/subsystem-compile.ps1" -Value '<json>' -OutputDir '<ConfigDir>'
JSON-определение
{
"name": "МояПодсистема",
"synonym": "Моя подсистема",
"comment": "",
"includeInCommandInterface": true,
"useOneCommand": false,
"explanation": "Описание раздела",
"picture": "CommonPicture.МояКартинка",
"content": ["Catalog.Товары", "Document.Заказ"]
}
Минимально: только name. Остальное — дефолты.
Примеры
# Минимальная подсистема
... -Value '{"name":"Тест"}' -OutputDir config/
# С составом и картинкой
... -Value '{"name":"Продажи","content":["Catalog.Товары","Report.Продажи"],"picture":"CommonPicture.Продажи"}' -OutputDir config/
# Вложенная подсистема
... -Value '{"name":"Дочерняя"}' -OutputDir config/ -Parent config/Subsystems/Продажи.xml
Comments
Markdown supported