What problem does it solve?
This Skill removes the repetitive, error-prone work of hand-authoring 1C role metadata and rights by letting you define roles in a concise JSON DSL and compiling them into the required XML files.
Core Features & Use Cases
- Compiles role metadata: Converts a JSON definition into Roles/Имя.xml with a generated UUID and Russian synonym/comment fields.
- Generates rights XML: Produces Roles/Имя/Ext/Rights.xml with global flags, per-object rights, and optional RLS (restriction-by-condition) templates and conditions.
- Supports shorthand + presets: Uses
ObjectType.ObjectName: @view|@edit or explicit ObjectType.ObjectName: Right1, Right2, plus an object form for overriding rights and adding RLS rules.
- Type and right aliasing: Accepts Russian type and right names (e.g.,
Справочник → Catalog, Просмотр → View) and normalizes them to canonical English names for XML generation.
- Registers the role: Attempts to add the
<Role> entry into Configuration.xml under <ChildObjects>.
Quick Start
Ask the AI to compile a new role from your role JSON DSL file into a specified 1C configuration export directory by running the role-compile command with JsonPath pointing to your JSON and OutputDir pointing to your target Configuration.xml root.