SuperAPI AI Directory

role-info

General & other

View repository

Updated 10-15 21:03

About this skill

/role-info — 1C role analysis

Parses Rights.xml roles and produces a compact summary: objects grouped by type, only allowed rights shown. Compression: thousands of XML lines → 50–150 lines of text.

Usage

/role-info <RightsPath>

RightsPath — path to the Rights.xml role file (usually Roles/ИмяРоли/Ext/Rights.xml).

Running the script

powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/role-info.ps1" -RightsPath <path> -OutFile <output.txt>

Parameters

Parameter Required Description
-RightsPath yes Path to Rights.xml
-ShowDenied no Show denied rights (hidden by default)
-Limit no Max output lines (default 150). 0 = no limit
-Offset no Skip N lines — for pagination (default 0)
-OutFile no Write the result to a file (UTF-8 BOM). Without this — output to console

Important: Always use -OutFile and read the result via the Read tool. Direct console output via bash breaks Cyrillic.

For a large role when output is truncated:

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