agentleFS
WenaixiWenaixi/dsh-superpower/skills/requesting-code-review/SKILL.md

requesting-code-review

Skill19 starsChanged 59 days agoMITView on GitHub

Superpower Skill:在任务完成、重大功能实现或准备合并到主分支时发起,用于校验实现是否符合需求与质量标准,建议定期执行。

155 other projects use a version of this, 102 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use workflow-runner, chinese-git-workflow and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MorningStar0709Skill

    workflow-runner

    Run an agency-orchestrator style YAML workflow inside the current Trae conversation by simulating or coordinating multiple roles. Use when the user provides a `.yaml` or `.yml` workflow, asks for multi-role collaboration, says things like “用多个角色一起评审这个 PRD”“多角色协作”“先生成工作流再执行”“让产品经理、架构师、QA 一起看一下”, or wants roles such as product manager, architect, reviewer, or QA to work together. Supports layered execution, role prompting, variable interpolation, document-backed inputs, and parallel steps only when the current environment has a clear subagent mapping. Do not use for ordinary implementation plans, simple code changes, or tasks already covered by `writing-plans`, `executing-plans`, `subagent-driven-development`, or single-purpose review/debug skills.

    Also in 5 projects that use this

  • MorningStar0709Skill

    chinese-git-workflow

    Configure Git for domestic platforms and manage branching strategies suitable for Chinese teams. Use when the user asks to configure remotes, set up SSH, or manage Git workflows for Gitee, Coding, Jihu GitLab, or CNB, including requests like "配置国内 Git", "设置 Gitee 远程仓库", "推荐适合小团队的 Git 流程".

    Also in 4 projects that use this

  • kevinnftSkill

    touchdesigner-mcp

    Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.

    Also in 7 projects that use this

  • aivrarSkill

    sdlc-review

    Review Kanban handoffs and route verified outcomes.

    Also in 5 projects that use this

  • braxtonROSE4Skill

    songwriting-and-ai-music

    Songwriting craft, AI music generation prompts (Suno focus), parody/adaptation techniques, phonetic tricks, and lessons learned. These are tools and ideas, not rules. Break any of them when the art calls for it.

    Also in 11 projects that use this

  • braxtonROSE4Skill

    heartmula

    Set up and run HeartMuLa, the open-source music generation model family (Suno-like). Generates full songs from lyrics + tags with multilingual support.

    Also in 7 projects that use this

  • +3 more from braxtonROSE4

The file

Files
SKILL.md

请求代码评审

派发一个代码评审 subagent,在问题级联扩散前发现它们。reviewer 获得为评估而精确构造的上下文——绝不使用你的会话历史。

核心原则: 尽早评审,频繁评审。

何时请求评审

必做:

  • subagent 驱动开发中,完成每个任务后
  • 完成重大功能后
  • 合并到主分支前

可选但很有价值:

  • 遇到卡点时(换个视角)
  • 重构前(建立基线检查)
  • 修复复杂缺陷后

如何发起请求

1. 获取 git SHA:

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

2. 派发代码评审 subagent:

派发一个 general-purpose subagent,并按 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 | awk '{print $1}')
HEAD_SHA=$(git rev-parse HEAD)

[派发代码评审 subagent]
  DESCRIPTION: Added verifyIndex() and repairIndex() with 4 issue types
  PLAN_OR_REQUIREMENTS: Task 2 from docs/superpowers/plans/deployment-plan.md
  BASE_SHA: a7981ec
  HEAD_SHA: 3df7661

[subagent 返回]:
  Strengths: Clean architecture, real tests
  Issues:
    Important: Missing progress indicators
    Minor: Magic number (100) for reporting interval
  Assessment: Ready to proceed

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

常见借口与现实

借口现实
“我自己看一下 diff 就行,没必要再派评审”你是协调者——在行内直接看 diff 会消耗你本该用于推进工作的上下文窗口。派发评审 subagent:diff 与评估都在它的上下文中完成,回传给你的只有结论。
“reviewer 需要我的完整会话历史才能看懂改动”只给它为评估而精确构造的上下文,绝不给完整会话历史。这样 reviewer 关注的是工作产物本身,而非你的思考过程。

红线

切勿:

  • 因为“很简单”就跳过评审
  • 忽略 Critical 级别问题
  • 带着未修复的 Important 级别问题继续推进
  • 与正确的技术反馈争辩

若评审有误:

  • 用技术理由反驳
  • 用代码/测试证明其可行
  • 请求进一步澄清

模板见:code-reviewer.md

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.