framework/skills/tool-usage/platform-data/xml-generation/meta-operations/SKILL.md
Операции с объектами метаданных 1С (23 типа) — compile, info, edit, validate, remove. Используй при создании справочников, документов, регистров, перечислений и других объектов конфигурации.
npx skillsauth add steelmorgan/1c-agent-based-dev-framework meta-operationsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
| Триггер | Действие |
|---------|----------|
| Создать справочник/документ/регистр | meta compile meta.json <output_dir> |
| Посмотреть структуру объекта | meta info <objectPath> |
| Добавить реквизит/ТЧ/измерение | meta edit <objectPath> --op add-attribute "Name: Type" |
| Проверить объект метаданных | meta validate <objectPath> |
| Удалить объект из конфигурации | meta remove <configDir> Type.Name |
| Категория | Типы | |-----------|------| | Ссылочные | Catalog, Document, Enum, ChartOfCharacteristicTypes, ChartOfAccounts, ChartOfCalculationTypes, ExchangePlan | | Регистры | InformationRegister, AccumulationRegister, AccountingRegister, CalculationRegister | | Процессы | BusinessProcess, Task | | Сервисные | HTTPService, WebService | | Прочие | Constant, DefinedType, CommonModule, Report, DataProcessor, ScheduledJob, DocumentJournal, EventSubscription |
xml-gen meta compile <meta.json> <output_dir>
JSON DSL:
{
"type": "Catalog",
"name": "Товары",
"codeLength": 9,
"descriptionLength": 150,
"hierarchical": true,
"attributes": [
"Артикул: String(50)",
"Цена: Number(15,2)",
"Производитель: CatalogRef.Контрагенты"
],
"tabularSections": [
{ "name": "Штрихкоды", "attributes": ["Штрихкод: String(13)"] }
]
}
Полные свойства Catalog: hierarchical, hierarchyType (HierarchyFoldersAndItems|HierarchyItemsOnly), limitLevelCount, levelCount, foldersOnTop, codeLength, codeType (String|Number), codeAllowedLength (Variable|Fixed), codeSeries (WholeCatalog|WithinOwnerSubordination|WithinSubordination), descriptionLength, autonumbering, checkUnique, defaultPresentation (AsDescription|AsCode), subordinationUse (ToItems|ToFolders|ToFoldersAndItems), quickChoice, choiceMode (BothWays|FromChoiceForm|QuickChoice), editType (InDialog|InList|BothWays), owners (массив строк, напр. ["Catalog.Контрагенты"]).
Флаг реквизита multiLine — делает строковое поле многострочным (<MultiLine>true</MultiLine>). В shorthand: "Описание: String(500) | multiline".
xml-gen meta info [--mode brief|overview|full] <objectPath>
xml-gen meta edit <objectPath> --op <operation> "<value>"
Операции: add-attribute / add-dimension / add-resource / add-ts / add-ts-attribute / add-enumValue / add-form / add-template / add-command / remove-attribute / remove-ts / remove-enumValue / modify-attribute / add-property / modify-property
Shorthand формат:
ИмяРеквизита: ТипДанных | флаги >> after/before Якорь
Примеры: "Артикул: String(50)", "Сумма: Number(15,2) | nonneg", "Контрагент: CatalogRef.Контрагенты | indexing"
~40 проверок: структура XML, UUID, Properties, boolean-свойства, type-specific правила (22 типа), строгая enum-валидация (HierarchyType, SubordinationUse, ChoiceMode, EditType, CodeAllowedLength, CodeSeries, NumberAllowedLength, RegisterRecordsDeletion, RegisterRecordsWritingOnPost, Periodicity, RequireCalculationTypes и др.), файловая структура.
xml-gen meta validate <objectPath>
Инварианты компиляции:
FillFromFillingValue / FillValue / DataHistory — только для реквизитов InformationRegister; для других регистров вызывают XSD-ошибку при загрузке.Ref, Code, Description, Parent, Owner, IsFolder, DeletionMark, PostingMode, DataVersion, Predefined, PredefinedDataName, Posted, Date, Number (и русские синонимы: Ссылка, Код, Наименование, Родитель, Владелец, ЭтоГруппа, ПометкаУдаления, РежимПроведения, ВерсияДанных, Предопределенный, ИмяПредопределенныхДанных, Проведен, Дата, Номер).xml-gen meta remove <configDir> <Type.Name> [--dry-run] [--keep-files] [--force]
Алгоритм: поиск файлов → проверка ссылок в XML/BSL → удаление из Configuration.xml ChildObjects → удаление из подсистем → удаление файлов.
В shorthand: Справочник → Catalog, Документ → Document, Перечисление → Enum, РегистрСведений → InformationRegister и т.д.
# Один объект
xml-gen meta edit <objectPath> --batch patch.json
# Мультиобъектный патч (ObjectPath внутри JSON)
xml-gen meta edit --batch multi-patch.json
Применять при: нескольких операциях разных типов к одному объекту за один вызов, генерации патчей агентом, воспроизводимых миграциях схемы.
Inline batch через ;;:
xml-gen meta edit <objectPath> --op add-attribute "Цена: Number(15,2) ;; Вес: Number(10,3) | nonneg"
Подробная спецификация, полная структура JSON, позиционная вставка, мультиобъектные патчи — references/batch-patch.md.
Статус:
--batch <file.json>и inline;;реализованы вxml-gen(Java, транзакционно).
tools
Diagnostics for Vanessa Automation runs. Use when a feature scenario failed, artifacts were not created, or you need to classify a failure after launch.
tools
Creating and refining Vanessa Automation feature scenarios based on real project requirements. Use when you need to write or update a scenario test, not just run it.
tools
--- name: v8-session-manager description: Use when working with the 1С session manager (v8-session-manager) - launch, configuration, connecting 1С clients, reading session_list, calling proxied MCP-tools from 1С extensions, diagnostics. Triggers: mention of `v8-session-manager`, `session_list`, 1С extension MCP showcase, error “no active sessions” / “session_id required”, connecting a client to the manager via `mcpMode=ws`. provides_capabilities: # Built-in manager tools — always available whi
tools
Use when Codex needs to manage v8-runner on local 1C projects through the CLI: configure v8project.yaml, initialize infobases or EDT workspaces, build sources from Designer or EDT, run syntax checks and tests, dump infobase changes, convert source formats, load or export artifacts, launch 1C clients, or choose safe 1C automation command sequences.