requesting-code-review by obra/superpowers
npx skills add https://github.com/obra/superpowers --skill requesting-code-review调度 superpowers:code-reviewer 子代理,在问题蔓延前将其捕获。审查者会获得精心设计的评估上下文——绝不会包含你的会话历史。这使审查者专注于工作成果,而非你的思考过程,同时保留你自己的上下文以便继续工作。
核心原则: 早审查,常审查。
强制情况:
可选但有益的情况:
1. 获取 git SHA:
BASE_SHA=$(git rev-parse HEAD~1) # 或 origin/main
HEAD_SHA=$(git rev-parse HEAD)
2. 调度 code-reviewer 子代理:
使用 Task 工具,类型为 superpowers:code-reviewer,填写 code-reviewer.md 处的模板。
占位符说明:
{WHAT_WAS_IMPLEMENTED} - 你刚刚构建的内容广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
{PLAN_OR_REQUIREMENTS} - 它应该做什么{BASE_SHA} - 起始提交{HEAD_SHA} - 结束提交{DESCRIPTION} - 简要摘要3. 处理反馈:
[刚刚完成任务 2:添加验证函数]
你:让我在继续之前请求代码审查。
BASE_SHA=$(git log --oneline | grep "Task 1" | head -1 | awk '{print $1}')
HEAD_SHA=$(git rev-parse HEAD)
[调度 superpowers:code-reviewer 子代理]
WHAT_WAS_IMPLEMENTED: 对话索引的验证和修复函数
PLAN_OR_REQUIREMENTS: 来自 docs/superpowers/plans/deployment-plan.md 的任务 2
BASE_SHA: a7981ec
HEAD_SHA: 3df7661
DESCRIPTION: 添加了 verifyIndex() 和 repairIndex(),包含 4 种问题类型
[子代理返回]:
优点:架构清晰,有实际测试
问题:
重要:缺少进度指示器
次要:报告间隔使用了魔数 (100)
评估:可以继续
你:[修复进度指示器]
[继续任务 3]
子代理驱动开发:
执行计划:
临时开发:
切勿:
如果审查者有误:
模板见:requesting-code-review/code-reviewer.md
每周安装量
30.2K
代码仓库
GitHub 星标数
107.7K
首次出现
2026 年 1 月 19 日
安全审计
安装于
opencode26.2K
codex25.1K
gemini-cli25.1K
github-copilot23.9K
cursor22.9K
kimi-cli22.2K
Dispatch superpowers:code-reviewer subagent to catch issues before they cascade. The reviewer gets precisely crafted context for evaluation — never your session's history. This keeps the reviewer focused on the work product, not your thought process, and preserves your own context for continued work.
Core principle: Review early, review often.
Mandatory:
Optional but valuable:
1. Get git SHAs:
BASE_SHA=$(git rev-parse HEAD~1) # or origin/main
HEAD_SHA=$(git rev-parse HEAD)
2. Dispatch code-reviewer subagent:
Use Task tool with superpowers:code-reviewer type, fill template at code-reviewer.md
Placeholders:
{WHAT_WAS_IMPLEMENTED} - What you just built{PLAN_OR_REQUIREMENTS} - What it should do{BASE_SHA} - Starting commit{HEAD_SHA} - Ending commit{DESCRIPTION} - Brief summary3. Act on feedback:
[Just completed Task 2: Add verification function]
You: Let me request code review before proceeding.
BASE_SHA=$(git log --oneline | grep "Task 1" | head -1 | awk '{print $1}')
HEAD_SHA=$(git rev-parse HEAD)
[Dispatch superpowers:code-reviewer subagent]
WHAT_WAS_IMPLEMENTED: Verification and repair functions for conversation index
PLAN_OR_REQUIREMENTS: Task 2 from docs/superpowers/plans/deployment-plan.md
BASE_SHA: a7981ec
HEAD_SHA: 3df7661
DESCRIPTION: Added verifyIndex() and repairIndex() with 4 issue types
[Subagent returns]:
Strengths: Clean architecture, real tests
Issues:
Important: Missing progress indicators
Minor: Magic number (100) for reporting interval
Assessment: Ready to proceed
You: [Fix progress indicators]
[Continue to Task 3]
Subagent-Driven Development:
Executing Plans:
Ad-Hoc Development:
Never:
If reviewer wrong:
See template at: requesting-code-review/code-reviewer.md
Weekly Installs
30.2K
Repository
GitHub Stars
107.7K
First Seen
Jan 19, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode26.2K
codex25.1K
gemini-cli25.1K
github-copilot23.9K
cursor22.9K
kimi-cli22.2K
97,600 周安装