mcpField
R
role-info

role-info

github.com/nikolay-shirokovSecurity74153 installsUpdated today
Repository

About role-info

role-info is a skill for analyzing 1C role permissions. It parses Rights.xml, groups objects by type, and summarizes allowed rights, with optional denied rights and file or paginated output.

Key features

  1. 01Group rights by object type
  2. 02Show allowed rights by default
  3. 03Optionally show denied rights
  4. 04Support pagination and file output

Use cases

  1. 01Review permissions granted to a role
  2. 02Locate access rights for an object type
  3. 03Inspect denied rights in a role

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/nikolay-shirokov/cc-1c-skills --skill role-info

After installing, type/role-infoin Claude Code to confirm it loaded.

Bundled filesscripts/role-info.ps1scripts/role-info.py

Details

From the project README

/role-info — анализ роли 1С

Парсит Rights.xml роли и выдаёт компактную сводку: объекты сгруппированы по типу, показаны только разрешённые права. Сжатие: тысячи строк XML → 50–150 строк текста.

Использование

/role-info <RightsPath>

RightsPath — путь к файлу Rights.xml роли (обычно Roles/ИмяРоли/Ext/Rights.xml).

Запуск скрипта

powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/role-info.ps1" -RightsPath <path> -OutFile <output.txt>
Параметры
ПараметрОбязательныйОписание
-RightsPathдаПуть к Rights.xml
-ShowDeniedнетПоказать запрещённые права (по умолчанию скрыты)
-LimitнетМакс. строк вывода (по умолчанию 150). 0 = без ограничений
-OffsetнетПропустить N строк — для пагинации (по умолчанию 0)
-OutFileнетЗаписать результат в файл (UTF-8 BOM). Без этого — вывод в консоль

Важно: Всегда используй -OutFile и читай результат через Read tool. Прямой вывод в консоль через bash ломает кириллицу.

Для большой роли при усечении вывода:

... -Offset 150            # пагинация: пропустить первые 150 строк

Comments

Markdown supported