1c-role-validate

1c-role-validate is a skill for Claude Code, Codex from Desko77/cursor-1c-skills. It costs 29 tokens per session (827 once invoked), scanned A, original, MIT.

A checker for access roles in 1C, a platform used to build business applications. It validates the role's Rights.xml file, including its XML structure, permissions, restrictions, and optional metadata.

In plain words
What is it for?
Use it after creating or changing a 1C role to verify object permissions, row-level restrictions, and role metadata.
Why use it?
It catches malformed or inconsistent role definitions before they cause access-control problems in a 1C configuration.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python skills/1c-config-index/scripts/config-index.py -ConfigPath src -OutFile .cache/index.json.

Good fit Use it after creating or changing a 1C role to verify object permissions, row-level restrictions, and role metadata.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Desko77/cursor-1c-skills
agentmods
npx agentmods add skills/desko77/cursor-1c-skills/1c-role-validate

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for 1c-role-validate

README.md
[![agentmods](https://agentmods.dev/badge/skills/desko77/cursor-1c-skills/1c-role-validate/github.svg)](https://agentmods.dev/skills/desko77/cursor-1c-skills/1c-role-validate)
Your own site
<a href="https://agentmods.dev/skills/desko77/cursor-1c-skills/1c-role-validate"><img src="https://agentmods.dev/badge/skills/desko77/cursor-1c-skills/1c-role-validate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for 1c-role-validate

Your own site · 80×15
<a href="https://agentmods.dev/skills/desko77/cursor-1c-skills/1c-role-validate"><img src="https://agentmods.dev/badge/skills/desko77/cursor-1c-skills/1c-role-validate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 827 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium analysis-evasion · line 1
    Suspicious Unicode normalization or mixed-script content
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.00827
Opus 5.5 $0.00012 $0.00331
Sonnet 5.5 $0.00006 $0.00165
Haiku 4.5 $0.00003 $0.00083

Measured 25d ago against content hash b9c5eeff517f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

1c-role-validate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 25d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/role-validate.ps1, scripts/role-validate.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/1c-role-validate/SKILL.md · 70 lines

How it starts

The opening of the file, as written. The whole thing — 70 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/role-validate - валидация роли 1С

Проверяет корректность Rights.xml роли: формат XML, namespace, глобальные флаги, типы объектов, имена прав, RLS-ограничения, шаблоны. Опционально проверяет метаданные роли (UUID, имя, синоним). version в Rights.xml сверяется с XML роли.

Параметры

Параметр Обяз. Умолч. Описание
RightsPath да - Путь к роли (директория или Rights.xml)
Detailed нет - Подробный вывод (все проверки, включая успешные)
MaxErrors нет 30 Макс. ошибок до остановки (по умолчанию 30)
IndexPath нет - Индекс от 1c-config-index: включает сверку объектов прав с конфигурацией
OutFile нет - Записать результат в файл (UTF-8 BOM)

Команда

pwsh -NoProfile -File skills/1c-role-validate/scripts/role-validate.ps1 -RightsPath "Roles/МояРоль"

Дополнительно - проверка прав на перечисления

После запуска валидатора отдельно проверь наличие прав на Enum.* в Rights.xml - это анти-паттерн в любой роли:

$content = Get-Content -Raw "Roles/МояРоль/Ext/Rights.xml"
if ($content -match '<name>Enum\.[^<]+</name>') {
 Write-Warning "Найдены права на перечисления - удалить (Enum общедоступны, явные права избыточны и ломают LoadConfigFromFiles)"
}

Если найдены - предложить пользователю удалить блоки <object><name>Enum.*</name>...</object>. См. 1c-role-rights.md.

Сверка объектов прав с конфигурацией (проверка 7)

Права на удаленный объект - обычный след рефакторинга: объект убрали, роль осталась. Платформа такую роль загрузит, а право просто повиснет.

С -IndexPath валидатор сверяет каждое имя из <object><name>. Имена там те же, что ключи индекса (Catalog.Контрагенты), поэтому карта соответствий не нужна.

Разбираются три формы имени:

  • две части - сам объект;
  • четыре части - вложенная сущность: Attribute, StandardAttribute, TabularSection, Command, Form, Template;
  • шесть частей - реквизит табличной части.

Read the full file on GitHub · 70 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 25d ago Changed b9c5eeff517f
  2. 2mo ago Changed · +10 lines 83f42c6d7e52
  3. 2mo ago First seen · 60 lines · 29 tokens per session scan A e72616ddd85b

Subscribe to this mod's changes

1c-role-validate is a skill published in the GitHub repository Desko77/cursor-1c-skills (78 stars, last pushed 7d ago), licensed MIT. It adds 29 tokens to every session and 827 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

1c-role-validate compared with skills from other repositories

1c-role-validate next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
1c-role-validateDesko77/cursor-1c-skillsSkill787d agoMITA29Claude Code, Codex
1c-form-compileDesko77/claude-code-skills-1cSkill1027d agoMITA50Claude Code
composing-1c-queriesDesko77/claude-code-skills-1cSkill1027d agoMITA174Claude Code, Codex
humanize-ai-textDesko77/claude-code-skills-1cSkill1027d agoMITA329Claude Code
transcribeDesko77/claude-code-skills-1cSkill1027d agoMITA196Claude Code
1c-web-testDesko77/claude-code-skills-1cSkill1027d agoMITA46Claude Code
lmstudio-apiDesko77/claude-code-skills-1cSkill1027d agoMITA199Claude Code, Codex