role-compile

Generate 1C role metadata and rights XML files from JSON DSL definitions.

511|99|Updated Feb 8, 2026
One-click install
npx skills add https://github.com/Nikolay-Shirokov/cc-1c-skills --skill role-compile-nikolay-shirokov
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: role-compile
Source: https://github.com/Nikolay-Shirokov/cc-1c-skills/tree/main/.claude/skills/role-compile
Command: npx skills add https://github.com/Nikolay-Shirokov/cc-1c-skills --skill role-compile-nikolay-shirokov

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation of 1C roles, translating a human-readable JSON description into the necessary XML metadata and rights files, eliminating manual configuration and potential errors.

Core Features & Use Cases

  • JSON to XML Conversion: Converts a defined JSON structure into Roles/Имя.xml (metadata) and Roles/Имя/Ext/Rights.xml (permissions).
  • UUID Generation: Automatically assigns unique identifiers to new roles.
  • Configuration Integration: Optionally registers the new role in Configuration.xml.
  • Use Case: A developer needs to define a new user role with specific permissions for accessing certain documents and registers. Instead of manually creating XML files, they provide a JSON DSL, and this Skill generates all required files and updates the configuration.

Quick Start

Use the role-compile skill to generate a 1C role from the JSON file '~/roles/my_new_role.json' and output it to the '~/1c_project/src/Roles' directory.

Frequently Asked Questions about role-compile

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate 1C role metadata and rights XML files automatically?

Generating 1C roles from a JSON DSL automatically creates the necessary metadata and rights XML files. This eliminates manual configuration by translating a human-readable JSON description into the required XML structure.

What is a JSON DSL and how does it work for creating 1C:Enterprise roles?

A JSON DSL is a domain-specific language format used to define 1C:Enterprise user permissions structure. It works by mapping predefined permission sets and RLS templates into standard configuration XML files for role management.

Can I integrate newly created roles directly into my 1C Configuration.xml?

Yes, you can integrate generated roles directly into your 1C Configuration.xml. The process optionally registers the newly created role metadata, assigning a unique UUID, to ensure seamless integration with the main configuration file.

Does generating 1C roles support row-level security templates?

Yes, generating 1C roles from JSON supports row-level security templates. The Skill handles RLS templates natively within the DSL definition, ensuring the generated rights XML files enforce the correct document access constraints.

What is the best way to automate user role creation in 1C:Enterprise configurations?

The best way to automate user role creation in 1C:Enterprise is by using a JSON DSL to generate XML metadata. This approach avoids manual XML file creation, reduces configuration errors, and efficiently manages predefined permission sets.