Use when completing tasks, implementing major features, or before merging to verify work meets requirements
From sdlc-dev-skillsnpx claudepluginhub zixun-github/aisdlcThis skill uses the workspace's default tool permissions.
references/code-reviewer.md派发 code-reviewer 子智能体,在问题蔓延前发现问题。
核心原则: 尽早审查、频繁审查。
开始时宣布:「我正在使用 spec-requesting-code-review 技能请求代码审查并派发审查子智能体。」
必须:
可选但有价值:
1. 获取 git SHAs:
BASE_SHA=$(git rev-parse HEAD~1) # 或 origin/main
HEAD_SHA=$(git rev-parse HEAD)
2. 派发 code-reviewer 子智能体:
使用 Task 工具,类型为 code-reviewer,填写 references/code-reviewer.md 中的模板
占位符:
{WHAT_WAS_IMPLEMENTED} - 你刚实现的内容{PLAN_OR_REQUIREMENTS} - 应实现的内容{BASE_SHA} - 起始提交{HEAD_SHA} - 结束提交{DESCRIPTION} - 简要摘要3. 按反馈行动:
[刚完成 Task 2:添加验证函数]
你:先请求代码审查再继续。
BASE_SHA=$(git log --oneline | grep "Task 1" | head -1 | awk '{print $1}')
HEAD_SHA=$(git rev-parse HEAD)
[派发 code-reviewer 子智能体]
WHAT_WAS_IMPLEMENTED: 会话索引的验证和修复函数
PLAN_OR_REQUIREMENTS: docs/plans/deployment-plan.md 的 Task 2
BASE_SHA: a7981ec
HEAD_SHA: 3df7661
DESCRIPTION: 添加 verifyIndex() 和 repairIndex(),含 4 种问题类型
[子智能体返回]:
优点:架构清晰、有真实测试
问题:
Important:缺少进度指示
Minor:报告间隔的魔法数字 (100)
评估:可以继续
你:[修复进度指示]
[继续 Task 3]
Subagent-Driven Development:
Executing Plans:
临时开发:
绝不:
若审查者错误:
模板见:skills/requesting-code-review/references/code-reviewer.md