kd2-rules

kd2-rules is a skill for Claude Code, Codex from Desko77/cursor-1c-skills. It costs 6 tokens per session (2,855 once invoked), scanned A, a copy of kd2-rules, MIT.

A skill for creating and editing data-exchange rules in the 1C Data Conversion 2.0 application through an HTTP toolkit. It exports the resulting rules as XML for use in another 1C configuration.

In plain words
What is it for?
Build, update, and export XML data-exchange rules between 1C configurations such as accounting, sales, and enterprise systems.
Why use it?
It gives developers a documented workflow for changing live 1C exchange rules and producing the required import file.

Skill for Claude CodeCodex

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

Good fit Build, update, and export XML data-exchange rules between 1C configurations such as accounting, sales, and enterprise systems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/desko77/cursor-1c-skills/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/cursor-1c-skills --skill kd2-rules
Clone the repo
git clone --depth 1 https://github.com/Desko77/cursor-1c-skills

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/cursor-1c-skills/kd2-rules.svg)](https://agentmods.dev/skills/desko77/cursor-1c-skills/kd2-rules)
Your own site
<a href="https://agentmods.dev/skills/desko77/cursor-1c-skills/kd2-rules"><img src="https://agentmods.dev/badge/skills/desko77/cursor-1c-skills/kd2-rules.svg" alt="Measured on agentmods" height="20"></a>
Per session 6 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,855 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium analysis-evasion · line 1
    Suspicious Unicode normalization or mixed-script content
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
  • medium Data Exfiltration · line 64
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 98
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
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.00006 $0.02855
Opus 5 $0.00003 $0.01427
Sonnet 5 $0.00001 $0.00571
Haiku 4.5 $0.00001 $0.00285

Measured 5d ago against content hash 3f4a7cb061e4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 5d 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 · 208 lines

How it starts

The opening of the file, as written. The whole thing — 208 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 · 208 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. 5d ago First seen · 208 lines · 6 tokens per session scan A 3f4a7cb061e4

Subscribe to this mod's changes

kd2-rules is a skill published in the GitHub repository Desko77/cursor-1c-skills (55 stars, last pushed 6d ago), licensed MIT. It adds 6 tokens to every session and 2,855 once invoked, about $0.0000 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