一键导入
code-review
Comprehensive code review with security, performance, and maintainability focus. Produces structured review with APPROVE, NEEDS WORK, or BLOCK verdict.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Comprehensive code review with security, performance, and maintainability focus. Produces structured review with APPROVE, NEEDS WORK, or BLOCK verdict.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
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.
Run accessibility and visual design review
Interact with Figma design files via the web browser using the Figma Plugin API. Can create shapes, modify properties, extract information from design files.
Research-driven content writing with citations, iterative outlines, and real-time feedback. Transforms writing from solo effort to collaborative partnership.
Full implementation mode - end-to-end feature implementation with phased execution, parallel work streams, verification gates, and atomic commits per phase
Deep analysis mode - thorough multi-phase investigation with expert consultation for complex problems requiring careful examination
| name | code-review |
| description | Comprehensive code review with security, performance, and maintainability focus. Produces structured review with APPROVE, NEEDS WORK, or BLOCK verdict. |
| license | MIT |
| compatibility | ["runtime:any"] |
| allowed-tools | ["Read","Glob","Grep","Bash(git:diff)","Bash(git:log)","Bash(git:show)","Bash(git:blame)"] |
| metadata | {"author":"thoreinstein","version":"1.0.0"} |
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.