code-review
Use when the user asks to review this code, review a pull request for bugs, give feedback on an implementation, check a diff, or asks LGTM?. Produces a…
от j4flmao★ 47 звёзд на GitHub
Установить code-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Code Review
Version: 1.1.0 Author: j4flmao License: MIT
Purpose
Provide systematic, structured code reviews covering correctness, architecture, clarity, performance, security, and tests. Every finding is actionable, prioritized by severity, and anchored to a specific file and line.
Agent Protocol
Trigger
Exact user phrases: "review this code", "code review", "review PR", "check this implementation", "is this code good", "LGTM?", "feedback on code".
Input Context
Before activating, verify:
- The code or diff to review is provided or accessible.
- The language/stack is known.
- The project's coding standards or conventions are available.
Output Artifact
No file output. This skill produces structured review text.
Response Format
Answer exactly:
## Code Review: {file/scope}
### [MUST] {short title}
- **File**: `src/path/file.ts:42`
- **Issue**: {what's wrong}
- **Why**: {impact}
- **Fix**: {suggested approach}
### [SHOULD] {short title}
...
### [CONSIDER] {short title}
...
### Positive
- {what's done well}
No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output -- why use many token when few do trick. No explanations of what code review is.
Completion Criteria
This skill is complete when:
- All findings are classified with severity [MUST]/[SHOULD]/[CONSIDER].
- Every finding includes exact file and line number.
- At least one positive observation is included for every 3 critical findings.
- No code has been rewritten -- only problems and suggested approaches.
Max Response Length
100 lines or as many as needed to cover all findings in one pass.
Component Architecture / Decision Trees
Severity Classification Decision Tree
Is the finding a correctness bug (wrong behavior)?
|-- YES --> [MUST] Blocks merge. Can cause production incidents.
|-- NO --> Is it a security vulnerability?
|-- YES --> [MUST] Immediate fix required.
|-- NO --> Is it a performance regression (measurable)?
|-- YES --> Is it likely to affect users in production?
| |-- YES --> [SHOULD] Fix before next release.
| |-- NO --> [CONSIDER] Monitor and fix if needed.
|-- NO --> Is it an architecture or maintainability concern?
|-- YES --> Does it violate established patterns?
| |-- YES --> [SHOULD] Follow project conventions.
| |-- NO --> [CONSIDER] Improvement suggestion.
|-- NO --> Is it a clarity or naming issue?
|-- YES --> Does it block understanding for reviewers?
| |-- YES --> [SHOULD] Rename or clarify.
| |-- NO --> [CONSIDER] Minor improvement.
|-- NO --> Is it a test quality issue?
|-- YES --> Are tests missing for critical paths?
| |-- YES --> [SHOULD] Add critical tests.
| |-- NO --> [CONSIDER] Expand test coverage.
Review Depth Decision Tree
What is the scope of the change?
|-- < 50 lines diff --> Full review (all 6 dimensions).
|-- 50-200 lines --> Full review. Read every line.
|-- 200-400 lines --> Full review. Focus on changed logic files over config/tests.
|-- > 400 lines --> Review critical path diff. Flag: "Diff exceeds 400 lines. Focused on core logic changes."
| |-- Skip: formatting, comments, whitespace-only diffs.
| |-- Flag: large diffs that should be split into multiple PRs.
Is this a new feature or a bug fix?
|-- New feature --> Heavy on architecture + correctness + test quality.
|-- Bug fix --> Heavy on correctness + root cause analysis + regression tests.
|-- Refactor --> Heavy on architecture + performance (verify no regression).
|-- Dependency update --> Heavy on security + compatibility + changelog diff.
Does the code touch a critical path (auth, payments, data layer)?
|-- YES --> Security + correctness = highest priority. MUST findings here are blockers.
|-- NO --> Standard review weighting.
Framework/Language-Specific Considerations
| Aspect | Static Typed (TS, Rust, Java) | Dynamic (Python, JS, Ruby) |
|---|---|---|
| Type errors | Caught at compile time | Runtime risk. MUST review type contracts |
| Null safety | Compiler-enforced (strict mode) | Manual checks required. SHOULD validate all external inputs |
| Refactoring safety | Compiler-guided. SAFE | Manual. RISK of silent breakage |
| Performance optimization | Compiler handles many cases | Runtime profile required. SHOULD review hot paths |
| Testing depth | Integration + types tested | Unit + integration required for coverage |
| Documentation | Types are partial docs | Docstrings required for public APIs |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/code-review-advanced.md
- references/code-review-checklist.md
- references/code-review-fundamentals.md
- references/code-review-workflow-automation.md
- references/review-checklist.md
- references/review-workflow.md
- references/security-review-checklist.md
- references/security-review-guide.md
FAQ
Что делает скилл code-review?
Use when the user asks to review this code, review a pull request for bugs, give feedback on an implementation, check a diff, or asks LGTM?. Produces a structured review with MUST/SHOULD/CONSIDER findings on correctness, security, performance and tests. Not for finding a bug's root cause (use dev-loop-debugging-strategy) or writing the PR text (use dev-loop-pr-writer).
Как установить скилл code-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл code-review запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…