role-validate

Validate 1C role Rights.xml structures for permissions, RLS, and metadata.

41|5|Updated May 28, 2026
One-click install
npx skills add https://github.com/msrv-tech/skills --skill role-validate-msrv-tech
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: role-validate
Source: https://github.com/msrv-tech/skills/tree/main/role-validate
Command: npx skills add https://github.com/msrv-tech/skills --skill role-validate-msrv-tech

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Validates the correctness of 1C Rights.xml for roles after creation or modification, ensuring XML structure, namespace, and metadata integrity.

Core Features & Use Cases

  • Validates Rights.xml structure: well-formed XML, correct root element, and expected namespace.
  • Checks global role flags, object rights, RLS restrictions, and templates.
  • Verifies role metadata (UUID, Name, Synonym) when a metadata file is present.
  • Cross-checks role registration in Configuration.xml and reports missing links.

Quick Start

Run the validator against your Rights.xml to perform checks and generate a report.

Frequently Asked Questions about role-validate

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

FAQPage Schema
How do I validate a 1C Rights.xml file structure after modifying roles?

To validate a 1C Rights.xml file, you can check its XML well-formedness, correct namespace, required global flags, object rights, and RLS restrictions. This ensures your role modifications maintain correct permissions and metadata integrity across configurations.

What does RLS condition presence verification check in 1C role metadata?

RLS condition presence verification checks that Row Level Security restrictions are correctly defined within your 1C Rights.xml. It validates that RLS conditions are properly applied to ensure correct permissions are enforced across object types in your configuration.

How do I cross-check role registration in Configuration.xml to find missing links?

You can cross-check role registration by validating your Rights.xml against Configuration.xml to identify and report missing links. This verifies that newly created or modified roles are properly registered within the overall 1C configuration metadata.

Can I verify 1C role metadata like UUID and Synonym using a validation script?

Yes, you can verify 1C role metadata such as UUID, Name, and Synonym when a metadata file is present. The validation checks metadata integrity to ensure your role definitions are complete and correctly structured within the configuration.

Does the role validator require specific dependencies to check 1C Rights.xml?

Yes, the role validator requires the lxml dependency to parse and check 1C Rights.xml structures. This XML processing library enables the script to enforce well-formedness, validate namespaces, and verify nested rights and templates.

What is the best way to check template naming and conditions in 1C Rights.xml?

The best way to check template naming and conditions in 1C Rights.xml is to run a dedicated validation script. It verifies template naming conventions and condition logic alongside global flags and object rights to ensure complete role correctness.