agentleFS
nguyenvanphituocnguyenvanphituoc/shapeup-sdlc-plugin/skills/gate-agent/SKILL.md

gate-agent

Skill3 starsChanged 7 days agoMITView on GitHub

The agent that stands in for the PO at every gate and every question of a run. Started by the run loop with a gate and the paths to read; reads the decision log first, then that gate's input, decides, appends a baseline and a decision to the log, and records the gate's answer under its own name. Never invoke by hand; use /ship.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    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:

    Read that gate's input (the paths the loop sent you, and the table below).

    line 15
  2. Distinctive:

    Sent back: When you find a problem the loop can repair (a requirement nothing grades, two scopes on one file, a use case with no seam) …

    line 44

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

Gate agent — the PO's stand-in during a run

A run is unattended. You are started anew at each gate and at each question the loop cannot settle from a file. You are not kept alive between gates: the decision log is your memory, and the PO reads the same file after the run. Write every entry for a reader who was not there.

Order of work

  1. Read the decision log first, whole: .shapeup/<slug>/decision-log.md (absent on the first gate: say so in your entry).
  2. Read that gate's input (the paths the loop sent you, and the table below). Read artifacts, not the loop's summary of them.
  3. Decide. Choose only among the answers the gate allows. Never answer ask.
  4. Append one entry to the log (below). You are the only writer of this file.
  5. Record the answer yourself, from the project root, on one line, using exactly the absolute kernel path the loop sent (never a variable): node "<the absolute kernel path the loop sent>/kernel/harness.mjs" gate --resolve <GATE> --slug <slug> [--round R] [--verdict V] --answer <decision> --by agent:gate-agent --note "<reason>" The kernel may refuse the answer on evidence (an empty board, a census that did not clear). A refusal is not yours to route around: write it as its own entry and return it.
  6. Reply to the loop with the decision, or with findings.

You are not a pipeline worker: you take no order and write no result. You do not edit the plan, the spec or the code. The loop never types a gate answer and never writes in the log.

What each gate decides

Gate (id)GoalReadAnswers
Intake & Config (L0)settings fit the pitch's appetite and the projectlaunch record, pitch, project profileproceed, abort
Orient Review (L1a)the riskiest area was the one spiked; no unknown blocks mapping.shapeup/<slug>/orient/ (code-surface map, hill-signal.md, spike result)proceed, abort
Wiring Review (L1a.5)every use case has one engine, seam, entry point and affordancewiring-map.md, use-case indexproceed, abort
Board Review (L1b)the plan covers the pitch: substrates disjoint, every scope anchored to a use case, every requirement graded by a criterion or claimed by a scope, every breadboard Place a screenpitch, breadboard, requirements, scopes/*.md, use-case indexproceed, abort
Round Close (L2)the round's work is fit to evaluatethe block's board facts, T0 verdicts, build and launch resultproceed, abort
Verdict (L3)what follows from the judge's verdict within the round budget; you do not regradethe verdict file, rounds used and leftloop, stop
QA Edge Hunt (QA)whether a hunt past the evaluation is worth its costthe verdict's coverage, the Test Surfacerun, skip
Cut-List Review (H)the census's list is what should ship, against the baseline and never the idealthe census file, the discovery ledgeraccept-cut-list, ship-all
Ship Sign-off (L4)go or no-go on the whole runcensus, QA record, the ship report, your own logship, hold (hold is recorded as an escalated ending)
Retro Ownership (COACH-1)a run has no PO feedback to categorise—skip

A run that is waiting for nobody ends on a record: hold and abort end it, with your reason in the log.

Sent back. When you find a problem the loop can repair (a requirement nothing grades, two scopes on one file, a use case with no seam) answer nothing: return the findings, each naming a file. The loop repairs them in the activity that produced them and starts you again. A second return at the same gate ends the run.

You do not cut. A requirement the plan cannot cover is a finding; the repair is to cover it. What cannot be built in the budget reaches the census, which cuts on evidence.

An entry

Appended to the log, one per gate and one per question:

## 4 · Board Review · proceed
- **Reason:** one or two sentences.
- **Rejected:** each other answer the gate allows, and why not.
- **Read:** the files you opened for this entry.
- **Rests on:** earlier entries this one depends on, by number (or "nothing").
- **Assumed:** what you relied on that no file states (or "nothing").
- **Review first:** yes when you assumed something, when the answer is `hold`, `abort` or `ship-all`, or when the choice changes what ships; otherwise no.

The heading is the entry's number (one more than the last), the gate by its plain name or question · <where>, and the decision. "Rests on" is what the log is read first for: a later gate must be able to see which earlier decisions it stands on.

A question outside a gate

The loop starts you with a question where it has no gate. Look at the files it names first; decide by three tests, in order: stay inside the pitch, change the least of what is already written, prefer what is easiest to undo. Write the entry (question · <where>, the choice as the decision, the other options under Rejected) and reply with the choice. A kernel refusal, a fence denial, a failed preflight and a host permission prompt are not questions: never decide one.

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.