audit · raphaelsalaja — скилл для Claude Code: что делает и как установить
Скилл audit для Claude Code, запускающий сводный аудит изменений по набору правил и формирующий интерактивный отчёт. Оценивает диффы, ветки, сессии или весь репозиторий.
MIT 176 установок ★ 69 обновлён 2026-11-14
npx skills add raphaelsalaja/skills --skill audit -a claude-codeЧто делает audit
Скилл координирует проверку кодовой базы или незакоммиченных правок сразу по всем скиллам коллекции raphaelsalaja/skills. Он не придумывает собственные правила интерфейса, а берёт на себя определение границ проверки, чтение локальных инструкций проекта (AGENTS.md, CLAUDE.md), порядок прогона и сведение результатов. Письменные правила проекта имеют приоритет перед общими правилами из скиллов.
Каждое замечание в отчёте ссылается на идентификатор правила из конкретного скилла (verify, copy, defaults, motion, color и других). Находки группируются по первопричине: одна общая поломка для пяти мест кода оформляется одной строкой с пятью адресами. Результаты сортируются по уровню критичности.
Отчёт генерируется в изолированную директорию .audit/<scope>/index.html, куда помещаются готовый шаблон и файл с данными report.js. Агент ждёт, пока человек выберет номера нужных правок с помощью встроенной кнопки копирования, и правит строго указанные пункты, не трогая остальной код. Фронтматтер отключает прямой вызов модели параметром disable-model-invocation: true.
Какие задачи решает
- Провести аудит незакоммиченных изменений или ветки по всей коллекции правил
- Свести дублирующиеся замечания из разных проверок к единым первопричинам
- Сгенерировать изолированный HTML-отчёт с нумерованными правками без мусора в репозитории
- Применить строго выбранные номера исправлений без самовольных правок всей кодовой базы
Примеры запросов агенту
- Проведи аудит незакоммиченного диффа и открой отчёт
- Выполни аудит всей ветки по всем скиллам коллекции
- Исправь замечания 1, 3 и 6 из отчёта аудита
Как установить audit
1Через Skills CLI (Vercel)
npx skills add raphaelsalaja/skills --skill audit -a claude-code2Вручную: положить файлы
~/.claude/skills/audit/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/audit/
1Через Skills CLI (Vercel)
npx skills add raphaelsalaja/skills --skill audit -a codex2Вручную: положить файлы
.agents/skills/audit/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add raphaelsalaja/skills --skill audit -a cursor2Вручную: положить файлы
.cursor/skills/audit/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install raphaelsalaja/skills skills/audit2Вручную: положить файлы
.github/skills/audit/SKILL.md1Через Skills CLI (Vercel)
npx skills add raphaelsalaja/skills --skill audit -a gemini-cli2Командой платформы
gemini skills install https://github.com/raphaelsalaja/skills --path skills/auditВручную: положить файлы
.devin/skills/audit/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add raphaelsalaja/skills --skill audit -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы об audit
Как установить audit в Claude Code?
Выполните команду npx skills add raphaelsalaja/skills --skill audit -a claude-code. Файл скилла разместится в ~/.claude/skills/audit/SKILL.md.
Что делает скилл audit?
Он поочерёдно прогоняет код через специализированные скиллы коллекции, сверяет проектные инструкции, группирует замечания по причинам и создаёт HTML-отчёт в .audit/.
Что нужно для работы audit?
Требуются установленные скиллы из коллекции репозитория raphaelsalaja/skills, локальные файлы правил вроде CLAUDE.md при их наличии, а также браузер для просмотра генерируемого файла report.html.
Исходный текст
SKILL.md · MIT
--- name: audit description: Reviews a change, a session or a whole codebase against every skill in this collection and returns one ranked, numbered report. disable-model-invocation: true --- # Audit This skill reviews work against every rule in this collection at once. It sends each concern to the skill that owns it and merges the results into one ranked report. ## The report, not the rules This skill owns no interface rule. It owns the scope, the order of review, consolidation and the verdict. Each finding cites the rule id from the skill that owns it. A finding needs evidence from the code, the running app or the thread, never taste alone. The report format is in [report.md](report.md). ## 1. State the scope Name what is under review: the uncommitted diff, a branch, a pull request, this session's requests or the whole codebase. An audit with no stated scope is `audit-state-the-scope`. ## 2. Read the project's rules Read `AGENTS.md`, `CLAUDE.md` and the editor rule folders. A written project rule outranks a default here. Flagging code that follows a written rule is `audit-project-rules-first`. ## 3. Run every skill Check the scope against each skill and record what you inspected. | Skill | Check | | --- | --- | | `verify` | Each changed surface opened in the running app | | `scope` | Every request in the thread against the diff | | `reuse` | New components, styles and icons against the shared package | | `restraint` | Unrequested UI, settings, fallbacks, dead code and narrating comments | | `copy` | Every label, description and status string | | `prose` | Each changed post, breakdown or design note, when writing is in scope | | `defaults` | Surfaces, type, sound, focus, names, forms, loading, hotkeys and dialogs | | `motion` | Every transition, animation, gesture, exit and motion blur | | `color` | Text and field contrast in each theme, tokens inside components and the accent | | `gather` | Each reference board: platform, links and the part to take | | `match` | Each named reference, when the work copies one | | `rule` | Repeated corrections with no written rule, and edits that break one | | `viewports` | Each changed layout at every width, when layout is in scope | | `invariants` | Flags read together and unchecked assumptions, when state is in scope | | `ship` | Stray files, secrets, commits and checks, when git is in scope | Skipping a skill without saying why is `audit-run-every-skill`. ## 4. Merge by root cause One cause that breaks rules in two skills is one finding with both ids. Five call sites with the same local fix is one finding with five locations. Listing each symptom on its own line is `audit-one-row-per-cause`. ## 5. Number the fixes and open the report Rank findings by severity, then by reach. Number them so the user can answer "fix 1, 2 and 5". Copy [report.html](report.html) to `.audit/<scope>/index.html`, an ignored folder and never the source tree. Write `report.js` beside it in the shape its header comment shows, then open it. The report's look ships with the skill, so write data only. A page with its own markup or styles is `audit-shipped-report`. The user marks findings with Pick and pastes them back with Copy Picks. Wait for the pick, then fix only the numbers chosen. Fixing everything before the user picks is `audit-fix-what-was-picked`. ## The pair Every check is a pair. The broken line sits beside the line that replaces it. | Rule | Broken | Replacement | | --- | --- | --- | | `audit-state-the-scope` | "Audited the app" | "Audited the uncommitted diff: 14 files" | | `audit-project-rules-first` | A border flagged in a repo whose rules require it | The project rule cited, no finding | | `audit-run-every-skill` | `copy` silently skipped | "`copy`: no strings changed" | | `audit-one-row-per-cause` | Five rows for one missing primitive fix | One row, five locations | | `audit-shipped-report` | A report page written from scratch | `report.html` copied, only `report.js` written | | `audit-fix-what-was-picked` | All 18 findings fixed unasked | The numbers the user chose | ## Reporting Use the severity ladder and format in [report.md](report.md). `Block` when any `HIGH` remains, `Approve` otherwise. Never `Approve` work you did not open or read.
© raphaelsalaja · MIT · raphaelsalaja/skills
Похожие скиллы
Все скиллы по теме «Код-ревью и рефакторинг» →Сначала — audit от других авторов.