Skip to main content
skill CX Codex

meta-edit — Claude Code skill: what it does, how to install

The meta-edit skill edits existing 1C metadata XML objects, including attributes, tabular sections, and object properties. Use it for focused configuration changes.

MIT 45 installs ★ 811 updated 2026-10-23

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add Nikolay-Shirokov/cc-1c-skills
/plugin install 1c-skills@cc-1c-skills
Open on GitHub

What meta-edit does

For a single change, the skill runs a PowerShell script with an operation and value. A JSON file can describe combined edits. Available operations include adding or removing attributes, dimensions, resources, and columns, changing properties, and batching actions with ;;. Validation runs after an edit unless -NoValidate is passed.

The skill works on existing metadata XML and uses Bash, Read, Write, and Glob. It leaves forms and layouts alone; separate skills handle those files: form-add, form-remove, template-add, and template-remove. That distinction matters when the requested change belongs to a form or layout rather than the metadata object itself.

What it helps with

  • add an attribute to an existing 1C object
  • rename an attribute and change its type
  • create a tabular section with fields
  • remove obsolete dimensions or resources
  • change metadata object properties

Example prompts for the agent

  • Add a Comment attribute of type String(200) to this metadata object.
  • Rename this attribute and change its type to String(500).
  • Add a Goods tabular section with fields for an item and its quantity.

How to install meta-edit

1Plugin marketplace

/plugin marketplace add Nikolay-Shirokov/cc-1c-skills
/plugin install 1c-skills@cc-1c-skills

This installs the whole 1c-skills plugin with all its skills

2Skills CLI (Vercel)

npx skills add Nikolay-Shirokov/cc-1c-skills --skill meta-edit -a claude-code

3Manually: put the files in place

~/.claude/skills/meta-edit/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/meta-edit/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about meta-edit

How do I install meta-edit in Claude Code?

Run these commands in order: /plugin marketplace add Nikolay-Shirokov/cc-1c-skills, then /plugin install 1c-skills@cc-1c-skills.

What does the meta-edit skill do?

It adds, changes, or removes parts of existing 1C metadata XML objects. Simple edits use command arguments; combined changes can be described in a JSON file.

Can meta-edit change forms or layouts?

No. Use form-add or form-remove for forms, and template-add or template-remove for layouts.

Source text

SKILL.md · MIT
---
name: meta-edit
description: Точечное редактирование объекта метаданных 1С. Используй когда нужно добавить, удалить или изменить реквизиты, табличные части, измерения, ресурсы или свойства существующего объекта конфигурации
argument-hint: <ObjectPath> -Operation <op> -Value "<val>" | -DefinitionFile <json> [-NoValidate]
allowed-tools:
  - Bash
  - Read
  - Write
  - Glob
---

# /meta-edit — точечное редактирование метаданных 1С

Атомарные операции модификации существующих XML объектов метаданных.

## Команда

### Inline mode (простые операции)

```powershell
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/meta-edit.ps1" -ObjectPath "<path>" -Operation <op> -Value "<val>"
```

### JSON mode (сложные/комбинированные)

```powershell
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/meta-edit.ps1" -DefinitionFile "<json>" -ObjectPath "<path>"
```

| Параметр | Описание |
|----------|----------|
| ObjectPath | XML-файл или директория объекта (обязательный, авторезолв `<dirName>.xml`) |
| Operation | Inline-операция (альтернатива DefinitionFile) |
| Value | Значение для inline-операции |
| DefinitionFile | JSON-файл с операциями (альтернатива Operation) |
| NoValidate | Не запускать валидацию после правки |

## Частые операции

Batch через `;;` во всех операциях.

| Операция | Формат Value | Пример |
|----------|-------------|--------|
| `add-attribute` | `Имя: Тип \| флаги` | `"Сумма: Число(15,2) \| req, index"` |
| `add-dimension` | `Имя: Тип \| флаги` | `"Организация: CatalogRef.Организации \| master"` |
| `add-resource` | `Имя: Тип` | `"Сумма: Число(15,2)"` |
| `add-column` | `Имя: Тип` | `"Тип: EnumRef.ТипыДокументов"` |
| `add-ts` | `ТЧ: Рекв1: Тип1, Рекв2: Тип2` | `"Товары: Ном: CatalogRef.Ном, Кол: Число(15,3)"` |
| `add-ts-attribute` | `ТЧ.Имя: Тип` | `"Товары.Скидка: Число(15,2)"` |
| `remove-*` | `Имя` | `"СтарыйРеквизит ;; ЕщёОдин"` |
| `remove-ts-attribute` | `ТЧ.Имя` | `"Товары.УстаревшийРекв"` |
| `modify-attribute` | `Имя: ключ=значение` | `"СтароеИмя: name=НовоеИмя, type=Строка(500)"` |
| `modify-ts-attribute` | `ТЧ.Имя: ключ=значение` | `"Товары.Рекв: name=НовоеИмя"` |
| `modify-ts` | `ТЧ: ключ=значение` | `"Товары: synonym=Товарный состав"` |
| `modify-property` | `Ключ=Значение` | `"CodeLength=11 ;; DescriptionLength=150"` |

Позиционная вставка: `"Склад: CatalogRef.Склады >> after Организация"`.

Составной тип — через `+`: `"Значение: Строка + Число(15,2) + Дата"`.

## Быстрые примеры

```powershell
# Добавить реквизиты
-Operation add-attribute -Value "Комментарий: Строка(200) ;; Сумма: Число(15,2) | index"

# Добавить ТЧ с реквизитами
-Operation add-ts -Value "Товары: Ном: CatalogRef.Ном | req, Кол: Число(15,3), Цена: Число(15,2)"

# Удалить реквизит
-Operation remove-attribute -Value "УстаревшийРеквизит"

# Переименовать + сменить тип
-Operation modify-attribute -Value "СтароеИмя: name=НовоеИмя, type=Строка(500)"

# Изменить свойства объекта
-Operation modify-property -Value "CodeLength=11 ;; DescriptionLength=150"

# Владельцы справочника
-Operation set-owners -Value "Catalog.Контрагенты ;; Catalog.Организации"
```

## Индекс: что правишь → файл

| Что нужно | Файл |
|-----------|------|
| Реквизит, измерение, ресурс, графа: флаги, составные типы, структурные свойства (`Format`, `ChoiceParameters`, `FillValue`, …) | `reference/attributes.md` |
| Табличная часть и её реквизиты | `reference/tabular-sections.md` |
| Свойства самого объекта, списочные свойства (владельцы, движения, основание, ввод по строке) | `reference/properties.md` |
| Предопределённые элементы | `reference/predefined.md` |
| Значения перечисления, команды | `reference/other-children.md` |
| Внешний источник данных: поля, таблицы, функции | `reference/external-data-source.md` |
| Комбинированные операции в одном JSON, синонимы ключей и типов, какие дети допустимы у типа объекта | `reference/json-dsl.md` |

Форму добавляет и удаляет навык `form-add` / `form-remove`, макет — навык `template-add` /
`template-remove`: кроме записи в `ChildObjects` у них есть собственные файлы, и `meta-edit` их не трогает.

## Верификация

```
/meta-validate <ObjectPath>    — валидация после редактирования
/meta-info <ObjectPath>        — визуальная сводка
```

© Nikolay Shirokov · MIT · Nikolay-Shirokov/cc-1c-skills

Similar skills

Everything for 1C →
platform-custom-object-generate forcedotcom The platform-custom-object-generate skill helps create and validate Salesforce custom object metadata and troubleshoot deployment errors. Use it when editing .object-meta.xml files. CX Codex +1 6,700installs platform-custom-application-generate forcedotcom platform-custom-application-generate is a Claude Code skill that creates and configures tab-based Salesforce Custom Applications. It organizes tabs, branding, and navigation into focused apps. CX Codex +1 5,900installs seo-meta-optimizer Seth Hobson seo-meta-optimizer — a subagent for Claude Code, Codex, and Cursor that produces meta titles, descriptions, and URL structures for new pages. Feed it content and keywords; it returns a ready metadata package. CX Codex ★ 42,780repo stars price-check ilyautov price-check builds a gross-margin table per product and three price scenarios — hold, raise, cut — factoring in the owner's VAT status. Margin math follows the margin-analyzer workflow. CX Codex +1 ★ 38repo stars month-end-prep ilyautov month-end-prep — a skill that walks a business owner through month-end close: reconciles 1C/MoySklad books against acquiring payouts and bank statements, flags uncategorized lines, duplicates and missing receipts, then writes a P&L summary. CX Codex +1 ★ 38repo stars 1c-rest-mcp theYahia 1c-rest-mcp connects an AI agent to live 1C data through OData 3.0. It can read and change catalogs, documents, registers, and metadata. CX Codex +1 ★ 13repo stars

From the same set81

The whole set →

Project sponsors

Companies that keep this analytics open