/full-stack-hq:code-review-patternsfrom full-stack-hq
Provides a structured code review checklist with priority levels (P0-P3), comment writing guidelines, and severity prefixes (BLOCK/SHOULD/NIT/IDEA/QUESTION).
Ships in full-stack-hq. 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.
None: SKILL.md is the whole skill.
Code review is NOT about finding mistakes to win arguments. It is about:
□ Security vulnerability (SQL injection, XSS, auth bypass, hardcoded secrets)
□ Data loss risk (wrong delete scope, missing transaction, no backup)
□ Correctness bug (wrong logic, off-by-one, race condition)
□ Broken tests or test coverage dropped below 80%
□ Deployment risk (migration without rollback, breaking API change)
□ Missing error handling (silent catch, swallowed exception)
□ N+1 query problem
□ Function over 50 lines (extract responsibility)
□ File over 800 lines (extract module)
□ Nesting depth > 4 (use early returns)
□ Missing input validation on public endpoints
□ console.log / debug statements left in
□ TODO comments without tracking issue
□ Naming: unclear variable/function names
□ Missing comments on non-obvious logic
□ Magic numbers (use named constants)
□ Duplicate code (extract utility)
□ Missing type annotations
□ Formatting inconsistency (should be caught by linter/prettier)
□ Minor naming preferences
□ Ordering of exports
# Bad comment
"This is wrong."
# Good comment
"This will fail when `user` is null (e.g., when the token is valid but
the user account was deleted). Consider throwing `UnauthorizedException`
here rather than proceeding: `if (!user) throw new UnauthorizedException()`"
Use prefixes to signal severity:
[BLOCK] — Must fix before merge (security, correctness)
[SHOULD] — Strong recommendation, technical debt if skipped
[NIT] — Minor, only fix if easy — don't hold up the PR
[IDEA] — Thought worth considering, not a request
[QUESTION]— Genuine question, not criticism
// [BLOCK] SQL injection risk — user input is directly interpolated
// Change to: db.query('SELECT * FROM users WHERE email = $1', [email])
const result = await db.query(`SELECT * FROM users WHERE email = '${email}'`)
// [SHOULD] Missing await — this returns a Promise<void>, not void.
// The function returns before the email is sent.
emailService.send(user.email, 'Welcome!')
// [NIT] Could simplify with optional chaining:
// return user?.profile?.avatar ?? null
if (user && user.profile && user.profile.avatar) {
return user.profile.avatar
}
return null
// [IDEA] Consider using a discriminated union here instead of nullable
// fields — it makes the state machine explicit at compile time.
// [QUESTION] Is this intentionally public? Seems like an admin-only action.
@Get('all-users')
findAllUsers() { ... }
Before requesting review:
□ Self-review the diff — read your own code as if reviewing someone else's
□ All tests pass (npm test / pnpm test)
□ No lint errors (npm run lint)
□ Type check passes (npm run type-check)
□ No debug statements or commented-out code
□ PR description explains WHY, not just WHAT
□ Related issues linked
□ Screenshots for UI changes
□ Breaking changes documented
□ Migration scripts tested locally
## What
[One paragraph: what does this change do?]
## Why
[Why is this change needed? Link to issue if applicable.]
## How
[Brief explanation of the approach taken.]
## Testing
- [ ] Unit tests added/updated
- [ ] Integration tests pass
- [ ] Tested locally against real data
## Screenshots
[For UI changes — before/after]
## Breaking Changes
[List any breaking API changes, DB schema changes, or env var changes]
For PRs with 500+ lines changed:
1. Read the PR description first — understand the intent
2. Start with tests — they document expected behavior
3. Read the new interfaces/types — they reveal the design
4. Read the service/business logic — the core of the change
5. Read the controllers/handlers — boundary validation
6. Check the migrations last — easy to miss side effects
// Bad: UsersService does everything
class UsersService {
createUser() {}
sendEmail() {}
generateReport() {}
processPayment() {}
updateInventory() {}
}
// Flag it: "This service has too many responsibilities.
// Consider extracting EmailService, ReportService, PaymentService."
// Bad: what do the booleans mean?
createUser(name, email, true, false, true)
// Flag it: "[SHOULD] These boolean arguments are opaque.
// Consider an options object: createUser(name, email, { isAdmin: true, sendWelcome: false, isVerified: true })"
// Flag with [IDEA]:
// "This optimization adds complexity. Do we have a measured performance
// problem here? If not, let's keep the simple version and optimize when needed."
| Finding | Action |
|---|---|
| Any P0 | Block — request changes |
| P1 items | Comment with [SHOULD], can approve with conditions |
| Only P2/P3 | Approve — note as optional suggestions |
| No issues | Approve immediately — don't delay |
What SKILL.md sets; muted values are Claude Code's defaults
28 skills in this plugin
/api-design-patternsREST API design, versioning, error responses, pagination, OpenAPI conventions. Use when designing new API endpoints, reviewing API contracts, or setting up Swagger/OpenAPI documentation./auth-patternsJWT access/refresh tokens, Passport.js strategies, session management, OAuth. Use when implementing authentication, authorization, or setting up OAuth providers in a NestJS + Next.js app./backend-dev-guidelinesBackend architecture principles, layering, error handling, logging patterns for NestJS. Use when designing NestJS modules, writing service logic, structuring error handling, or setting up structured logging./brainstormingStructured brainstorming techniques, idea generation, trade-off analysis. Use when exploring design options, choosing between architectural approaches, generating feature ideas, or making technology decisions./deployment-guideVercel frontend + Railway/Fly.io backend deployment, env vars, health checks. Use when deploying a Next.js frontend to Vercel or a NestJS backend to Railway or Fly.io, or troubleshooting a deployment issue./docker-patternsDockerfile best practices, multi-stage builds, docker-compose for dev/prod. Use when setting up containerization for a NestJS backend or Next.js frontend, or configuring a local dev environment with docker-compose.npx claudepluginhub sabahattink/antigravity-fullstack-hq --plugin full-stack-hqOther plugins' skills for the same job