requesting-code-review by 0x2e/superpowers
npx skills add https://github.com/0x2e/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} - 你刚刚构建的内容{PLAN_OR_REQUIREMENTS} - 它应该做什么{BASE_SHA} - 起始提交{HEAD_SHA} - 结束提交{DESCRIPTION} - 简要总结3. 处理反馈:
[刚刚完成任务 2:添加验证功能]
You: 让我在继续之前请求代码审查。
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/plans/deployment-plan.md 的任务 2
BASE_SHA: a7981ec
HEAD_SHA: 3df7661
DESCRIPTION: 添加了 verifyIndex() 和 repairIndex(),包含 4 种问题类型
[子代理返回]:
优点:架构清晰,有真实测试
问题:
重要:缺少进度指示器
次要:报告间隔使用了魔法数字 (100)
评估:可以继续
You: [修复进度指示器]
[继续任务 3]
子代理驱动开发:
执行计划时:
临时开发:
切勿:
如果审查者有误:
查看模板:requesting-code-review/code-reviewer.md
每周安装量
2
代码仓库
首次出现
2 天前
安全审计
Gen Agent Trust HubPassSocketPassSnykPass
安装于
amp2
cline2
opencode2
cursor2
kimi-cli2
codex2
Dispatch superpowers:code-reviewer subagent to catch issues before they cascade.
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广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
{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/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
2
Repository
First Seen
2 days ago
Security Audits
Installed on
amp2
cline2
opencode2
cursor2
kimi-cli2
codex2
AI新闻播客制作技能:实时新闻转对话式播客脚本与音频生成
1,200 周安装