indexion-identity — скилл для Claude Code: аудит имён в коде
Скилл проверяет, совпадают ли имена функций, файлов и папок с их содержимым, и планирует переименования. Пригодится при рефакторинге.
npx skills add trkbt10/indexion-skills --skill indexion-identity -a claude-codeЧто делает indexion-identity
Скилл запускает indexion identity audit по проекту и превращает результат в очередь на разбор. Сканируются файлы, папки и объявления уровня графа. Локальные переменные, параметры и поля не считаются отдельными целями для переименования, но влияют на сводку по файлу. Имена файлов оцениваются с учётом родительской области, а файлы с большим числом объявлений читаются как «тонкие по доказательствам», пока проверка не покажет реальное переименование или разделение.
Каждая строка отчёта — кандидат на проверку, а не доказательство. Сравниваются поля name, expected_summary, actual_summary, assessment и recommendation. Перед правкой скилл советует подтвердить вывод: indexion doc graph --format=text <path>, indexion grep --semantic=name:<symbol> . и rg "<name-or-term>" <path>. Дальше выбирается наименьшая подтверждённая операция: переименовать символ, файл или папку, перенести файл либо разделить его, если видны несколько доминирующих обязанностей.
Оценка insufficient-content — это проблема доказательств, а не признак дрейфа имени. Сначала стоит посмотреть, не является ли файл намеренно декларативным, пустым или не поддержан извлекателем графа. После изменений скилл прогоняет moon info && moon fmt, moon test и повторный аудит. Гнаться за высоким счётом механически не нужно: сначала проверяйте реальное владение кодом и ссылки.
Какие задачи решает
- найти функции, чьё имя разошлось с реализацией
- проверить, соответствует ли имя файла его объявлениям
- решить, переносить файл в другую папку или нет
- разделить файл с несколькими доминирующими обязанностями
- получить машиночитаемый отчёт об аудите в JSON
Примеры запросов агенту
- запусти аудит имён по проекту и покажи кандидатов на переименование
- проверь, не устарело ли имя этого файла, прежде чем его менять
- собери отчёт аудита в
.indexion/cache/identity/report.json
Как установить indexion-identity
1Через Skills CLI (Vercel)
npx skills add trkbt10/indexion-skills --skill indexion-identity -a claude-code2Вручную: положить файлы
~/.claude/skills/indexion-identity/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/indexion-identity/
1Через Skills CLI (Vercel)
npx skills add trkbt10/indexion-skills --skill indexion-identity -a codex2Вручную: положить файлы
.agents/skills/indexion-identity/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add trkbt10/indexion-skills --skill indexion-identity -a cursor2Вручную: положить файлы
.cursor/skills/indexion-identity/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install trkbt10/indexion-skills indexion-identity2Вручную: положить файлы
.github/skills/indexion-identity/SKILL.md1Через Skills CLI (Vercel)
npx skills add trkbt10/indexion-skills --skill indexion-identity -a gemini-cli2Командой платформы
gemini skills install https://github.com/trkbt10/indexion-skills --path skills/indexion-identityВручную: положить файлы
.devin/skills/indexion-identity/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add trkbt10/indexion-skills --skill indexion-identity -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о indexion-identity
Как установить indexion-identity в Claude?
Выполните npx skills add trkbt10/indexion-skills --skill indexion-identity -a claude-code. Скилл окажется в ~/.claude/skills/indexion-identity/SKILL.md.
Что делает indexion-identity?
Сканирует имена функций, файлов и папок, сравнивает их с содержимым и предлагает операции для проверки: переименование, перенос, смену папки или разделение файла.
Что означает оценка insufficient-content?
Это не доказательство дрейфа имени, а нехватка материала. Сначала проверьте, не является ли файл намеренно декларативным, пустым или не поддержан извлекателем графа.
Исходный текст
SKILL.md · Apache-2.0
---
name: indexion-identity
description: Detect and review name/content drift in code using `indexion identity audit`, then plan verified renames, moves, folder changes, or splits.
---
# Identity Audit Workflow
Use this skill when checking whether function, file, or folder names still match
their contents.
The CLI scans files, folders, and graph-level declaration symbols. It does not
treat every local variable, parameter, or field as an independent naming target;
those can still influence the containing file summary. File names are evaluated
with parent scope, and declaration-heavy files should normally be read as
evidence-thin until follow-up inspection proves an actual rename or split.
## Pipeline
1. Run the mechanical scan:
```bash
indexion identity audit .
```
For a machine-readable queue:
```bash
indexion identity audit --format=json --output=.indexion/cache/identity/report.json .
```
2. Treat each row as a review candidate, not proof. Compare:
- `name`: the scoped name inferred by the identity package
- `expected_summary`: what the path/name/scope predicts
- `actual_summary`: graph-derived declarations, docs, module notes, and path terms
- `assessment`: whether this is actual drift, overbroad content, or insufficient content
- `recommendation`: first operation to verify
3. Verify before editing:
```bash
indexion doc graph --format=text <path>
indexion grep --semantic=name:<symbol> .
rg "<name-or-term>" <path>
```
4. Choose the smallest confirmed operation:
- Treat `insufficient-content` as an evidence problem, not a naming-drift proof.
Inspect whether the file is intentionally declarative/thin, unsupported by the
graph extractor, empty, or missing doc/declaration material before renaming.
- Rename a symbol when its implementation is cohesive but the name is stale.
- Rename a file when its declarations are cohesive but the file name is stale.
- Rename a folder when contained files share a clearer parent concept.
- Move a file when it fits an existing folder better than its current one.
- Split a file when candidates show multiple dominant responsibilities.
5. After changes:
```bash
moon info && moon fmt
moon test
indexion identity audit .
```
The audit is designed to surface review work. Do not maximize the score
mechanically; verify the actual code ownership and references first.
© trkbt10 · Apache-2.0 · trkbt10/indexion-skills