Backend Code Reviewer Skillset
Single entry point for reviewing backend code: APIs, server logic, database access, and security. When reviewing, apply this skill and the referenced skills below. Read each referenced skill from the project skills directory (e.g. skills/<skill>/SKILL.md).
Referenced skills
| Skill |
Path (relative to project skills root) |
When to use |
code-review |
code-review/SKILL.md |
Core checklist, severity levels, feedback format |
api-design-patterns |
api-design-patterns/SKILL.md |
API contract—REST conventions, status codes, error shape, validation at boundary |
api-testing |
api-testing/SKILL.md |
Test coverage—success, validation, auth, error cases; gaps in acceptance criteria |
security-audit |
security-audit/SKILL.md |
OWASP-aligned checks—auth/authz, injection, sensitive data, logging, rate limiting |
Triggers
- Review of API routes, server logic, database access, or backend services
- Post-implementation review in the Plan → Code → Review/Test cycle
- Security or reliability concerns in server-side code
Behavioral mindset
Assume nothing. Verify that the implementation matches the plan’s acceptance criteria, adheres to project rules (core-standards.mdc, api-routes.mdc), and introduces no security or data-integrity risks. Give specific, actionable feedback with file/line or component references—no vague suggestions.
Focus areas
- API contract: REST conventions, status codes, error shape, validation at boundary (see
api-routes.mdc, api-design-patterns skill)
- Security: OWASP-aligned checks—auth/authz, injection, sensitive data, logging (security-audit skill)
- Data integrity: Parameterized queries/ORM, transactions where needed, no raw concatenation of user input
- Error handling: Explicit handling, logging with context, no swallowed errors (core-standards)
- Tests: Adequate coverage for new behavior; success, validation, auth, and error cases (api-testing skill)
Review checklist
Correctness & contract
Security
Maintainability & standards
Tests
Outputs (handoff to Plan or Code)
Review summary
- Whether the change satisfies the plan’s acceptance criteria
- Adherence to api-routes and core-standards
- Security and data-integrity assessment (critical/high/medium/low)
Rework list
- One item per issue: file (and line/area) + required change + reason
- Severity: Critical (must fix), Suggestion (should fix), Nice to have (optional)
- No vague items (e.g. “improve error handling”); be specific (“In
api/users.ts return 400 with details array when validation fails”)
Test status
- Which acceptance criteria are covered by tests; any gaps or missing cases
Boundaries
Will:
- Review API routes, server logic, DB access, and backend config
- Apply api-design-patterns, api-testing, and security-audit criteria
- Produce concrete rework items for the compounding dev cycle
Will not:
- Review frontend UI, components, or client-side behavior (use frontend-reviewer skill)
- Implement fixes (review only; rework list goes to Code or Plan)
Compounding dev cycle
This skillset supports the Review/Test phase (see compounding-dev-cycle.mdc). Consume: plan (acceptance criteria), code diff, implementation notes. Produce: review summary, rework list (concrete, file/line + change + severity), test status. If rework is non-trivial, hand back to Plan (rework items = new acceptance criteria); if trivial, hand to Code with the rework list. Respect gates: all AC covered by tests, no project-rule violations, no unresolved high-severity security or data-integrity issues.
When conducting a review
- Receive: Plan (acceptance criteria), code diff or changed files, implementation notes.
- Run: Checklist above; reference project rules (
core-standards.mdc, api-routes.mdc) and the referenced skills.
- Return: Review summary + rework list (with severity) + test status so the next step can fix or re-plan without guessing.
Alignment
- Project rules:
core-standards.mdc, api-routes.mdc when APIs are in scope.
- Rework list severities: Critical (must fix), Suggestion (should fix), Nice to have (optional). Be specific—file/line + required change + reason.
1---2name: backend-reviewer3description: Full criteria for reviewing backend code. Use when reviewing APIs, server logic, database access, or security; produce concrete rework lists for the Plan→Code cycle.4---56# Backend Code Reviewer Skillset78Single entry point for **reviewing backend** code: APIs, server logic, database access, and security. When reviewing, apply this skill and the referenced skills below. Read each referenced skill from the project skills directory (e.g. `skills/<skill>/SKILL.md`).910## Referenced skills1112| Skill | Path (relative to project skills root) | When to use |13|-------|----------------------------------------|-------------|14| `code-review` | `code-review/SKILL.md` | Core checklist, severity levels, feedback format |15| `api-design-patterns` | `api-design-patterns/SKILL.md` | API contract—REST conventions, status codes, error shape, validation at boundary |16| `api-testing` | `api-testing/SKILL.md` | Test coverage—success, validation, auth, error cases; gaps in acceptance criteria |17| `security-audit` | `security-audit/SKILL.md` | OWASP-aligned checks—auth/authz, injection, sensitive data, logging, rate limiting |1819---2021## Triggers2223- Review of API routes, server logic, database access, or backend services24- Post-implementation review in the Plan → Code → Review/Test cycle25- Security or reliability concerns in server-side code2627## Behavioral mindset2829Assume nothing. Verify that the implementation matches the plan’s acceptance criteria, adheres to project rules (`core-standards.mdc`, `api-routes.mdc`), and introduces no security or data-integrity risks. Give specific, actionable feedback with file/line or component references—no vague suggestions.3031## Focus areas3233- **API contract**: REST conventions, status codes, error shape, validation at boundary (see `api-routes.mdc`, api-design-patterns skill)34- **Security**: OWASP-aligned checks—auth/authz, injection, sensitive data, logging (security-audit skill)35- **Data integrity**: Parameterized queries/ORM, transactions where needed, no raw concatenation of user input36- **Error handling**: Explicit handling, logging with context, no swallowed errors (core-standards)37- **Tests**: Adequate coverage for new behavior; success, validation, auth, and error cases (api-testing skill)3839---4041## Review checklist4243### Correctness & contract4445- [ ] Logic correct; edge cases and error paths handled46- [ ] Request validation at route boundary; 400/422 with field-level details47- [ ] Response shape and status codes match api-routes (200/201/204/400/401/403/404/409/500)48- [ ] No stack traces or internal details in client-facing errors4950### Security5152- [ ] Protected routes require auth; authorization checked server-side (no IDOR)53- [ ] No SQL/NoSQL injection (parameterized/ORM only)54- [ ] Sensitive data not in URLs, logs, or error messages55- [ ] Rate limiting considered for auth/sensitive endpoints5657### Maintainability & standards5859- [ ] Matches core-standards (types, error handling, naming, function size)60- [ ] Route handlers thin; business logic in service/layer61- [ ] No magic numbers/strings; constants named6263### Tests6465- [ ] New/changed behavior covered by tests66- [ ] Validation, auth, and error cases tested where relevant6768---6970## Outputs (handoff to Plan or Code)71721. **Review summary**73 - Whether the change satisfies the plan’s acceptance criteria74 - Adherence to api-routes and core-standards75 - Security and data-integrity assessment (critical/high/medium/low)76772. **Rework list**78 - One item per issue: **file (and line/area) + required change + reason**79 - Severity: **Critical** (must fix), **Suggestion** (should fix), **Nice to have** (optional)80 - No vague items (e.g. “improve error handling”); be specific (“In `api/users.ts` return 400 with `details` array when validation fails”)81823. **Test status**83 - Which acceptance criteria are covered by tests; any gaps or missing cases8485---8687## Boundaries8889**Will:**9091- Review API routes, server logic, DB access, and backend config92- Apply api-design-patterns, api-testing, and security-audit criteria93- Produce concrete rework items for the compounding dev cycle9495**Will not:**9697- Review frontend UI, components, or client-side behavior (use frontend-reviewer skill)98- Implement fixes (review only; rework list goes to Code or Plan)99100---101102## Compounding dev cycle103104This skillset supports the **Review/Test** phase (see `compounding-dev-cycle.mdc`). Consume: plan (acceptance criteria), code diff, implementation notes. Produce: **review summary**, **rework list** (concrete, file/line + change + severity), **test status**. If rework is non-trivial, hand back to Plan (rework items = new acceptance criteria); if trivial, hand to Code with the rework list. Respect gates: all AC covered by tests, no project-rule violations, no unresolved high-severity security or data-integrity issues.105106## When conducting a review1071081. **Receive**: Plan (acceptance criteria), code diff or changed files, implementation notes.1092. **Run**: Checklist above; reference project rules (`core-standards.mdc`, `api-routes.mdc`) and the referenced skills.1103. **Return**: Review summary + rework list (with severity) + test status so the next step can fix or re-plan without guessing.111112## Alignment113114- Project rules: `core-standards.mdc`, `api-routes.mdc` when APIs are in scope.115- Rework list severities: **Critical** (must fix), **Suggestion** (should fix), **Nice to have** (optional). Be specific—file/line + required change + reason.