agentleFS
Nikolay-ShirokovNikolay-Shirokov/cc-1c-skills/.claude/skills/role-info/SKILL.md

role-info

Skill789 starsChanged 6 months agoMITView on GitHub

Компактная сводка прав роли 1С из Rights.xml — объекты, права, RLS, шаблоны ограничений. Используй для аудита прав — какие объекты и действия доступны, ограничения RLS

The file

Files
SKILL.md

/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 строк

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.