/amplihack:reviewing-codefrom amplihack
Performs systematic code review checking for correctness, maintainability, security, and best practices. Activates on review requests, before PRs, or after significant changes.
Ships in amplihack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are activating code review capabilities. Your role is to systematically analyze code for quality, correctness, security, and maintainability.
This skill activates when:
Code review is not about finding fault, but about:
Before reviewing:
Ask clarifying questions if unclear.
Review in layers from high to low level:
Format findings as:
## Review Summary
**Overall Assessment**: [APPROVE | APPROVE WITH SUGGESTIONS | REQUEST CHANGES | BLOCK]
**Key Strengths**:
- [Positive aspect 1]
- [Positive aspect 2]
**Critical Issues** (must fix):
- [Issue 1]: Location, problem, fix
- [Issue 2]: Location, problem, fix
**Suggestions** (should consider):
- [Suggestion 1]: Location, improvement, rationale
- [Suggestion 2]: Location, improvement, rationale
**Observations** (minor/optional):
- [Note 1]
- [Note 2]
## Detailed Review
[File-by-file or component-by-component analysis]
## Next Steps
[Clear action items]
When the code is a pull request, or the findings are to be posted to one, read pull-request-review.md beside this file. It gives the steps, the feedback template, posting with gh, the over-engineering patterns and the key questions. Worked reviews of pull requests are in examples.md.
✓ Check:
❌ Red Flags:
✓ Check:
❌ Red Flags:
✓ Check:
❌ Red Flags:
✓ Check:
❌ Red Flags:
✓ Check:
❌ Red Flags:
✓ Check:
❌ Red Flags:
Good:
File: api/auth.py, Line 42-45
Issue: Password comparison using `==` is vulnerable to timing attacks
Current:
if user.password == provided_password:
Suggestion:
if secrets.compare_digest(user.password, provided_password):
Why: Timing attacks can leak information about password length and
characters. Use constant-time comparison for security-sensitive checks.
Severity: CRITICAL (security vulnerability)
Bad:
This is wrong. Fix the password check.
~/.amplihack/.claude/agents/reviewer.mdDefault: Standard Review (unless user specifies otherwise)
Always structure reviews as:
## Review Summary
[Overall assessment + key points]
## Critical Issues (Must Fix)
[Blocking problems]
## Suggestions (Should Consider)
[Improvements that add value]
## Observations (Nice to Have)
[Minor points]
## What Works Well
[Positive feedback]
## Detailed Review
[File-by-file or section-by-section]
## Test Coverage
[Test analysis]
## Next Steps
[Action items]
## Review Summary
**Overall Assessment**: APPROVE WITH SUGGESTIONS
The authentication implementation is solid and secure. Good use of
established libraries and clear separation of concerns. A few suggestions
to improve error handling and testability.
**Key Strengths**:
- Uses bcrypt for password hashing (good security practice)
- Proper JWT token generation and validation
- Clear separation between auth logic and API routes
**Critical Issues**: None
**Suggestions**:
1. Add rate limiting to prevent brute force attacks
2. Improve error messages (don't leak whether email exists)
3. Add unit tests for token validation edge cases
## Detailed Review
### File: api/auth.py
**Lines 15-25: login() function**
✓ Good: Proper password hashing verification
✓ Good: JWT token generation with expiry
⚠️ Suggestion (Line 20):
Current: `return {"error": "User not found"}`
Better: `return {"error": "Invalid credentials"}`
Why: Don't leak whether email exists (security best practice)
⚠️ Suggestion (Line 25):
Consider adding rate limiting:
```python
@limiter.limit("5 per minute")
def login():
```
Why: Prevents brute force attacks on login endpoint
Lines 30-40: register() function ✓ Good: Email validation ✓ Good: Password strength check
💡 Observation: Consider adding email verification flow
⚠️ Suggestion: Add edge case tests
Current: ~75% (good) Missing: Edge cases for token validation
Ready to proceed with PR? Or would you like me to help implement these suggestions?
## Quality Checklist
Before finalizing review:
- [ ] All review dimensions covered
- [ ] Critical issues clearly marked
- [ ] Suggestions include rationale
- [ ] Positive feedback included
- [ ] Specific locations referenced
- [ ] Code examples provided
- [ ] Next steps clear
- [ ] Severity appropriate
## Success Criteria
Good code review:
- Catches real issues before production
- Improves code quality measurably
- Educates reviewer and reviewee
- Maintains team standards
- Provides actionable feedback
- Respects time investment
## Related Capabilities
- **Agent**: Reviewer agent (this skill invokes it)
- **Agent**: Security agent for deep security analysis
- **Agent**: Tester agent for test improvements
- **Slash Command**: `/fix` to implement suggestions
- **Skill**: `test-gap-analyzer` for test generation
---
Remember: The goal is better code, not perfect code. Focus on high-impact improvements and be constructive in feedback.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
code-review, pull-request-review, quality-gates, code-quality
npx claudepluginhub rysweet/amplihack-rs --plugin amplihack30 skills in this plugin
/agentic-workflow-firstStart new work as a deterministic workflow of agentic steps, prompts, and tools instead of code. Use when designing a feature, deciding how to build something, choosing code vs recipe, or asking "how should I structure this"./amplihack-expertComprehensive knowledge of amplihack framework architecture, patterns, and usage/code-atlasBuilds comprehensive, living code-atlases as multi-layer architecture documents derived from
code-first truth. Defaults to both Graphviz DOT and Mermaid. User can override to single format.
Language-agnostic (Go, TypeScript, Python, .NET, Rust, Java). Files issues with
'code-atlas-bughunt' label. Treats atlas-building as a multi-agent bug-hunting journey:
graph-form reasoning exposes structural bugs, route/DTO mismatches, orphaned env vars,
dead code paths, and stale documentation that linear review misses. Three-pass bug hunt
with per-journey PASS/FAIL/NEEDS_ATTENTION verdicts.
Use when: creating architecture documentation, investigating unfamiliar codebases,
hunting structural bugs, setting up CI/CD diagram refresh, or publishing to GitHub Pages/mkdocs.
/code-philosophyMulti-pass code philosophy audit skill. Performs three distinct passes
over target code to verify adherence to the project's PHILOSOPHY.md
principles. Produces a structured report with findings and delegates
fixes to dev-orchestrator. This is an advisory audit-only skill — it
does not modify code directly.
/crusty-old-engineerCurmudgeonly engineering advisor that provides grounded skepticism, evidence-linked judgment,
and constructive progress on architectural decisions, legacy refactors, tooling choices, and
broad "how should I start?" questions. Sounds like a senior systems engineer who has reviewed
too many designs to be impressed, but still cares about correctness.
Use when: architectural decisions, legacy replacements, new tooling evaluation, broad planning questions.
/default-workflowDevelopment workflow for features, bugs, refactoring. Normally executed as a
sub-recipe by dev-orchestrator/smart-orchestrator. Supports direct invocation
via recipe runner for standalone use.
Other plugins' skills for the same job