role-compile

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

Updated Mar 29, 2026
One-click install
npx skills add https://github.com/Alex1980Alex/1C-Framework --skill role-compile-alex1980alex
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: role-compile
Source: https://github.com/Alex1980Alex/1C-Framework/tree/main/external/cc-1c-skills/.claude/skills/role-compile
Command: npx skills add https://github.com/Alex1980Alex/1C-Framework --skill role-compile-alex1980alex

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires lxml, and includes scripts (resource) components.

What problem does it solve?

This Skill turns a structured JSON description of a 1C role into the exact metadata and rights files needed for a working configuration, removing the need to handcraft XML and permission blocks.

Core Features & Use Cases

  • Role Generation: Builds Role metadata and Rights XML from a compact JSON DSL.
  • Permission Modeling: Supports catalogs, documents, registers, services, configuration rights, nested objects, presets, and RLS restrictions.
  • Localization Support: Accepts Russian object and right names and converts them to canonical 1C names.
  • Validation and Safety: Checks object and right compatibility, warns on invalid combinations, and respects support-state guardrails when editing existing configurations.
  • Use Case: Create a new access role for a 1C solution, define object-level permissions in JSON, and generate deployable files in the configuration tree.

Quick Start

Give me a JSON role definition and the target 1C configuration directory, and I will generate the role metadata and rights files for you.

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 from a JSON definition?

To generate 1C role metadata and rights XML, provide a structured JSON role description and the target 1C configuration directory. The compiler validates object and right names, applies RLS conditions, and emits deployable metadata files into the configuration tree.

Can I use Russian aliases for 1C object and right names when generating role files?

Yes, you can use Russian aliases for 1C object and right names during role file generation. The compiler accepts Russian object and right names and automatically converts them to canonical 1C metadata names within the output XML files.

What 1C metadata objects can I model permissions for using a JSON DSL?

You can model 1C permissions for catalogs, documents, registers, services, configuration rights, and nested metadata objects. The JSON DSL also supports using presets and applying RLS restrictions to define granular access control.

Does generating 1C roles with a JSON DSL respect existing configurations and support states?

Generating 1C roles with a JSON DSL respects existing configurations by applying support-state guardrails. The compiler safely validates object and right compatibility, warns on invalid combinations, and prevents unauthorized modifications to protected configuration metadata.

What is the best way to define RLS conditions and presets for 1C access roles?

The best way to define RLS conditions and presets for 1C access roles is through a compact JSON DSL. This approach translates structured permission definitions directly into ready-to-use rights XML files, eliminating the need to handcraft XML blocks.

Why does my 1C role compilation fail when defining permissions for nested metadata objects?

1C role compilation fails when invalid object and right combinations are detected within the JSON DSL. The compiler validates object and right compatibility for nested metadata objects and issues warnings to prevent generating incompatible role metadata and rights XML files.