skills/adammanuel-dev/code-review/SKILL.md
Battle-tested code review practices optimizing for codebase health and team velocity
npx skillsauth add aiskillstore/marketplace code-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Code review is the primary quality gate in modern software development. Poor review practices lead to slow feature velocity, missed defects, team friction, and knowledge silos. This skill codifies proven practices that prevent these failure modes. </context>
<contemplation> Code review exists to keep the codebase getting better over time—balance speed with quality. The goal is not perfection, but continuous improvement. Small, focused PRs reviewed quickly with clear feedback create a virtuous cycle of quality and velocity.Key insights from research:
The skill balances prescriptive guidance with flexibility—providing clear workflows without being overly rigid. </contemplation>
Use this format (skim-friendly):
## Context
<!-- Why is this needed? What problem does it solve? -->
<!-- Link to issue/ticket if applicable -->
## Changes
<!-- High-level summary of what changed (not every line) -->
- Key change 1
- Key change 2
- Key change 3
## Test Plan
<!-- How can reviewers verify this works? -->
- [ ] Unit tests: `npm test path/to/tests`
- [ ] Manual testing: Steps to reproduce
- [ ] Edge cases verified: List specific scenarios tested
## Deployment Notes
- [ ] Database migration: Yes/No (details if yes)
- [ ] Feature flag: Yes/No (name if yes)
- [ ] Configuration changes: Yes/No (what changed)
- [ ] Breaking changes: Yes/No (migration path if yes)
- [ ] Rollback plan: Describe how to safely revert
## Security Considerations
<!-- If touching auth/permissions/data/secrets -->
- Input validation strategy
- Authorization checks
- Data exposure risks addressed
</step>
<step n="4" validation="self_reviewed">
**Perform Self-Review**
- Review your own diff line-by-line before opening PR
- Ask: "Would I approve this if someone else wrote it?"
- Check for: Unintended changes, debug code, commented code, TODOs
- Use draft PRs for early feedback on approach (not implementation)
</step>
<step n="5" validation="reviewers_assigned">
**Assign Appropriate Reviewers**
- Check CODEOWNERS for automatic assignment
- Tag domain experts for specialized areas (security, performance, etc.)
- Don't assign entire team—pick 1-2 relevant reviewers
- Use `/review-orchestrator commit` to run automated checks
</step>
</methodology>
Focus on big picture before diving into details:
Read PR Description
Assess Design & Architecture
Security & Risk Pass
/review-security for auth/permissions/data changesScope Check
Decision Point: If major issues found (wrong approach, architectural problems, security flaws), provide feedback and STOP. No need for detailed review if design is flawed. </pass>
<pass n="2" duration="10-20 minutes" focus="implementation"> **Implementation Review: Details & Correctness**Only proceed if Pass 1 looks good:
Logic & Correctness
/review-quality for TypeScript/logic reviewTesting Quality
/review-testing for test quality analysisCode Quality & Readability
/review-readability for style/naming analysisDocumentation
Time Management: Set 30-minute timer. If you can't complete review in time:
<comment_types> Use these prefixes to clarify feedback severity and reduce friction:
[critical] - Must fix before merge
[issue] - Should fix, discuss if cannot
[suggestion] - Nice to have, author decides
[nit] - Purely cosmetic, optional
[question] - Seeking clarification
[praise] - Calling out good work
After both passes (< 30 minutes total):
Batch Nits: Leave all [nit] comments in single comment block. Don't require changes—let author decide.
Praise Matters: Call out good patterns. Mentors > nit-bots. Positive reinforcement builds better teams. </methodology>
<team_practices>
Define and track response time expectations:
Fast cycles correlate with healthier delivery metrics.
Enforce PR size limits:
/code-review-prep to check PR size before openingImplement automatic reviewer assignment:
.github/CODEOWNERS/code-review-init to generate CODEOWNERS templateEnable "suggested changes" feature:
Move mechanical checks to CI:
Keep human attention for design and correctness. </team_practices>
Use /code-review-prep to run automated version, or manually verify:
Code Quality
Self-Review
Testing
Documentation
Security & Performance
/review-security if touching auth/permissionsPR Description
Size & Scope
Pass 1: High-Level (5-10 min)
/review-security if needed)Pass 2: Implementation (10-20 min)
/review-testing)/review-quality)/review-readability)Final Decision
<anti_patterns> Author Anti-Patterns:
Reviewer Anti-Patterns:
Team Anti-Patterns:
Review Orchestrator:
/review-orchestrator commit - Full pre-commit validation/review-orchestrator push - Pre-push quality gatesSpecialist Reviewers:
/reviewer:security - Security vulnerabilities and auth/reviewer:quality - TypeScript quality and logic/reviewer:testing - Test effectiveness and coverage/reviewer:readability - Code clarity and naming/reviewer:basic - Anti-patterns and common mistakesCustom Commands:
/code-review-prep - Author pre-flight checklist (to be created)/code-review-init - Generate PR templates and CODEOWNERS (to be created)/code-review-metrics - Analyze review health metrics (to be created)Workflow Integration:
# Author workflow
git add .
/review-orchestrator add # Pre-commit check
git commit -m "feat: add feature"
/code-review-prep # Pre-PR checklist
# Open PR with generated description
# Reviewer workflow
/review-security path/to/files # If security-sensitive
/review-quality path/to/files # Logic and types
/review-testing path/to/files # Test quality
# Leave classified comments, make decision
</integration>
Don't track:
Use /code-review-metrics to generate health dashboard.
</metrics>
<quick_reference> As an Author:
/code-review-prep before openingAs a Reviewer:
As a Team Lead:
/code-review-init/code-review-metricsTemplates:
Workflows:
Metrics & Improvement:
# After completing feature work
git add .
git commit -m "feat: add user profile editing"
# Run pre-PR validation
@skill code-review
> I'm about to open a PR. Can you run the author checklist?
# Claude runs automated checks and generates:
# - Validation results (tests, lint, types)
# - PR size analysis
# - Generated PR description template
# - Suggested reviewers from CODEOWNERS
# - Readiness assessment
# Assigned to review PR #456 (324 lines, auth changes)
@skill code-review
> I need to review PR #456. It modifies authentication. Let's do Pass 1.
# Claude guides through high-level review:
# - Analyzes context and approach
# - Runs `/review-security` for auth changes
# - Identifies any design issues
# - Recommends proceed to Pass 2 or provide feedback
# If Pass 1 looks good:
> Pass 1 looks good. Let's do Pass 2.
# Claude runs specialist reviewers in parallel:
# - `/review-quality` for logic and types
# - `/review-testing` for test coverage
# - `/review-readability` for code clarity
# - Aggregates findings with severity classification
@skill code-review
> We want to improve our code review process. Help us get started.
# Claude runs `/code-review-init`:
# - Generates .github/pull_request_template.md
# - Generates .github/CODEOWNERS
# - Creates docs/code-review-playbook.md
# - Provides team adoption roadmap
# - Suggests SLAs and policies
Note: This skill is designed to work with your existing development workflow. Start with the author checklist, adopt two-pass reviews, then expand to team-wide practices as you gain confidence.
development
Apple Human Interface Guidelines for content display components. Use this skill when the user asks about charts component, collection view, image view, web view, color well, image well, activity view, lockup, data visualization, content display, displaying images, rendering web content, color pickers, or presenting collections of items in Apple apps. Also use when the user says how should I display charts, what's the best way to show images, should I use a web view, how do I build a grid of items, what component shows media, or how do I present a share sheet. Cross-references: hig-foundations for color/typography/accessibility, hig-patterns for data visualization patterns, hig-components-layout for structural containers, hig-platforms for platform-specific component behavior.
tools
Automate HelpDesk tasks via Rube MCP (Composio): list tickets, manage views, use canned responses, and configure custom fields. Always search tools first for current schemas.
testing
Expert Haskell engineer specializing in advanced type systems, pure functional design, and high-reliability software. Use PROACTIVELY for type-level programming, concurrency, and architecture guidance.
tools
GraphQL gives clients exactly the data they need - no more, no less. One endpoint, typed schema, introspection. But the flexibility that makes it powerful also makes it dangerous. Without proper controls, clients can craft queries that bring down your server. This skill covers schema design, resolvers, DataLoader for N+1 prevention, federation for microservices, and client integration with Apollo/urql. Key insight: GraphQL is a contract. The schema is the API documentation. Design it carefully.