kd2-rules

kd2-rules is a skill for Claude Code, Codex from Desko77/claude-code-skills-1c. It costs 280 tokens per session (3,212 once invoked), scanned A, a copy of kd2-rules, MIT.

A development guide for building data-exchange rules in 1C:Enterprise Data Conversion 2.0. This software maps objects and fields between two 1C configurations and exports the resulting rules as XML.

In plain words
What is it for?
Use it to configure object, property, value, registration, upload, and cleanup rules between 1C systems.
Why use it?
It provides a structured way to create, inspect, change, and export exchange rules without manually editing the underlying records.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to configure object, property, value, registration, upload, and cleanup rules between 1C systems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/desko77/claude-code-skills-1c/kd2-rules
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Desko77/claude-code-skills-1c --skill kd2-rules
Clone the repo
git clone --depth 1 https://github.com/Desko77/claude-code-skills-1c

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for kd2-rules

README.md
[![agentmods](https://agentmods.dev/badge/skills/desko77/claude-code-skills-1c/kd2-rules.svg)](https://agentmods.dev/skills/desko77/claude-code-skills-1c/kd2-rules)
Your own site
<a href="https://agentmods.dev/skills/desko77/claude-code-skills-1c/kd2-rules"><img src="https://agentmods.dev/badge/skills/desko77/claude-code-skills-1c/kd2-rules.svg" alt="Measured on agentmods" height="20"></a>
Per session 280 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,212 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 88% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00280 $0.03212
Opus 5 $0.00140 $0.01606
Sonnet 5 $0.00056 $0.00642
Haiku 4.5 $0.00028 $0.00321

Measured 4d ago against content hash 6244e497b83e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

kd2-rules scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl http://localhost:7003/health
Origin

This is a copy

88% identical to kd2-rules — 155 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/kd2-rules/SKILL.md · 219 lines

How it starts

The opening of the file, as written. The whole thing — 219 lines — stays where its author put it; the contents beside it link to each section on GitHub.

KD 2.0 - правила обмена через MCP-toolkit

Скилл описывает, как агент создает/изменяет правила обмена в живой ИБ "Конвертация данных 2.1" (КД 2.0) через MCP-toolkit HTTP API (порт по умолчанию 6003, в проектах часто 7003) и в финале выгружает XML штатными обработками КД.

Что такое КД 2.0

  • Конфигурация фирмы "1С", v2.1.8.2, обычные формы, режим совместимости 8.2.13. Программа для разработки правил обмена данными между парами конфигураций (например, БП КОРП -> УПП, УТ -> ERP).
  • Результат работы в КД - XML с правилами, который грузится в "Универсальный обмен данными в формате XML" в конфигурации-источнике.
  • Все правила хранятся в справочниках самой КД: Конвертации, ПравилаКонвертацииОбъектов, ПравилаКонвертацииСвойств, ПравилаКонвертацииЗначений, ПравилаВыгрузкиДанных, ПравилаОчисткиДанных, ПравилаРегистрацииОбъектов, плюс Конфигурации/Объекты/Свойства/Значения (теневая модель метаданных источника и приемника).

Архитектура работы

Claude (агент)
   ↕  MCP-протокол / прямые tool-вызовы
Скилл kd2-rules
   ↕  HTTP POST :6003/api/* (или :7003 если переопределен порт)
MCP-toolkit (обработка MCP_Toolkit.epf в живой ИБ)
   ↕  внутрипроцессно
ИБ КД 2.0
   ↕  через ВыгрузкаКонвертации.ВыполнитьВыгрузкуПравил()
Файл XML с правилами обмена

Низкоуровневый транспорт - MCP-toolkit (скилл 1c-mcp-toolkit). Главные эндпоинты, которые используются здесь:

  • POST /api/execute_query - читать справочники КД и их связи.
  • POST /api/execute_code - создавать/изменять элементы справочников, запускать экспортные методы обработок.
  • GET /api/health - проверка живости.

Предварительные требования

  1. Запущенная ИБ КД 2.0 в тонком/толстом клиенте с открытой обработкой MCP_Toolkit.epf (см. скилл 1c-mcp-toolkit). HTTP-сервер слушает localhost:6003 (или :7003 по настройке).
  2. В форме toolkit-а проверить и при необходимости снять защиту от записи: снять флажки на ключевые слова Записать, Удалить, УстановитьПривилегированныйРежим. Без этого работают только execute_query и read-only вызовы.
  3. Желательно тестовая копия ИБ КД, а не production - правила пишутся напрямую в справочники.

Read the full file on GitHub · 219 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 219 lines · 280 tokens per session scan A 6244e497b83e

Subscribe to this mod's changes

kd2-rules is a skill published in the GitHub repository Desko77/claude-code-skills-1c (56 stars, last pushed 5d ago), licensed MIT. It adds 280 tokens to every session and 3,212 once invoked, about $0.0014 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). It is 88% identical to kd2-rules, differing in 155 lines, and is treated as a copy.

Related

Other skills, from other repositories