agentleFS
strigovstrigov/superpowers-strigov-ver/skills/requesting-code-review/SKILL.md

requesting-code-review

Skill9 starsChanged 30 days agoMITView on GitHub

Use when completing tasks, implementing major features, or before merging to verify work meets requirements

188 other projects use a version of this, 141 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use chinese-git-workflow, chinese-code-review and 10 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.
  • Leodorareluctant259Skill

    chinese-git-workflow

    适配国内 Git 平台和团队习惯的工作流规范——Gitee、Coding、极狐 GitLab 全覆盖

    Also in 9 projects that use this

  • Leodorareluctant259Skill

    chinese-code-review

    中文代码审查规范——在保持专业严谨的同时,用符合国内团队文化的方式给出有效反馈

    Also in 8 projects that use this

  • obraSkill

    diagnosing-superpowers

    Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.

    Also in 22 projects that use this

  • math-incSkill

    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 9 projects that use this

  • Tommy-ywSkill

    webhook-subscriptions

    Create and manage webhook subscriptions for event-driven agent activation, or for direct push notifications (zero LLM cost). Use when the user wants external services to trigger agent runs OR push notifications to chats.

    Also in 5 projects that use this

  • math-incSkill

    findmy

    Track Apple devices and AirTags via FindMy.app on macOS using AppleScript and screen capture.

    Also in 15 projects that use this

  • +3 more from Leodorareluctant259
  • +2 more from math-inc

The file

We split this skill into the rules it gives an agent

10 rules. 6 are common, 1 is distinctive, and 3 are very specific to this project.

  • 6

    Common

    Most of the 175 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Common:

    After each task in subagent-driven development

    line 18
  2. Common:

    After completing major feature

    line 19
  3. Common:

    Before merge to main

    line 20
  4. Common:

    When stuck (fresh perspective)

    line 23
  5. Common:

    Before refactoring (baseline check)

    line 24
  6. Common:

    After fixing complex bug

    line 25
  7. Very specific:

    Never HEAD~1 as BASE for multi-commit work — it silently drops all but the last commit of a multi-commit task.

    line 35
  8. Very specific:

    Read the template at ./code-reviewer.md, fill the placeholders, then dispatch:

    line 50
  9. Distinctive:

    When Opus returns a clean verdict (no Critical/Important issues), dispatch a Codex Astra high control review for an orthogonal second …

    line 80
  10. Very specific:

    Keep "Base commit" = {BASE_SHA}.

    line 91

“Common” is measured: kept by at least 6 in 10 of the 175 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Requesting Code Review

Manual-only pipeline skill (superpowers-strigov-ver). It starts only from the user (/dev, /superpowers-strigov-ver:<skill>), from another skill of this plugin, or when resuming an in-progress plan — never on your own initiative. The Skill tool refuses it by design, so this plugin's pipeline skills are loaded with Read, never through the Skill tool. This file: ${CLAUDE_SKILL_DIR}/SKILL.md (if the variable shows unexpanded, it is the path you just read). Another skill named below (writing-plans, codex-invocation, zcode-invocation, dev-orchestrator, …) is ../<name>/SKILL.md relative to this skill's directory — Read it there. After a context compaction, re-Read this file before your next step.

Dispatch an Opus subagent to review code changes. 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. Code review is judgment work — always run it on Opus.

When to Request Review

Mandatory:

  • After each task in subagent-driven development
  • After completing major feature
  • Before merge to main

Optional but valuable:

  • When stuck (fresh perspective)
  • Before refactoring (baseline check)
  • After fixing complex bug

How to Request

1. Get git SHAs:

BASE_SHA=<the SHA you recorded before the task started>  # or: $(git merge-base origin/main HEAD)
HEAD_SHA=$(git rev-parse HEAD)

Never HEAD~1 as BASE for multi-commit work — it silently drops all but the last commit of a multi-commit task. If you did not record the task's starting SHA, use the merge-base with the mainline, not a fixed number of parents.

Optionally, pre-build a review package so the reviewer reads one file instead of re-running git. First Read ../codex-invocation/SKILL.md (manual-only — never through the Skill tool), then resolve the script as described there:

PKG="$(command -v review-package || true)"
[ -z "$PKG" ] && PKG="$(ls -1d ~/.claude/plugins/cache/strigov-cc-plugins/superpowers-strigov-ver/*/bin/review-package 2>/dev/null | sort -rV | head -1)"
[ -z "$PKG" ] && PKG="$(pwd)/bin/review-package"
"$PKG" "$BASE_SHA" "$HEAD_SHA"   # prints: wrote <path>: N commit(s), M bytes

Pass the printed path as {DIFF_FILE}. Only the wrote ... line enters your context — never read the package yourself.

2. Dispatch Opus subagent:

Read the template at ./code-reviewer.md, fill the placeholders, then dispatch:

Agent(
  subagent_type="general-purpose",
  model="opus",
  effort="high",
  description="Code review: <short scope>",
  prompt=<filled template>
)

Placeholders:

  • {WHAT_WAS_IMPLEMENTED} - What you just built
  • {PLAN_OR_REQUIREMENTS} - What it should do
  • {BASE_SHA} - Starting commit
  • {HEAD_SHA} - Ending commit
  • {DIFF_FILE} - Review package path printed by review-package (optional; fill with none if you didn't build one — the reviewer then fetches the diff itself)
  • {DESCRIPTION} - Brief summary

The subagent has no session context — the filled template is all it sees.

3. Act on Opus feedback:

  • Fix Critical issues immediately
  • Fix Important issues before proceeding
  • Note Minor issues for later
  • Push back if reviewer is wrong (with reasoning)

4. Fused review: Codex Astra high control review

When Opus returns a clean verdict (no Critical/Important issues), dispatch a Codex Astra high control review for an orthogonal second opinion — the same fused-review pattern dev-orchestrator uses in Step 4.

Skip Codex control review only when:

  • Trivial diff (single typo, <5 lines, no logic change).
  • Already running under dev-orchestrator (it runs Step 4.2 automatically — don't double up).

Dispatch:

Reuse the template at ../dev-orchestrator/codex-control-review-prompt.md. Adapt the "Phase context" block for standalone use:

  • Replace "Plan file" with {PLAN_OR_REQUIREMENTS} content (paste it verbatim, not a path).
  • Drop "Current phase id".
  • Keep "Base commit" = {BASE_SHA}. Fill "Review package" with the review-package path ({DIFF_FILE}); if you built none (DIFF_FILE: none), keep the template's fallback in place — the reviewer fetches the diff itself with git diff --stat <base-sha> / git diff -U10 <base-sha>.
  • Fill [GLOBAL_CONSTRAINTS] with the project-wide constraints stated in {PLAN_OR_REQUIREMENTS}, or literally None declared if there are none.
  • Fill "Implementer report:" with none — standalone review and "Verify additionally" with none.
  • Ledger references (AUTHORIZED_CHANGE_LEDGER, docs/plans/<slug>.ledger.json): no ledger exists in standalone use — delete those sentences from the filled prompt.
  • The template's Profile paragraph: the role here is adhoc-review, not control-review — "$AD" route adhoc-review (always: this skill runs no route --all, so no routes: default skip) and --role adhoc-review on "$AD" task; the rest of that paragraph applies.

Invocation is read-only (--model gpt-6-astra --effort high, no --write). The reviewer is the profile of the adhoc-review role ("$AD" route adhoc-review, per ../agent-invocation/SKILL.md); by default Astra, the same command. Another profile is dispatched by its harness= as that skill's step 3 says (zcode via $ZDISPATCH, no model flags; a core harness via "$AD" task --profile <p> --role adhoc-review, no --write), with its reviewer preamble on zcode and core harnesses; a route line with readOnly=none puts the job inside that skill's "No-edit check". Poll via Monitor per ../codex-invocation/SKILL.md (Read it; manual-only skill; core ids per ../agent-invocation/SKILL.md).

Combined verdict handling (same loop as dev-orchestrator Step 4, cap=4):

  • Both clean → proceed to implementation order.
  • Either has BLOCKING → collect combined list (Opus + Codex BLOCKING), fix, then re-dispatch both reviewers in a fresh round. Codex rounds 2+ are FRESH tasks using the template's own follow-up section — no --resume-task (matches the template's round-2+ rule; adapt its ledger references away as above).
  • Round 4 without both-clean → escalate: combined list + one-sentence impasse summary. User picks accept / another round / close.

Anti-pingpong: don't let either reviewer re-raise an item the other side explicitly rejected with reasoning. No-progress: if two consecutive rounds produce identical combined BLOCKING — escalate.

Example

[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 Opus subagent via Agent(subagent_type="general-purpose", model="opus", effort="high", ...)]
  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
  DIFF_FILE: none
  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]

Integration with Workflows

Subagent-Driven Development:

  • Review after EACH task
  • Catch issues before they compound
  • Fix before moving to next task

Executing Plans:

  • Review after each batch (3 tasks)
  • Get feedback, apply, continue

Ad-Hoc Development:

  • Review before merge
  • Review when stuck

Red Flags

Never:

  • Skip review because "it's simple"
  • Ignore Critical issues
  • Proceed with unfixed Important issues
  • Argue with valid technical feedback

If reviewer wrong:

  • Push back with technical reasoning
  • Show code/tests that prove it works
  • Request clarification

See template at: ./code-reviewer.md (same directory as this SKILL.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.