agentleFS
HarambeeAIHarambeeAI/bayes-ship/skills/two-stage-review/SKILL.md

two-stage-review

Skill1 starsChanged 7 months agoMITView on GitHub

Two-stage code review protocol. Stage 1: spec compliance (does code match spec?). Stage 2: code quality (is code well-written?). Stage 2 only runs after Stage 1 passes. Use after every implementation task in the Bayes Ship pipeline.

1 other project uses 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. About 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If spec compliance fails: re-dispatch to implementer with specific feedback listing what's missing or what's extra.

    line 21
  2. Distinctive:

    Only runs AFTER Stage 1 passes.

    line 25
  3. Distinctive:

    Test quality (are the tests actually testing meaningful behavior?)

    line 31
  4. Distinctive:

    Warning: Should fix. Fix in current cycle.

    line 37
  5. Distinctive:

    Never skip either stage

    line 42
  6. Distinctive:

    Never combine stages into one review

    line 43
  7. Distinctive:

    Never let the implementer review their own work (use a separate subagent)

    line 44

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

Two-Stage Review

Why two stages

Reviewing code quality on an implementation that doesn't match the spec is wasted effort. The spec compliance check gates the quality check.

Stage 1: Spec compliance review

The reviewer is SKEPTICAL. It does NOT trust the implementer's self-report.

Check:

  • Does the implementation match the spec exactly?
  • Are there MISSING requirements from the spec?
  • Is there OVER-BUILDING (code that does more than the spec requires)?
  • YAGNI violations? Features not in the spec?

If spec compliance fails: re-dispatch to implementer with specific feedback listing what's missing or what's extra. Do NOT proceed to Stage 2.

Stage 2: Code quality review

Only runs AFTER Stage 1 passes.

Check:

  • Code style and conventions (against coding-standards skill if installed)
  • Potential bugs or edge cases
  • Security issues (against security skill if applicable)
  • Test quality (are the tests actually testing meaningful behavior?)
  • Naming clarity and code readability
  • Unnecessary complexity

Report by severity:

  • Critical: Blocks progress. Must fix before commit.
  • Warning: Should fix. Fix in current cycle.
  • Note: Optional improvement. Log for later.

Rules

  • Never skip either stage
  • Never combine stages into one review
  • Never let the implementer review their own work (use a separate subagent)
  • Reviewers read actual code and git diffs, not the implementer's description

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.