config-operations

$npx mdskill add SteelMorgan/1c-agent-based-dev-framework/config-operations

Manages 1C configuration files by initializing, analyzing, editing properties and ChildObjects, and validating Configuration.xml.

  • Helps create new configurations, analyze structure, modify properties, and validate XML files for 1C platform development.
  • Integrates with 1C configuration tools to handle Configuration.xml, Languages files, and ConfigDumpInfo.xml operations.
  • Executes commands based on user triggers like creating, viewing, editing, or validating configurations as specified in the SKILL.md.
  • Presents results through command-line outputs, including file generation, summaries, and validation reports.

SKILL.md

.github/skills/config-operationsView on GitHub ↗
---
name: config-operations
description: Операции с конфигурацией 1С (CF) — init, info, edit, validate. Используй при создании конфигурации, анализе структуры, изменении свойств и ChildObjects, валидации Configuration.xml.
---

# Config Operations

Работа с конфигурациями 1С (Configuration.xml).

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

| Триггер | Действие |
|---------|----------|
| Нужно создать новую конфигурацию | `config init --name <Name> <output_dir>` |
| Нужно посмотреть состав конфигурации | `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

Создать новую конфигурацию.

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

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

### config info

Анализ конфигурации: свойства, состав, счётчики объектов.

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

**Режимы:**
- `brief` — однострочная сводка
- `overview` — свойства + количество объектов по типам
- `full` — все свойства, все объекты

### config edit

Изменение свойств и состава конфигурации.

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

**Операции:**
- `modify-property` — изменить свойство: `--value "CompatibilityMode=Version8_3_24"`
- `add-child` — добавить объект в ChildObjects: `--value "Catalog.Товары"`
- `remove-child` — удалить объект: `--value "Catalog.Товары"`
- `add-default-role` — добавить роль по умолчанию: `--value "ОсновнаяРоль"`
- `remove-default-role` — удалить роль по умолчанию

### config validate

Валидация Configuration.xml (10 проверок).

```bash
xml-gen config validate <configPath>
```

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

## 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"
---

More from SteelMorgan/1c-agent-based-dev-framework

SkillDescription
1c-ai-agent-cliCLI 1C BSL Agent Framework — tools/install.py (clone, install). Используй при клонировании репозитория, установке компонентов в проект, настройке IDE (Cursor, Claude Code, Windsurf, VS Code+Continue).
agent-debugПаттерн отладочных сообщений для 1С BSL. Используй, когда стандартная диагностика (event-log, скриншоты) не даёт понять фактическое поведение системы — нужно вставить временные точки логирования в код, запустить тест и проанализировать записи ЖР.
agent-developmentCreate custom subagents for specialized AI tasks. Use when the user wants to create a new type of subagent, set up task-specific agents, configure code reviewers, debuggers, or domain-specific assistants with custom prompts.
agent-development-ext>
agent-git-workflowStandardizes git workflow for the AI agent in the sandbox devcontainer: work in agent/<task>-<yyyymmdd>, integrate via agent, never push to main/master, open PRs via GitHub CLI. Use when the user asks to create branches, push changes, open PRs, or follow this sandbox repo setup.
auto-skill-bootstrapDeterministic helper to inventory existing project skills, detect missing capability coverage, search skills.sh via Skills CLI, and (optionally) install missing skills under a trust policy. Uses skills-manifest.json + state.json to stay idempotent across changing requirements.
code-navigationНавигация по коду (Code Navigation). Навык учит агента **эффективно перемещаться по BSL-коду** с помощью LSP (Language Server Protocol).
epf-buildСобрать EPF/ERF из XML-исходников. Используй после внесения временных диагностических правок в разобранную обработку.
epf-dumpРазобрать EPF/ERF в XML-исходники. Используй, когда нужно быстро получить исходный код внешней обработки или отчета для анализа и временной модификации.
epf-operationsОперации с внешними обработками 1С (EPF) — создание, добавление форм и шаблонов. Используй при epf init, add-form, add-template, add-attribute, add-tabular-section.