agentleFS
abipalliabipalli/agent-skills/skills/stage-review/SKILL.md

stage-review

Skill1 starsChanged 19 days agoApache-2.0View on GitHub

Pipeline stage 4: parallel review lanes plus a validator, giving one verdict and severity counts. Loaded by a pipeline conductor such as feature-pipeline.

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write the lane's diff to a file:

    line 18
  2. Very specific:

    Run the lanes in parallel.

    line 34
  3. Very specific:

    After all the lanes return, dispatch one more reviewer with every lane's findings.

    line 60
  4. Very specific:

    check each finding against the code at head_sha, marking it confirmed, plausible or rejected (with a reason).

    line 64
  5. Very specific:

    keep severity honest. critical means data loss, a security hole or a broken build.

    line 66
  6. Very specific:

    check the build record's coverage: each acceptance criterion's test exists and tests that criterion.

    line 68
  7. Distinctive:

    Remove the review worktree when the stage ends.

    line 92

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

stage-review

Reviewers are read-only. When the runtime offers a choice, run the reviewers on a different model family than the builders, because the same family tends to miss its own mistakes. For example, if Claude built it, run the lanes through Codex or Cursor on an OpenAI or Gemini model, and run the validator on the opus tier of the family the lanes did not use. Record the result as the review stage record.

1. Snapshot

Write the lane's diff to a file:

git -C <worktree> diff <base>...HEAD > <lanes_dir>/<run_id>-review.diff

Then create a detached review worktree at the lane head:

git -C <checkout> worktree add --detach <lanes_dir>/<run_id>-review <head_sha>

Reviewers read only there, never in a builder's worktree.

2. Lanes

Run the lanes in parallel. Each reviewer gets:

  • the diff path;
  • the review worktree path;
  • the base and head SHAs;
  • the scope brief;
  • the lane's instruction.
LaneInstruction
deepRun the deep-code-review skill on this diff. Also judge whether it solves the brief.
ponytailRun the ponytail-review skill: what in this diff need not exist? Skip this lane if the skill isn't installed, and say so.
conventionsCheck code quality and repo conventions: read the repo's CLAUDE.md, AGENTS.md or CONTRIBUTING and the nearby code, and flag drift. Read every new comment and name next to its neighbours: a comment that repeats a variable's value, restates the code, argues for the change or breaks the file's comment style, or a name that differs from its siblings, is medium. For a Rust diff, also run rust-review.

Each lane returns its findings as JSON:

[{"id": "", "lane": "", "severity": "critical|high|medium|low", "file": "", "line": 0,
  "claim": "", "evidence": "", "fix": ""}]

A lane that errors, or returns nothing parseable, is recorded as {"lane": "...", "status": "failed"}. It still counts in the verdict.

3. Validator

After all the lanes return, dispatch one more reviewer with every lane's findings. It must:

  • merge duplicates across lanes;
  • check each finding against the code at head_sha, marking it confirmed, plausible or rejected (with a reason);
  • keep severity honest. critical means data loss, a security hole or a broken build; high means a real defect or a violation of the brief;
  • check the build record's coverage: each acceptance criterion's test exists and tests that criterion. A missing or hollow one is a high finding. Do the same for each review_focus entry.

Record every surviving finding with $FP note RUN_ID reviewer "<severity> <file:line> <claim>".

Verdict and counts

Count the confirmed and plausible findings before anything is fixed, and never rewrite a round's counts afterwards:

$FP step RUN_ID review review.round '{"review": {"rounds": n, "critical": C, "high": H, "open_medium": M}}'
  • clean: C = H = M = 0 and no lane failed. A medium that an earlier round answered with a deferral reason doesn't count again.
  • changes_requested: anything else that ran. The conductor sends the findings to the builders. Each builder answers every finding with $FP note RUN_ID builder "<fixed|deferred: reason> <finding>", then the next round reviews the new diff.
  • failed: the validator failed, or two or more lanes failed.

Remove the review worktree when the stage ends.

Record

{"review": {"status": "ok", "verdict": "clean", "summary": "", "reasoning": "",
  "rounds": 1, "critical": 0, "high": 0, "open_medium": 0,
  "head_sha": "",
  "lanes": [{"lane": "deep", "status": "ok|failed", "finding_count": 0}],
  "findings": [{"id": "", "lanes": [], "severity": "", "validation": "", "file": "", "line": 0, "claim": "", "fix": ""}],
  "next": "approve"}}

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.