1c-role-edit

1c-role-edit is a skill for Claude Code from Desko77/claude-code-skills-1c. It costs 53 tokens per session (1,545 once invoked), scanned A, original, MIT.

A targeted editor for an existing 1C role. A role is a saved set of permissions controlling which objects users can access and what they can do with them.

In plain words
What is it for?
Use it to add, change, remove, or deny object permissions, row-level restrictions, restriction templates, and other role properties.
Why use it?
It avoids manually editing role files and changing unrelated permissions or the role's existing identity. It is meant for modifying a role that has already been built, not creating a new one.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to add, change, remove, or deny object permissions, row-level restrictions, restriction templates, and other role properties.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/desko77/claude-code-skills-1c/1c-role-edit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Desko77/claude-code-skills-1c --skill 1c-role-edit
Clone the repo
git clone --depth 1 https://github.com/Desko77/claude-code-skills-1c

Made for: Claude Code.

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-edit

README.md
[![agentmods](https://agentmods.dev/badge/skills/desko77/claude-code-skills-1c/1c-role-edit/github.svg)](https://agentmods.dev/skills/desko77/claude-code-skills-1c/1c-role-edit)
Your own site
<a href="https://agentmods.dev/skills/desko77/claude-code-skills-1c/1c-role-edit"><img src="https://agentmods.dev/badge/skills/desko77/claude-code-skills-1c/1c-role-edit/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-edit

Your own site · 80×15
<a href="https://agentmods.dev/skills/desko77/claude-code-skills-1c/1c-role-edit"><img src="https://agentmods.dev/badge/skills/desko77/claude-code-skills-1c/1c-role-edit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,545 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.
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.00053 $0.01545
Opus 5.5 $0.00021 $0.00618
Sonnet 5.5 $0.00011 $0.00309
Haiku 4.5 $0.00005 $0.00154

Measured 25d ago against content hash 3391ff778965, 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-edit 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-edit.ps1, scripts/role-edit.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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/1c-role-edit/SKILL.md · 99 lines

How it starts

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

/role-edit - точечная правка существующей роли 1С

Меняет уже собранную роль: Roles/<Имя>.xml и Roles/<Имя>/Ext/Rights.xml. UUID роли, права других объектов и их порядок в файле остаются. После правки набор прав затронутого объекта замыкается так же, как при сборке роли, и выстраивается в каноническом порядке выгрузки платформы 8.3.27.

Когда применять

Роль уже лежит в выгрузке, и нужно изменить ее права, ограничение RLS, шаблон или свойства.

Когда не применять

Задача Куда
Роли еще нет, ее надо создать 1c-role-compile
Показать состав роли 1c-role-info
Проверить файл роли 1c-role-validate

Параметры и команда

Параметр Описание
RolePath Roles/<Имя>.xml, каталог роли или Ext/Rights.xml
DefinitionFile JSON: одна операция, массив или объект с полем operations
Operation Одна операция без JSON-файла
Object Объект метаданных, например Catalog.Товары
Rights Права для add-rights, set-rights, remove-rights, deny-rights
Right Одно право для set-rls и remove-rls
Template Имя шаблона ограничения
Condition Текст условия RLS или шаблона
Property synonym, comment, setForNewObjects, setForAttributesByDefault, independentRightsOfChildObjects
Value Значение свойства или запасной носитель прав и условия
NoValidate Не вызывать 1c-role-validate после записи
pwsh -NoProfile -File skills/1c-role-edit/scripts/role-edit.ps1 -RolePath "Roles/Кладовщик.xml" -DefinitionFile "edit.json"
python skills/1c-role-edit/scripts/role-edit.py -RolePath "Roles/Кладовщик.xml" -Operation add-rights -Object "Catalog.Товары" -Rights "Edit"

-DefinitionFile и -Operation вместе не задают. Неизвестная операция и право, которого нет у типа объекта, завершают команду с кодом 1 до записи.

Операции

Операция Что меняет
add-rights Добавляет права к объекту. Уже заданные права другого объекта не переписываются
set-rights Заменяет набор прав объекта. Условие RLS сохраняется у права, которое осталось в наборе
remove-rights Снимает перечисленные права. Пустой набор удаляет блок объекта
deny-rights Записывает явное false. Если включенное право требует это право, в stderr предупреждение: платформа отбросит блок объекта при загрузке
set-rls Ставит условие на право и включает это право
remove-rls Снимает условие, само право не снимает
add-template Добавляет шаблон. Если имя уже есть, код 1: для замены нужен set-template
set-template Задает текст шаблона, при отсутствии шаблон создается
remove-template Удаляет шаблон по имени
modify-property Синоним и комментарий в файле метаданных роли, три признака в Rights.xml

Read the full file on GitHub · 99 lines

Files

What ships with it

3 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 3391ff778965
  2. 2mo ago First seen · 99 lines · 53 tokens per session scan A 3ecb13f3be31

Subscribe to this mod's changes

1c-role-edit is a skill published in the GitHub repository Desko77/claude-code-skills-1c (102 stars, last pushed 7d ago), licensed MIT. It adds 53 tokens to every session and 1,545 once invoked, about $0.0002 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-30.

Related

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

1c-role-edit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
1c-role-editDesko77/claude-code-skills-1cSkill1027d agoMITA53Claude Code
1c-bsp-registrationDesko77/cursor-1c-skillsSkill787d agoMITA27Claude Code, Codex
docx-from-sampleDesko77/cursor-1c-skillsSkill787d agoMITA115Claude Code, Codex
claude-md-bootstrapDesko77/cursor-1c-skillsSkill787d agoMITA6Claude Code, Codex
1c-cfe-patch-methodDesko77/cursor-1c-skillsSkill787d agoMITA61Claude Code, Codex
1c-xdto-compileDesko77/cursor-1c-skillsSkill787d agoMITA55Claude Code
v8unpack-cfDesko77/cursor-1c-skillsSkill787d agoMITA63Claude Code, Codex