code-review-analysis — скилл для Claude Code: ревью кода по шагам
Скилл ведёт агента по систематическому ревью: качество кода, безопасность, производительность, тесты. Пригодится, когда разбираете pull request перед мержем.
npx skills add aj-geddes/useful-ai-prompts --skill code-review-analysis -a claude-codeЧто делает code-review-analysis
Скилл задаёт порядок разбора изменений. Сначала агент смотрит диффы и историю коммитов через git diff main...feature-branch, git diff --stat и git log --oneline, потом идёт по чек-листам: качество кода, безопасность, производительность, тестирование, соответствие стандартам.
Внутри — набор справочников в каталоге references/: начальная оценка, анализ качества, ревью безопасности, производительности и тестов, отдельный файл по лучшим практикам. Агент подтягивает нужный раздел под задачу, а не читает всё подряд.
Есть и правила поведения ревьюера: объяснять причину замечания, показывать примеры кода, спрашивать, если непонятно, отмечать удачные решения. Отдельно оговорено, чего не делать — придираться к мелочам стиля, блокировать из-за вкусовщины, брать в один заход больше 400 строк. Последнее стоит держать в голове: на большом диффе ревью расплывается, и это повод разбить проверку на части.
Какие задачи решает
- разобрать pull request перед мержем
- найти уязвимости в изменениях
- проверить, покрыты ли новые ветки тестами
- дать разработчику развёрнутые замечания с примерами
- сверить код со стандартами проекта
Примеры запросов агенту
- сделай ревью ветки feature-branch по скиллу code-review-analysis
- проверь дифф main...feature-branch на безопасность и тесты
- пройди по изменениям в этом PR и объясни каждое замечание
Как установить code-review-analysis
1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill code-review-analysis -a claude-code2Вручную: положить файлы
~/.claude/skills/code-review-analysis/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/code-review-analysis/
1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill code-review-analysis -a codex2Вручную: положить файлы
.agents/skills/code-review-analysis/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill code-review-analysis -a cursor2Вручную: положить файлы
.cursor/skills/code-review-analysis/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install aj-geddes/useful-ai-prompts code-review-analysis2Вручную: положить файлы
.github/skills/code-review-analysis/SKILL.md1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill code-review-analysis -a gemini-cli2Командой платформы
gemini skills install https://github.com/aj-geddes/useful-ai-prompts --path skills/code-review-analysisВручную: положить файлы
.devin/skills/code-review-analysis/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill code-review-analysis -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Из того же набора118
Похожие
Рядом в теме «Код-ревью и рефакторинг»
Всё по теме «Код-ревью и рефакторинг» →Вопросы о code-review-analysis
Как установить code-review-analysis в Claude?
Выполните npx skills add aj-geddes/useful-ai-prompts --skill code-review-analysis -a claude-code. Скилл окажется в ~/.claude/skills/code-review-analysis/SKILL.md.
Что делает code-review-analysis?
Прогоняет изменения по чек-листам: качество кода, безопасность, производительность, тесты и стандарты. Замечания агент объясняет и подкрепляет примерами.
Для каких платформ подходит скилл?
Кроме Claude есть установка для Codex, Cursor, GitHub Copilot, Gemini CLI и OpenCode — команды отличаются флагом -a или отдельным установщиком.
Исходный текст
SKILL.md · MIT
--- name: code-review-analysis description: > Perform comprehensive code reviews with best practices, security checks, and constructive feedback. Use when reviewing pull requests, analyzing code quality, checking for security vulnerabilities, or providing code improvement suggestions. --- # Code Review Analysis ## Table of Contents - [Overview](#overview) - [When to Use](#when-to-use) - [Quick Start](#quick-start) - [Reference Guides](#reference-guides) - [Best Practices](#best-practices) ## Overview Systematic code review process covering code quality, security, performance, maintainability, and best practices following industry standards. ## When to Use - Reviewing pull requests and merge requests - Analyzing code quality before merging - Identifying security vulnerabilities - Providing constructive feedback to developers - Ensuring coding standards compliance - Mentoring through code review ## Quick Start Minimal working example: ```bash # Check the changes git diff main...feature-branch # Review file changes git diff --stat main...feature-branch # Check commit history git log main...feature-branch --oneline ``` ## Reference Guides Detailed implementations in the `references/` directory: | Guide | Contents | |---|---| | [Initial Assessment](references/initial-assessment.md) | Initial Assessment | | [Code Quality Analysis](references/code-quality-analysis.md) | Code Quality Analysis | | [Security Review](references/security-review.md) | Security Review | | [Performance Review](references/performance-review.md) | Performance Review | | [Testing Review](references/testing-review.md) | Testing Review | | [Best Practices](references/best-practices.md) | Best Practices | ## Best Practices ### ✅ DO - Be constructive and respectful - Explain the "why" behind suggestions - Provide code examples - Ask questions if unclear - Acknowledge good practices - Focus on important issues - Consider the context - Offer to pair program on complex issues ### ❌ DON'T - Be overly critical or personal - Nitpick minor style issues (use automated tools) - Block on subjective preferences - Review too many changes at once (>400 lines) - Forget to check tests - Ignore security implications - Rush the review
© aj-geddes · MIT · aj-geddes/useful-ai-prompts