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
- 01Group rights by object type
- 02Show allowed rights by default
- 03Optionally show denied rights
- 04Support pagination and file output
Use cases
- 01Review permissions granted to a role
- 02Locate access rights for an object type
- 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-infoAfter 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 строк