role-compile — community role-compile, cc-1c-skills, community, ide skills, Claude Code, Cursor, Windsurf

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/5/2026

Agent Capability Analysis

The role-compile skill by Nikolay-Shirokov is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

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

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
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

role-compile

Install role-compile, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

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>                     — визуальная сводка структуры

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is role-compile?

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

How do I install role-compile?

Run the command: npx killer-skills add Nikolay-Shirokov/cc-1c-skills. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for role-compile?

Key use cases include: 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.

Which IDEs are compatible with role-compile?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for role-compile?

Requires PowerShell execution environment. Limited to 1C:Enterprise development configurations. Dependent on JSON DSL definition for role generation.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add Nikolay-Shirokov/cc-1c-skills. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use role-compile immediately in the current project.

Related Skills

Looking for an alternative to role-compile or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

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
AI

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
AI