# Review

> Review recent changes against the SwarmLLM spec for correctness

- Skill: `enapt/review` (Agent Skill)
- Install (CLI): `npx skillmds@latest add enapt/review`
- Raw SKILL.md: https://api.skillmd.com/api/skills/enapt/review/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: enapt (https://skillmd.com/u/enapt)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/enapt/review

---


# Code Review

Review SwarmLLM code for correctness against the architecture and conventions.

## Scope

If `$ARGUMENTS` is provided, review only that module/file. Otherwise, review all uncommitted changes.

## Instructions

1. Get the scope of changes:
   - If argument provided: read the specified files under ``
   - Otherwise: run `git diff` and `git diff --cached` in `.` to find changed files

2. For each changed file, read `docs/ARCHITECTURE.md` for the relevant subsystem

3. Check for:
   - **Type correctness**: Do data types match existing patterns? (field names, types, derives)
   - **API compliance**: Do HTTP endpoints match existing route patterns and response formats?
   - **Error handling**: Does it follow the error propagation rules from CLAUDE.md?
   - **Naming conventions**: PascalCase types, snake_case functions, proper newtypes
   - **Missing functionality**: Is anything expected but not implemented?
   - **Over-engineering**: Is anything implemented beyond what's needed?

4. For reviews touching 3+ files, spawn a `feature-dev:code-reviewer` subagent (model: haiku) for security and bug analysis in parallel.

5. Report findings as:
   - **BLOCKER**: Must fix before proceeding (architecture violations, security issues)
   - **WARNING**: Should fix (minor deviations, missing edge cases)
   - **NOTE**: Optional improvements

Keep output concise. No findings = just say "Clean."

