Role Edit logo

Role Edit

Community
Nikolay-Shirokov
role-edit

Точечное редактирование существующей роли 1С. Используй когда нужно добавить, снять или запретить права, настроить RLS-ограничения и шаблоны, изменить свойства роли без потери прочих прав и UUID

Overview

PublisherNikolay-Shirokov
Repositorycc-1c-skills
Skill namerole-edit
Stars
681
Forks
131
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Nikolay-Shirokov on GitHub. Read the source before you install it.

Installation

Install the Role Edit AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Nikolay-Shirokov/cc-1c-skills/tree/main/.claude/skills/role-edit
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Nikolay-Shirokov/cc-1c-skills.git /tmp/cc-1c-skills
mkdir -p .claude/skills
cp -r /tmp/cc-1c-skills/.claude/skills/role-edit .claude/skills/role-edit
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Role Edit in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Role Edit on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Role Edit is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

/role-edit — точечное редактирование роли 1С

Меняет права существующей роли на месте: UUID, прочие права, RLS и шаблоны сохраняются. Создание новой роли — /role-compile.

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

ПараметрОписание
RolePathКаталог роли, Roles/Имя.xml или Roles/Имя/Ext/Rights.xml
OperationОдна операция из таблицы ниже
ValueЗначение операции; несколько значений — через ;;
DefinitionFileJSON-массив операций (альтернатива Operation) — так задают несколько разных операций
NoValidateНе запускать role-validate после правки
powershell
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/role-edit.ps1" -RolePath "<роль>" -Operation <op> -Value "<значение>"

Операции применяются в том порядке, в котором перечислены.

Операции

ОперацияФормат ValueОписание
add-rightsТип.Имя: Право1, Право2 или Тип.Имя: @пресетДобавить права, прежние сохранить
set-rightsто жеЗаменить набор прав объекта целиком
remove-rightsТип.Имя: Право1, Право2 — снять праваТип.Имя — удалить объект целикомСнять права
deny-rightsТип.Имя: Право1, Право2Закрыть реквизит или ТЧ, которые иначе наследуют права объекта
set-rlsТип.Имя.Право: условиеТип.Имя.Право[Поле1, Поле2]: условиеОграничение доступа к данным
remove-rlsТип.Имя.Право — снять всеТип.Имя.Право[Поле1] — снять одну строкуСнять ограничение, право оставить
add-templateИмя(Параметры): условиеДобавить шаблон ограничения
set-templateто жеЗаменить шаблон, а если его нет — добавить
remove-templateИмя(Параметры) или ИмяУдалить шаблон
modify-propertysetForNewObjects=truesetForAttributesByDefault=falseindependentRightsOfChildObjects=trueГлобальные флаги роли
set-synonymтекстСиноним роли
set-commentтекстКомментарий роли

Быстрые примеры

powershell
# Добавить права нового регистра, ничего не потеряв
... -RolePath "src/Roles/Менеджер" -Operation add-rights -Value "InformationRegister.Цены: Read, Update"

# Пресет и несколько объектов в одном вызове
... -RolePath "src/Roles/Менеджер" -Operation add-rights -Value "Catalog.Товары: @view ;; Document.Заказ: @edit"

# Снять права; объект без разрешающих прав удаляется целиком
... -RolePath "src/Roles/Менеджер" -Operation remove-rights -Value "Document.Заказ: Delete"

# Закрыть реквизит от роли
... -RolePath "src/Roles/Менеджер" -Operation deny-rights -Value "Catalog.Товары.Attribute.Цена: View"

Несколько разных операций — списком в файле:

json
[
  { "operation": "add-rights", "value": "Catalog.Товары: @view" },
  { "operation": "set-rls", "value": "Catalog.Товары.Read: #ПоОрганизации(\"\")" }
]
powershell
... -RolePath "src/Roles/Менеджер" -DefinitionFile "операции.json"

Права

Имена объектов и прав — те же, что в /role-compile: Catalog, Read, пресеты @view и @edit, вложенные пути (Catalog.Контрагенты.Attribute.ИНН: View, Edit), короткая запись сервиса (HTTPService.ЭДО: Use раскрывается по всем методам шаблонов URL).

remove-rights и deny-rights задевают больше перечисленного: уходят и права, которым снятое нужно (сняли Read — уйдут Update, View, Edit). Снятое каскадом перечисляется в выводе.

Ошибка в значении — отказ до записи, файл не меняется. Полные таблицы «тип → права» и виды вложенности — в справке /role-compile.

RLS

Ограничения права — это список строк, как в таблице «Ограничения доступа к данным» редактора. Строка без списка полей действует на все прочие поля, строка со списком — только на них. Типовой приём: закрыть данные целиком, но оставить поля представления ссылки открытыми, иначе ссылки на объект превратятся в «объект не найден»:

powershell
... -Operation set-rls -Value "Catalog.Товары.Read: ГДЕ ЛОЖЬ"
... -Operation set-rls -Value "Catalog.Товары.Read[Ссылка, Код, Наименование]: "

Строка с тем же набором полей заменяется, с другим — добавляется. Право должно быть уже выдано: ограничение без права платформа игнорирует, поэтому навык откажет.

Ссылка на шаблон — #ИмяШаблона(""); & в условиях экранируется автоматически.

Значение из файла

Вместо текста можно указать @путь — условие RLS, тело шаблона, синоним и комментарий берутся из файла. Относительный путь ищется рядом с DefinitionFile, затем в текущем каталоге. Разделитель ;; внутри файла остаётся обычным текстом.

powershell
... -Operation set-rls -Value "Catalog.Товары.Read: @условие.txt"
... -Operation add-template -Value "ПоОрганизации(Мод): @условие.txt"
... -Operation set-comment -Value "@комментарий.txt"

Верификация

/role-info <RightsPath>      — сводка прав после правки
/role-validate <RightsPath>  — проверка корректности (запускается автоматически)

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Role Edit AI skill do?

Точечное редактирование существующей роли 1С. Используй когда нужно добавить, снять или запретить права, настроить RLS-ограничения и шаблоны, изменить свойства роли без потери прочих прав и UUID

Why use Role Edit on TypingMind?

Because you install it once and use it with any model. Role Edit is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Role Edit in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Nikolay-Shirokov/cc-1c-skills/tree/main/.claude/skills/role-edit. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Role Edit?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Role Edit?

As many as you like. As long as a model supports skills, you can use Role Edit with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Role Edit AI skill free?

Yes. It is published on GitHub by Nikolay-Shirokov under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇