role-validate

Validate 1C role Rights.xml structure, XML correctness, and rights values.

33|8|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/Dach-Coin/claude_rules_1c --skill role-validate-dach-coin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: role-validate
Source: https://github.com/Dach-Coin/claude_rules_1c/tree/main/.claude/skills/role-validate
Command: npx skills add https://github.com/Dach-Coin/claude_rules_1c --skill role-validate-dach-coin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps you catch structural and semantic mistakes in a 1C role by validating Rights.xml before you publish or rely on it for access control.

Core Features & Use Cases

  • Rights.xml structure validation: checks XML well-formedness, root element name/namespace, and global flags.
  • Rights correctness checks: verifies object types, allowed right names per object type, and right values.
  • RLS and templates inspection: detects empty RLS conditions and validates restriction templates (names and conditions).
  • Optional metadata validation: verifies Role UUID, Name, and Synonym in the inferred Role metadata file.
  • Optional configuration registration check: warns if the role Name is not registered in Configuration.xml.

Quick Start

Use the role-validate skill to validate the role located at Roles/МояРоль and stop after the default maximum error count.

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 role Rights.xml file before deployment?

Validating a 1C role Rights.xml file involves checking XML well-formedness, root namespace, and global flags to catch structural mistakes. It verifies object types, allowed right names, and right values against schema expectations.

What does RLS condition validation involve for 1C access control?

RLS condition validation for 1C access control detects empty RLS conditions and verifies restriction templates by checking their names and conditions. This ensures row-level security rules are structurally sound and correctly defined.

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

Yes, you can check if a 1C role Name is registered in Configuration.xml. The validation process optionally verifies this registration and warns you if the role is missing from the configuration file.

Does role validation support checking Role metadata UUID and Synonym?

Yes, role validation supports checking Role metadata UUID and Synonym. It optionally validates inferred Role metadata including UUID, Name, and Synonym to ensure role properties are correctly defined.

What is the best way to audit 1C access control rights before publishing?

The best way to audit 1C access control rights before publishing is running a comprehensive Rights.xml validation across role directories. This checks XML correctness, rights names, values, and RLS conditions to catch semantic mistakes early.