role-compile

Generate 1C role metadata XML from JSON DSL definitions.

Updated Feb 21, 2026
One-click install
npx skills add https://github.com/mmmmmm786mngb-jpg/WIM_DEV --skill role-compile-mmmmmm786mngb-jpg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: role-compile
Source: https://github.com/mmmmmm786mngb-jpg/WIM_DEV/tree/main/.cursor/skills/role-compile
Command: npx skills add https://github.com/mmmmmm786mngb-jpg/WIM_DEV --skill role-compile-mmmmmm786mngb-jpg

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

The role-compile skill converts a JSON DSL describing 1C roles into ready-to-use XML metadata and rights definitions, reducing manual configuration effort and human error.

Core Features & Use Cases

  • Generates Roles/Имя.xml and Roles/Имя/Ext/Rights.xml from a JSON definition.
  • Supports presets like @view and @edit, per-right overrides, and optional Restriction Templates (RLS).
  • Automatically registers new roles in Configuration.xml when present, enabling immediate deployment across projects.

Quick Start

Create a JSON role definition and run role-compile with -JsonPath and -OutputDir to generate Role XML and Rights files.

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 from JSON automatically?

To generate 1C role metadata from JSON automatically, define your roles and rights in a JSON file and run the role-compile tool with the -JsonPath and -OutputDir parameters to produce the required XML files.

Can I use access restriction templates when generating 1C roles?

Yes, you can use access restriction templates when generating 1C roles by defining optional Restriction Templates (RLS) within your JSON DSL definition to control row-level security.

Does 1C role generation support preset rights like view and edit?

1C role generation supports preset rights like @view and @edit through the JSON DSL, allowing you to apply standard permission sets quickly while also enabling per-right overrides for specific objects.

Do I need PowerShell or Python to automate 1C role XML creation?

You need either PowerShell or Python to automate 1C role XML creation, as the role-compile tooling requires one of these environments to process the JSON DSL and output the metadata files.

How does generating 1C roles update Configuration.xml for deployment?

Generating 1C roles automatically registers the new roles in Configuration.xml when the file is present, creating the necessary deployment entries alongside the standard Role and Rights XML outputs.

What is the best way to streamline access control configuration in 1C?

The best way to streamline access control configuration in 1C is defining roles in a JSON DSL and compiling them into XML metadata, which reduces manual configuration effort and human error.