| name | review-review |
| description | Use when code changes need review before merge - validates architecture, types, security, and test coverage. |
| user-invocable | true |
| argument-hint | [scope] |
| allowed-tools | Read, Bash, Glob, Grep |
Perform a full code review of changed files, validating against docs/ARCHITECTURE.md.
Scope: $ARGUMENTS (if empty, review files changed in git)
Steps
- Identify changed files:
git diff --name-only HEAD~1 2>/dev/null || git diff --name-only --cached 2>/dev/null || echo "Please specify the files"
- Run automated checks:
nuxi typecheck
npx eslint . --max-warnings 0
npx vitest run --passWithNoTests
-
Check ARCHITECTURE.md patterns:
- Services: no try/catch, no transformation, use $fetch
- Adapters: pure functions
- Composables: use service+adapter, useAsyncData with watch triggers
- State: useState for simple, Pinia for complex, no server state in stores
- Components: script setup, auto-imports, typed props/emits, < 200 lines
- Server routes: Zod validation, createError() for errors
- Naming: correct conventions
- Boundaries: no cross-module imports
- Auto-imports: no explicit imports where Nuxt handles them
-
Classify:
- VIOLATION - ARCHITECTURE.md violation
- ATTENTION - Recommended improvement
- COMPLIANT - Correct
- HIGHLIGHT - Positive highlight
-
Produce report with verdict: Approved | With caveats | Requires changes