mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-09-12 21:20:52 +03:00
Replace literal `.claude/skills/<owner>/...` paths in SKILL.md with the
`${CLAUDE_SKILL_DIR}` variable that Claude Code substitutes at invocation
time. Same-skill references become `${CLAUDE_SKILL_DIR}/<rest>`,
cross-skill references (erf-* → epf-*) become
`${CLAUDE_SKILL_DIR}/../<other>/<rest>`. All paths now wrapped in double
quotes to handle install locations with spaces.
This unblocks plugin-mode installation: literal `.claude/skills/...`
paths fail when the skill is loaded from `~/.claude/plugins/cache/...`
or from a personal `~/.claude/skills/` install. Drop-in mode continues
to work because Claude Code resolves the variable in all install scopes.
Verified via pilot:
- Project drop-in (cc-1c-skills repo)
- Personal `~/.claude/skills/cf-info/`
- Plugin via `/plugin marketplace add <local-path>`
Scope: 61 SKILL.md, 125 path replacements (8 cross-skill).
Scripts unchanged — they already use \$PSScriptRoot and ../<sibling>
patterns that resolve correctly under the bundled cache layout.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2.1 KiB
2.1 KiB
name, description, argument-hint, allowed-tools
| name | description | argument-hint | allowed-tools | ||
|---|---|---|---|---|---|
| role-info | Компактная сводка прав роли 1С из Rights.xml — объекты, права, RLS, шаблоны ограничений. Используй для аудита прав — какие объекты и действия доступны, ограничения RLS | <RightsPath> |
|
/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 строк