code-reviewer · autohandai — скилл для Claude Code: обзор кода и установка
Скилл проверяет код по десяти направлениям и выдаёт оценки с конкретными замечаниями и приоритетами. Подойдёт для ревью текущего состояния проекта.
npx skills add autohandai/code-cli --skill code-reviewer -a claude-codeЧто делает code-reviewer
Скилл оценивает архитектуру, безопасность, обработку ошибок, производительность, типы, тесты, читаемость, зависимости, API и готовность к эксплуатации. Для каждого направления он формирует оценку и, если находит проблему, указывает файл, строку, влияние и способ исправления. В конце даёт среднюю оценку проекта и три главных пункта для исправления.
Сначала скилл изучает структуру проекта, состояние Git и diff, затем читает ключевые файлы. Он может запускать тесты и линтер, а непроверенные замечания помечает отдельно. Сгенерированные файлы, включая node_modules, dist, build и lock-файлы, исключаются из ревью. Для ветки или pull request в инструкции советуют использовать pull-request-review; этот скилл оценивает кодовую базу в её текущем состоянии.
Какие задачи решает
- найти уязвимости и ошибки с указанием файла и строки
- оценить изменения по архитектуре, тестам и производительности
- расставить приоритеты для найденных проблем
- проверить результаты тестов и линтера при ревью
Примеры запросов агенту
- Проведи ревью текущего состояния проекта и укажи проблемы с файлами и строками.
- Проверь изменения в коде, оцени риски и перечисли, что исправить в первую очередь.
- Оцени проект по десяти направлениям и запусти тесты и линтер, если это возможно.
Как установить code-reviewer
1Через Skills CLI (Vercel)
npx skills add autohandai/code-cli --skill code-reviewer -a claude-code2Вручную: положить файлы
~/.claude/skills/code-reviewer/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/code-reviewer/
1Через Skills CLI (Vercel)
npx skills add autohandai/code-cli --skill code-reviewer -a codex2Вручную: положить файлы
.agents/skills/code-reviewer/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add autohandai/code-cli --skill code-reviewer -a cursor2Вручную: положить файлы
.cursor/skills/code-reviewer/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install autohandai/code-cli code-reviewer2Вручную: положить файлы
.github/skills/code-reviewer/SKILL.md1Через Skills CLI (Vercel)
npx skills add autohandai/code-cli --skill code-reviewer -a gemini-cli2Командой платформы
gemini skills install https://github.com/autohandai/code-cli --path src/skills/builtin/code-reviewerВручную: положить файлы
.devin/skills/code-reviewer/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add autohandai/code-cli --skill code-reviewer -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о code-reviewer
Как установить code-reviewer в Claude Code?
Выполните npx skills add autohandai/code-cli --skill code-reviewer -a claude-code. Файл скилла устанавливается по пути ~/.claude/skills/code-reviewer/SKILL.md.
Что делает code-reviewer?
Он оценивает код по десяти направлениям, приводит подтверждённые замечания с путями и строками и расставляет приоритеты. В завершение показывает среднюю оценку и три первоочередных исправления.
Проверяет ли code-reviewer pull request?
Инструкция ориентирует этот скилл на оценку кодовой базы в текущем состоянии. Для ветки или pull request в ней рекомендуется использовать pull-request-review.
Исходный текст
SKILL.md · Apache-2.0
--- name: code-reviewer description: Staff-engineer-level code review delivering 10 prioritized actionable findings across architecture, security, performance, and maintainability allowed-tools: read_file find_grep fff_find list_tree git_status git_diff code_review run_command --- You are a Staff-level Software Engineer performing a comprehensive code review. Your review must be thorough, actionable, and prioritized — not a style guide checklist. ## Review Methodology Analyze the codebase across exactly **10 dimensions**, scoring each 1-5 and providing specific, actionable findings with file paths and line numbers. ### The 10 Review Dimensions 1. **Architecture & Design** — Is the code well-structured? Are responsibilities clearly separated? Are abstractions appropriate (not premature, not missing)? 2. **Security** — Are there injection vulnerabilities (SQL, XSS, command)? Hardcoded secrets? Unsafe deserialization? Missing input validation at trust boundaries? 3. **Error Handling & Resilience** — Are errors caught, logged, and handled? Are there unhandled promise rejections? Missing try/catch around I/O? Silent failures? 4. **Performance & Scalability** — N+1 queries? Unbounded loops? Missing pagination? Blocking I/O on hot paths? Memory leaks (event listeners, timers)? 5. **Type Safety & Correctness** — Are types precise (not `any`)? Are null checks present where needed? Are edge cases handled (empty arrays, undefined, NaN)? 6. **Testing & Testability** — Is there test coverage for critical paths? Are tests testing behavior (not implementation)? Is the code structured for testability (dependency injection, pure functions)? 7. **Maintainability & Readability** — Can a new team member understand this? Are names descriptive? Is complexity justified? Are there dead code paths? 8. **Dependencies & Imports** — Are dependencies up-to-date and maintained? Are there circular imports? Is the dependency tree reasonable? Any known vulnerabilities? 9. **API Design & Contracts** — Are function signatures clear? Are return types consistent? Are breaking changes handled? Is the public API minimal and well-documented? 10. **DevOps & Operational Readiness** — Are there proper logs? Health checks? Configuration management? Graceful shutdown? Retry logic for external calls? ## Output Format For each dimension, output: ### [N]. [Dimension Name] — Score: [1-5]/5 **Finding:** [Specific issue with file path and line number] **Impact:** [What breaks or degrades if this isn't fixed] **Fix:** [Exact code change or approach] **Priority:** Critical | High | Medium | Low ## Review Workflow 1. **Gather context** — Read the project structure (`list_tree`), check git status (`git_status`), understand what changed (`git_diff`). 2. **Read key files** — Focus on entry points, public APIs, configuration, and recently modified files. 3. **Analyze each dimension** — Score honestly. A score of 5 means "no issues found" — don't inflate. 4. **Prioritize findings** — Lead with Critical/High items. Group related issues. 5. **Provide the summary** — End with an overall health score (average of 10 dimensions) and the top 3 things to fix first. ## Rules - ALWAYS provide specific file paths and line numbers, never generic advice - NEVER review generated files (node_modules, dist, build output, lock files) - When reviewing a diff, focus on the changed lines but check surrounding context - If the user provides additional instructions, incorporate them as extra focus areas - Be direct and constructive — "this will crash when X" not "consider handling X" - If a dimension has no issues, say so briefly and move on ## Evidence and confidence - Cite file paths and line numbers for every finding; quote the line when the defect is not obvious from the reference alone. - Run the project's tests and lint when possible and report the result instead of assuming. A finding you could not verify is marked "unverified". - Prefer one confirmed high-severity finding over five plausible ones. Do not pad the list to reach a count. - For a branch or pull request, use the `pull-request-review` skill; this review is for the codebase as it stands.
© autohandai · Apache-2.0 · autohandai/code-cli
Похожие скиллы
Все скиллы по теме «Код-ревью и рефакторинг» →Сначала — code-reviewer от других авторов.