AGENT SKILL

spin

Walk this project's phases with the conductor pattern — read where it stands, brief a subagent on the next phase, verify the named proof yourself, record what changed course, move the status, land independently safe increments on main throughout the phase, and go on until a step needs a person. Use for "/spin", "conduct the next phase", "do phase 3", "where do we stand", or "keep going"; and for "/goodnight", when the owner asks to shape tonight's plan.

License 许可
Apache-2.0
所属仓库
dalmaer/plates
最近更新
2026-11-15
Stars
★ 4
Forks
0

01 前言 Front Matter

name
spin
description
Walk this project's phases with the conductor pattern — read where it stands, brief a subagent on the next phase, verify the named proof yourself, record what changed course, move the status, land independently safe increments on main throughout the phase, and go on until a step needs a person. Use for "/spin", "conduct the next phase", "do phase 3", "where do we stand", or "keep going"; and for "/goodnight", when the owner asks to shape tonight's plan.
argument-hint
[status | <phase number> | one]

03 SKILL.md 正文

<!-- Source: dglazkov/isocan .claude/skills/conduct/SKILL.md @ 7227f325 (Apache-2.0). Adapted by plates for one-file-per-phase projects (docs/phases/NN-*.md). Plates manages this file: change it upstream in plates, or send the change home with plates lessons. -->

spin: one outcome, small verified increments

Plates lesson references name the Plates catalogue, not this project’s local lesson numbers.

The phases in docs/phases/ are the contract. Each one is a file. Its front matter owns its status, and its sections say Done when, Acceptance, Proof, Deliberately open and Next action. docs/goals.json says what the phases are for. docs/design.md (or the project's equivalent), if the project has one, is the argument they cite. Read the project philosophy named by its working guide before planning. When present, read docs/philosophy.md.

The session that runs this skill is the conductor. It does not build. It briefs a subagent that builds, then verifies the proof the phase named up front, never taking the subagent's word for it. Only then does it write the record, run the required gate once per integrated candidate, and land each independently safe increment. Repeat within the phase until its outcome is proven, then go on to the next phase. (A phase of a file or two may be built by the conductor itself: see Small phases in §1.)

The default is unattended. (why: Stopping for routine implementation choices leaves the agreed work unfinished.) The conductor stops for a person, and a person is needed for exactly three things:

  • a token or a login;
  • money or a cloud resource (a ⚑ step);
  • a hand the phase names (a real device, a decision assigned to someone by name).

Everything else is the conductor's to decide, record and commit: a wrong design, a proof that can't run as written, two docs that disagree.

{{guide}} applies to everyone, conductor and subagent alike. Invoking /spin is the "land this": the conductor commits and pushes safe increments of each phase to main without asking again.

No remote? If git remote prints nothing, skip every pull, push and CI step below: the walk ends at the local commit on main. Say so in the report.

Arguments

  • /spin: orient, then conduct phase after phase until a step needs a person or nothing is left. Commit each safe increment, and push if there is a remote. The user reads progress from the commits.
  • /spin status: orient and report. Change nothing.
  • /spin <N>: conduct that phase and stop. If a phase it depends on isn't built (a partial phase marked owes: walk counts as done here, as for plates next), conduct that one first and say so.
  • /spin one: the next phase only, then stop.

0. Orient

The roadmap command is the project's, never assumed. Read it first:

  • .plates/plates.json "practices" lists phases (plates's roadmap): node scripts/roadmap.mjs --next says the next phase whose dependencies are built, and its next action (npm run next too, where package.json has that alias); node scripts/roadmap.mjs --json says everything.
  • .plates/plates.json "local" names phases (the project keeps its own roadmap, and plates's scripts/roadmap.mjs is not installed): use the scripts its package.json names (next, else roadmap, else what "loop" "afterRender" runs). If none says which phase is next, read the phase files' front matter: the lowest-numbered phase not built whose depends: are built.

Claim the phase before you build it. (why: Two sessions built one phase at once, and one of them was thrown away.) With plates's roadmap and a remote, the first step for a phase is plates phase claim <N>, before the brief: it pushes claims/phase-<N>, a branch every session and provider can see. plates next lists the phases that are ready and unclaimed, and the claimed ones with their holder. A refusal names who holds the phase: take another free phase, or stop. Never build a claimed phase, and never release a claim that is not yours: a stale one is the owner's, on the board. If the claims could not be read, stop and say so. Keep the claim across increments. When the phase is complete on main (or explicitly handed off under the claim rules), plates phase claim <N> --release clears the branch.

Then read, in this order:

  1. the phase file;
  2. the design sections it cites, if the project has a design doc;
  3. the Trajectory of the phases it depends on (what the design didn't know);
  4. {{lessons}} rows that share its shape.

Note the wall clock. The commit records what a phase cost.

Optional local quality capture. (why: Retrospective metadata cannot recover missing stage boundaries or exact review inputs.) When this task has an explicitly enabled PLATES_QUALITY_BINDING, use the installed CLI's retro quality workflow to record the phase as one task episode before assignment. Freeze the actual acceptance, context and workflow hashes and known passport labels; unavailable model versions, charges and labels stay unknown. Work already underway must be marked retrospective. The private manifest, state and event files stay outside Git; never include task text, prompts or transcripts in them.

Record planning, coding, review and iteration start/finish boundaries as they actually occur. plates retro quality lifecycle --record <event-file> --manifest <manifest> --state <state> previews an event; apply the same input with --yes --digest <preview-digest>. Use stable attempt IDs, preserve failed or denied attempts, and link each review or revision to the exact prior checkpoint. Record command and GUI stage boundaries from actual conductor observations; the binding does not automatically instrument an app. The local execution prototype is not exposed and grants no command authority or model budget.

With the same binding, ordinary plates review <repo>#<number> can retain already-read exact-head review metadata when that PR is explicitly linked to the episode and its content matches a captured coding checkpoint. Read the reported capture status: a missing join is a gap. Review identity stays unknown unless observed separately. A completed command or posted review does not prove acceptance; independent adjudication and delayed outcomes remain separate. See the CLI's agent-quality adapter and lifecycle guides for the strict input formats. If the installed CLI lacks these commands, report capture unsupported and continue the already authorized phase; do not invent observations.

Keep the conductor's own context lean, because it outlives every builder:

  • Send long output to a file and read the lines that matter (grep -E "fail|not ok|# pass").
  • Don't re-read what a builder already summarised unless verification needs it.
  • On a long run, keep a short handoff file in the scratchpad: current commit, owned paths, decisions, open failures.

Three gates before any code:

  • The docs agree. (why: Contradictory contracts let a build satisfy one document and violate another.) If the phase's Proof, its Acceptance and the design disagree, fix the docs first, as their own commit. Building on a contradiction produces something that satisfies one document and not the other.
  • Its dependencies are built. (why: An unbuilt prerequisite makes downstream proof depend on a promise.) depends: says which phases. Conduct an unbuilt one first; a partial one marked owes: walk counts as built here (its rest is a walk, not work), as for plates next.
  • ⚑ steps are asked, not done. (why: External resources and spending create obligations for the owner.) List them to the user with the price, and get a yes for each. Before stopping to ask, do every part that doesn't need the answer, so the ask is the only thing left.

Installation and ongoing care

A compatible reviewed update has a short path: prepare, check/review, install, then read back its actual source and managed bytes. Broader night verification, optimization and legacy retirement are separate observations; never turn a pending climb into a requirement to start paid work before acknowledging installation. Keep real compatibility failures and unknown source coverage blocking.

Keep normal review available during preparation. Pause only affected workflows whose concurrency identity changes, retain their prior states, drain completely, install under that barrier and verify restoration. Ordinary updates need no such barrier. Recover the original operation after uncertainty instead of recreating PRs or repeating mutations. Unfinished restoration stays an explicit obligation.

A handoff retains existing scoped owner approvals. Reinspect changed source facts; ask again for changed authority, scope, destination, budget or risk. Never transfer an exact-head approval to new bytes. Keep the receipt's operation ID and evidence links in the next brief, rather than reconstructing the approval conversation.

Plan the first safe merge

Before building, name the first independently safe increment in the phase and brief: changed paths, compatibility/default behavior, focused proof, required integration checks and recovery. Scaffold/contracts, dormant implementation, internal enablement, wider rollout and cleanup can land separately. Never hold ready work until the phase is complete; never land broken startup, schema or contracts because a feature is disabled. Flags control exposure, not permissions.

Target hours and same-day integration. A branch still open next working day needs a split, refresh or recorded replan, not a waived gate. Keep one active build increment per builder and clear ready work before starting more. A broken main takes priority over unrelated integration. Queue delays need an owner and next action; they do not authorize stealing a lock or skipping checks.

1. Brief

Write the brief to a scratchpad file, so it can be reread, reused if the subagent must be restarted, and quoted in the commit.

Point, don't paste. (why: Plates lesson 5: repeated context and verification cost more than they catch.) The subagent can read the repo, and {{guide}} is already in its context. Name the phase file, the design sections and the lessons by path and heading. In words, the brief carries only what the docs don't say:

  • decisions taken in this session;
  • which files are whose;
  • who else is working in the tree;
  • where to stop.

Before dispatch and before every resume, run plates decision context --phase <N> --json in the target checkout. Exit 1 or 2 blocks work until the records are repaired or the target is explicitly revised. Exit 0 with not-configured preserves legacy behavior; it is not verified coverage. Include the returned bundle (or a scratchpad path to its exact JSON) in the brief: accepted choices, proposals and gaps stay separate. Re-run immediately before use to refresh working-tree hashes and revision; never trust a saved digest alone. At the next safe boundary, re-resolve and report changed decisions for reconciliation. Do not terminate running agents or roll back their work automatically. Source owner attribution is evidence, not authentication; the bundle grants no new permission. A handoff retains the target and digest; resuming also revalidates claim ownership.

Aim for under 600 words.

# <project> phase <N>: <title>

Contract: docs/phases/<NN-name>.md. Design: <doc> <sections>.
First safe merge: <increment, compatibility, proof, recovery and what stays disabled>.
Remaining increments: <next safe steps; phase completion is separate>.
Real surfaces: <the phase's list, word for word, or none>; build so each one can be proven there.
Trajectory that binds you: <one line each, only ones that change what you build>.
Decided here, not in the docs: <…>
Decision context: <bundle path, state and digest; separate accepted choices/proposals/gaps>

## Who else is in the tree   (another builder's paths, and which red checks are theirs)
## What you own
Files under <paths>. Not docs/phases/, docs/ROADMAP.md, {{lessons}} or the
evidence: the conductor writes the record.

## Where you stop
- At the named safe increment: return its proof and remaining work so it can
  integrate before the next increment starts. Do not build the whole phase first.
- At each ⚑ step without a yes: build up to it, report.
- When the proof would need a facade (a fixture that can't fail, a shim that
  answers the test and nothing else): stop and say so. That's a finding.
- When the design turns out wrong: stop, say what you found and what you'd
  change. The conductor changes the design.
- A bug beside the phase: report it, don't fix it.

## How you test
The test files you touched or wrote, by path (`node --test tests/<file>`),
as often as you like. Do NOT run the whole check (`{{check}}`): the
conductor runs it once on the integrated tree (with a remote, through
`plates integrate`). Two full gates never run beside each other: the integrator's lock
(`claims/integrate`) lets one run at a time.

## What you return (under 600 words), these sections in this order
0. Done means: your restatement, from below, word for word. Name the decision
   digest used and any apparent conflict between the task and accepted choices.
1. What changed: the files and commits, and one paragraph on how it works.
2. Each acceptance box: the test that proves it (file and test name), or why
   it has none.
3. Focused tests: each command you ran, from the repo root, with its exit
   code. Not "tests pass", and not the whole check.
4. Decisions the spec left open: what you chose, and why.
5. What remains: what you couldn't do and where you stopped; candidate
   trajectory lines (dated, one claim each, about forty words); anything a
   later phase should know that the docs don't say.

## Before any code
Restate the success criteria in your own words before writing code.

Spawn the subagent with the Agent tool (general-purpose), in the background.

Small phases. (why: A second session can cost more context than a change of one or two files needs.) A phase of a file or two (a seed, a doc, one small script and its test) may be built by the conductor itself, without a brief or a subagent. Everything after the build is unchanged: verify the named proof, write the record, run the gate. Say so in the evidence and the commit body: "built by the conductor (small phase)".

Parallel builders belong inside one phase, split by file ownership. Never run two phases of one project at once: two builders in one checkout see each other's half-done files. Name each builder's paths in the other's brief, and say which red checks to expect from the neighbour.

A subagent's report isn't shown to the user; relay what matters.

2. Verify

The builder's report is a map. The phase's Proof is the territory. For each increment, run its named proof and required conventions from the repo root, reading exit codes, not tails. Run the complete phase proof before claiming the whole outcome; future increments' unrun checks remain explicit gaps.

Read the report's shape first. (why: A report that skips a box or an exit code reads as done, and the gap is skimmed past.) Read the builder's restatement before anything else: where it differs from the phase's Done when, resolve that first, since the builder built what it restated. Then check every acceptance box is addressed (a test, or why not) and every focused command carries its exit code. A report missing either goes back down (below) before you run anything. Its commands are the builder's focused tests; the whole check stays yours, once, in §3.

  • git pull --ff-only first, if there is a remote.
  • Then mark the phase's new files intent-to-add: git add -N <new files>. Anything that measures with git ls-files can't see an untracked file locally, and it will fail the same check in CI after the commit (Plates lesson 10). Never stage before an autostash pull: the pull hands staged changes back unstaged.
  • git status --short: only the phase's files changed, no leftovers, no .env, nothing under docs/phases/.
  • Inventory conventions before the integrated checkpoint. (why: A focused behavior test can pass while a repository convention fails, wasting a full gate.) Enumerate the changed-file conventions alongside the behavioral proof: test subprocess helpers and hermetic setup for tests; guide/CLI command and placement guards for documentation; generated-output and whitespace checks for their inputs. If the project configures check:focused, run npm run with script name check:focused, followed by -- and the specific affected test files before the whole gate, and fix any failure there first. Its required convention bundle cannot be omitted by selecting only the behavioral test. Otherwise name and run the equivalent repository convention checks explicitly. Unknown impact still requires broad validation; this early feedback does not replace or weaken the integrated gate.
  • The named Proof, command by command, for this increment; the complete phase Proof before claiming the whole phase. Not yet the whole check: that runs once, after the record (§3), so it covers the tree you will commit.
  • One proof per Real surface, run in that place: the published package installed, the workflow's shell run, the adopted project updated, the owner's machine, a real GitHub API call, the fleet read over nights. A fixture is not the surface. none needs nothing here. A surface not yet walked keeps the phase short of built; say which in the evidence.
  • Each acceptance box claimed by this increment: its named check exists and asserts the box, the command runs, the ⚑ by hand step is walked or written down as outstanding. Future increments' boxes remain unchecked.
  • The walk, when the phase has one: a real browser, a real device, a real gh call. A phase with a walk isn't built until the walk is walked. If a person must walk it, write the steps into the evidence file.
  • Open each new test and ask two things. Could it fail? Does it exercise the thing, or a stand-in for it? A test that asserts what the code returns, rather than what the phase requires, proves only that the code agrees with itself.
  • Read the diff for a facade, and for real data carried into fixtures. Fixtures are synthetic: "Acme", always.

Work that fails goes back down. (why: Parallel fixes by the conductor and builder can overwrite each other.) Send it to the same subagent with SendMessage, so it keeps its context. Include the exact command, the exact output, and the line of the Proof it violates. Don't fix code yourself; the conductor edits documents (except in a small phase it built itself).

3. Record

With reconciliation enabled, include one plates-impact JSON fence in the PR body naming affected phases, decisions, superseded plans and evidence. Check the actual diff. Update those records and their next action in the same PR, or give per-record reasons for leaving them unchanged; no impact needs a reason too. A merge never ticks acceptance, proves production, or establishes lived-in use. Preserve historical evidence. Revalidate any saved correction proposal against current records and remote facts; record edits are manual review, never night data for automatic merge.

When the increment proof holds, write its code, tests and accurate record in one change. Keep unfinished acceptance unchecked and the phase partial with its next increment named. Record merged, deployed/installed, enabled and verified facts separately; a merge never implies all four. Complete the phase only when its full proof holds:

  • Set the phase's status: in its front matter (built, or partial with what waits), with since (today) and a note saying in one line why it stands there. Add the evidence path, relative to docs/ (evidence/<date>-<slug>.md). Check the Acceptance boxes that the proof actually showed. plates's roadmap check (scripts/roadmap.mjs) fails a phase whose boxes are all checked and evidence named but whose status wasn't moved; a project's own roadmap may not check it, so check it yourself there.
  • The evidence file, docs/evidence/<date>-<slug>.md, from docs/templates/evidence.md: what was run, with exit codes, against the phase's commit by its title (it doesn't exist yet), or the base commit and 'working tree'; what was checked by hand; what was not. Never write expectations as observations. The gate runs after the record, so the evidence names the gate command ({{check}}) and what it covers, not its result; the gate's result line (exit code, test count) goes in the commit body (§4). It opens with the attempt's end-of-attempt record, front matter of one line: attempt: {"accepted":true,"verified":true,"rework":<rounds sent back>,"lessonStatus":{...}} between --- lines. A failed or reworked attempt names its lesson status (captured with a link, known with the lesson, or none); plates improve counts the ones that taught nothing.
  • Proofs that need the commit (a clean checkout of the committed tree, a fresh clone, CI on the pushed commit) can't be in this record. Leave their Acceptance boxes unchecked and the status partial, with a note naming the walk. Walk them right after the commit (§4), then add the result to the evidence, check the boxes and move the status in the next commit.
  • Trajectory in the phase file (## Trajectory, after Next action): only what changes the course. One line per claim: - **YYYY-MM-DD** — Claim. Evidence. A phase that went as planned writes *Nothing — the phase went as planned.* A defect found after a phase was built is recorded in that phase's Trajectory as - **YYYY-MM-DD** — Escape: …; the night counts it (escapes).
  • Deliberately open: settle the questions that were settled, in place, dated, saying what settled them.
  • Next action for the phase: the next step if it isn't built; once it is built, None. (or what lived-in needs, when the project counts it: "phases": {"livedIn": true} with plates's roadmap). A partial phase whose building is done and whose rest is a walk gets owes: walk and a Next action naming the walk. A project that keeps its own phases ("local" names phases) follows its own roadmap's rules for both: it may not read owes: or livedIn, so record the walk in the Next action and keep the lived-in step its roadmap asks for.
  • Lessons: a new row only if a bug turned out to have a shape.
  • What people and agents are told: if the change alters what a person or an agent would be told — a verb, a flag, a practice, a default — update the README (if the project has one), {{guide}} and any agent guide in the same commit. A test catches the tables; nothing catches the prose but you.
  • Other phases this one changed the facts for: grep -rn the term across docs/ and fix each mention.
  • The project's roadmap command (§0; node scripts/roadmap.mjs with plates's).

Then the whole check, once, on the final tree, record included: {{check}}. It is the only full run, and it comes last so it covers what you commit (the roadmap check in it reads the status you just set). Builders tested by file; this is the integrated tree. If something fails, re-run just that, alone, before calling it a flake; after a fix, run the whole check again. With a remote, that one run is plates integrate's, after the commit (§4): finish with plates ready and leave the full gate to the integrator. Without a remote, run it here.

4. Commit

One independently safe increment per change: code, tests and its accurate record. A phase may span several commits and short branches. Commit the tree the gate just checked in §3 (with a remote, the integrator checks the combined candidate below); changed inputs invalidate affected proof. Do not wait for a whole phase to land.

  • Title: phase <N>: <heading>, where the heading is the phase file's # heading, word for word: it is the source. Or <area>: <what> for something smaller.
  • Body: the argument, in prose a reader who wasn't there can follow. What was built, what the proof showed, what changed course, and what it cost in wall time. It carries the gate's result line from §3 ({{check}}: exit code, test count), which the evidence can't, since the evidence is written before the gate runs.
  • A fix is proven by its test failing without it. (why: Plates lesson 38: a check can stay green without evaluating its claim.) A fix: commit carries a Proven-by: trailer, from plates prove <test> --fix <the fix's files> --trailer: it runs the test in a scratch copy with the fix reverted, then in another with it, and never touches the tree. Only VERIFIED proves the fix. NOT WORKING means the test does not catch the bug: make it catch it. INCONCLUSIVE says why it could not tell. Never write the trailer by hand.
  • Proofs that need the commit (§3): walk them now, against the committed tree, and record them in the next commit.

Land on main, no pull request (unless the phase waits for review, below):

  1. With a remote, integrate origin/main into the phase's branch first, and regenerate the roadmap if it conflicts.
  2. Stage an explicit list of the phase's files, taken from the builder's report and git diff --stat. Never git add -A: a builder still writing in the tree creates files between your read and your stage.
  3. With a remote, commit on the phase's branch (<provider>/phase-<N>), never on main: the integrator is what writes main. Read git show --stat HEAD.
  4. Finish with plates ready. (why: Two sessions that each ran the full gate and pushed ran the expensive path twice for two changes.) It runs only the fast checks ("delivery".fast in .plates/plates.json, and each --check "<cmd>": your focused tests), pushes the branch and records it as ready/<branch>. It never runs the full gate, and refuses a check that is the full gate.
  5. Then plates integrate. It takes the lock (claims/integrate), merges every ready change onto main, runs {{check}} once on the combined tree and pushes it. Its report (how many gate runs, exit, what landed) is the gate's result line for this phase: record it in the next commit, as for proofs that need the commit. A failing batch is narrowed until each failing change is found; the rest land, and the failing one is sent back blocked, with the reason. One sent back is yours: fix it on its branch and plates ready again. Refused because another integrator holds the lock: stop there; that one takes your change too (it reads the ready changes again before it lets go). If its report does not name yours, run plates integrate again once the lock is free. Follow CI on the commit it pushed while preparing the next brief. With no remote, stop at the local commit: there is no push and no CI.

Reviews. (why: An unanswered finding hides whether it was fixed, tracked or rejected.) Every PR the conductor opens or merges (a phase that waits for review, plates fleet update's PRs, a climb or tend PR): when a PR has reviews, validate each comment against the code first, then answer it with one of the three replies; never leave one unanswered. Read them with plates review <repo>#<n> (--wait first when the PR is new: reviewers post minutes after CI). The three replies:

plates review <repo>#<n> --close <id>[,<id>…] --fixed <commit>      # valid, fixed: names the commit; resolves
plates review <repo>#<n> --close <id> --tracked <#issue|vX.Y.Z>    # valid, tracked: names where; stays open
plates review <repo>#<n> --close <id> --not-valid "<why>"          # says why, citing the code; resolves

Several ids go in one call, comma-separated; never loop over them in the shell. Read with plates review right before closing; --close refuses what you have not read (and anything that arrived since the read), so never build the id list from a query. A valid finding is fixed in its own commit before the reply names it. Not a gate: an open thread never refuses a merge, and the night counts what is left (reviews_unanswered).

Before a repeated finding goes through another round, fix its shared boundary, inspect known sibling callers, and name the negative control. Inventory rendered copies, source pins, locks and intentionally historical fixtures before the final checkpoint. Batch related corrections; do not repeat an unchanged full gate to compensate for missing evidence. This does not enlarge the review-round limit.

Judge review progress at the checkpoint. (why: A flat three-round stop blocks converging work; repeated instance fixes still need an owner's decision.) A round is one push a reviewer answered with a finding. At the base checkpoint (three unless .plates/plates.json "review": {"rounds": N} says otherwise), plates review <repo>#<n> judges the first N rounds. Read its rounds.trend reasons: progress extends the limit once, from N to 2N, and fixes may continue within the existing authorization; repetition stops at N. There is no second extension. The executable judgement uses finding locations, counts and severity as proxies, not semantic proof: inspect the actual changes for a repeated boundary failure or material scope expansion before continuing. Report any such conflict with concrete evidence for an owner decision; never enlarge the task's scope or override a stop silently. When plates review <repo>#<n> exits 3, stop pushing fixes: it found repetition or the one extension is exhausted. Sort each open finding you have read with plates review <repo>#<n> --class security|overwrite|approval|other <ids> (it records the kind and answers nothing), then report the choice it prints to the owner: merge with the rest tracked, split, or close. Never merge it yourself.

A phase that waits for review (opt-in, for a change the owner is nervous about): its front matter says review: wait, or its issue carries the label keel:wait-for-review (gh issue view <n> --json labels). It lands through a PR instead of a push to main: push the phase's commit to phase-<N>, open the PR, plates review <repo>#<n> --wait, answer every comment, and merge only when plates review <repo>#<n> --gate exits 0 (every comment answered, each named reviewer has reviewed the head commit). The default is neither: no PR, no wait.

In plates itself, a practice change is reviewed before a release (.plates/plates.json says "plates": "self"). A change under practices/, migrations/ or docs/lessons.md is what the fleet receives, so it lands as a claude/ PR: push it to claude/phase-<N>, open the PR, and wait for the other provider's review (cross-review: Codex reviews claude/ PRs) with plates review <repo>#<n> --wait. Answer every comment; after a fix, comment /review so the head is reviewed again. Merge when every comment is answered and someone other than the PR's author has reviewed its head. plates release refuses a practice commit that came any other way, naming it; only the owner's --unreviewed "<why>" goes past it, never --yes. Records (docs/phases/, evidence, the roadmap) and CLI-only changes may still go to main.

Write a short report between phases (the phase, its new status, the proof and what it printed, what changed course). Don't wait for a reply.

5. Retro

Reviews first. (why: A retrospective must not bury unresolved review findings.) For each PR this phase opened or merged (§4): when a PR has reviews, validate each comment against the code first, then answer it with one of the three replies; never leave one unanswered.

After the commit, when the phase did real work (its commit changed more than docs/), look at how the session went, not only what it built:

plates retro --worksheet --since <the brief's base commit>   # the commit before the phase's first

The worksheet holds counts and transcript pointers, never transcript text: failed commands retried, tool errors, permission denials, files read three or more times, tool calls over a minute, edits reverted. A docs-only range says so in one line; then there is no retro.

Answer the seven areas it lists, a line each: navigation, automatable checks, missing standards, {{guide}} health, tool economy, no-op instructions, information gaps. Then put at most five candidates in the phase report, most serious first, each typed:

  • check: anything mechanical (a lint, a test, a guard in a script). Mechanical violations get deterministic checks;
  • guide/skill line: a judgment call only;
  • lesson: a failure shape, through plates learn.

The owner picks. (why: Plates lesson 51: advice is not the person’s decision.) Nothing is applied unpicked: candidates live in the report, not the repo, until the owner picks one; a picked check is built as its own small change (or a phase). Never run a retro from the night or a climb: unattended, it finds false positives and keeps fixing them.

Stopping

The conductor stops for a person, and for nothing else. Record the stop first, so a later session can pick up from the docs alone:

  • Set status to partial, with a note naming exactly what waits on whom.
  • Put the ask in Next action.
  • Commit, and push if there is a remote.

Then look past it: if a later phase needs none of that, conduct it. The final report lists every ask in one place, each in one sentence with its price.

Two things look like stops and aren't. Decide them, record them, and go on:

  • The design is wrong. (why: Quietly changing acceptance erases the contract used to judge the build.) Change the design doc (or, if the project has none, the phase) as its own commit, with the reason, then re-brief. A phase can be superseded; it can't be quietly redefined.
  • The proof can't run as written. (why: A substitute proof may never check the original claim.) Fix the Proof, say why in the commit, continue. Never mark a phase built against a proof other than the one it named.

If in doubt, ask: is the missing thing a credential, money or a hand? If not, it's yours.

/goodnight

/goodnight is the owner saying what tonight is for. It is not a phase and not the walk: it shapes the plan the night runs (plates goodnight; plates's --agent-help night has the detail).

Run it only when the owner asks. (why: A plan offered unasked is plates choosing the night, which the default plan already does without a person.) Only /goodnight, or the owner's own words asking for it, starts it. Never offer a plan unasked: not at the end of a walk, not when the owner says they are stopping, not on a closed session. Without it the night runs plates's default plan, and that is fine.

  1. Show the opening. (why: The owner chooses from what plates read; a summary from memory hides what changed today.) Run plates goodnight and give the owner what it says: settled today, left open, tonight's plan and the things to try. Say any not read: line as it is; never fill a gap with a guess.
  2. Shape it by the owner's words. (why: An item reworded by the agent is no longer the promise the owner made.) Each change they ask for is one command: plates goodnight add <id> (a thing to try) or add --title "<their words>", drop <id>, edit <id> --title "<their words>", budget <id> <minutes>, skip <path-or-id>. Use their words as they said them. A refusal names why (a sixth build item, a build with no number, something settled today): tell them, and let them choose; never work around it. Show the draft after each change.
  3. Write it only on "that's the plan". (why: The push is the summons; a plan the owner never agreed to would run as theirs.) Run plates goodnight --yes only when the owner says that's the plan, or plainly the same. Anything else, including silence or leaving, writes nothing, and the night runs the default plan. Then say what was pushed, and stop.

Things that have gone wrong before

  • A subagent said the suite passed. It had run the suite piped into tail, and six tests had failed. Read the exit code.
  • Builders ran the whole suite 53 times in one session, and the conductor's run repeated all of it. Builders test by file.
  • A brief pasted the phase, the design and the house rules. The conductor read them once and the subagent twice. Point, don't paste.
  • A script shipped without its library, because git add -A ran while a builder was still writing. Stage an explicit list; read git show --stat HEAD.
  • An autostash pull handed staged files back unstaged, and the commit missed them. Pull first, then mark files intent-to-add.
  • A subagent fixed a bug beside the phase, and the fix was wrong, because the fix was a design call. Report it; don't fix it unasked.
  • Trajectory became a work log, and the one line that redrew the map was buried. Trajectory holds course changes only.
  • A real project's names ended up in a fixture and then in a shipped example. Fixtures are synthetic.
  • The conductor proved a drift guard by editing a file, then undid it with git checkout, which also threw away the builder's uncommitted change to that file. Probe a temp copy or a separate git worktree, never the tree a builder or another session is using: a mutation there is lost, committed, or tested by someone else.
  • The shell's cwd was reset between commands. Use absolute paths in every command you give a subagent.
  • A scratch worktree got a node_modules symlink to the owner's checkout, and then npm ci followed the link and emptied the owner's node_modules. Install in each worktree on its own; never install or delete through a symlink (ls -ld node_modules first).
  • Each new test imported the builder's new export by name, so without the fix the file could not load and plates prove said INCONCLUSIVE for every one. Read a new export at call time (a namespace import), so the test fails rather than refusing to run.

04 同仓库更多 Skills

dalmaer
dalmaer/plates

conduct

Walk this project's phases with the conductor pattern — read where it stands, brief a subagent on the next phase, verify the named proof yourself, record what changed course, move the status, commit the phase whole to main, and go on until a step needs a person. Use for "/conduct", "conduct the next phase", "do phase 3", "where do we stand", or "keep going".

★ 4
dalmaer
dalmaer/plates

acme-conduct

Acme Canvas's own conductor (the original plates adapted).

★ 4
dalmaer
dalmaer/plates

conduct

Compatibility alias for /spin; walk the same project phases with the same arguments, proof, claims, reviews, permissions and stopping rules.

★ 4
dalmaer
dalmaer/plates

plates

Start here in any repo with a .plates/plates.json, or when asked about its phases, the roadmap, lessons, the night shift, evidence, or plates itself — it says what plates is and where its instructions live.

★ 4
dalmaer
dalmaer/plates

spin

Walk this project's phases with the conductor pattern — read where it stands, brief a subagent on the next phase, verify the named proof yourself, record what changed course, move the status, land independently safe increments on main throughout the phase, and go on until a step needs a person. Use for "/spin", "conduct the next phase", "do phase 3", "where do we stand", or "keep going"; and for "/goodnight", when the owner asks to shape tonight's plan.

★ 4
dalmaer
dalmaer/plates

plates

Start here in any repo with a .plates/plates.json, or when asked about its phases, the roadmap, lessons, the night shift, evidence, or plates itself — it says what plates is and where its instructions live.

★ 4