Review Skills
code-reviewer, council-review, design-reviewer, and pr-creator
code-reviewer
The code-reviewer skill reviews code changes against quality, security, and performance standards. It analyzes pull requests, git diffs, or uncommitted changes and provides structured feedback with approval decisions.
Review Categories
| Category | Severity | Must Fix Before Merge? |
|---|---|---|
| Critical | π΄ High | Yes β security, data loss, crashes |
| Important | π‘ Medium | Yes β bugs, performance, maintainability |
| Suggestions | π’ Low | No β style, naming, minor improvements |
Invocation
# Review current branch against main
/code-reviewer
# Review specific PR
/code-reviewer --pr 142
# Review uncommitted changes
/code-reviewer --staged
# Review with specific focus
/code-reviewer --focus securityReview Output
Code Review: feature/oauth-integration
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π΄ CRITICAL (1)
βββββββββββββββ
auth.ts:47 β SQL Injection vulnerability
Problem: User input directly concatenated into query
Fix: Use parameterized queries
- const query = `SELECT * FROM users WHERE id = '${userId}'`;
+ const query = 'SELECT * FROM users WHERE id = $1';
+ const result = await db.query(query, [userId]);
π‘ IMPORTANT (2)
ββββββββββββββββ
api.ts:23 β Missing error handling
Problem: Promise rejection unhandled, will crash on network failure
Fix: Add try/catch or .catch() handler
oauth.ts:89 β Token stored in localStorage
Problem: XSS vulnerability if localStorage is compromised
Fix: Use httpOnly cookies for token storage
π’ SUGGESTIONS (3)
ββββββββββββββββββ
auth.ts:12 β Consider extracting magic number
auth.ts:34 β Variable name 'x' is not descriptive
oauth.ts:15 β Unused import 'axios'
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Decision: β REQUEST CHANGES
1 critical issue must be resolved before approval.council-review
The council-review skill facilitates synchronous peer review dialogue between multiple agents. It orchestrates discussion, builds consensus, and escalates to the Tech Lead when agents disagree.
How the Council Works
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β COUNCIL SESSION β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β Implementer: @backend-engineer β
β "I've implemented the caching layer using Redis..." β
β β
β Peer 1: @frontend-engineer β
β "Cache invalidation looks correct, but consider..." β
β β
β Peer 2: @devops-engineer β
β "Redis config needs connection pooling for production" β
β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β Consensus: Changes needed (2 agree, 0 disagree) β
β β
β Action Items: β
β 1. Add connection pooling β
β 2. Document cache TTL strategy β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββEscalation Path
Peer Review
β
βββΊ Consensus reached βββββββΊ Approve / Request Changes
β
βββΊ Disagreement ββββββββββββΊ Escalate to @tech-lead
β
βΌ
Final decision
with rationaleInvocation
# Start council review for current changes
/council-review
# Council review with specific peers
/council-review --peers "@frontend-engineer, @devops-engineer"
# Review specific scope
/council-review --scope "security implications"design-reviewer
The design-reviewer skill reviews technical design documents for architectural alignment, security, performance, and testability. It provides structured feedback with approve/conditions/reject decisions.
Review Dimensions
- Architectural Alignment β Does it fit existing patterns?
- Security Posture β Are threats addressed?
- Performance Impact β Will it scale?
- Testability β Can it be verified?
- Operational Readiness β Can we deploy and monitor it?
Invocation
# Review a design document
/design-reviewer docs/designs/oauth-integration.md
# Review with specific focus
/design-reviewer --focus "security, scalability"
# Quick review for smaller designs
/design-reviewer --quickDecision Framework
| Decision | Meaning | Next Step |
|---|---|---|
| β Approve | Design is sound, proceed to implementation | Start coding |
| β οΈ Approve with Conditions | Minor issues that can be fixed during implementation | Note conditions, start coding |
| β Reject | Fundamental issues that require redesign | Revise design, re-submit |
pr-creator
The pr-creator skill creates comprehensive pull requests from git changes. It analyzes commits, generates PR descriptions, recommends reviewers, suggests labels, and uses GitHub CLI to create PRs automatically.
What It Generates
- Title β Conventional commit format, descriptive
- Description β What, why, and how
- Testing Notes β How to verify the changes
- Reviewers β Based on code ownership and expertise
- Labels β Type, scope, priority
- Linked Issues β Auto-detected from commit messages
Invocation
# Create PR from current branch
/pr-creator
# Create with specific base branch
/pr-creator --base develop
# Draft PR (not ready for review)
/pr-creator --draft
# Create and auto-assign reviewers
/pr-creator --auto-reviewersGenerated PR Example
Title: feat(auth): Add OAuth 2.0 integration with Google
## Summary
Implements OAuth 2.0 authentication flow with Google as the identity provider.
Users can now sign in with their Google accounts in addition to email/password.
## Changes
- Added OAuth callback handler in `/api/auth/callback`
- Created Google OAuth configuration in `lib/oauth.ts`
- Updated login page with "Sign in with Google" button
- Added token refresh mechanism
## Testing
1. Click "Sign in with Google" on login page
2. Complete Google authentication
3. Verify redirect back to app with session active
4. Test token refresh after 1 hour
## Screenshots
[Login page with new button]
## Checklist
- [x] Tests added/updated
- [x] Documentation updated
- [x] No breaking changes
Closes #142
---
Reviewers: @security-team, @frontend-team
Labels: feature, auth, needs-reviewReview Workflow
Implementation Complete
β
βΌ
βββββββββββββββββββββββ
β /quality-gate- ββββ Ensure gates pass first
β checker β
ββββββββββββ¬βββββββββββ
β
βΌ
βββββββββββββββββββββββ
β /code-reviewer ββββ Self-review before peers
ββββββββββββ¬βββββββββββ
β
Critical issues?
β
ββββ Yes βββΊ Fix, re-review
β
ββββ No
β
βΌ
βββββββββββββββββββββββ
β /council-review ββββ Peer review (for non-trivial)
ββββββββββββ¬βββββββββββ
β
Consensus?
β
ββββ No βββΊ Escalate to @tech-lead
β
ββββ Yes
β
βΌ
βββββββββββββββββββββββ
β /pr-creator ββββ Generate and submit PR
βββββββββββββββββββββββ/code-reviewer on your own changes before asking for peer review. Catching obvious issues yourself shows respect for reviewers' time and results in more meaningful feedback on the harder problems.