agentleFS
supportersimulatorsupportersimulator/3-surgeons/skills/pre-implementation-review/SKILL.md

pre-implementation-review

Skill2 starsChanged 9 months agoMITView on GitHub

HARD-GATE — adversarial review of implementation plans by all 3 surgeons before coding begins

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, 5 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    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. Distinctive:

    Do NOT start implementation until this review passes.

    line 20
  2. Very specific:

    After writing-plans skill produces an implementation plan

    line 26
  3. Very specific:

    Before executing-plans skill begins work

    line 27
  4. Distinctive:

    Before any multi-file implementation begins

    line 28
  5. Distinctive:

    When a design doc exists and coding is about to start

    line 29
  6. Distinctive:

    Every pre-implementation review must produce a rollback strategy:

    line 67
  7. Distinctive:

    If the rollback strategy reveals the change is hard to reverse, this is a signal to increase scrutiny (potentially escalating to Full mode …

    line 79

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Pre-Implementation Review

Purpose

The gap between "good plan" and "good implementation" is where most bugs are born. This gate ensures the plan survives adversarial scrutiny BEFORE any code is written.

<HARD-GATE> Do NOT start implementation until this review passes. This fires at the writing-plans to executing-plans transition. </HARD-GATE>

Auto-Invocation Trigger

Invoke when transitioning from planning to implementation — specifically:

  • After writing-plans skill produces an implementation plan
  • Before executing-plans skill begins work
  • Before any multi-file implementation begins
  • When a design doc exists and coding is about to start

Checklist

You MUST create a TodoWrite task for each step:

  1. Sentinel scan on the implementation plan — run sentinel with the plan description as content. This catches complexity risks the planning phase may have introduced.
  2. Cross-exam the plan with all 3 surgeons — focus question: "What will break when we implement this?" Not "is this a good idea?" (that was architectural-gate's job) but "what will go wrong during execution?"
  3. Counter-position: argue why this plan will FAIL — invoke the counter-position skill. The claim is "this implementation plan will succeed." Steelman why it will not.
  4. Verify gains-gate passes — infrastructure must be healthy before starting. Do not build on broken foundations.
  5. Create explicit rollback strategy — before writing code, document how to undo the changes if they go wrong. This forces thinking about reversibility.
  6. Present review results — summarize findings from steps 1-5. Proceed only with approval. If surgeons raised critical concerns, those must be addressed in the plan before implementation begins.

What the Cross-Exam Should Focus On

The cross-exam question for pre-implementation is specifically:

We are about to implement the following plan:
[plan summary]

Focus your analysis on:
1. What will break during implementation?
2. What dependencies or ordering constraints are missing?
3. What edge cases does the plan not address?
4. Are there simpler approaches the plan overlooked?
5. What tests should exist BEFORE implementation starts?

This is different from architectural-gate's cross-exam (which focuses on "is this the right approach?"). Pre-implementation focuses on "will this execution succeed?"

Rollback Strategy Template

Every pre-implementation review must produce a rollback strategy:

## Rollback Strategy
- Files that will change: [list]
- Git state before: [commit hash or branch]
- Rollback command: git checkout [hash] -- [files]
- Data migrations: [reversible? how?]
- External state: [any API keys, configs, or services that change?]
- Estimated rollback time: [minutes]

If the rollback strategy reveals the change is hard to reverse, this is a signal to increase scrutiny (potentially escalating to Full mode in architectural-gate if not already there).

Integration

[architectural-gate] → [brainstorming] → [writing-plans] → [pre-implementation-review] → [executing-plans]

Pre-implementation-review is the last checkpoint before code changes begin. After this, the next gate is post-implementation-verification.

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.