writing-plans
Skill3 starsChanged 11 days agoMITView on GitHub
Use when you have a spec or requirements for a multi-step task, before touching code - produces a plan this plugin can parse, phase, and dispatch to a fleet.
187 other projects use a version of this.
Adopted by
Most recently taken up by
- DemonDamon/AgenticXtheir own version, first seen Nov 9, 2026
- roundpilot/superpowers-antigravitytheir own version, first seen Nov 8, 2026
- REPOZY/superpowers-optimizedtheir own version, first seen Nov 8, 2026
- lingyired/status-triotheir own version, first seen Nov 8, 2026
- ashleysbrain/skillstheir own version, first seen Nov 8, 2026
- ryanportfolio/winuse-mcptheir own version, first seen Nov 8, 2026
Used with
Projects with it also use chinese-code-review, chinese-commit-conventions and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Leodorareluctant259Skillchinese-code-review
中文代码审查规范——在保持专业严谨的同时,用符合国内团队文化的方式给出有效反馈
Also in 8 projects that use this
Leodorareluctant259Skillchinese-commit-conventions
中文 Git 提交规范 — 适配国内团队的 commit message 规范和 changelog 自动化
Also in 8 projects that use this
ryanportfolioSkilladdskill
Create, import, update, or install repo or personal skills: runtime ownership, resources, discovery checks.
Also in 6 projects that use this
ryanportfolioSkillapply-firmware
Bring current folder (plain folder, existing repo, old or partial firmware copy) up to full Harness Firmware in place. Mirror external repo → adopt-repo.
Also in 6 projects that use this
- +2 more from Leodorareluctant259
- +6 more from ryanportfolio
Other versions187 projects use a version of this.
Word for word · 1
- andreymudri/claude-teammates★ 3100% same
Edited · 0
None found.
Wrote their own version · 186
- obra/superpowers★ 314ksame name
- jnMetaCode/superpowers-zh★ 8.4ksame name
- openai/plugins★ 7.8ksame name
- farm-fe/farm★ 5.6ksame name
- microsoft/FluidFramework★ 4.9ksame name
- lingyired/status-trio★ 1.8ksame name
- revokslab/ShipFree★ 1.7ksame name
- GanyuanRan/Aegis★ 1.4ksame name
- pcvelz/superpowers★ 1.3ksame name
- math-inc/OpenGauss★ 1.3ksame name
176 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- brainstormingSkill
- executing-plansSkill
- finishing-a-development-branchSkill
- fleet-lifecycleSkill
- fleetmates-configSkill
- fleet-supervisionSkill
- grillingSkill
- parallel-executionSkill
- phase-gateSkill
- receiving-code-reviewSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- using-fleetmatesSkill
- writing-skillsSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 4 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 168 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Every plan needs a Global Constraints section in its header, before the first task — the project-wide requirements every task inherits: …
- Very specific: line 54
All three are optional. ## Out of Scope requires a ## Destination with prose under it in the same document — an empty ## Destination …
- Very specific: line 74
Every ## Out of Scope entry needs a reason clause — a separator (em dash, en dash, spaced hyphen, or spaced double hyphen) followed by at …
- Very specific: line 77
Every ## Not Yet Specified entry must contain a ?
- Very specific: line 130
When the gate's manifest gives a command check a report, the gate compares the suite's tests before and after the phase.
- Very specific: line 147
When a task has no dependencies, omit the Depends: line entirely — that is the intended way to say "nothing." A sentinel like Depends: none …
- Distinctive: line 193
Before handing a plan to a fleet, run it through the parser and phase assigner yourself:
- Distinctive: line 199
Read the printed phase breakdown and confirm it matches intent — tasks that should run sequentially must not land in the same phase.
- Distinctive: line 212
Before handing the plan off, check:
“Common” is measured: kept by at least 6 in 10 of the 168 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Writing Plans
Announce at start: "I'm using the writing-plans skill to create the implementation plan."
Save location
Save the plan to docs/plans/YYYY-MM-DD-<feature-name>.md.
Global Constraints
Every plan needs a Global Constraints section in its header, before the first task — the project-wide requirements every task inherits: version floors, dependency limits, naming conventions, commit-message style, anything a task shouldn't have to restate. One line per constraint, with the exact value, not a vague pointer:
## Global Constraints
- Node >= 20
- Zero new runtime dependencies
- Commit messages: single-line, commitlint style, EnglishA task's own requirements are on top of this, not instead of it — every task implicitly
carries the Global Constraints too. That's why parallel-execution dispatch hands each
implementer the global constraints alongside its task brief: they're plan-wide, not
per-task, so nothing downstream has to look them up separately.
Destination, fog, and out-of-scope
Three more optional header sections, alongside ## Global Constraints, before the first task:
## Destination
The gate can answer "is this run landable" without an operator reading any prose.
## Not Yet Specified
- How should finish report a phase whose reviewers disagreed?
- Does the map's coupling data belong in the gate at all?
## Out of Scope
- Replacing `.fleetmates/` with a real datastore — swapping it invalidates every check that
reads it, and the coordination store is not what this destination is about.All three are optional. ## Out of Scope requires a ## Destination with prose under it in
the same document — an empty ## Destination heading is treated exactly like an absent one,
because "out of scope" means beyond the destination, and a heading with nothing under it leaves
that unjudgeable. This is the format's rule, defined in scripts/plan-sections.mjs; it is
refused at the moment a run is created once init-run wires that module in, which has not
happened yet — see below.
The fog-or-task test, and the rule the whole feature rests on — it turns on dispatchability, not sharpness:
Can you write it as a task — a declared file set, and acceptance criteria a green suite would satisfy? If yes, it is a task, even when it is blocked and cannot be worked yet. If no, it is Not Yet Specified, however sharply you can phrase the question.
The consequence: do not pre-slice fog into task-shaped pieces. One fog entry may graduate into three tasks, or into none. A question can be perfectly sharp and still have nowhere to go — sharpness is not the test, dispatchability is.
The two entry rules, and what each is for:
- Every
## Out of Scopeentry needs a reason clause — a separator (em dash, en dash, spaced hyphen, or spaced double hyphen) followed by at least one non-whitespace character. A reason clause is what makes a boundary reviewable; an entry without one is a word, not a decision. - Every
## Not Yet Specifiedentry must contain a?— anywhere in the entry, not necessarily at the end, so the question can carry the context that makes it worth reading. A question mark is what keeps fog from becoming a dumping ground for work nobody wanted to size.
Nothing enforced reads these sections yet. scripts/plan-sections.mjs defines the two entry
rules and the destination dependency above, and checks shape — a separator is present, a ? is
present, a destination has prose — not truth. But no caller in scripts/ imports
parsePlanSections: as of this writing init-run does not parse these sections, no check
consults them, no verdict depends on them, and no teammate is handed them. A plan can carry a
bare-noun Out of Scope entry or an unanswered fog entry today and nothing will refuse it. The
wiring that makes init-run enforce these rules at the moment a run is created is its own task;
until that lands, treat this section as the format's rules, not as something the CLI checks. Do
not write a sentence here or in a plan that implies otherwise.
An ## Out of Scope entry does not answer a reviewer's finding. A finding relocated there
is still a finding, and moving it changes nothing about whether it is real. The mechanical rules
cannot catch this: a well-formed entry with a plausible reason is exactly what silencing a
finding would look like to a parser.
Machine-readable task format
This plugin parses its own plans. scripts/plan-parser.mjs reads a **Files:** block under
each ### Task N: <title> heading, and only three file-line forms are recognised:
- Create: \path``- Modify: \path``- Test: \path``
A line inside a **Files:** block that is shaped like a file line — - Word: \…`or- Word (…): `…`— but is not exactly one of the recognised forms makesinit-run refuse the
plan, naming the line, and every later command that reads the plan refuses it the same way. A misspelled verb or trailing text after the path used to drop the file
silently, and phase assignment (scripts/phases.mjs`) reads an empty file list as "conflicts with
nothing", landing the task in phase 1 beside everything else. Use the forms exactly, one file per
bullet.
Protected paths
A path the gate manifest protects — fleetmates.gate.json always, plus whatever its top-level
protected array adds — may only be changed by a task whose file line carries the (protected)
modifier after the verb:
- Modify (protected): \fleetmates.gate.json``
Exact lower case only: (Protected) is refused like any other malformed file line. The modifier
does not add a second file list: the path is declared in files like any other, and the marking
only authorises the change. The gate reads the plan from the anchor commit, so a marking added
mid-run counts only once it is amended on the base branch and the base is merged into the run
branch (see parallel-execution, "Amending a
plan mid-run"). A task that changes a protected path without the marking fails fileset and
escalates, even when the path is declared.
Dropped tests
When the gate's manifest gives a command check a report, the gate compares the suite's tests
before and after the phase. A task that deletes a test, renames one, or makes one stop running must
mark the test file with (drops):
- Test (drops): \tests/old-parse.test.mjs``
Exact lower case, read from the plan at the anchor like (protected), and one modifier per line:
a file that needs both markings goes on two lines. Without it the gate's inventory result fails and
the phase escalates. A test that is skipped where the gate runs — no database, no GPU — is not a
plan matter: it is declared in the manifest's skips, which is protected.
Dependencies are mandatory where they exist
A task that builds on another must carry **Depends:** T1, T3. Without it, the dependent
work is scheduled concurrently with the task it depends on, and a fleet will run them in
parallel worktrees regardless of what the prose says.
When a task has no dependencies, omit the Depends: line entirely — that is the intended
way to say "nothing." A sentinel like **Depends:** none is tolerated by the parser, but
omission is the documented form; don't rely on the sentinel.
Declaring a model tier
A task may declare the model tier it should run at:
**Model:** cheapValid values are cheap, mid, and capable. Omit the line and init-run infers a tier
from the task's shape — how many other tasks depend on it, how many files it declares, and
whether its brief already contains the code to write. Declare one only when you know the
inference would be wrong; an unrecognised value fails init-run with the offending task id.
Declared files are the enforced write set
An implementer may only create or modify the files its task declares. This is the permitted write set for that task — a stray path outside it is caught at merge and fails the phase gate.
The example plan
<!-- example-plan -->### Task 1: add user model
**Files:**
- Create: `src/models/user.mjs`
- Test: `tests/user.test.mjs`
- [ ] **Step 1:** Define the `User` class with `id`, `email`, `createdAt`.
### Task 2: add user repository
**Files:**
- Create: `src/repositories/user-repository.mjs`
- Modify: `src/models/user.mjs`
- Test: `tests/user-repository.test.mjs`
**Depends:** T1
- [ ] **Step 1:** Implement `findById` and `save` backed by an in-memory map.Self-check before dispatch
Before handing a plan to a fleet, run it through the parser and phase assigner yourself:
node "<fleetmates root>/scripts/cli.mjs" init-run docs/plans/<file>.md --run plancheck --root <project root>Read the printed phase breakdown and confirm it matches intent — tasks that should run sequentially must not land in the same phase. Then remove the scratch run directory; it was only for this check, not for the real run.
Task right-sizing, bite-sized steps, no placeholders
Match the discipline this plan itself follows: each task should be sized so one implementer can finish it without touching another task's files. Each step is one action. Code steps carry actual code, not a description of code. Never write "TBD" or "similar to Task N" — write out the content, even if it repeats a pattern from an earlier task.
Self-review
Before handing the plan off, check:
- Spec coverage — every requirement in the spec maps to at least one task.
- Placeholder scan — no "TBD", "similar to Task N", or other stand-ins remain.
- Type consistency — the same field, function, or shape is described identically wherever it appears across tasks.
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
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.

