1c-cf-edit

Edit 1C Configuration.xml properties and objects via cf-edit scripts.

40|11|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/Desko77/claude-code-skills-1c --skill 1c-cf-edit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: 1c-cf-edit
Source: https://github.com/Desko77/claude-code-skills-1c/tree/main/skills/1c-cf-edit
Command: npx skills add https://github.com/Desko77/claude-code-skills-1c --skill 1c-cf-edit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires lxml, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Редактирование Configuration.xml в 1C:Enterprise обычно требует ручного вмешательства и рискованных правок. Этот Skill позволяет безопасно и быстро вносить точечные правки в состав конфигурации, свойства объектов и настройки ролей по умолчанию с помощью скриптов и файлов определения.

Core Features & Use Cases

  • Массовое и точечное редактирование Configuration.xml: изменение свойств конфигурации, добавление и удаление объектов.
  • Управление DefaultRoles: добавление и удаление ролей по умолчанию, либо полная переработка списка.
  • Поддержка пакетной обработки через DefinitionFile (JSON) или одиночной операции, включая автоматическую валидацию после сохранения.

Quick Start

Запустите cf-edit.ps1 (или cf-edit.py) для редактирования Configuration.xml, например cf-edit.ps1 -ConfigPath 'src/Configuration.xml' -Operation modify-property -Value 'Version=2.0.0.1'.

Frequently Asked Questions about 1c-cf-edit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I programmatically edit Configuration.xml in 1C:Enterprise to modify object properties?

To programmatically edit Configuration.xml in 1C:Enterprise, you can use cf-edit.ps1 or cf-edit.py scripts to perform modify-property operations. Run a command like cf-edit.ps1 -ConfigPath 'src/Configuration.xml' -Operation modify-property -Value 'Version=2.0.0.1' to update specific configuration settings safely.

What is the best way to batch update 1C configuration objects and default roles?

The best way to batch update 1C configuration objects and default roles is by using a DefinitionFile in JSON format. This approach allows you to script multiple add-childObject, remove-childObject, add-defaultRole, and set-defaultRoles operations together with auto-validation after saving.

Does cf-edit require any specific dependencies to manage 1C configuration files?

Yes, managing 1C configuration files with cf-edit requires the lxml dependency installed in your environment. This XML processing library is necessary for the scripts to parse and programmatically modify the Configuration.xml structure during object management and role assignments.

Can I add and remove default roles in 1C Configuration.xml through scripting?

Yes, you can add and remove default roles in 1C Configuration.xml through scripting. The cf-edit scripts support add-defaultRole, remove-defaultRole, and set-defaultRoles operations, enabling automated role management and complete list rewrites without manual XML editing.

When do I need scripted configuration updates for 1C object management?

You need scripted configuration updates for 1C object management when performing batch modifications to Configuration.xml. This approach is essential for applying consistent property changes, automated object additions or removals, and role assignments across development environments without risky manual interventions.

What are the limitations of using scripts to edit 1C Configuration.xml?

A key limitation of editing 1C Configuration.xml with scripts is that operations are bound to specific supported actions like modify-property and add-childObject. Complex structural changes outside these defined operations or DefinitionFile parameters require manual XML intervention.