1c-role-validate

Validate 1C Role Rights.xml structure, rights, RLS, and metadata.

40|11|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/Desko77/claude-code-skills-1c --skill 1c-role-validate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: 1c-role-validate
Source: https://github.com/Desko77/claude-code-skills-1c/tree/main/skills/1c-role-validate
Command: npx skills add https://github.com/Desko77/claude-code-skills-1c --skill 1c-role-validate

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill validates the correctness of Rights.xml for 1C roles, checking XML well-formedness, root namespace, global flags, object rights, RLS restrictions, templates, and optional role metadata.

Core Features & Use Cases

  • Validates Rights.xml structure by ensuring the root <Rights> element uses the correct namespace and is well-formed.
  • Checks object definitions, each right value, and validates against known rights per object type, including hints for close matches.
  • Verifies RLS configurations, templates, and optional metadata, and confirms role registration in Configuration.xml.

Quick Start

Запустите скрипт role-validate.ps1 или role-validate.py с параметром RightsPath, указывающим путь к роли, например Roles/МояРоль.

Frequently Asked Questions about 1c-role-validate

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

FAQPage Schema
How do I validate a 1C role Rights.xml file for structural errors?

Validating a 1C role Rights.xml file involves checking its XML well-formedness, verifying the root namespace, and ensuring object definitions and global flags are correctly configured. The script detects structural errors and invalid rights automatically.

What causes RLS issues in 1C role metadata?

RLS issues in 1C role metadata occur when row-level security conditions are empty or improperly configured within Rights.xml. Validation checks non-empty RLS conditions, template restrictions, and ensures proper metadata formatting.

How do I check if a 1C role is registered in Configuration.xml?

Checking 1C role registration in Configuration.xml confirms that the role is properly registered within the global configuration. The validation process automatically verifies this registration alongside Rights.xml structural checks.

Does the 1C role validator work with Python and lxml?

Yes, the 1C role validator works with Python and requires the lxml dependency to parse and validate XML structure. It also provides a PowerShell script alternative for running validation tasks.

How do I validate rights per object type in 1C?

Validating rights per object type in 1C checks each right value against known rights for specific object definitions in Rights.xml. The validator provides hints for close matches when it detects unrecognized rights.

What are the limitations of validating 1C role metadata?

Limitations of validating 1C role metadata include its strict scope to Rights.xml files under Roles/Ext directories and associated metadata. It only enforces known rights, required global flags, and RLS non-empty conditions.