1c-role-edit

1c-role-edit is a skill for Claude Code, Codex from Desko77/cursor-1c-skills. It costs 53 tokens per session (1,504 once invoked), scanned A, a copy of 1c-role-edit, MIT.

A focused editor for an existing 1C role, where a role defines what users may access and do. It changes object permissions, row-level security conditions, restriction templates, or role properties while preserving unrelated role data.

In plain words
What is it for?
Use it to add, replace, remove, or deny permissions, or to change row-level security rules in a role that is already present in an exported 1C project.
Why use it?
It avoids rebuilding an entire role when only one part needs changing. It keeps the role's identifier and the permissions of other objects unchanged.

Skill for Claude CodeCodex

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

Good fit Use it to add, replace, remove, or deny permissions, or to change row-level security rules in a role that is already present in an exported 1C project.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/desko77/cursor-1c-skills/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/cursor-1c-skills --skill 1c-role-edit
Clone the repo
git clone --depth 1 https://github.com/Desko77/cursor-1c-skills

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/desko77/cursor-1c-skills/1c-role-edit/github.svg)](https://agentmods.dev/skills/desko77/cursor-1c-skills/1c-role-edit)
Your own site
<a href="https://agentmods.dev/skills/desko77/cursor-1c-skills/1c-role-edit"><img src="https://agentmods.dev/badge/skills/desko77/cursor-1c-skills/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/cursor-1c-skills/1c-role-edit"><img src="https://agentmods.dev/badge/skills/desko77/cursor-1c-skills/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,504 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 92% copy Near-identical to another mod 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.01504
Opus 5.5 $0.00021 $0.00602
Sonnet 5.5 $0.00011 $0.00301
Haiku 4.5 $0.00005 $0.00150

Measured 25d ago against content hash 21eefb9071ec, 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

This is a copy

92% identical to 1c-role-edit — 22 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

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

How it starts

The opening of the file, as written. The whole thing — 93 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 · 93 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 21eefb9071ec
  2. 2mo ago First seen · 93 lines · 53 tokens per session scan A 411c22b4ab4a

Subscribe to this mod's changes

1c-role-edit is a skill published in the GitHub repository Desko77/cursor-1c-skills (78 stars, last pushed 7d ago), licensed MIT. It adds 53 tokens to every session and 1,504 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 92% identical to 1c-role-edit, differing in 22 lines, and is treated as a copy.

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/cursor-1c-skillsSkill787d agoMITA53Claude 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