Short specs: user stories, intent files and spec-driven tools for agent work¶
Type: concept. Status: watching (2026-11-27): a recommendation for the owner; milestone 15 waits until the owner has read it (#1048).
How other teams and tools keep a spec or an issue short enough to read in a minute and still precise enough for an agent to build from, set beside our intent template and the mini-specs of milestone 15. The page closes with one format for issue descriptions and one for specs, each written out for #1009, the change checks. How these pages are built: index.
Independent origin
The intent template came from this repository's own issue (#295, 2026-10-22) and the mini-spec rules from the milestone model (#999, 2026-11-23). The outcome spec planned in #678 borrows Shape Up's appetite and Amazon's PR/FAQ by name (#683, 2026-11-11), so for those two the outside source came first; for the rest the page is a check against an outside view.
Sources¶
Read on 2026-11-27.
- User stories: Mountain Goat Software's guide User Stories: What They Are, How to Write Them (updated 2026-07-12): the "As a …, I want …, so that …" sentence, Ron Jeffries' card, conversation and confirmation, and the advice to keep detail "detailed enough for the next decision". Jeffries' own article on the three parts was not readable here (connection refused), and Alan Klement's job-story article on jtbd.info was not readable here (fetch failed).
- Shape Up's pitch: Write the Pitch, chapter 6 of Ryan Singer's Shape Up (37signals): problem, appetite, solution, rabbit holes and no-gos.
- Decision records: Michael Nygard, Documenting Architecture Decisions (2011-11-15): one decision per record, a short noun-phrase title, context, decision, status and consequences, one or two pages.
- Spec-driven tools: GitHub spec-kit's spec template (main branch, undated); Kiro's Specs and Feature Specs pages (both updated 2026-11-15).
- Anthropic's guidance: Best practices for Claude Code (undated; read in part verbatim, the tail as a summary), Effective context engineering for AI agents (2025-09-29), and the prompting best practices (undated; read in part verbatim, the tail as a summary).
- Practitioners on spec size: Addy Osmani, How to write a good spec for AI agents (2026-01-13, the tail read as a summary); Jared Surato, Your Best Prompt Is a Well-Defined User Story (Atomic Object, 2026-04-02).
- No intent file standard. A search for an
intent.mdformat found none in wide use; the one candidate, the IDEA.md repository on GitHub, returned 404. - Critics, listed under What critics say, each read on 2026-11-27.
- Our side: the four files under
docs/specs/m15-autonomous-milestones/and the body of #1009, counted on 2026-11-27.
What it is¶
Every format below answers the same three questions: what does someone want, why, and how do we know it is done. They differ in how much else they ask for.
The user story is one sentence, "As a
Shape Up's pitch puts a problem and a solution together, with an appetite (the time the team is willing to spend, which caps the solution), the rabbit holes to avoid and the no-gos left out on purpose. It sketches the solution at a coarse level and leaves the detail to the builders.
A decision record holds one decision: its context, the decision in a sentence ("We will …"), its status and its consequences. Nygard numbers them in sequence but titles each with a noun phrase, so a reader sees "LDAP for multitenant integration", not "ADR 9" alone.
Spec-driven tools write the spec as files the agent works from. Spec-kit's template has user
scenarios with priorities and Given/When/Then acceptance scenarios, functional requirements
numbered FR-001 and success criteria SC-001, and inline [NEEDS CLARIFICATION: …] markers
for open points. Kiro writes requirements.md, design.md and tasks.md, with requirements in
EARS form: "WHEN
Anthropic's guidance says what to leave out rather than what to put in. Its test for a
CLAUDE.md line applies to a spec as well: "Only write down what Claude can't find by reading the
repo." A good prompt names the file, the symptom and what "fixed" looks like, states preferences
between reasonable approaches, and gives a check that passes or fails. For a fuzzy idea, Claude
interviews the user until it could write a SPEC.md, and a fresh session builds from it. The
context-engineering post asks for the smallest set of high-signal tokens, while warning that
minimal does not have to mean short.
What an agent needs, and what it finds itself. Taken together, the sources agree on a short list an agent cannot get from the repository: the outcome and the reason for it, the choices between reasonable options, the limits (what must not change, what is out), domain facts that are not in the code, and a check for done. File lists, the current behaviour, the affected skills and how the code is laid out an agent reads for itself; work-on's step 2 already does it before building.
How it relates to what we have¶
| # | Point | Verdict | Our side |
|---|---|---|---|
| 1 | A story states who wants what and why in one sentence | different | The intent template (plugins/workflow/skills/intake/intent-template.md) splits it into Problem and Proposed outcome; #1009's Proposed outcome opens with "Milestone 15's plan item P-14, under decision 14", not with what a user gets |
| 2 | The written text is a reminder; the detail comes from a conversation | different | Our template assumes the opposite: "A worker gets this body as its only prompt"; there is no conversation, so the body carries what a conversation would |
| 3 | Leave out what the agent can read in the repository | different | The template requires Affected users and systems, which a worker finds by reading the code, and work-on step 2 (plugins/workflow/skills/work-on/SKILL.md) checks it again; #1009's body is 425 words |
| 4 | Interview the user, then build from the written spec in a fresh session | same | workflow:intake asks only the questions that change the result and has an independent reviewer (plugins/workflow/skills/intake/intent-review.md) read the draft as the worker would; a mini-spec PR is approved before the build (milestone model) |
| 5 | Give a check that passes or fails | same | The Acceptance section holds checks a worker can turn into a test or a concrete check (intent template (plugins/workflow/skills/intake/intent-template.md)); each MAC-n carries a Verify: line (milestone model) |
| 6 | Number what is traced (FR-001, SC-001) |
same | We number too: MAC-n, AC-n, D-n, P-n and Q-n. The four milestone 15 specs hold 218 such references in 960 lines; the 1009 mini-spec alone has 39 in 274 lines |
| 7 | Title each decision with a noun phrase, one decision per record | same | An ADR is one file per decision with a number and a title, such as 0003-console-technology.md (decisions.md) |
| 8 | The same, for the decisions inside a spec | different | A mini-spec's decisions are a list headed "D-1, where the detection lives", and the 1009 mini-spec opens with "under decisions 14 and 15 and table 9b" of the milestone model, numbers a reader has to look up (docs/specs/m15-autonomous-milestones/1009-change-checks.md) |
| 9 | Mark an open point where it sits ([NEEDS CLARIFICATION]) |
different | Open questions go on a decision page; the body holds only its link and the question ids (intent template (plugins/workflow/skills/intake/intent-template.md)) |
| 10 | Problem and solution together, with no-gos and rabbit holes | same | Problem, Approach and Out of scope in the template; the planned outcome spec has no-gos and rabbit holes by name (milestones.md) |
| 11 | An appetite caps the solution | different | The planned outcome spec has an appetite per milestone (#678); a feature or its mini-spec has none, and the plan's spec: own or spec: in-milestone is the only size dial (milestone model) |
| 12 | A spec describes the next change and is retired after it ships | gap | Mini-specs stay under docs/specs/ after the build, and nothing says which of their facts move into the docs or the tests |
Critical assessment¶
What critics say¶
- A short story leaves the agent to guess (the strongest argument against a shorter format). Jacques Montagne argues, as his own opinion, that user stories are conversation starters that lean on context from meetings an agent never attended, so an agent fills the gaps with assumptions, and that a spec should leave nothing to infer: context, an interface contract, logic and constraints, edge cases (Stop Writing User Stories for AI. Start Writing Specs., dev.to, 2025-12-29). His productivity figures are his own estimates. Addy Osmani makes a narrower point in the same direction: domain facts and known pitfalls belong in the spec, "don't assume the AI will infer it" (How to write a good spec for AI agents, 2026-01-13).
- Long specs are harder to review than the code. Birgitta Böckeler of Thoughtworks tried Kiro, spec-kit and Tessl and found the output too verbose to review; Kiro turned a small bug into 4 user stories with 16 acceptance criteria, and agents still ignored parts of the spec. Her view: "I'd rather review code than all these markdown files" (Understanding Spec-Driven-Development, martinfowler.com, 2025-10-15).
- Spec-first is waterfall again. François Zaninotto, founder of Marmelab, holds that spec-driven development brings back big design up front; in his example spec-kit wrote 8 files and about 1,300 lines to show the current date, and an agent marked a verification task done without writing a test. He calls it "a step in the wrong direction" and prefers small experiments without a spec (Spec-Driven Development: The Waterfall Strikes Back, 2025-11-12).
- A spec should not outlive its change. Markus Eisele argues that a spec for an agent should be a change brief: the outcome and non-goals, the unknowns and the human decisions, the boundaries touched, the constraints that differ from today, and the tests for the risky path. Lasting facts belong in schemas, types, tests and a few short decision records, because prose is "a weak system for agents to synchronize a codebase with" (Specifications Need an Exit Strategy, O'Reilly Radar, 2026-08-17; the end of the article was read as a summary).
- Large documents go stale. Nygard wrote decision records because big specification documents are too long to read and "never kept up to date" (Documenting Architecture Decisions, 2011-11-15). His point predates agents; the agent reads every line it is given, the owner does not.
Searched with web search for criticism of spec-driven development, of user stories as input for coding agents, and for an intent file format.
Our assessment¶
| Concern | Evidence | Severity | What would settle it |
|---|---|---|---|
| Users and user experience: the issue asks for specs a person reads in a minute; the three milestone 15 mini-specs run to 250–275 lines each, and the four files hold 218 numbered references in 960 lines | #1048; rows 6 and 8; critic 2 | serious | Rewrite one mini-spec in the format below and time the owner's read of both |
| Reliability and edge cases: a shorter body could drop what a worker needs, which is critic 1's point; what is cut must be what the repository already shows, never an edge case or a choice | Row 3; the intent reviewer's worker simulation (plugins/workflow/skills/intake/intent-review.md) |
unknown | Run the intent reviewer on the short and the long #1009 body and compare the questions it finds |
Long-term maintainability: names instead of numbers touch the milestone model, the planned outcome spec (#678) and the close review's instructions; no script parses MAC-n or AC-n today, so the cost is in the docs, and a name changed later breaks its references |
milestone model; row 6 | minor | List every doc and skill that cites MAC-n or AC-n before the change |
| Alternatives and opportunity cost: shorter text alone may be enough, without renaming anything; the cheapest step is a length limit and plain words in the existing sections | none yet | unknown | Apply only a length limit to the next mini-spec and see whether the owner still finds it too long to read |
Bottom line¶
Trial small: write the next mini-spec and the next issue in the formats below, have the intent reviewer check the issue, and let the owner compare them with the old ones before any template or check changes.
What we could adopt¶
All four results need the owner; no issue is filed from this page.
A name instead of a number¶
A decision or a check is named by what it says, never by a counter. A check gets a short kebab
name that reads as a sentence, missing-result-holds-green; Verify: lines and the close review
cite that name, so a script can still match it. A decision is a bold sentence, "The match lives
in a script.", cited by its words or its anchor. A plan item is cited by its issue and title,
"#1007 (work-on stages)", never as P-12. A name is not reused or renamed once a spec is
approved, which is what a number gave us for free.
Issue descriptions in three sections¶
Three sections always, Must hold whenever the change has a limit, and Links; about 15 lines, and a one-line section is fine:
| Section | Required | What it holds |
|---|---|---|
| Want | yes | Who wants what, and why, in one to three sentences of plain words |
| Done when | yes | Checks a worker can turn into a test, examples and the edge case included |
| Not this time | yes | What a worker might add and must not |
| Must hold | when there is a limit | Every limit the repository does not show: what must keep working, a rule, a cost, what the build waits for |
| Links | no | The spec, the issues it builds on, the decision page |
Problem and Proposed outcome merge into Want; Examples and edge cases go into Done when;
Constraints becomes Must hold; Affected
users and systems goes, because the worker reads that in the code. Owner steps keep their own
section, as today. intake_check.py would need the new names. From #1009:
## Want
Some tests are too slow or too costly for the push gate, so they run only when someone remembers.
A repository lists them under a new `Change checks` key, each with the paths it is needed for.
When a branch touches such a path, the pull request shows whether the check ran and passed.
## Done when
- A diff under `backend/**/db/migration/**` gets one line for `postgresIntegrationTest` in the
pull request's verification block: pass, fail, or not run and handed to CI because docker is
missing.
- A diff that matches no check says `change checks: none matched`.
- babysit-pr does not report green while a matched check has no line.
- A paid check never runs on a worker's machine.
- `workflow_checks.py keys` refuses a clause it does not know and names it.
## Not this time
- A budget for paid checks, and running them in CI; milestone checks (#1010).
- Adding the key to this repository or to a project repository.
## Must hold
- A repository without the key behaves as today.
- A missing tool or variable is reported and handed to CI, never skipped in silence.
- The build waits for the verification block of #1007.
## Links
- Spec: `docs/specs/m15-autonomous-milestones/1009-change-checks.md`
Specs: a change brief of one page¶
A mini-spec keeps what an agent cannot find and the owner has to approve, and fits on one page, under 100 lines:
- What changes: the want in a short paragraph, as in the issue.
- Decisions: one bold sentence each, the reason, and the option not chosen in one clause.
- Interfaces: only what another piece depends on (a key's grammar, a command, a line format), one example each.
- Done when: named checks, each with its
Verify:line. - Not this time.
Terms, a contents list and the history of how a point was settled go: the terms become plain words, the history stays in the pull request. From the 1009 mini-spec, 274 lines and 39 numbered references today:
# Change checks
For #1009. Draft until the owner approves this pull request.
## What changes
Some tests run only when someone remembers. A repository lists them under `Change checks`, each
with the paths it is needed for. When a branch touches one, the worker runs it or says who will,
and the pull request shows the result.
## Decisions
- **The match lives in a script.** `workflow_checks.py changed` finds the matched checks and
`pr-watch` calls it, so a test holds the rule. Not chosen: a line in babysit-pr's text.
- **`ready` prints the lines and `work-on` puts them in the body.** babysit-pr catches a pull
request opened without them. Not chosen: a hidden state file.
- **A hand-over is a result.** `→ CI` and `→ run:paid` let the pull request go green, and the
report names each one.
## Interfaces
`Change checks` takes commands in backticks, each followed by clauses in parentheses: `when`
(globs, required), `tool`, `needs`, `cost paid`.
| Change checks | `./gradlew postgresIntegrationTest` (when backend/**/db/migration/**; tool docker) |
A result line: `pass at <commit>`, `fail at <commit>`, or `not run — <why> → CI | run:paid`.
## Done when
- **key-refuses-unknown-clause:** an unknown clause, an entry without `when` or a duplicate
command is refused by name. Verify: `pytest plugins/workflow/scripts -k "change_checks and key"`
- **diff-matches-its-checks:** `changed --base` lists exactly the checks whose globs match.
Verify: `pytest plugins/workflow/scripts -k "change_checks and match"`
- **paid-never-runs-here:** a paid check prints `not run — paid → run:paid` and never starts.
Verify: `pytest plugins/workflow/scripts -k "change_checks and run"`
- **missing-result-holds-green:** babysit-pr does not report green while a matched check has no
current line. Verify: `pytest plugins/git-flow/skills/babysit-pr/scripts -k change_checks`
## Not this time
A budget for paid checks; milestone checks (#1010); the key in any repository.
The example is a format sketch: it drops some of the mini-spec's detail (the glob rules, the dirty-tree case, the launcher), which a real rewrite would keep as more named checks.
What an issue holds, and what goes elsewhere¶
The issue holds the want, the checks for done and what is left out. The decisions and the
interfaces go into the spec. Open choices go on the decision page, as today. The history of a
discussion stays in comments and the pull request. While the milestone runs, a material change to
a check or an interface the spec names still goes through a spec amendment, and the close review
writes its evidence into milestone.md, as the milestone model
requires. After the close, the facts that last move into the docs, the tests and, for a choice
that outlives the change, a decision record; the feature's mini-spec then stays as a record that
nobody keeps up to date (row 12, critic 4).