Work one class plan under `plans/` from its first stage to its landing — make each stage as one local commit in the order the plan's table gives, then land the whole plan once as one commit and mark it done. Built for the least time and tokens that still land a correct plan. Use when the maintainer hands a session a plan file or a queue. Invoke as `/work-plan <plan>`, e.g. `/work-plan ownership`, or `/work-plan <queue>` to take that queue's next plan.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Work Plan?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/maxon-lang-work-plan)
---
name: work-plan
description: Work one class plan under `plans/` from its first stage to its landing — make each stage as one local commit in the order the plan's table gives, then land the whole plan once as one commit and mark it done. Built for the least time and tokens that still land a correct plan. Use when the maintainer hands a session a plan file or a queue. Invoke as `/work-plan <plan>`, e.g. `/work-plan ownership`, or `/work-plan <queue>` to take that queue's next plan.
---
# Work a class plan
A plan under `plans/` is one class of defects with one design and an ordered list of stages. One session
works it from start to finish. `plans/README.md` puts every plan in one of two queues; a session works only
its own queue, so no plan is claimed. Given a queue letter, take that queue's first plan, in turn order,
whose "Done" cell is empty and which is not `deferred`: read every row of the queue, the ones above the
plan just worked included. The stages are local commits; `main` receives the plan once, as one commit.
**A plan is worked in its own worktree, on its own branch, never on local `main`:**
`git worktree add temp/<plan>/tree -b plan/<plan>-stages origin/main`. The checkout is shared with other
sessions, whose resets and pushes of `main` would drop or publish a stage commit sitting there. The branch
is never pushed: a pushed branch starts the landing workflow.
**A plan is the maintainer's, not the fleet's.** Send no `REQUEST` and run no `fleet.mjs` for it, and never
invoke the `fleet-worker` skill from it.
**The plan file is the plan's whole record.** A member is the plan's "Members" line; a ruling is the
plan's "Design" and "Rulings". An issue number a stage waits on is met when its fixing commit is on
`main`: `git log origin/main --grep "#<n>"`. **A defect nothing in `plans/` owns** is a line under
the plan file's "Found, not this plan's": what it is, the program that shows it, where it was met.
**The procedure spends as little as a correct plan allows.** The plan is the survey and the design: no
step here re-derives it, and none asks the user what the plan already answers.
**The plan is worked unattended: no step waits on the user.** Never call `AskUserQuestion`, and never end
a turn on a question. Whatever the plan does not answer — a question with no recommendation, code that
contradicts the design, a finding that widens a stage — goes to a `planner` agent, which rules as the
user would:
- Brief it with the plan's "Goal" section, the stage's section, the design points at issue, what the code
shows, the options and your recommendation. Ask for one ruling and its reason, nothing wider.
- **The Goal decides.** The ruling is the option that serves the plan's goal and its "done when", stays
out of its "not the goal", and follows its rule for choosing between two designs. Where the Goal is
silent, `AGENTS.md` decides (fix the class, break freely, a deterministic error over degraded code),
then what Go does.
- Record the ruling under the plan's "Rulings", marked `unreviewed`, with the question in one line and
the option it rejected, in the stage's commit. Then carry on.
- Batch the questions a stage raises into one dispatch where they are known together.
- `/land`'s and `/plan-and-land`'s halts "to the user" for a design ruling or an approval are this
dispatch too.
What still stops the session is what no ruling can supply: a permission the harness denies, a credential,
or an action a rule reserves for the user by name (re-pinning the seed). Park that stage and every stage
that waits on it, say why in the plan file, and carry on with the stages that do not.
| § | Step | Who |
|---|---|---|
| 1 | Make each stage: one local commit | you coordinate; implementers write |
| 2 | Land the plan once, and mark it done | you |
## 1. Make each stage
Read the plan's goal, its stage table, its rulings and its design once. Every brief, to a planner or an
implementer, opens with the Goal section. Do not survey the code against the plan:
each stage meets its own facts when it starts.
Take the first stage whose "Done" cell is empty and whose "Waits on" is satisfied: every stage it names
in this plan is ticked, every stage of another plan has landed on `main` with that plan, every issue is
closed. A stage marked `deferred` is skipped. A stage marked "in progress under #n" is being made
outside the plan: tick it once that commit is on `main`, whether or not #n has closed, and start no stage
that waits on it before then. If no stage can start and some remain, write what they wait on beside the
plan's row in `plans/README.md`, work the queue's next plan, and come back when the wait is over.
For each stage, in order:
1. **An open question takes the plan's recommendation**, including one that breaks code the latest
release compiles; the stage then owes its `## Unreleased` entry. Record the choice under the plan's
"Rulings". Where the plan gives no recommendation, a `planner` rules.
2. **Fetch `main`.** If it moved, rebase the plan's commits onto its tip; a conflict is resolved by hand,
never worked around. Re-run only the cases of a stage whose files the rebase touched.
3. **Watch the stage's spec set red.** The plan's "Shown by" line is its floor. There is no scout: the
plan names the functions and files.
**A stage its table row or its section marks `/plan-and-land` gets a `planner` first,** and no other
stage does: the plan left that stage's approach open. Brief it with the stage's section, the design
points it cites and the files it names, and ask for the approach and the pieces, nothing wider. Write
its answer into the stage's section, in this stage's commit, and brief the implementers from that.
A planner also rules when an implementer reports that the code contradicts the plan's design.
4. **Write the code through implementer agents.** A brief carries the stage's own section of the plan
and the design points it cites, never the whole plan file.
**Every piece gets a fresh agent.** Split the stage into pieces before dispatching, and never continue
an implementer into the next piece, a follow-up or a later stage by message: its context carries
everything it has read, so each further turn is slower and dearer than a new agent with a narrow brief.
A message to a running agent is for a correction to the piece it is on.
**Every agent runs on the cheapest model that can do its piece** (`/land`'s `brief.md`, "The model for
each stage"), chosen per piece and named in the dispatch:
The rule covers the agents you dispatch, never you: the coordinator stays on the model the user
started it on, and changes no model setting, in the session or in a settings file.
- `haiku` for a mechanical piece: a rename, a re-pin, a tick, a doc line;
- `sonnet` for the spec author, the documenter, and a contained piece whose approach the plan settles,
which is most stages;
- `opus` for a piece that is cross-pass or soundness-sensitive, involves performance or concurrency, or
leaves a design choice open; for a diagnosis; for `optimize`; and for a review.
**An implementer changes only what its stage names.** Every brief says so, and says that anything
else it meets (a defect, duplication, a wrong name, code the stage leaves awkward) is reported, not
fixed. This overrides `AGENTS.md`'s "fix what you find" for the life of the plan: the implementer
cannot see the later stages, so only you can tell what they make irrelevant. For each finding:
- **a later stage of this plan, or a stage of another plan, owns it** (its "Rule it establishes", its
section, or a plan's Members list covers it): do nothing here. Add the finding to that stage's
"Shown by", so the stage that owns the fix also proves it. For another plan's stage that line is
its own commit on `main`, pushed at once, changing nothing but that plan file;
- **the stage's own cases cannot go green without it:** fix the least that makes them green, and say
so in the commit message;
- **nothing in `plans/` owns it:** a line under the plan file's "Found, not this plan's".
**A session adds no stage that waits on another plan.** Such a stage holds this plan's landing behind
the other queue. What another plan's stage will fix is that stage's to prove, by the line above, and
this plan lands without it.
The same holds for a review: a finding a later stage or another plan owns is not a blocker.
5. **The stage's own cases green, and nothing wider.** Until §2, a run is `--filter`ed to the cases the
stage wrote or re-pinned and the cases of a spec file it edited: never a whole spec file's suite for
safety, a corpus, `ir-specs` unfiltered, a second target, or a lane. What a stage breaks elsewhere is
§2's gates' to find, over the whole plan, once. Where the code contradicts the plan, the implementer's finding amends the
stage in the plan file, in this commit. A contradiction with the plan's design is a `planner`'s to rule
on, and its ruling amends the design in the plan file.
6. **`code-review` per stage only in `ownership` and `generics`**, where a slip is a soundness hole: one
round, by an agent that did not write the code, blockers only. Every other plan is reviewed in §2.
7. **Write no comments and no documentation.** Both are written once, in §2, on the plan's final shape.
8. **Commit on `plan/<plan>-stages`, and push nothing.** The commit holds the stage's code and spec cases and
ticks the stage's box. Its message carries what §2's message will need: the mechanism, the cases red
to green, the figures measured, and any `RELEASE_NOTES.md` entry the stage owes, written out.
Carry on from stage to stage, and from a landed plan to the queue's next one, without checking in. A red
on `main` that is yours is fixed first, then the plan resumes.
**The plan file is the state.** A session whose context has grown heavy ends after a stage commit; a
fresh one resumes from the ticks.
**A defect that is not this plan's** is a line under "Found, not this plan's", for the maintainer to file.
**Giving the plan up:** tell the user which stages are committed and where.
## 2. Land the plan once
When every stage is ticked or `deferred`:
1. **Leave `plan/<plan>-stages` as it is:** it is what a red after the landing is bisected over.
2. **Squash the stage commits into one commit** on a second local branch cut from it after a final
rebase (`git switch -c plan/<plan>`, then `git reset --soft origin/main`), and land that branch as
`/land` §9 lands a session's own branch. `main` takes one commit per landing; a branch of several is read as a bootstrap
chain.
3. **`code-review` over the whole diff**, one round, blockers only, for every plan §1 did not review
per stage.
4. **`optimize` only for `ownership`, `generics`, `declaration-identity` and `kept-answers`**, the plans
that change how the compiler's cost grows with the program.
5. **`documenter`**: the comments, the `docs/` sources the plan's surfaces own, the site regeneration,
and every `## Unreleased` entry the stages recorded.
6. **Mark the plan's "Done" cell in `plans/README.md`.** The plan file stays.
7. **`/land` §8's gates once**, over the whole plan: the first run wider than a stage's own cases. A
plan changes far more than one stage did: run the whole `ir-specs` suite, not a filter, when any stage
touched code generation. A red here is fixed in the squashed tree and the gate re-taken.
8. **`/land` §9:** one commit whose message carries each stage's paragraph in order, landed through the
door. It ends `Fixes #<class issue>` when no stage is `deferred`; with one deferred it names the
issue without a closing word, and the issue stays open for those stages. Unreviewed rulings do not
hold the landing: the message lists each one under "Unreviewed rulings", for the user to read after.
A bounce at the door is `/land` §9's bounce: rebase by hand, re-take the gates whose inputs changed,
submit again.