PrizmKit Code Review
Perform a comprehensive code review against the feature spec, implementation plan, and project best practices. Produces a structured review report with severity ratings. This skill is strictly read-only and does not modify any files.
Commands
prizmkit.code-review
Review implemented code against spec and plan.
PRECONDITION: spec.md, plan.md, tasks.md exist in .prizmkit/specs/###-feature-name/ with completed tasks
STEPS:
- Read
spec.md,plan.md,tasks.mdas review baseline - Read
.prizm-docs/root.prizmRULES for project conventions - Scan all code files referenced in completed tasks
- Review across 6 dimensions:
- Spec compliance: Does code implement all acceptance criteria?
- Plan adherence: Does implementation follow architectural decisions?
- Code quality: Naming, structure, complexity, DRY
- Security: Common vulnerabilities (injection, auth, data exposure)
- Consistency: Follows project patterns from
.prizm-docs/PATTERNS - Test coverage: Are critical paths tested?
- Generate findings with severity:
CRITICAL>HIGH>MEDIUM>LOW - Max 30 findings
- Verdict:
PASS|PASS WITH WARNINGS|NEEDS FIXES - OUTPUT: Structured review report (to conversation only, NOT written to file)
KEY RULES:
- This is STRICTLY READ-ONLY — does NOT modify any files
- Output goes to conversation ONLY, not to any file
- Max 30 findings to keep review actionable
- Every CRITICAL finding MUST include a specific fix suggestion
- Spec compliance failures are always rated HIGH or CRITICAL
- Security findings are always rated HIGH or CRITICAL
VERDICT CRITERIA:
PASS: No CRITICAL or HIGH findingsPASS WITH WARNINGS: No CRITICAL findings, some HIGH findingsNEEDS FIXES: Any CRITICAL findings present
HANDOFF: prizmkit.summarize (if PASS) or prizmkit.implement (if NEEDS FIXES)
Output
Review report is output to conversation only. No files are created or modified.
Report Format:
## Code Review: [Feature Name]
### Summary
- Files reviewed: N
- Findings: N (Critical: N, High: N, Medium: N, Low: N)
- Verdict: [PASS | PASS WITH WARNINGS | NEEDS FIXES]
### Findings
#### [SEVERITY] Finding Title
- File: path/to/file:line
- Dimension: [spec-compliance | plan-adherence | code-quality | security | consistency | test-coverage]
- Description: [What was found]
- Suggestion: [How to fix]
微信扫一扫