KS
Killer-Skills

role-compile — Categories.community

v1.0.0
GitHub

About this Skill

Perfect for 1C:Enterprise development Agents needing automated role compilation from JSON DSL Claude Code skills for 1C:Enterprise development

Nikolay-Shirokov Nikolay-Shirokov
[0]
[0]
Updated: 3/4/2026

Quality Score

Top 5%
31
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add Nikolay-Shirokov/cc-1c-skills/role-compile

Agent Capability Analysis

The role-compile MCP Server by Nikolay-Shirokov is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion.

Ideal Agent Persona

Perfect for 1C:Enterprise development Agents needing automated role compilation from JSON DSL

Core Value

Empowers agents to generate 1C:Enterprise roles from JSON definitions, producing `Roles/Имя.xml` metadata and `Roles/Имя/Ext/Rights.xml` rights files with automatic UUID generation, utilizing PowerShell scripting and JSON parsing

Capabilities Granted for role-compile MCP Server

Automating role creation for 1C:Enterprise configurations
Generating roles from JSON definitions for streamlined development
Compiling roles with automatic UUID assignment for simplified configuration management

! Prerequisites & Limits

  • Requires PowerShell execution environment
  • Limited to 1C:Enterprise development configurations
  • Dependent on JSON DSL definition for role generation
Project
SKILL.md
4.3 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

/role-compile — генерация роли 1С из JSON DSL

Принимает JSON-определение роли → генерирует Roles/Имя.xml (метаданные) и Roles/Имя/Ext/Rights.xml (права). UUID автоматически.

Параметры и команда

ПараметрОписание
JsonPathПуть к JSON-определению роли
RolesDirКаталог Roles/ в исходниках конфигурации
powershell
1powershell.exe -NoProfile -File .claude/skills/role-compile/scripts/role-compile.ps1 -JsonPath "<json>" -OutputDir "<RolesDir>"

<Role>ИмяРоли</Role> автоматически добавляется в <ChildObjects> файла Configuration.xml (ожидается в parent от RolesDir).

JSON DSL

Структура

json
1{ "name": "ИмяРоли", "synonym": "Отображаемое имя", "objects": [...], "templates": [...] }

Необязательные: comment (""), setForNewObjects (false), setForAttributesByDefault (true), independentRightsOfChildObjects (false).

Shorthand-строки и объектная форма

json
1"objects": [ 2 "Catalog.Номенклатура: @view", 3 "Document.Реализация: @edit", 4 "DataProcessor.Загрузка: @view", 5 "InformationRegister.Цены: Read, Update", 6 { "name": "Document.Продажа", "preset": "view", "rights": {"Delete": false}, "rls": {"Read": "#Шаблон(\"\")"} } 7]
  • Shorthand: "Тип.Имя: @пресет" или "Тип.Имя: Право1, Право2"
  • Объектная форма: preset + rights (переопределения) + rls (ограничения)

Пресеты

ПресетДействие
@viewПросмотр — Read, View (+InputByString для справочников/документов; Use+View для обработок/отчётов)
@editПолное редактирование — CRUD + Interactive* + Posting (документы)

@ обязателен в shorthand. В объектной форме — "preset": "view" без @.

Для сервисов (WebService, HTTPService, IntegrationService) пресеты не определены — используй явные права: "WebService.Имя: Use".

Русские синонимы

Поддерживаются русские типы (Справочник→Catalog, Документ→Document) и права (Чтение→Read, Просмотр→View). Смешивание допустимо: "Справочник.Контрагенты: Чтение, View".

Шаблоны RLS

json
1"templates": [{"name": "ДляОбъекта(Мод)", "condition": "ГДЕ Организация = &ТекОрг"}]

Ссылка в rls: "#ДляОбъекта(\"\")". Символ & автоматически экранируется в XML.

Примеры

Простая роль

json
1{ 2 "name": "ЧтениеНоменклатуры", "synonym": "Чтение номенклатуры", 3 "objects": ["Catalog.Номенклатура: @view", "Catalog.Контрагенты: @view", "DataProcessor.Загрузка: @view"] 4}

Роль с RLS

json
1{ 2 "name": "ЧтениеДокументовПоОрганизации", 3 "synonym": "Чтение документов (ограничение по организации)", 4 "objects": [ 5 "Catalog.Организации: @view", 6 {"name": "Document.РеализацияТоваровУслуг", "preset": "view", "rls": {"Read": "#ДляОбъекта(\"\")"}} 7 ], 8 "templates": [{"name": "ДляОбъекта(Модификатор)", "condition": "ГДЕ Организация = &ТекущаяОрганизация"}] 9}

Подробные таблицы пресетов, русских синонимов и дополнительные примеры — в dsl-reference.md.

Верификация

/role-validate <RightsPath> [MetadataPath]  — проверка корректности XML, прав, RLS
/role-info <RightsPath>                     — визуальная сводка структуры

Related Skills

Looking for an alternative to role-compile or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication