@softure-ai/skills 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/README.md +4 -0
  2. package/WORKFLOW.md +6 -2
  3. package/package.json +1 -1
  4. package/skills/softure-archive/SKILL.md +76 -24
  5. package/skills/softure-archive/references/example-archive.md +106 -0
  6. package/skills/softure-code-review/SKILL.md +68 -18
  7. package/skills/softure-code-review/references/example-review.md +108 -0
  8. package/skills/softure-frame/SKILL.md +129 -40
  9. package/skills/softure-frame/references/diagnostic-lens.md +85 -0
  10. package/skills/softure-frame/references/examples.md +111 -0
  11. package/skills/softure-frame/references/pushback.md +38 -0
  12. package/skills/softure-impl-review/SKILL.md +138 -76
  13. package/skills/softure-impl-review/references/example-review.md +127 -0
  14. package/skills/softure-impl-review/references/rubric.md +120 -0
  15. package/skills/softure-impl-review/references/triage.md +124 -0
  16. package/skills/softure-implement/SKILL.md +116 -49
  17. package/skills/softure-implement/references/phase-commit.md +214 -0
  18. package/skills/softure-implement/references/worked-example.md +201 -0
  19. package/skills/softure-init/SKILL.md +57 -41
  20. package/skills/softure-init/references/example.md +96 -0
  21. package/skills/softure-init/references/templates.md +73 -0
  22. package/skills/softure-lesson/SKILL.md +47 -19
  23. package/skills/softure-lesson/references/examples.md +65 -0
  24. package/skills/softure-new/SKILL.md +100 -43
  25. package/skills/softure-new/references/example-change.md +149 -0
  26. package/skills/softure-new/references/placement.md +60 -0
  27. package/skills/softure-plan/SKILL.md +182 -50
  28. package/skills/softure-plan/references/plan-example.md +206 -0
  29. package/skills/softure-plan/references/progress-format.md +56 -2
  30. package/skills/softure-plan/references/questioning.md +162 -0
  31. package/skills/softure-plan-review/SKILL.md +211 -83
  32. package/skills/softure-plan-review/references/lenses.md +121 -0
  33. package/skills/softure-plan-review/references/review-example.md +184 -0
  34. package/skills/softure-prd/SKILL.md +130 -71
  35. package/skills/softure-prd/references/example-prd.md +233 -0
  36. package/skills/softure-prd/references/leak-lint.md +43 -0
  37. package/skills/softure-prd/references/prd-template.md +219 -0
  38. package/skills/softure-research/SKILL.md +73 -33
  39. package/skills/softure-research/references/example-research.md +106 -0
  40. package/skills/softure-research/references/fan-out.md +61 -0
  41. package/skills/softure-roadmap/SKILL.md +211 -65
  42. package/skills/softure-roadmap/references/example-roadmap.md +203 -0
  43. package/skills/softure-roadmap/references/interview.md +132 -0
  44. package/skills/softure-roadmap/references/slicing.md +118 -0
  45. package/skills/softure-rule-review/SKILL.md +83 -19
  46. package/skills/softure-rule-review/references/example-report.md +73 -0
  47. package/skills/softure-rule-review/references/scorecard.md +129 -0
  48. package/skills/softure-shape/SKILL.md +163 -53
  49. package/skills/softure-shape/references/example-shape-notes.md +192 -0
  50. package/skills/softure-shape/references/question-bank.md +248 -0
@@ -2,16 +2,20 @@
2
2
  name: softure-shape
3
3
  description: >
4
4
  Turn a raw idea, feedback dump or business goal into `context/foundation/shape-notes.md`:
5
- the problem, who has it, what they do today, the appetite, a rough solution sketch,
6
- rabbit holes, no-gos and open questions. Interviews one question at a time and pushes
7
- back on solution-first thinking. Use before writing a PRD, at the start of a product or
8
- of a new theme. Triggers: "shape this idea", "let's think this through", "I have an idea",
9
- "let's think it through before we start".
5
+ the problem, who has it, what they do today, access, the appetite, the first flow and a
6
+ rough solution sketch, the core rule, rabbit holes, no-gos, success signals and open
7
+ questions. Detects greenfield vs brownfield and adapts the interview (brownfield adds the
8
+ current system and preserved behaviour). Interviews one question at a time with a
9
+ recommended answer, pushes back on solution-first thinking, saves after every phase and
10
+ resumes an interrupted session. Use before writing a PRD, at the start of a product or of a
11
+ new theme. Triggers: "shape this idea", "let's think this through", "I have an idea",
12
+ "new project", "change to an existing system", "let's think it through before we start".
10
13
  argument-hint: "[idea in one sentence | path to notes] [--auto]"
11
14
  allowed-tools:
12
15
  - Read
13
16
  - Glob
14
17
  - Grep
18
+ - Bash
15
19
  - Write
16
20
  - Edit
17
21
  - AskUserQuestion
@@ -26,50 +30,131 @@ Most wasted work starts with a solution nobody checked against a problem. This s
26
30
  produces a short, opinionated document that a PRD can be written from. It records the
27
31
  problem worth solving and the boundaries of the solution. It does **not** produce a spec.
28
32
 
33
+ The skill is a **facilitator**. Its value is the order and shape of the questions, not
34
+ answers it makes up. Nothing goes into the file that the user did not say or confirm, or
35
+ that the inputs do not support. Recommendations are proposals the user accepts or rejects.
36
+ The only exception is mechanical: headings, frontmatter, numbering.
37
+
38
+ ## When to use, when not
39
+
40
+ - Use for a new product, a new theme, or a **meaningful** change to an existing system (a
41
+ new module, a significant feature, a change of behaviour many users notice).
42
+ - A single bug, a small refactor or one well-understood feature does not need shaping: point
43
+ to `softure-new` (or to `softure-frame` if the problem itself is in doubt) and stop.
44
+
29
45
  ## Inputs
30
46
 
31
47
  - `context/workflow.json`. If missing, stop and point to `softure-init`.
32
- - The idea: the argument, a file path, pasted notes or screenshots. With no idea at all, ask
33
- for one sentence and nothing else.
34
- - Brownfield: if the repo has code, skim the README, the entry points and the existing
35
- `context/foundation/*.md`, so you know the current system before discussing changes.
36
- Summarise it in 5 to 10 lines; do not audit it.
37
- - If `shape-notes.md` already exists, this is a **new session**. Keep the old content under
38
- `## Previous sessions` (collapsed to the key decisions), then shape the new theme above it.
48
+ - The idea: the argument, a file path, pasted notes or screenshots. With nothing at all, ask
49
+ for the idea in one or two sentences, plus any notes or links worth reading, and nothing
50
+ else.
51
+ - `context/foundation/shape-notes.md`, when it exists (see Resume and new sessions).
52
+ - `prd.md` and `roadmap.md` in `context/foundation/`, when present: the new theme must not
53
+ silently contradict them.
54
+
55
+ ## Greenfield or brownfield
56
+
57
+ Decide once per session and record it as `context_type` in the frontmatter. On resume, keep
58
+ the recorded value.
59
+
60
+ Signals, strongest first:
61
+ 1. git history with commits beyond the initial scaffold (`git log --oneline | head`);
62
+ 2. a lockfile (`package-lock.json`, `pnpm-lock.yaml`, `yarn.lock`, `poetry.lock`, `go.sum`,
63
+ `Cargo.lock`, `Gemfile.lock`, `composer.lock`…);
64
+ 3. source folders and framework config (`src/`, `app/`, a CI folder, a Dockerfile);
65
+ 4. a manifest alone (`package.json`, `pyproject.toml`…) is **weak**: it may be a fresh init.
66
+
67
+ Any of 1 or 2 → propose **brownfield**. Only 3 or 4 → propose brownfield but say it might be
68
+ a fresh project. Nothing → **greenfield**. State the signals you found and confirm with one
69
+ question (recommended: the detected mode). `--auto`: take the detected mode and record the
70
+ signals under `## Decisions (auto)`.
71
+
72
+ Brownfield changes the interview: it starts from what exists, frames everything as a delta,
73
+ and asks what must be preserved. Skim the README, the entry points and existing
74
+ `context/foundation/*.md` first and summarise the current system in 5 to 10 lines. Do not
75
+ audit it.
76
+
77
+ ## Resume and new sessions
78
+
79
+ When `shape-notes.md` exists, read it fully and decide:
80
+
81
+ - **`status: draft` with `_pending_` sections** → an interrupted session. Summarise each
82
+ completed section in one line, then continue at the first `_pending_` section. Never
83
+ re-ask what is already answered; the user's earlier decisions stand. Offer "restart" only
84
+ as a second option; restarting moves the file to
85
+ `context/foundation/archive/<YYYY-MM-DD>-shape-notes.md` (same day: `-2`, `-3`).
86
+ - **`status: accepted`** → a **new session** on a new theme. Increment `session`, collapse
87
+ the old content into `## Previous sessions` (the key decisions, a few lines), and shape the
88
+ new theme above it.
89
+
90
+ `--auto`: always resume a draft (never restart); with accepted notes and a new idea, start a
91
+ new session.
39
92
 
40
93
  ## Interview technique
41
94
 
42
- - **One question per message.** Each question comes with your recommended answer and why,
43
- so the user can just say "yes".
44
- - Ask about the **problem before the solution**. If the user opens with a solution
45
- ("add a chat"), ask what happens today without it, how often it happens and what it costs.
46
- Do not drop the solution: park it under *Solution sketch* and come back to it.
47
- - Use concrete examples: "last time this happened, what exactly did you do?"
48
- - Stop when every section below can be written in your own words and the user agrees with
49
- the summary. In practice that is 6 to 12 questions; more means the idea is too big
50
- (propose splitting it).
95
+ - **One question per message.** Each comes with your recommended answer and why, so the user
96
+ can just say "yes". Where the answer is a choice, offer 2 to 4 real options with their
97
+ trade-offs, recommended first, and "Not decided yet" last (it goes to
98
+ `## Open questions`).
99
+ - **Problem before solution.** If the user opens with a solution ("add a chat"), ask what
100
+ happens today without it, how often, and what it costs. Do not drop the solution: park it
101
+ under *Solution sketch* or `## Forward notes` and come back to it.
102
+ - **Concrete over general:** "last time this happened, what exactly did you do?" Challenge
103
+ vague words ("everyone", "always", "a lot") and claims without evidence ("users want X":
104
+ how do we know?).
105
+ - **Echo and lock.** After each phase, show a one-line summary per section and ask "Correct?"
106
+ before writing.
107
+ - **Name anti-patterns specifically.** Never "this has issues": say which piece is too
108
+ expensive, or that the core rule is missing, and offer concrete moves.
109
+ - **No stack decisions.** Do not ask about or recommend frameworks, databases, hosting or
110
+ vendors. When the user volunteers them, record them under `## Forward notes`; they are
111
+ inputs for later steps, not for the PRD.
51
112
  - Write the user's own words verbatim in quotes where they are the evidence.
113
+ - Stop when every section can be written in your own words and the user agrees. In practice
114
+ 8 to 15 questions; many more means the idea is too big (propose splitting it).
115
+ - If the user wants to skip a phase ("just write the PRD"), say what the PRD will lack
116
+ without it (for example "no core rule: the PRD will describe a plain list"), then let them
117
+ skip. Skipped sections become open questions.
118
+
119
+ Per-phase questions, option sets, pushback prompts, the scope-cost and empty-CRUD scripts
120
+ and a sample exchange: read `references/question-bank.md` before the first question.
52
121
 
53
122
  ## Procedure
54
123
 
55
- 1. Read the inputs. State in two lines what you understood, and the single biggest unknown.
56
- 2. Interview, in this order, skipping anything already answered by the inputs:
57
- 1. **Problem**: what hurts, for whom, how often, and what evidence exists.
58
- 2. **Who**: the primary person (role, context, skill level) and who is explicitly *not* targeted.
59
- 3. **Today**: current alternatives and workarounds, including "do nothing".
60
- 4. **Why now**: what changed, and what it costs to wait.
61
- 5. **Appetite**: how much time this is worth (days/weeks), not how long it will take.
62
- 6. **Solution sketch**: the smallest shape that solves the core problem, as bullet points
63
- or a fat-marker description, not screens.
64
- 7. **Rabbit holes**: the parts that could explode in effort, with a decision for each.
65
- 8. **No-gos**: what we deliberately will not do in this round.
66
- 9. **Success**: how we will know it worked (an observable signal and a threshold).
124
+ 1. Read the inputs and decide greenfield or brownfield. State in two lines what you
125
+ understood and the single biggest unknown.
126
+ 2. Interview phase by phase, skipping anything the inputs already answer. After each phase,
127
+ write the file (`status: draft`, unfinished sections hold `_pending_`, `updated` set), so
128
+ a broken session can resume.
129
+ 1. **Problem and who**: what hurts, for whom, in what moment, at what cost, with what
130
+ evidence; the primary person and who is explicitly *not* targeted. Brownfield first:
131
+ the current system and what must be preserved.
132
+ 2. **Today and why now**: current workarounds (including "do nothing"), what changed,
133
+ what waiting costs.
134
+ 3. **Access**: how people get in, roles, who sees whose data. Even "single user, no
135
+ sign-in" is an answer worth writing.
136
+ 4. **Appetite and the first flow**: a fixed time budget (not an estimate), hard deadline,
137
+ full-time or side work; then the smallest end-to-end flow as numbered steps. Run the
138
+ **scope-cost check** when the flow exceeds the appetite.
139
+ 5. **Solution sketch and core rule**: the few elements needed (not screens); the
140
+ one-sentence rule the product applies that a spreadsheet would not. Run the
141
+ **empty-CRUD check** when there is no rule. Brownfield: current rule → change, or "No
142
+ domain rule change".
143
+ 6. **Rabbit holes, constraints, no-gos**: each rabbit hole with a decision (cut, fake,
144
+ time-box, accept); brownfield constraints and preserved behaviour as outcomes; no-gos
145
+ for both capabilities and quality levels, drawn from this domain.
146
+ 7. **Success signals**: signal → threshold → how measured, plus guardrails (what must not
147
+ get worse); a rough expected scale.
67
148
  3. Check for overlap with the SOFTURE module catalog (WORKFLOW §10). If part of the sketch
68
149
  is a generic capability (auth, mail, waitlist, billing…), note it under *Solution sketch*
69
150
  as "use `@softure-ai/<module>`".
70
- 4. Draft `shape-notes.md` using the template, then show a 10-line summary and ask:
71
- "Anything wrong or missing? (Recommended: accept)".
72
- 5. Apply corrections and write the file. Set `updated` in the frontmatter.
151
+ 4. **Cross-check (soft gate).** Run the quality bar below. Report each gap **by name with its
152
+ consequence** ("Core rule: missing, so the PRD will describe a list with no logic"), never
153
+ a generic "there are gaps". Offer: fill the gaps now (Recommended when more than one is
154
+ missing) / accept and finish / go back to phase N. Accepted gaps go to `## Open questions`
155
+ marked `(accepted gap)`, so `softure-prd` carries them over.
156
+ 5. Show a 10-line summary and ask: "Anything wrong or missing? (Recommended: accept)".
157
+ Apply corrections, set `status: accepted` and `updated`, write the file.
73
158
 
74
159
  ## Output: `context/foundation/shape-notes.md`
75
160
 
@@ -77,6 +162,7 @@ problem worth solving and the boundaries of the solution. It does **not** produc
77
162
  ---
78
163
  project: "<name>"
79
164
  session: 1
165
+ context_type: greenfield | brownfield
80
166
  created: <YYYY-MM-DD>
81
167
  updated: <YYYY-MM-DD>
82
168
  status: draft | accepted
@@ -85,44 +171,68 @@ status: draft | accepted
85
171
  # Shape notes: <theme in one line>
86
172
 
87
173
  ## Current system (brownfield only; 5–10 lines)
88
- ## Problem (who hurts, how often, evidence; quotes verbatim)
174
+ ## Problem (who hurts, in what moment, how often, cost; evidence; quotes verbatim)
89
175
  ## Who it is for (primary; secondary; explicitly not for)
90
- ## Today (alternatives and workarounds)
176
+ ## Access (how people get in; roles; who sees whose data)
177
+ ## Today (alternatives and workarounds, including doing nothing)
91
178
  ## Why now
92
- ## Appetite (time budget, fixed; scope flexes, time does not)
93
- ## Solution sketch (smallest shape; elements, not screens)
179
+ ## Appetite (fixed time budget; deadline; full-time or side work; accepted overrun, if any)
180
+ ## Solution sketch (First flow as numbered steps; then elements, not screens; modules)
181
+ ## Core rule (one sentence; brownfield: today → change, or "No domain rule change")
94
182
  ## Rabbit holes (risk → decision)
95
- ## No-gos
96
- ## Success signals (signal → threshold → how measured)
97
- ## Open questions (owner → by when)
183
+ ## Constraints and preserved behaviour (brownfield only; outcomes, not mechanisms)
184
+ ## No-gos (capabilities and quality levels not pursued in this round)
185
+ ## Success signals (signal → threshold → how measured; guardrails)
186
+ ## Open questions (question → owner → by when; "(accepted gap)" where applicable)
187
+ ## Forward notes (optional: stack hints, implementation ideas, parked solutions)
188
+ ## Frame (optional, written by softure-frame)
189
+ ## Decisions (auto) (only in --auto)
98
190
  ## Previous sessions (only when re-shaping)
99
191
  ```
100
192
 
101
- Write in `workflow.json` → `language`.
193
+ Headings stay in English. Write the prose in `workflow.json` → `language`. A complete
194
+ greenfield example, the brownfield differences and a bad example with what is wrong:
195
+ read `references/example-shape-notes.md` before drafting.
102
196
 
103
197
  ## `--auto`
104
198
 
105
- Without a user to ask, shape only from the inputs. Every section the inputs do not support
106
- gets `UNKNOWN: <what would answer it>` instead of an invented answer. Leave `status: draft`
107
- and list the assumptions under `## Decisions (auto)`.
199
+ Without a user to ask, shape only from the inputs:
200
+ - context type: the detected one; resume: always continue a draft;
201
+ - every section the inputs do not support gets `UNKNOWN: <what would answer it>` instead of
202
+ an invented answer; a missing core rule is a **blocking** open question;
203
+ - scope-cost check: never grow the appetite; record the expensive pieces and the scope-down
204
+ moves under `## Decisions (auto)` and add an open question for the owner;
205
+ - cross-check: write every gap to `## Open questions` as `(accepted gap)`;
206
+ - leave `status: draft` and list every assumption under `## Decisions (auto)`.
108
207
 
109
208
  ## Quality bar
110
209
 
111
210
  - [ ] The problem is stated without naming the solution.
112
211
  - [ ] There is at least one piece of evidence (a quote, a number or an incident), or an
113
212
  explicit note that none exists.
114
- - [ ] The appetite is a time budget, not an estimate.
213
+ - [ ] The primary person is a role or a named person, not "users".
214
+ - [ ] Access is stated, even when it is "single user, no sign-in".
215
+ - [ ] The appetite is a time budget, not an estimate, and the first flow fits it (or the
216
+ overrun is recorded as accepted).
217
+ - [ ] The core rule is one sentence a spreadsheet could not apply, or is a recorded gap.
115
218
  - [ ] Every rabbit hole has a decision.
219
+ - [ ] Brownfield: preserved behaviour is named explicitly.
220
+ - [ ] No-gos are non-empty and specific to this domain.
116
221
  - [ ] The success signals are observable by someone other than the author.
117
- - [ ] Fits on about two screens. Longer usually means two themes.
222
+ - [ ] No technology choice outside `## Current system` and `## Forward notes`.
223
+ - [ ] Fits on about two to three screens. Longer usually means two themes.
118
224
 
119
225
  ## Do not
120
226
 
121
- - Do not write requirements, user stories or tasks. That is `softure-prd`.
227
+ - Do not write requirements, user stories, acceptance criteria or tasks. That is
228
+ `softure-prd`.
122
229
  - Do not accept "users want X" without asking how we know.
123
- - Do not run more than one question per message, and do not dump a questionnaire.
230
+ - Do not ask more than one question per message, and do not dump a questionnaire.
231
+ - Do not invent content to fill a section; ask, or mark it `UNKNOWN`.
232
+ - Do not run `softure-prd` yourself; the user decides when the notes are ready.
124
233
 
125
234
  ## Handoff
126
235
 
127
- Accepted shape → `softure-prd`. If the user doubts whether this is the right thing at all →
128
- `softure-frame`.
236
+ Report: the file path, context type, which sections are complete, the open questions (and
237
+ how many are blocking), and the forward notes that will matter later. Then: accepted shape →
238
+ `softure-prd`. If the user doubts whether this is the right thing at all → `softure-frame`.
@@ -0,0 +1,192 @@
1
+ # Worked examples: shape notes
2
+
3
+ Read this before drafting `shape-notes.md`, and when unsure how much detail a section needs.
4
+ Three examples: a complete greenfield file, the sections a brownfield file adds or changes,
5
+ and a bad file with what is wrong with it.
6
+
7
+ ## 1. Good: greenfield, complete
8
+
9
+ ```markdown
10
+ ---
11
+ project: "Kilnbook"
12
+ session: 1
13
+ context_type: greenfield
14
+ created: 2026-03-02
15
+ updated: 2026-03-04
16
+ status: accepted
17
+ ---
18
+
19
+ # Shape notes: wheel and kiln booking for a members' pottery studio
20
+
21
+ ## Problem
22
+ Members of a 40-person community pottery studio book the six wheels and the shared kiln
23
+ through a spreadsheet and a chat group. Double bookings happen about twice a week; the
24
+ studio manager, Ola, resolves each one by hand.
25
+ > "Every Sunday evening I spend an hour untangling who actually has wheel 3 on Tuesday."
26
+ > (Ola, studio manager)
27
+ Evidence: 23 double bookings counted in the chat history for January; one member cancelled
28
+ her pass in February and named the bookings as the reason.
29
+
30
+ ## Who it is for
31
+ - Primary: the studio manager, who keeps the schedule fair and answers every complaint.
32
+ - Secondary: members on a monthly pass (8 sessions per month), booking from their phones.
33
+ - Not for: drop-in visitors who pay per visit (handled at the front desk), other studios.
34
+
35
+ ## Access
36
+ Members sign in with an account the manager invites them to; there is no public sign-up.
37
+ The manager has one admin role. Members see who booked a wheel only as initials; they never
38
+ see another member's pass balance. Without signing in, nothing is visible.
39
+
40
+ ## Today
41
+ A shared spreadsheet that anyone can edit, plus a chat group for swaps. When two names land
42
+ in one cell, the manager messages both and decides. Doing nothing costs her about four hours
43
+ a week and costs the studio members' trust.
44
+
45
+ ## Why now
46
+ The studio grows from 40 to 60 members in April, when the second room opens. The
47
+ spreadsheet already breaks at 40.
48
+
49
+ ## Appetite
50
+ Three weeks of part-time work (evenings), fixed. No hard deadline beyond "before the second
51
+ room opens on 15 April". The scope flexes, the time does not.
52
+
53
+ ## Solution sketch
54
+ First flow:
55
+ 1. A member signs in and sees this week's wheel slots, free and taken.
56
+ 2. They book a free slot; one session is taken from their pass.
57
+ 3. If no slot is free, they join the waitlist for that slot.
58
+ 4. When someone cancels, the first person on the waitlist gets the slot offered.
59
+
60
+ Elements: weekly slot grid; booking with a pass balance; waitlist per slot; manager's view
61
+ of the day; mail when a waitlist slot opens (use `@softure-ai/mail`); sign-in (use
62
+ `@softure-ai/auth`).
63
+
64
+ ## Core rule
65
+ A booking is confirmed only while the member has an unused session in this month's pass;
66
+ otherwise it joins the waitlist, and a freed slot is offered to the waitlist in order, each
67
+ offer held for 2 hours before it moves to the next member. (Shape: allocation.)
68
+
69
+ ## Rabbit holes
70
+ - Kiln firing schedule: different rules (shelf space, temperature) → cut from round one;
71
+ the kiln stays on the spreadsheet.
72
+ - Payments for passes → cut; passes are sold at the desk, the manager enters the balance.
73
+ - Recurring weekly bookings → time-box to 2 days; if it does not fit, drop it.
74
+
75
+ ## No-gos
76
+ - No payments or invoicing in this round.
77
+ - No native mobile app; a phone-friendly web page is enough.
78
+ - No offline use.
79
+ - No support for other studios.
80
+
81
+ ## Success signals
82
+ - Double bookings → 0 per week in the first month → manager's own weekly count.
83
+ - Manager's schedule time → under 30 minutes per week → she logs it for four weeks.
84
+ - Waitlist offers accepted → at least half → counted by the product.
85
+ - Guardrail: a member books a slot in under a minute on a phone, as today with the
86
+ spreadsheet; the week's view opens without a noticeable wait.
87
+
88
+ ## Open questions
89
+ - Can a member hold two slots on the same day? → Ola → before planning.
90
+ - How long before a session can a member cancel without losing it? → Ola → before planning.
91
+
92
+ ## Forward notes
93
+ - Ola asked for "push notifications"; parked: mail covers the waitlist offer in round one.
94
+ - The studio already pays for a calendar subscription; nobody wants it integrated now.
95
+ ```
96
+
97
+ Why this is good:
98
+ - The problem is stated without naming the solution, and it carries evidence (a quote, a
99
+ count, a lost customer).
100
+ - The core rule is one sentence a spreadsheet cannot apply; it is what makes the product
101
+ worth building.
102
+ - Every rabbit hole ends in a decision, and the appetite is a fixed budget.
103
+ - The user's solution ("push notifications") was not dropped: it is parked under
104
+ `## Forward notes` with the reason.
105
+ - Success signals can be checked by someone other than the author.
106
+
107
+ ## 2. Good: brownfield, the sections that differ
108
+
109
+ An invoicing tool for small agencies, adding recurring invoices. Only the sections that a
110
+ brownfield file adds or frames differently are shown.
111
+
112
+ ```markdown
113
+ ---
114
+ project: "Billdesk"
115
+ session: 3
116
+ context_type: brownfield
117
+ created: 2026-05-10
118
+ updated: 2026-05-12
119
+ status: accepted
120
+ ---
121
+
122
+ # Shape notes: recurring invoices
123
+
124
+ ## Current system
125
+ Billdesk is a web app used by about 300 small agencies to issue one-off invoices. Invoices
126
+ are numbered per year without gaps (a legal requirement for most customers), exported as PDF,
127
+ and sent by mail. A public API lets 40 customers create invoices from their own tools.
128
+ Retainer clients (the same amount every month) are invoiced by copying last month's invoice.
129
+
130
+ ## Problem
131
+ Agencies with retainer clients copy an invoice every month and forget about one in ten.
132
+ > "We found three months of unbilled retainer in our yearly review." (support ticket #4182)
133
+ Evidence: 61 support tickets mentioning "copy invoice" or "repeat" in the last quarter.
134
+
135
+ ## Core rule
136
+ Today: an invoice number is assigned when the invoice is issued, the next free number of the
137
+ year. Change: a schedule creates a draft on its date; the number is still assigned only when
138
+ the draft is issued, so drafts never consume numbers.
139
+
140
+ ## Constraints and preserved behaviour
141
+ - Invoice numbers stay gapless per year, including invoices created from schedules.
142
+ - Existing invoices, their PDFs and their numbers do not change.
143
+ - The public API for creating invoices keeps working for the 40 existing integrations
144
+ without any change on their side.
145
+ - Customers who never use schedules see no difference.
146
+
147
+ ## No-gos
148
+ - No change to how one-off invoices are created or numbered.
149
+ - No automatic sending without a person issuing the draft (round one).
150
+ - No proration or usage-based amounts.
151
+ ```
152
+
153
+ What makes it brownfield-shaped: the current system is described first and briefly; the
154
+ core rule states today's rule before the change; preserved behaviour is explicit, so the PRD
155
+ can turn each line into a `preserved` requirement.
156
+
157
+ ## 3. Bad: solution first, nothing to build a PRD from
158
+
159
+ ```markdown
160
+ # Shape notes: booking app
161
+
162
+ ## Problem
163
+ Users need a modern booking app with a calendar, push notifications and payments.
164
+
165
+ ## Who it is for
166
+ Everyone who does pottery.
167
+
168
+ ## Solution sketch
169
+ React Native app, Firebase backend, Stripe for payments, Google Calendar sync, admin
170
+ dashboard with charts.
171
+
172
+ ## Appetite
173
+ About 2 months, maybe more.
174
+
175
+ ## Success signals
176
+ Users love it.
177
+ ```
178
+
179
+ What is wrong, section by section:
180
+ - **Problem** names the solution (calendar, notifications, payments) and no pain, person,
181
+ moment or cost. There is no evidence.
182
+ - **Who** is "everyone": there is no primary person to design the first flow for.
183
+ - **Solution sketch** is a technology list. Stack choices belong under `## Forward notes`;
184
+ the sketch should be elements and a first flow.
185
+ - **Appetite** is an estimate ("about, maybe more"), not a budget, and it far exceeds what
186
+ the problem justifies, because the problem was never stated.
187
+ - **Success signals** cannot be observed or measured.
188
+ - **Missing entirely:** today's workaround, why now, access, the core rule (as written, this
189
+ is a calendar, which a spreadsheet already is), rabbit holes and no-gos.
190
+
191
+ The right response to this draft is not to polish it but to restart at phase 1 with the
192
+ question: "The last time a booking went wrong, what happened and who fixed it?"