jnmetacode avatar

Requesting Code Review

This is a structured workflow for spinning up reviewer subagents to catch issues before they compound. You get your current commit SHA, dispatch a fresh agent with the code-reviewer.md template, and they evaluate your work without seeing your conversation history. The skill pushes you to review after every task in subagent-driven development, before merges, and when stuck. It includes a severity system: fix Critical immediately, handle Important before moving on, backlog Minor. The hardline rule is don't skip reviews because something feels simple, and don't carry forward unfixed Important issues. Essentially turns code review from an occasional gate into a continuous feedback mechanism that keeps context clean and catches problems early.

skills.sh installs
1K
GitHub stars
8.5K
last updated
Aug 21, 2026

Install

$ npx -y skills add jnmetacode/superpowers-zh --skill requesting-code-review --agent claude-code

Installs into .claude/skills of the current project.

Files

请求代码审查

派遣代码审查子代理,在问题扩散之前发现它们。审查者获得的是精心组织的评估上下文——绝不是你的会话历史。

核心原则: 早审查,勤审查。

何时请求审查

必须审查:

  • 子代理驱动开发中每个任务完成后
  • 完成重要功能后
  • 合并到 main 之前

可选但有价值:

  • 卡住时(换个视角)
  • 重构之前(建立基线)
  • 修复复杂 bug 之后

如何请求

1. 获取 git SHA:

BASE_SHA=$(git rev-parse HEAD~1)  # 或:git merge-base origin/main HEAD
HEAD_SHA=$(git rev-parse HEAD)

2. 派遣代码审查子代理:

使用 Task 工具,指定 general-purpose 类型,填写 code-reviewer.md 中的模板

占位符说明:

  • {DESCRIPTION} - 你刚完成的内容简要说明
  • {PLAN_OR_REQUIREMENTS} - 预期功能
  • {BASE_SHA} - 起始提交
  • {HEAD_SHA} - 结束提交

3. 处理反馈:

  • Critical 问题立即修复
  • Important 问题在继续之前修复
  • Minor 问题记录下来稍后处理
  • 如果审查者有误,用技术理由反驳

示例

[刚完成任务 2:添加验证功能]

你:让我在继续之前请求代码审查。

BASE_SHA=$(git log --oneline | grep "Task 1" | head -1 | cut -d' ' -f1)
HEAD_SHA=$(git rev-parse HEAD)

[派遣代码审查子代理]
  DESCRIPTION: 添加了 verifyIndex() 和 repairIndex(),支持 4 种问题类型
  PLAN_OR_REQUIREMENTS: docs/superpowers/plans/deployment-plan.md 中的任务 2
  BASE_SHA: a7981ec
  HEAD_SHA: 3df7661

[子代理返回]:
  优点:架构清晰,测试真实
  问题:
    Important:缺少进度指示器
    Minor:报告间隔使用了魔法数字 (100)
  评估:可以继续

你:[修复进度指示器]
[继续任务 3]

常见的合理化借口

Sponsors

Details

Repository
github.com/jnmetacode/superpowers-zh
Categories
Git & Pull Requests, Code Review & Quality
First seen
Jun 3, 2026

More from jnmetacode/superpowers-zh

All 20
1jnmetacode avatarfinishing-a-development-branchjnmetacode/superpowers-zh当实现完成、所有测试通过、需要决定如何集成工作时使用——通过提供合并、PR 或清理等结构化选项来引导开发工作的收尾993skills.sh installs
2jnmetacode avatarusing-git-worktreesjnmetacode/superpowers-zh当需要开始与当前工作区隔离的功能开发,或在执行实现计划之前使用——通过原生工具或 git worktree 回退机制确保隔离工作区存在987skills.sh installs
3github avatarpython-pypi-package-buildergithub/awesome-copilotEnd-to-end skill for building, testing, linting, versioning, and publishing a production-grade Python library to PyPI. Covers all four build backends (setuptool950skills.sh installs
4mindrally avatargit-workflowmindrally/skillsGit conventions and workflow guidelines using Conventional Commits, branching strategies, and best practices for version control850skills.sh installs
5code-yeongyu avatarpre-publish-reviewcode-yeongyu/oh-my-openagentNuclear-grade 16-agent pre-publish release gate. Runs /get-unpublished-changes to detect all changes since last npm release, spawns up to 10 ultrabrain agents f771skills.sh installs
6lingfengqaq avatarwebnovel-reviewlingfengqaq/webnovel-writer使用审查 Agent 评估章节质量,生成报告并写回审查指标。766skills.sh installs