skills/code-review/SKILL.md
Comprehensive code review with security, performance, and maintainability focus. Produces structured review with APPROVE, NEEDS WORK, or BLOCK verdict.
npx skillsauth add thoreinstein/agents code-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Perform a comprehensive code review with structured analysis across multiple dimensions.
Identify the scope:
git diff for the relevant rangeUnderstand the change:
Map dependencies:
Evaluate the code against each dimension in the Review Dimensions section below. For each dimension:
Produce a structured review following the template in references/code-review-template.md.
Determine verdict:
Organize findings by severity
Acknowledge strengths - what's done well
Provide actionable fixes - not just problems, but solutions
Flag for additional human review when:
| Concern | Escalation Trigger | | ---------------- | -------------------------------------------------------------------------------- | | Security | Any auth changes, crypto usage, user data handling, or potential vulnerabilities | | Reliability | Changes to error handling, retry logic, or failure recovery paths | | Performance | Changes to hot paths, database queries, or algorithms with scale concerns | | Architecture | New patterns, significant structural changes, or cross-cutting concerns | | Testing | Reduced coverage, disabled tests, or changes to test infrastructure |
Scope: PR adds POST /api/users endpoint in internal/api/users.go
Phase 1 output:
Files changed:
- internal/api/users.go (new handler)
- internal/api/routes.go (route registration)
- internal/db/users.go (new repository method)
Related tests: internal/api/users_test.go (new)
Purpose: Add user creation endpoint for onboarding flow
Phase 2 findings:
| Severity | Issue | Location | Fix | | -------- | -------------------------------------- | --------------- | ------------------------------ | | High | SQL injection via unsanitized email | db/users.go:45 | Use parameterized query | | Medium | Missing rate limiting | api/users.go:23 | Add rate limiter middleware | | Low | Error message exposes internal details | api/users.go:67 | Return generic error to client |
Phase 3 verdict:
Verdict: NEEDS WORK
Critical/High Issues:
- SQL injection vulnerability must be fixed before merge
What's Done Well:
- Clean separation between handler and repository
- Comprehensive input validation struct
- Good test coverage for happy path
Action Items:
1. [High] Fix SQL injection in db/users.go:45
2. [Medium] Add rate limiting to endpoint
3. [Low] Sanitize error messages returned to client
Begin by gathering context on the target files/commits before conducting the multi-dimensional review.
testing
Consult the whizz-mind knowledge base for documentation and answers. Use when the user asks questions that might be answered by stored documentation or when explicitly asked to check whizz-mind.
development
Comprehensive web quality audit covering performance, accessibility, SEO, and best practices. Use when asked to "audit my site", "review web quality", "run lighthouse audit", "check page quality", or "optimize my website".
testing
Ultra-deep multi-perspective analysis for complex architectural and strategic decisions requiring systematic reasoning across technical, business, user, and system perspectives
data-ai
Optimize for search engine visibility and ranking. Use when asked to "improve SEO", "optimize for search", "fix meta tags", "add structured data", "sitemap optimization", or "search engine optimization".