role-expert

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

151|20|Updated Feb 11, 2026
One-click install
npx skills add https://github.com/Arman-Kudaibergenov/1c-ai-development-kit --skill role-expert
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: role-expert
Source: https://github.com/Arman-Kudaibergenov/1c-ai-development-kit/tree/main/.claude/skills/role-expert
Command: npx skills add https://github.com/Arman-Kudaibergenov/1c-ai-development-kit --skill role-expert

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill solves the problem of manually creating 1C roles (role metadata and detailed rights) by compiling them from a JSON definition.

Core Features & Use Cases

  • Compiles role metadata and rights: Generates Roles/Имя.xml and Roles/Имя/Ext/Rights.xml with UUID automatically.
  • Supports presets and overrides: Uses @view / @edit presets and lets you override specific rights per object, including per-right boolean values.
  • Optional RLS restriction conditions: Adds row-level security (RLS) conditions via templates and rls mapping for specified rights.

Quick Start

Run /role-expert with your role JSON file path and your 1C Configuration Roles/ directory to generate the role XML and rights XML.

Frequently Asked Questions about role-expert

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

FAQPage Schema
How do I generate 1C roles and access rights from a JSON definition?▼

Generate 1C roles and access rights by compiling a JSON DSL into role metadata and detailed rights XML files. The process validates known object types, registers the role under Configuration.xml, and outputs both the role and rights definitions automatically.

Can I apply row-level security conditions when creating 1C role rights?▼

Yes, you can apply row-level security (RLS) conditions when creating 1C role rights. The JSON DSL supports adding RLS restriction conditions through templates and rls mapping for specified rights on valid object types.

How do I use presets to configure 1C access rights for new functional areas?▼

Use @view and @edit presets to configure 1C access rights for new functional areas. These presets provide baseline permissions that you can further refine by overriding specific rights per object, including setting per-right boolean values.

What JSON structure is required to compile 1C role metadata?▼

Compiling 1C role metadata requires a valid JSON DSL containing name, synonym, and comment fields. This JSON definition is validated against known object types and rights before generating the UUID and registering the role under Configuration.xml ChildObjects.

Does generating 1C roles with a JSON DSL work without external dependencies?▼

Yes, generating 1C roles with a JSON DSL works without external dependencies. The skill operates standalone using bundled scripts and references to compile the JSON input into the required Roles XML and Rights XML files.

What are the limitations of generating 1C roles from JSON?▼

Generating 1C roles from JSON requires a strictly valid JSON DSL and limits configurations to known object types and rights. It cannot process undefined objects and relies entirely on the provided JSON structure for preset and RLS mappings.