agentleFS
Ryan-M-FrankRyan-M-Frank/volley/skills/review-code/SKILL.md

review-code

Skill2 starsChanged 5 months agoApache-2.0View on GitHub

Use after Codex has implemented a plan. Claude reviews the diff (defaults to uncommitted changes; accepts a git revision range as argument), checks it against PLAN.md and acceptance criteria, and writes a verdict to .volley/CODE-REVIEW.md. Inline review - does not call Codex.

69 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use audit-test-suite, change-data-safely 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.
  • yaohuangguanSkill

    audit-test-suite

    Find where an existing test suite is weak and decide what to test next, ranked by risk. Use this when asked to add missing tests, find gaps, raise coverage, assess test quality or see which areas are thin, even if the request only mentions a coverage percentage.

    Also in 3 projects that use this

  • yaohuangguanSkill

    change-data-safely

    Change a database schema or stored data without breaking running code or losing data. Use this for any migration, new or changed column, backfill, bulk update, delete, index, or change to a stored format, including in small projects. Data mistakes are often impossible to undo.

    Also in 3 projects that use this

  • mrdulasolutionsSkill

    clear-caches

    Clear extension caches, analysis data, and drafts from the database. Use when testing sender lookups, analysis, or draft generation from a clean state.

    Also in 3 projects that use this

  • GeiserXSkill

    docs-loop

    Use when the user asks to audit docs, check documentation for stale claims, or verify docs against the code.

    Also in 3 projects that use this

  • mrdulasolutionsSkill

    electron-devtools-testing

    Test the Electron app interactively using Chrome DevTools Protocol. Use when the user asks to test, verify, or interact with the running app via browser automation.

    Also in 3 projects that use this

  • GeiserXSkill

    full-loop

    Drive a repository to done with sergio-loop, then keep improving it with refine-loop at a descending theta. Use only when the user explicitly invokes full-loop.

    Also in 3 projects that use this

  • +1 more from mrdulasolutions
  • +4 more from GeiserX
  • +1 more from yaohuangguan

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 58 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If user passed a range argument (e.g.

    line 21
  2. Distinctive:

    If diff is empty, tell user "No changes to review.

    line 26
  3. Distinctive:

    Read the diff into context: Use Bash to capture the diff and Read tools as needed for full context on changed files.

    line 30
  4. Very specific:

    Only close the issue when all tasks are ticked AND the verdict is SHIP AND NN-MM-SUMMARY.md exists.

    line 80

“Common” is measured: kept by at least 6 in 10 of the 58 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

/volley:review-code

Claude reads what Codex built and judges it.

Steps for Claude

  1. Verify .volley/ is initialized and the lock allows Claude to act.
    [ -d .volley ] || { echo "ERROR: .volley/ not found. Run /volley:setup first." >&2; exit 1; }
    [ -f .volley/STATE ] || { echo "ERROR: .volley/STATE not found. Run /volley:setup first." >&2; exit 1; }
    . "${CLAUDE_PLUGIN_ROOT}/scripts/lib.sh"
    volley_state_assert_active .volley/STATE claude || exit 1
  2. Resolve the diff to review.
    • If user passed a range argument (e.g. HEAD~3..HEAD), use that.
    • Otherwise, default to uncommitted changes:
      git diff HEAD
    • If diff is empty, tell user "No changes to review. Did Codex finish?" and stop.
  3. Locate the plan and HANDOFF. Same logic as /volley:review-plan for finding the latest PLAN.md. Read the plan and .volley/HANDOFF.md content.
  4. Read the diff into context. Use Bash to capture the diff and Read tools as needed for full context on changed files.
  5. Review with these prompts in mind:
    • Does each change implement a specific PLAN task or acceptance criterion? (Cite which.)
    • Are there changes that go beyond the plan's scope?
    • Are there gaps - acceptance criteria not addressed?
    • Are the tests covering the new code?
    • Any obvious correctness, safety, or style issues for this codebase?
  6. Write .volley/CODE-REVIEW.md with this structure:

    # Claude Code Review
    
    **Diff range:** <range used>
    **Reviewed:** <ISO timestamp>
    **Plan:** <plan path>
    
    ## Verdict
    SHIP | FIX | DISCUSS
    
    ## Coverage of acceptance criteria
    - Criterion 1: ✓ addressed in <file:line>
    - Criterion 2: ✗ not addressed
    - ...
    
    ## Coverage of plan tasks
    - Task N: ✓
    - Task M: partial (missing X)
    
    ## Issues found
    - (file:line — description)
    
    ## Out-of-plan changes
    - (file:line — what was changed beyond the plan, with judgement)
    
    ## Suggested next moves
    - (concrete actions)
  7. Surface the review inline.
  8. Reconcile the GitHub issue (only if this repo uses the issue-tracking rule). This step is conditional - skip entirely if the repo's CLAUDE.md does not define the "GitHub Issue Tracking Rule" or no matching issue exists.
    • Find the plan's issue: gh issue list --state open --search "[NN-MM] in:title" (derive NN-MM from the plan filename). If none, skip silently.
    • Cross-reference Codex's task log for what actually got built:
      cat .volley/IMPLEMENTATION-LOG.md
    • For each task marked ✓ in the Coverage of plan tasks table above (i.e. verified by this review, not merely logged by Codex), tick its checkbox in the issue body. Use gh issue edit <n> --body-file with the updated body, or the GraphQL updateIssue mutation. Do not tick tasks marked partial or ✗.
    • Only close the issue when all tasks are ticked AND the verdict is SHIP AND NN-MM-SUMMARY.md exists. Prefer letting the PR close it via Closes #N; if committing directly, gh issue close <n> with a comment linking the commit.
    • On FIX/DISCUSS: tick only the verified tasks, leave the issue open, and add a brief comment noting what remains.
  9. Print the next-step block.
    • If SHIP: volley_next_step "git commit + open PR" "Code looks good. Commit (your existing flow) and open the PR."
    • If FIX: volley_next_step_options "Option A|/volley:implement|Hand back to Codex for fixes" "Option B|edit code yourself|Quick edits Claude can make directly"
    • If DISCUSS: volley_next_step_done "Open issues to talk through with the user before the next move."

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.