/superpowers:requesting-code-reviewfrom superpowers
Requests code review by dispatching a reviewer subagent with focused context. Use after tasks, features, or before merging to catch issues early.
Ships in superpowers. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
派发一个 code reviewer subagent,在问题级联之前捕获它们。reviewer 获得精确构建的用于评估的上下文——绝不是你会话的历史。这使 reviewer 聚焦于工作产物,而非你的思考过程,并为你继续工作保留自己的上下文。
核心原则: 尽早 review,频繁 review。
强制:
可选但有价值:
1. 获取 git SHA:
BASE_SHA=$(git rev-parse HEAD~1) # 或 origin/main
HEAD_SHA=$(git rev-parse HEAD)
2. 派发 code reviewer subagent:
派发一个 general-purpose subagent,填写 code-reviewer.md 中的模板
占位符:
{DESCRIPTION} - 你构建内容的简要摘要{PLAN_OR_REQUIREMENTS} - 它应该做什么{BASE_SHA} - 起始 commit{HEAD_SHA} - 结束 commit3. 根据反馈行动:
[刚完成任务 2:添加验证函数]
你:继续之前,让我请求代码审查。
BASE_SHA=$(git log --oneline | grep "Task 1" | head -1 | awk '{print $1}')
HEAD_SHA=$(git rev-parse HEAD)
[派发 code reviewer subagent]
DESCRIPTION: 添加了 verifyIndex() 和 repairIndex(),含 4 种问题类型
PLAN_OR_REQUIREMENTS: docs/superpowers/plans/deployment-plan.md 中的任务 2
BASE_SHA: a7981ec
HEAD_SHA: 3df7661
[Subagent 返回]:
优点:架构清晰,测试真实
问题:
Important: 缺少进度指示器
Minor: 报告间隔的魔法数字(100)
评估:可以继续
你:[修复进度指示器]
[继续任务 3]
Subagent-Driven Development:
Executing Plans:
临时开发(Ad-Hoc Development):
绝不:
如果 reviewer 错了:
见模板:code-reviewer.md
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
code-review, subagent, git-workflow, review-process, quality-assurance
npx claudepluginhub aaione/superpowers-zh --plugin superpowers14 skills in this plugin
/finishing-a-development-branch当实现完成、所有测试通过、且你需要决定如何集成工作时使用 - 通过为合并、PR 或清理呈现结构化选项来指导开发工作的完成