Config operations

From SteelMorgan/1c-agent-based-dev-framework · View interactive version

Config operations is an AI agent skill from the GitHub repository SteelMorgan/1c-agent-based-dev-framework. xml-gen Configuration.xml: свойства и ChildObjects

How to use this skill

Skill file

Config Operations

Когда применять

| Триггер | Действие |

|---------|----------|

| Создать новую конфигурацию | config init <output_dir> <Name> |

| Посмотреть состав конфигурации | config info <configPath> |

| Изменить свойство конфигурации | config edit <configPath> --op modify-property --value "PropName=Value" |

| Добавить/удалить объект из ChildObjects | config edit <configPath> --op add-child --value "Type.Name" |

| Проверить Configuration.xml | config validate <configPath> |

Команды

config init

xml-gen config init <output_dir> <Name> [--compat <Version>]

Результат: Configuration.xml + Languages/Русский.xml + ConfigDumpInfo.xml + заглушки модулей.

<output_dir> и <Name> — позиционные аргументы именно в этом порядке. Опция --name не поддерживается.

config info

xml-gen config info [--mode brief|overview|full] <configPath>

brief — однострочная сводка; overview — свойства + счётчики объектов; full — все свойства и объекты.

config edit

xml-gen config edit <configPath> --op <operation> --value <value>

Операции:

config validate

10 проверок: структура XML, namespace, UUID, InternalInfo (7 ClassId), Properties, enum-значения (11 свойств), ChildObjects (порядок 44 типов, дубликаты), DefaultLanguage, файлы языков, каталоги объектов.

xml-gen config validate <configPath>

ChildObjects — порядок 44 типов

Конфигурация 1С требует строгий порядок типов в ChildObjects:

Language → Subsystem → StyleItem → Style → CommonPicture → SessionParameter → Role → CommonTemplate → FilterCriterion → CommonModule → CommonAttribute → ExchangePlan → XDTOPackage → WebService → HTTPService → WSReference → EventSubscription → ScheduledJob → SettingsStorage → FunctionalOption → FunctionalOptionsParameter → DefinedType → CommonCommand → CommandGroup → Constant → CommonForm → Catalog → Document → DocumentNumerator → Sequence → DocumentJournal → Enum → Report → DataProcessor → InformationRegister → AccumulationRegister → ChartOfCharacteristicTypes → ChartOfAccounts → AccountingRegister → ChartOfCalculationTypes → CalculationRegister → BusinessProcess → Task → IntegrationService


depends_on: []

metadata:

category: 1c-development

version: "1.0"


Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.