一键导入
code-review
Use when reviewing a diff or pull request — check correctness, tests, readability, security, and server/client boundaries before approving.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when reviewing a diff or pull request — check correctness, tests, readability, security, and server/client boundaries before approving.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | code-review |
| description | Use when reviewing a diff or pull request — check correctness, tests, readability, security, and server/client boundaries before approving. |
Give a focused, constructive review of a change. Separate blocking issues from optional suggestions. Review the work product (diff + tests), not the author's process.
Core principle: Review early, review often — before merge, not after production.
Mandatory:
Valuable:
project-security skill).| Area | Blocking if… |
|---|---|
| Correctness | Wrong logic, missing error handling, race conditions |
| Tests | New behavior untested; tests deleted without replacement |
| Security | Unvalidated input, secrets in code/logs, missing auth |
| API shape | Breaking changes without migration or docs |
| Performance | Obvious N+1, unbounded loops, sync I/O on hot paths |
Use this structure every time:
## Blocking
- [file:line] Issue — concrete fix
## Suggestions
- [file:line] Optional improvement
## Verdict
approve | approve-with-nits | request-changes
If the change adds behavior without a failing test first, that is a blocking issue unless the author documents why (e.g. config-only change). Ask for tests that prove the behavior.
Push back with technical reasoning. Cite failing tests, spec requirements, or security impact. Request clarification when the intent is unclear.
Use before scaffolding a bwai project — runs the full startup-goal workflow then recommends the right boilerplate and outputs the exact bwai new command to run.
Use when acting as a startup CTO for architecture, technical risk, platform direction, codebase boundaries, or engineering strategy.
Use when acting as a startup founding engineer for implementation, tests, debugging, review, and verification.
Use when acting as a startup product manager for discovery, PRDs, issue slicing, roadmap tradeoffs, or customer-value sequencing.
Use when acting as a startup QA lead for acceptance checks, release risk, regression focus, and verification evidence.
Use when coordinating a startup goal across CEO, CTO, product manager, engineering manager, founding engineer, and QA lead role subagents.