1c-role-compile

Generates 1C role metadata and Rights.xml files from a rights description.

Updated Jun 26, 2026
One-click install
npx skills add https://github.com/pavelvdo/universal-xml-exchange2 --skill 1c-role-compile-pavelvdo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: 1c-role-compile
Source: https://github.com/pavelvdo/universal-xml-exchange2/tree/main/.cursor/skills/1c-roles/compile
Command: npx skills add https://github.com/pavelvdo/universal-xml-exchange2 --skill 1c-role-compile-pavelvdo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Defining access rights in 1C:Enterprise requires hand-writing verbose XML files (role metadata and Rights.xml) with correct namespaces, right names per object type, and RLS templates, which is error-prone when done manually. ## Core Features & Use Cases - Role File Generation: Creates the role metadata XML (with generated UUID) and the Ext/Rights.xml file, plus registration in Configuration.xml ChildObjects. - Rights Reference Tables: Provides ready-made right sets (Read/Full) for catalogs, documents, registers, and simple types, including nested objects and configuration-level rights. - RLS Support: Includes the restrictionByCondition syntax and restriction templates for row-level security on Read, Update, Insert, and Delete rights. - Use Case: You need a role for a scheduled job that reads currencies and updates exchange rates. The skill produces the exact Rights.xml with only programmatic rights (no Interactive/View rights), ready to load into the configuration. ## Quick Start Ask the agent to create a 1C role named RatesUpdater in the Roles directory with read access to the Currencies catalog and read-write access to the CurrencyRates information register.

Frequently Asked Questions about 1c-role-compile

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

FAQPage Schema
How do I create a 1C role with Rights.xml from scratch?

Create Roles/RoleName.xml with the role metadata (UUID, name, synonym) and Roles/RoleName/Ext/Rights.xml containing object blocks with right entries. Then add the role to the ChildObjects section of Configuration.xml.

What rights should a 1C role for a scheduled job have?

Background jobs need only programmatic rights such as Read, Insert, Update, Delete, and Posting. They do not require Interactive, View, Edit rights or configuration rights like ThinClient and WebClient.

Which 1C metadata types do not appear in Rights.xml?

Enum, FunctionalOption, DefinedType, CommonModule, CommonPicture, and CommonTemplate have no rights and never appear in Rights.xml. Only objects with actual access rights are listed.

How do I add row-level security (RLS) to a 1C role?

Add a restrictionByCondition element inside the right block after the value, referencing a template like #TemplateName("Param1"). Define the restrictionTemplate at the end of Rights.xml, escaping ampersands as &.

Why does the Rights.xml namespace use 8.2 instead of 8.3?

The Rights.xml root element uses the namespace http://v8.1c.ru/8.2/roles for historical reasons, even in modern platform versions. Using the 8.3 namespace there is a common mistake that breaks the file.