Rob

All projects · GitHub · 한국어

stop-the-train

Put a gate before every stage of agent work, write the bar before the work, and let each gate say Hold or Kill as readily as Go.

npx skills add robfold/stop-the-train

English · 한국어

Put a gate before every stage of agent work, and let each gate say Hold or Kill as readily as Go. This skill is for agent work that runs through several stages before something leaves the machine, the kind where review points turn into stations the work rolls through on its way to a send, a publish, or a deploy.

  • The bar comes before the work. Every gate's deliverables, criteria, and judge are written on a card before the stage it judges starts. A changed card is a new version, and the gate runs again.
  • The doer does not judge. The agent that did a stage does not decide its gate, and whoever gave the first Go does not decide continuation alone.
  • Three kinds of judge. Required fields and checks against a source record are machine gates the agent may pass itself. A person decides every outward step (send, publish, share, grant, pay, delete, deploy) under their own identity.
  • Every gate is broken once. Before real work goes through, each machine gate is fed a planted defect and has to stop it. A gate that lets it through is dead.
  • Things, not status. A stage ends by handing over files, outputs, and record links. "Done", "90 percent", and a tool's success line do not pass a gate.
  • Four decisions, one log. Go, Go with conditions, Hold (what it waits for, from whom, when it is checked again), or Kill (why), each appended as one row. The stage moves only through that row.
  • Stop the line. When a gate says Hold or Kill, nothing behind it moves, and nobody routes around it.

Shape

size the line: none / lite / full
→ gate cards first: deliverables, must-meet, should-meet, judge
→ judges: fields / machine / human (human before every outward step)
→ break each gate once: a planted defect must stop
→ run the stage: hand over things, not status
→ decide: Go / Go with conditions / Hold / Kill, one row in the log
→ stop the line, close, and measure what the line cost and changed
Reference Settles
gate-card.md Where gates stand, what a card holds, must-meet and should-meet, criteria a machine can check, versions, sizing
gatekeepers.md The three kinds of gate, who may judge, human gates, breaking each gate once
decisions.md The two questions, the four outcomes, the transition log, traps at the gate, Kill, stopping the line, measuring
sources.md Which rules came from something that happened, which were set in advance, and the sections read

check_line.py checks a line's gate cards and its append-only decision log, using only the Python standard library:

python3 skills/stop-the-train/scripts/check_line.py \
  skills/stop-the-train/assets/line.example.json \
  skills/stop-the-train/assets/transitions.example.jsonl

The Korean text of the skill is in SKILL.ko.md and sources.ko.md. The agent loads only the English SKILL.md.

Install

Claude Code:

/plugin marketplace add robfold/stop-the-train
/plugin install stop-the-train@stop-the-train

Other agents, with the skills CLI:

npx skills add robfold/stop-the-train

Or copy skills/stop-the-train/ into your agent's skills folder (for Claude Code, ~/.claude/skills/).

Use

Tell your agent "add gates to this", "stage-gate this", or "go/kill before it ships", or call it directly:

$stop-the-train Every Monday an agent drafts the customer newsletter from last week's changelog and sends it. Put gates on it before the next run.

The skill:

  1. Lists the stages up to the last outward step and picks the size of the line.
  2. Writes a gate card for every gate before the stage it judges starts.
  3. Names a judge for each gate, with a person before every outward step.
  4. Feeds each machine gate a planted defect and shows that it stops.
  5. Runs each stage and hands over the deliverables on the card.
  6. Records Go, Go with conditions, Hold, or Kill as one row per decision, and runs the checker.
  7. Stops the line on Hold or Kill, and closes with what the line cost, what it changed, and one change for next time.

A Go never adds authority: sends, publishes, and deploys still need whatever the active permission rules require.

Sources

The rules come from running agent work through review steps (purchase requests, generated documents, skill releases, installs), checked against four sources:

  • Jeffrey B. Schmidt, "Gate Decisions: The Key to Managing Risk During New Product Development", in The PDMA Handbook of New Product Development
  • Robert G. Cooper, "New Products: What Separates the Winners from the Losers and What Drives Success", in The PDMA Handbook of Innovation and New Product Development
  • Jez Humble and David Farley, Continuous Delivery
  • Johanna Rothman, Manage Your Project Portfolio

sources.md lists the sections read, which rules came from something that happened, and which were set in advance. Stage-Gate® is a registered trademark of R.G. Cooper & Associates and Stage-Gate International; this project is not affiliated with them.

License

MIT

Get the next fix when it ships.

I email you when a new skill is ready. Unsubscribe any time.