dsh-plugin-strict-spec 0.5.0 → 0.6.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.
- package/README.md +13 -13
- package/README.zh.md +10 -12
- package/dist/cli/strict-spec-cli.js +109 -771
- package/dist/skills/strict-roadmap-plan/SKILL.md +49 -139
- package/dist/skills/strict-roadmap-recommend/SKILL.md +63 -282
- package/dist/skills/strict-roadmap-reorder/SKILL.md +40 -158
- package/dist/skills/strict-roadmap-review/SKILL.md +48 -144
- package/dist/skills/strict-roadmap-transition/SKILL.md +52 -274
- package/dist/skills/strict-scene-edit/SKILL.md +51 -121
- package/dist/skills/strict-spec-apply/SKILL.md +63 -173
- package/dist/skills/strict-spec-architecture/SKILL.md +39 -97
- package/dist/skills/strict-spec-archive/SKILL.md +57 -127
- package/dist/skills/strict-spec-auto/SKILL.md +98 -270
- package/dist/skills/strict-spec-brainstorm/SKILL.md +73 -176
- package/dist/skills/strict-spec-bugfix/SKILL.md +101 -225
- package/dist/skills/strict-spec-design/SKILL.md +55 -124
- package/dist/skills/strict-spec-design-sync/SKILL.md +55 -123
- package/dist/skills/strict-spec-init/SKILL.md +45 -93
- package/dist/skills/strict-spec-maintenance/SKILL.md +44 -94
- package/dist/skills/strict-spec-modify/SKILL.md +44 -113
- package/dist/skills/strict-spec-propose/SKILL.md +180 -495
- package/dist/skills/strict-spec-review/SKILL.md +121 -273
- package/dist/skills/strict-spec-ship/SKILL.md +25 -60
- package/dist/skills/strict-spec-spec-edit/SKILL.md +35 -84
- package/dist/skills/strict-spec-sync-specs/SKILL.md +44 -94
- package/dist/skills/strict-spec-verify/SKILL.md +28 -43
- package/dist/skills/strict-tech-edit/SKILL.md +43 -124
- package/dist/skills/strict-tech-sync/SKILL.md +60 -162
- package/package.json +2 -1
|
@@ -8,19 +8,13 @@ metadata:
|
|
|
8
8
|
version: 1.0.0
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
context, and existing strict specs. Record remaining ambiguity in
|
|
16
|
-
`questions.yaml` for `strict-spec-auto` or `strict-spec-apply` to surface
|
|
17
|
-
before implementation.
|
|
11
|
+
Turn a user request into a strict change whose planning artifacts pass proposal
|
|
12
|
+
validation, pausing for no question or confirmation: derive the strongest
|
|
13
|
+
proposal the evidence supports and leave what remains unknown in
|
|
14
|
+
`questions.yaml` for `strict-spec-auto` or `strict-spec-apply` to surface.
|
|
18
15
|
|
|
19
16
|
## This Skill's Commands
|
|
20
17
|
|
|
21
|
-
If you cannot remember the exact command used by this skill, look it up here
|
|
22
|
-
before running anything. Do not guess.
|
|
23
|
-
|
|
24
18
|
```yaml
|
|
25
19
|
check-workflow-state: strict-spec-cli check-workflow-state
|
|
26
20
|
tech-status: strict-spec-cli tech-status
|
|
@@ -35,269 +29,137 @@ ready: strict-spec-cli ready <change-name>
|
|
|
35
29
|
verify: strict-spec-cli verify <change-name>
|
|
36
30
|
```
|
|
37
31
|
|
|
38
|
-
## YAML Writing Rules
|
|
39
|
-
|
|
40
|
-
- Keep artifacts in valid strict YAML structures. Do not switch to Markdown
|
|
41
|
-
prose or freeform notes inside YAML files.
|
|
42
|
-
- If artifact fields are unclear, use `strict-spec-cli schema-show <schema-name>`;
|
|
43
|
-
installed skills do not carry a `templates` directory.
|
|
44
|
-
- Shared schema cache root: `~/.strict-spec-schemas/`. When a YAML artifact already declares `schema_file`, resolve that relative path under the shared cache root to inspect the concrete schema file without relying on a local templates directory.
|
|
45
|
-
- If a valid artifact example would clarify the shape, use
|
|
46
|
-
`strict-spec-cli sample-show <sample-name>`; installed skills do not rely on a
|
|
47
|
-
local `examples` directory.
|
|
48
|
-
- Use block scalars only for free-text content. Prefer `>-` for wrapped prose
|
|
49
|
-
such as longer `summary`, `approach`, `decision`, `rationale`, `question`,
|
|
50
|
-
`context`, `answer`, and spec `statement` values. Use `|` only when literal
|
|
51
|
-
line breaks must be preserved as part of the value.
|
|
52
|
-
- Quote short strings that may contain YAML-sensitive characters or ambiguous
|
|
53
|
-
scalar values, including `command` strings, URLs, paths, text containing `:`
|
|
54
|
-
or `#`, leading `-`, JSON-like fragments, boolean-like words, and timestamp-
|
|
55
|
-
like values.
|
|
56
|
-
- Keep short structural fields as plain scalars unless quoting is needed for
|
|
57
|
-
correctness. Do not force IDs, enums, schema identifiers, artifact types,
|
|
58
|
-
task references, or similar fields into block scalars.
|
|
59
|
-
- Before handing off, self-check indentation, list nesting, quote closure, and
|
|
60
|
-
colon spacing, then run `verify` to catch remaining schema or YAML issues.
|
|
61
|
-
|
|
62
32
|
## CLI-Only YAML Authoring Protocol
|
|
63
33
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
`
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
example keys with their cache-resolved paths, bound to the artifact kind and
|
|
70
|
-
current where a copy would go stale. Validate the result with `strict-spec-cli
|
|
71
|
-
verify <change-name>`.
|
|
72
|
-
|
|
73
|
-
**Stop rather than edit YAML directly.** When a required command, argument, or
|
|
74
|
-
artifact kind is unavailable, stop and report the missing capability. Editing
|
|
75
|
-
the YAML directly, writing a raw payload, or scripting around the CLI is never
|
|
76
|
-
an available fallback, and an unavailable command is a reason to stop rather
|
|
77
|
-
than a reason to improvise.
|
|
34
|
+
This skill writes `change-planning-state`, `change-delta-state`, `scene-state`.
|
|
35
|
+
Before its first mutation, run
|
|
36
|
+
`strict-spec-cli yaml-authoring-protocol <artifact-kind>` for each kind and
|
|
37
|
+
follow it, including its rule to stop and report a missing command rather than
|
|
38
|
+
work around it; validate the result with `strict-spec-cli verify <change-name>`.
|
|
78
39
|
|
|
79
40
|
## Preferred Human Language
|
|
80
41
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
user
|
|
84
|
-
the active user message asks otherwise.
|
|
42
|
+
Write user-facing and generated operator-facing text in the human language named
|
|
43
|
+
by `preferred_human_language` in `.strict-spec-driven/config.yaml`, unless the
|
|
44
|
+
active user message asks otherwise.
|
|
85
45
|
|
|
86
46
|
## Requirement Interrogation
|
|
87
47
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
48
|
+
Interrogate the need before the intake gate interrogates the solution: a
|
|
49
|
+
well-scoped change built against a misread need is still the wrong change.
|
|
50
|
+
|
|
51
|
+
`propose` seeds five open requirement questions — `requirement-problem`,
|
|
52
|
+
`requirement-outcome`, `requirement-trigger`, `requirement-non-goals`, and
|
|
53
|
+
`requirement-interpretation` — that block a fresh change until answered. They
|
|
54
|
+
are **never answered from repository evidence**: code shows what the system
|
|
55
|
+
does, not what a person wants. Only the requester's own words or replayed
|
|
56
|
+
roadmap planned-change and milestone detail answer them, and nothing the
|
|
57
|
+
requester already said is asked again. Resolve each through
|
|
58
|
+
`generate <change-name> questions` with the `--answered-by` source; leave the
|
|
59
|
+
rest open for the skill that surfaces them.
|
|
60
|
+
|
|
61
|
+
Whoever asks them:
|
|
62
|
+
|
|
63
|
+
- **Explain before you ask**: why the question matters, what a sufficient
|
|
64
|
+
answer contains, a concrete example of one, and what the answer changes,
|
|
65
|
+
with workflow vocabulary — problem versus solution, observable outcome,
|
|
66
|
+
non-goal — defined in plain terms.
|
|
67
|
+
- Ask one question at a time with a concrete guess the requester can correct,
|
|
68
|
+
anchored on the last concrete occurrence rather than the general case.
|
|
69
|
+
- Reject an answer that names a solution — a button, field, endpoint — and
|
|
70
|
+
**state the reason for the pushback** with the missing criterion instead of
|
|
71
|
+
silently re-asking.
|
|
72
|
+
- When interrogation cannot land, record `--answered-by assumption`, never a
|
|
73
|
+
plausible invention: an assumption blocks `ready` and forces a human
|
|
74
|
+
decision, while a fabricated answer passes silently.
|
|
100
75
|
|
|
101
|
-
|
|
102
|
-
- `requirement-outcome` — what observable difference proves it is solved
|
|
103
|
-
- `requirement-trigger` — why now, what forced this
|
|
104
|
-
- `requirement-non-goals` — what must explicitly not change
|
|
105
|
-
- `requirement-interpretation` — which reading is intended, where more than one exists
|
|
106
|
-
|
|
107
|
-
Resolve each with:
|
|
108
|
-
|
|
109
|
-
```bash
|
|
110
|
-
strict-spec-cli generate <change-name> questions --resolve <id> --answer "..." --answered-by human
|
|
111
|
-
```
|
|
76
|
+
## Scene-First Requirement Routing
|
|
112
77
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
- **Ask one question at a time**, and let each answer shape the next. A batch of
|
|
119
|
-
five questions returns five shallow answers.
|
|
120
|
-
- **Carry a concrete guess into every question** rather than posing a blank
|
|
121
|
-
prompt. People correct a wrong specific statement far more readily than they
|
|
122
|
-
fill in a blank. Where the harness provides `AskUserQuestion`, use it with two
|
|
123
|
-
to four concrete options so you must commit to a guess.
|
|
124
|
-
- **Ask about the last concrete occurrence**, not the general case. Episodic
|
|
125
|
-
memory produces facts; general questions produce theories, and people theorize
|
|
126
|
-
badly about their own workflows.
|
|
127
|
-
- **Reject an answer that names a solution** instead of a problem. If it names a
|
|
128
|
-
button, field, page, or endpoint, ask what they would do next once that
|
|
129
|
-
existed, until the answer is a behavior.
|
|
130
|
-
- **Ask what happens if nothing is done.** This tests whether the trigger is real.
|
|
131
|
-
- **Replay a deliberately imperfect summary** and let them correct it. A
|
|
132
|
-
correction carries more information than agreement.
|
|
133
|
-
|
|
134
|
-
### Explain before you ask
|
|
135
|
-
|
|
136
|
-
Never assume the requester knows how to answer. Before posing a question,
|
|
137
|
-
**explain why the question matters** and what a sufficient answer contains,
|
|
138
|
-
defining any workflow vocabulary — problem versus solution, observable outcome,
|
|
139
|
-
non-goal — in plain terms. The requester is the domain expert; you are the
|
|
140
|
-
workflow expert, so the vocabulary is your job to explain.
|
|
141
|
-
|
|
142
|
-
When an answer cannot be used yet, **state the reason for the pushback** and
|
|
143
|
-
supply the missing criterion. Never silently re-ask the same question: that
|
|
144
|
-
reads as not having listened, and it pushes the requester into repeating
|
|
145
|
-
themselves rather than adding what is missing.
|
|
146
|
-
|
|
147
|
-
When interrogation cannot land — the requester will not engage, or the answer
|
|
148
|
-
stays a restated solution — record `--answered-by assumption` rather than
|
|
149
|
-
inventing a plausible answer. An assumption blocks `ready` and forces an
|
|
150
|
-
explicit human decision; a fabricated answer passes silently and is worse.
|
|
78
|
+
After the interrogation and before any requirement is drafted, ask in every
|
|
79
|
+
proposal: who acts and what each actor does; what must already be true before
|
|
80
|
+
the main flow begins; what happens, step by ordered step, when nothing goes
|
|
81
|
+
wrong; and what can go wrong, what triggers each exception flow, and what
|
|
82
|
+
happens then.
|
|
151
83
|
|
|
152
|
-
|
|
84
|
+
**Author the scene before the delta spec.** Find a recorded scene describing
|
|
85
|
+
the situation with `scene-status`, write the change's delta scene from the
|
|
86
|
+
answers, and derive each delta-spec requirement from a flow step it covers; a
|
|
87
|
+
step may cite requirements across spec areas.
|
|
153
88
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
- who acts, and what each actor does
|
|
160
|
-
- what must already be true before the main flow begins
|
|
161
|
-
- what happens, step by ordered step, when nothing goes wrong
|
|
162
|
-
- what can go wrong, what triggers each exception flow, and what happens then
|
|
163
|
-
|
|
164
|
-
A requirement set written without those answers has systematic holes — skipped
|
|
165
|
-
actors, assumed preconditions, unwritten exception flows — and they are
|
|
166
|
-
invisible in the requirements themselves, because nothing in a requirement
|
|
167
|
-
records the question that was never asked.
|
|
168
|
-
|
|
169
|
-
**Author the scene before the delta spec.** Run `strict-spec-cli scene-status`,
|
|
170
|
-
narrowed with `--area` or `--scene`, to find a recorded scene that already
|
|
171
|
-
describes the situation; then write the change's delta scene and draft each
|
|
172
|
-
delta-spec requirement against a flow step it covers.
|
|
173
|
-
|
|
174
|
-
The scene is mandatory as a question and optional as an artifact. It is authored
|
|
175
|
-
when the change touches user-observable behavior. When the change is purely
|
|
176
|
-
technical — a refactor, build or test tooling, repository maintenance, an
|
|
177
|
-
architecture constraint, a script, or skill guidance — there is no actor flow to
|
|
178
|
-
describe: **record why no scene applies** as a design decision and leave
|
|
179
|
-
`scenes/` absent. Do not invent an actor flow to fill the artifact, and do not
|
|
180
|
-
skip the questions to avoid the answer.
|
|
181
|
-
|
|
182
|
-
Scene checking is triggered by the presence of a scene, never by the presence of
|
|
183
|
-
a spec, so a project recording no scene sees no new diagnostic. Once a change
|
|
184
|
-
carries a delta scene, `ready` and `verify` block on any step of the scenes it
|
|
185
|
-
touches naming neither a covering requirement nor an explicit no-coverage
|
|
186
|
-
reason, and the diagnostic names the runnable command that records the coverage.
|
|
89
|
+
The scene is mandatory as a question and optional as an artifact. A purely
|
|
90
|
+
technical change — refactor, build or test tooling, repository maintenance,
|
|
91
|
+
architecture constraint, script, or skill guidance — has no actor flow:
|
|
92
|
+
**record why no scene applies** as a design decision and leave `scenes/`
|
|
93
|
+
absent. Never invent an actor flow to fill the artifact.
|
|
187
94
|
|
|
188
95
|
## Change Intake Question Gate
|
|
189
96
|
|
|
190
|
-
Before
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
The `questions` generator has no `--impact` or `--recommendation` flags; put
|
|
205
|
-
those details in the `--context` text.
|
|
206
|
-
- Stop before implementation while `questions.yaml.open` is non-empty.
|
|
207
|
-
- When the user answers, resolve the item into `questions.yaml.resolved` before
|
|
208
|
-
continuing implementation or automatic workflow execution.
|
|
209
|
-
|
|
210
|
-
Keep the proposal checkpoint focused on what changes, what stays the same,
|
|
211
|
-
where the work likely lives, how it will be tested, and which technical rules
|
|
212
|
-
apply.
|
|
97
|
+
Before proposal validation or implementation handoff, run the plain
|
|
98
|
+
change-intake checklist: what changes, what stays the same, where the work
|
|
99
|
+
likely lives, how it will be tested, and which technical rules apply.
|
|
100
|
+
|
|
101
|
+
- Answer every recoverable item from project evidence first — the config,
|
|
102
|
+
relevant specs and standards, existing change artifacts, the implementation
|
|
103
|
+
and test files the change touches, `git status`, and focused code search —
|
|
104
|
+
and never ask the human for what the request or repository already answers.
|
|
105
|
+
- Ask when a required answer is still absent after discovery, even with a
|
|
106
|
+
plausible guess: record it in `questions.yaml.open` under a stable
|
|
107
|
+
language-neutral id, with question text in `preferred_human_language` and a
|
|
108
|
+
`--context` carrying the impact and a recommended answer or options.
|
|
109
|
+
- Stop before implementation while `questions.yaml.open` is non-empty; resolve
|
|
110
|
+
each answered item into `questions.yaml.resolved` before work continues.
|
|
213
111
|
|
|
214
112
|
## Spec and Technical Artifact Routing
|
|
215
113
|
|
|
216
|
-
A strict change may legitimately have no delta spec
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
-
|
|
220
|
-
behavior
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
tooling edits when applicable, focused tests, validation commands,
|
|
232
|
-
`ready`/`verify` checks, and archive-readiness or archive-merge checks when
|
|
233
|
-
the change affects artifacts consumed by archive.
|
|
114
|
+
A strict change may legitimately have no delta spec; never invent one to
|
|
115
|
+
satisfy artifact shape.
|
|
116
|
+
|
|
117
|
+
- A delta spec exists only when a main-spec requirement changes — usually
|
|
118
|
+
user-observable behavior. A purely technical change leaves `specs/` empty and
|
|
119
|
+
records the explicit empty-spec decision in `design.yaml` under an id
|
|
120
|
+
`ready` accepts (`no-delta-spec`; its diagnostic lists the others).
|
|
121
|
+
- Delta tech exists only when the change adds, modifies, or retires an
|
|
122
|
+
engineering rule or standard; a change that merely complies leaves `tech/`
|
|
123
|
+
absent. Live standards are never edited during a change.
|
|
124
|
+
- UI work splits: observable behavior is spec, engineering and design rules a
|
|
125
|
+
`ui`-category standard, pixel fidelity visual-regression snapshots.
|
|
126
|
+
- A technical-only change still carries complete tasks: the script, tooling,
|
|
127
|
+
asset, or skill edits, focused tests, validation commands, `ready`/`verify`,
|
|
128
|
+
and archive or archive-merge checks when archive consumes what it changes.
|
|
234
129
|
|
|
235
130
|
## Roadmap-Backed Milestone Mode
|
|
236
131
|
|
|
237
|
-
A request
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
authoritative and run it before reading broad roadmap context. Never choose
|
|
269
|
-
among a milestone's planned changes yourself. Open only the selected
|
|
270
|
-
planned-change artifact and its owning milestone, and carry that planned
|
|
271
|
-
change's `summary`, `details`, `depends_on`, and labels forward as change-intake
|
|
272
|
-
evidence instead of re-asking what they already answer.
|
|
273
|
-
|
|
274
|
-
That one `--create` call scaffolds exactly one recommended planned change as a
|
|
275
|
-
normal strict change, so do not run `roadmap-recommend` again. Use the reported
|
|
276
|
-
`createdChange.name` as `<change-name>` for every later command, in place of the
|
|
277
|
-
`propose` call in step 3. Roadmap status matches a
|
|
278
|
-
change to its planned change by directory name alone, so a roadmap-backed
|
|
279
|
-
change named anything else is never marked complete when it archives. When
|
|
280
|
-
`createdChange` is `null`, report the command's diagnostics and stop rather than
|
|
281
|
-
falling back to `propose`. Record the roadmap link when generating the proposal
|
|
282
|
-
so archive can reconcile the planned change; the command refuses a link whose
|
|
283
|
-
planned change is absent, owned by another milestone, or named differently from
|
|
284
|
-
the change:
|
|
285
|
-
|
|
286
|
-
```bash
|
|
287
|
-
strict-spec-cli generate <change-name> proposal --what "..." --why "..." --milestone <milestone-id> --planned-change <change-name>
|
|
288
|
-
```
|
|
289
|
-
|
|
290
|
-
**When no planned change comes back, report the reason and stop.** A
|
|
291
|
-
`no-candidate`, `roadmap-error`, or `refine-milestone` result already names why
|
|
292
|
-
the milestone yields no work — an incomplete dependency, a paused milestone, a
|
|
293
|
-
milestone awaiting refinement, or invalid roadmap state. Report the resolved
|
|
294
|
-
milestone id, the returned status, and those named blockers, and stop there. Do
|
|
295
|
-
not select a planned change by hand, do not quietly fall back to a standalone
|
|
296
|
-
proposal under the same name, and do not add `--allow-unrefined`: that flag is a
|
|
297
|
-
deliberate human decision, so surface the refusal and let the human take it.
|
|
298
|
-
|
|
299
|
-
Everything after selection is the ordinary proposal flow in the steps below,
|
|
300
|
-
including the handoff that stops at proposal validation.
|
|
132
|
+
A request naming a milestone — exact id, bare number, or recognizable part of
|
|
133
|
+
an id or title — is roadmap-backed: the roadmap, not the request, sets scope.
|
|
134
|
+
|
|
135
|
+
1. Resolve the selector to exactly one milestone id from `roadmap-status` or
|
|
136
|
+
the roadmap index alone: an exact id as given; a bare number by numeric id
|
|
137
|
+
prefix ignoring leading zeros; anything else as an exact id, then a
|
|
138
|
+
case-insensitive substring of an id or title. Zero or several matches:
|
|
139
|
+
report the ambiguity and stop.
|
|
140
|
+
2. Run `strict-spec-cli roadmap-recommend --milestone <resolved-milestone-id> --create`.
|
|
141
|
+
The change is created in the same call that recommends it, named after the
|
|
142
|
+
recommended planned change; the command owns order, dependencies, pauses,
|
|
143
|
+
and refinement, so its selection is authoritative. Never choose among
|
|
144
|
+
planned changes, rerun it, `propose`, or take a name from the request: use
|
|
145
|
+
`createdChange.name` as `<change-name>` everywhere after, because roadmap
|
|
146
|
+
status matches a change by directory name alone.
|
|
147
|
+
3. Read only the selected planned change and its owning milestone; carry its
|
|
148
|
+
`summary`, `details`, `depends_on`, and labels forward as intake evidence and
|
|
149
|
+
replayed requirement detail (`--answered-by roadmap`), and link the proposal
|
|
150
|
+
with `--milestone` and `--planned-change`.
|
|
151
|
+
|
|
152
|
+
**When no planned change comes back, report the reason and stop.** On a null
|
|
153
|
+
`createdChange` or a `no-candidate`, `refine-milestone`, or `roadmap-error`
|
|
154
|
+
result, report the resolved milestone id, the returned status, and its named
|
|
155
|
+
blockers — an incomplete dependency, a paused milestone, a milestone awaiting
|
|
156
|
+
refinement, or invalid roadmap state. Never select a planned change by hand,
|
|
157
|
+
fall back to a standalone proposal, or add `--allow-unrefined`, which is the
|
|
158
|
+
human's decision to take.
|
|
159
|
+
|
|
160
|
+
A request naming no milestone is a standalone proposal and never runs
|
|
161
|
+
`roadmap-recommend`; whole-roadmap selection belongs to
|
|
162
|
+
`strict-roadmap-recommend`.
|
|
301
163
|
|
|
302
164
|
## Steps
|
|
303
165
|
|
|
@@ -305,249 +167,72 @@ Before any other step, run `strict-spec-cli check-workflow-state`. If `.strict-s
|
|
|
305
167
|
missing, stop immediately and tell the user to run `/strict-spec-init`. Do not
|
|
306
168
|
run `init` from this skill.
|
|
307
169
|
|
|
308
|
-
1. **Determine the
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
- `summary.why`
|
|
371
|
-
- `scope.in`
|
|
372
|
-
- `scope.out`
|
|
373
|
-
- `unchanged_behavior`
|
|
374
|
-
Keep the content observable and concrete.
|
|
375
|
-
|
|
376
|
-
5. **Generate `design.yaml`** — run one direct CLI invocation with named
|
|
377
|
-
arguments:
|
|
378
|
-
```bash
|
|
379
|
-
strict-spec-cli generate <change-name> design --approach "..." --decision <decision-id> --decision-text "..." --rationale "..."
|
|
380
|
-
```
|
|
381
|
-
Populate:
|
|
382
|
-
- `approach`
|
|
383
|
-
- `decisions`
|
|
384
|
-
- `alternatives`
|
|
385
|
-
- `risks`
|
|
386
|
-
Make the design conform to the applicable technical standards from step 2.
|
|
387
|
-
When a standard meaningfully shapes the approach, record it as a `decision`
|
|
388
|
-
with a `rationale` that cites the standard. If the design must deviate from a
|
|
389
|
-
SHOULD rule, record the deviation and its justification as a decision; if it
|
|
390
|
-
would violate a MUST rule, record an open question in `questions.yaml`
|
|
391
|
-
instead of silently breaking the standard.
|
|
392
|
-
|
|
393
|
-
6. **Generate `tasks.yaml` with one CLI invocation per task** — run
|
|
394
|
-
`strict-spec-cli generate <change-name> tasks` once for each task so no task
|
|
395
|
-
list is hand-written. Keep concrete task sections for `Implementation`,
|
|
396
|
-
`Testing`, and `Verification`. Read `strict-spec-cli generate --help --json`
|
|
397
|
-
(or `--help`) first. Choose `--implementation`, `--testing`, or `--verification`
|
|
398
|
-
for the corresponding section. Each takes no value and opens one task group;
|
|
399
|
-
following task fields belong to it. Repeat a selector for each task in a
|
|
400
|
-
multi-task call. Removal and gate flags are global and need no selector.
|
|
401
|
-
- first task is one invocation; the task list starts absent and is created by this call:
|
|
402
|
-
```bash
|
|
403
|
-
strict-spec-cli generate <change-name> tasks --implementation --task <task-id> --text "..."
|
|
404
|
-
```
|
|
405
|
-
No flag rebuilds the list. Remove a task explicitly with `--remove <task-id>`.
|
|
406
|
-
Whole-artifact `--delete` is isolated and refuses while completed tasks exist.
|
|
407
|
-
- each later task is one more invocation:
|
|
408
|
-
```bash
|
|
409
|
-
strict-spec-cli generate <change-name> tasks --testing --task <task-id> --text "..." --command "..."
|
|
410
|
-
```
|
|
411
|
-
- `--status` defaults to `pending`; testing tasks should pass a runnable
|
|
412
|
-
`--command`
|
|
413
|
-
- restating an existing `(section, task-id)` is a field-level merge — it
|
|
414
|
-
overwrites only the fields you pass, so a task's `status: complete` and
|
|
415
|
-
`command` survive a text-only edit; a brand-new task still needs `--text`
|
|
416
|
-
- delete a task with `--remove <task-id>`; to move a task between sections,
|
|
417
|
-
`--remove` it and restate it under the new section in the same call
|
|
418
|
-
- place a task with `--before <task-id>` or `--after <task-id>` instead of letting
|
|
419
|
-
it append; task order is the order `apply` walks, so a task that must run before
|
|
420
|
-
existing pending work is anchored rather than appended, and naming an existing
|
|
421
|
-
task id with an anchor moves it there while preserving its `status` and `command`
|
|
422
|
-
- values may begin with a dash via `--text=...` or `--command=...`
|
|
423
|
-
- set the gates with `--validation-task <task-id>` and
|
|
424
|
-
`--unit-test-task <task-id>`; both must reference `Testing` task ids
|
|
425
|
-
- the command upserts by `(section, task-id)` and is idempotent; each call
|
|
426
|
-
returns `{valid, ready, diagnostics}` — `valid` reports write success and
|
|
427
|
-
`ready` reports completeness, so a `ready: false` result naming empty
|
|
428
|
-
sections or unset gates is not a failed write; keep adding tasks and
|
|
429
|
-
confirm with `verify` before handoff
|
|
430
|
-
- for technical-only changes, include the concrete scripts, tooling,
|
|
431
|
-
generated assets, documentation, or skill-prompt edits in scope; include
|
|
432
|
-
validation, strict `ready`/`verify`, and archive-readiness or archive-merge
|
|
433
|
-
checks when relevant
|
|
434
|
-
|
|
435
|
-
7. **Generate `questions.yaml`** — run one direct CLI invocation for the full
|
|
436
|
-
artifact. Restating an id overwrites just that entry:
|
|
437
|
-
```bash
|
|
438
|
-
strict-spec-cli generate <change-name> questions --open <question-id> --question "..." --context "..." --resolved <question-id> --question "..." --context "..." --answer "..."
|
|
439
|
-
```
|
|
440
|
-
Record open questions as structured entries under `open` using fields such
|
|
441
|
-
as `id`, `question`, and `context`; the script writes the status. Include
|
|
442
|
-
impact analysis and recommendation/options in `--context`, not as separate
|
|
443
|
-
CLI flags. If everything is clear, leave `open: []`.
|
|
444
|
-
|
|
445
|
-
7b. **Author the scene before the requirements** — carrying the four answers
|
|
446
|
-
collected under Scene-First Requirement Routing into the change's delta
|
|
447
|
-
scene, after `scene-status` has been checked for a scene describing it:
|
|
448
|
-
```bash
|
|
449
|
-
strict-spec-cli generate <change-name> delta-scene --target-scene <scene-id> --title "..." --area <area> --actor <name> --role "..." --precondition "..." --operation ADDED --step <step-id> --action "..." --covered-by <spec-id>:<requirement-id> --exception-flow <flow-id> --trigger "..." --exception-step <flow-id>:<step-id> --action "..." --no-coverage-reason "..."
|
|
450
|
-
```
|
|
451
|
-
A target no scene index records is a new scene, additionally requiring
|
|
452
|
-
`--title`, `--area`, `--actor` with `--role`, and `--precondition`. A step
|
|
453
|
-
may name covering requirements across several spec areas, and requirements
|
|
454
|
-
this change adds are referenced by the ids step 8 will create. Skip this step
|
|
455
|
-
for a purely technical change.
|
|
456
|
-
|
|
457
|
-
8. **Generate strict YAML delta specs only when specs change** — run this step
|
|
458
|
-
only when the change has observable spec impact. Use one direct CLI
|
|
459
|
-
invocation per target spec and include all requirement operations needed for
|
|
460
|
-
that target in the same command:
|
|
461
|
-
```bash
|
|
462
|
-
strict-spec-cli generate <change-name> delta-spec --target-spec <spec-id> --operation ADDED --requirement <requirement-id> --strength MUST --statement "..." --scenario <scenario-id> --given "..." --when "..." --then "..." --operation MODIFIED --requirement <requirement-id> --strength MUST --statement "..."
|
|
463
|
-
```
|
|
464
|
-
One requirement can include multiple scenario groups by repeating
|
|
465
|
-
`--scenario`. A later compatible call for the same operation, requirement id,
|
|
466
|
-
strength, and statement appends new scenario ids and remains idempotent for
|
|
467
|
-
equivalent scenarios. Scenarios append on their own, so nothing needs rebuilding or hand-editing to add one. Drop a single scenario with `--remove-scenario <requirement-id>:<scenario-id>` and a whole requirement with `--remove-requirement <id>`.
|
|
468
|
-
The generated files under `.strict-spec-driven/changes/<name>/specs/` should
|
|
469
|
-
mirror the target main spec paths.
|
|
470
|
-
- use strict YAML delta artifacts with `target_spec` and `operations`
|
|
471
|
-
- populate `operations.ADDED`, `operations.MODIFIED`, and `operations.REMOVED`
|
|
472
|
-
only as needed
|
|
473
|
-
- added and replacement requirements use structured fields such as `id`,
|
|
474
|
-
`strength`, `statement`, `scenarios`, and ordered `steps`
|
|
475
|
-
- if the change has no observable spec impact, leave the `specs/` directory
|
|
476
|
-
empty rather than inventing a prose-only file
|
|
477
|
-
|
|
478
|
-
8b. **Generate strict YAML delta tech (only when the change alters a standard)** —
|
|
479
|
-
if step 2 identified that this change must add, modify, or retire a technical
|
|
480
|
-
standard, generate delta tech artifacts under
|
|
481
|
-
`.strict-spec-driven/changes/<change-name>/tech/` with one direct CLI
|
|
482
|
-
invocation per target standard:
|
|
483
|
-
```bash
|
|
484
|
-
strict-spec-cli generate <change-name> delta-tech --target-standard <standard-id> --operation ADDED --rule <rule-id> --strength MUST --statement "..." --rationale "..." --method review --operation REMOVED --rule <rule-id> --reason "..."
|
|
485
|
-
```
|
|
486
|
-
`ADDED`/`MODIFIED` rules require `--strength`, `--statement`, `--rationale`,
|
|
487
|
-
and `--method` (one of lint, ci, test, review, manual), with optional
|
|
488
|
-
`--detail`, `--example-good`, `--example-bad`, and `--exception`; `REMOVED`
|
|
489
|
-
rules take only `--reason`. To introduce a brand new standard, pass
|
|
490
|
-
`--target-standard <new-id> --title "..." --category <category>`; archive
|
|
491
|
-
creates the standard file and merges the rules. Run
|
|
492
|
-
`strict-spec-cli schema-show delta-tech` if
|
|
493
|
-
you need the full contract. Leave the `tech/` directory absent when the
|
|
494
|
-
change only complies with existing standards and changes none of them.
|
|
495
|
-
|
|
496
|
-
9. **Run the proposal checkpoint over generated planning artifacts** — before
|
|
497
|
-
validation, perform a semantic self-check of every generated or edited file under
|
|
498
|
-
`.strict-spec-driven/changes/<change-name>/` against the user request, the
|
|
499
|
-
relevant main specs, technical standards, and the existing project constraints.
|
|
500
|
-
Check for decision-ready detail in scope, unchanged behavior, design
|
|
501
|
-
decisions, task coverage, unresolved-question impact, delta spec scenarios,
|
|
502
|
-
and delta tech use when applicable. When no delta specs are appropriate,
|
|
503
|
-
replace delta spec scenario review with a justified absence check for the
|
|
504
|
-
technical-only change. For technical-only changes,
|
|
505
|
-
verify that tasks cover scripts or tooling, validation commands,
|
|
506
|
-
`ready`/`verify`, and archive or archive-merge checks when archive behavior
|
|
507
|
-
is affected. The checkpoint
|
|
508
|
-
should fix safe, in-scope documentation gaps immediately by rerunning the
|
|
509
|
-
supported `generate` commands for script-owned artifacts, including
|
|
510
|
-
`generate <change-name> tasks` for task-list structure. Do not expand scope
|
|
511
|
-
or answer unresolved human questions during this checkpoint; record ambiguity in
|
|
512
|
-
`questions.yaml`.
|
|
513
|
-
|
|
514
|
-
10. **Validate proposal readiness and artifact structure** — run:
|
|
515
|
-
```bash
|
|
516
|
-
strict-spec-cli ready <change-name>
|
|
517
|
-
```
|
|
518
|
-
Use this as the deterministic proposal-handoff check. It reports missing
|
|
519
|
-
planning artifacts, open questions, delta-spec gaps, and schema issues
|
|
520
|
-
without deciding product scope. Then run:
|
|
521
|
-
```bash
|
|
522
|
-
strict-spec-cli verify <change-name>
|
|
523
|
-
```
|
|
524
|
-
Use the command as a strict YAML schema and artifact-shape sanity check. At
|
|
525
|
-
proposal time, pending-task diagnostics are expected because implementation
|
|
526
|
-
has not started yet. Repair schema or structure issues before handing the
|
|
527
|
-
proposal off. Do not stop for human question resolution during
|
|
528
|
-
`strict-spec-propose`; leave open questions in `questions.yaml`.
|
|
529
|
-
|
|
530
|
-
11. **Hand off** — summarize the scope, key decisions, proposal checkpoint
|
|
531
|
-
refinements made, task count, unchanged behavior, and any open questions. Explicitly
|
|
532
|
-
recommend `/strict-spec-auto` as the primary next step. If `questions.yaml`
|
|
533
|
-
still has open entries, make clear that `/strict-spec-auto` or
|
|
534
|
-
`/strict-spec-apply` must surface and resolve them before coding starts.
|
|
170
|
+
1. **Determine the mode and change name** — a milestone selector means
|
|
171
|
+
roadmap-backed mode above, whose planned change supplies scope and name;
|
|
172
|
+
otherwise use the user's kebab-case name or derive one from the request.
|
|
173
|
+
|
|
174
|
+
2. **Load context** — read `.strict-spec-driven/config.yaml`, the spec index,
|
|
175
|
+
and every main spec the change may touch (for a technical change, confirm no
|
|
176
|
+
requirement is implicated); the standards `tech-status` shows govern the
|
|
177
|
+
touched code, whose MUST rules bind and SHOULD rules are the default; and the
|
|
178
|
+
lessons `lesson-status --category <category>` ranks, matched by
|
|
179
|
+
`applies_when` — warnings, not rules, weighted by occurrence count. Then run
|
|
180
|
+
the interrogation, scene questions, and intake gate above. Done when every
|
|
181
|
+
gap is an answer or an open question.
|
|
182
|
+
|
|
183
|
+
3. **Scaffold the change** — `propose <change-name>`, unless roadmap-backed
|
|
184
|
+
`--create` already made it.
|
|
185
|
+
|
|
186
|
+
4. **Generate `proposal.yaml`, `design.yaml`, and `questions.yaml`** — the
|
|
187
|
+
proposal states what, why, scope, and unchanged behavior in observable
|
|
188
|
+
terms; the design records approach, decisions, alternatives, and risks,
|
|
189
|
+
citing a shaping standard in a decision's rationale, justifying any SHOULD
|
|
190
|
+
deviation as a decision, and raising a would-be MUST violation as an open
|
|
191
|
+
question. Questions carry intake gaps open and given answers resolved.
|
|
192
|
+
|
|
193
|
+
5. **Generate `tasks.yaml` with one CLI invocation per task** — read
|
|
194
|
+
`strict-spec-cli generate --help --json` first; it owns the argument
|
|
195
|
+
semantics. Each task is one `generate <change-name> tasks` invocation opened
|
|
196
|
+
by a valueless section selector — `--implementation`, `--testing`, or
|
|
197
|
+
`--verification` — owning the fields after it. Restating a task merges only
|
|
198
|
+
the fields passed. Task order is the order `apply` walks: a task that must
|
|
199
|
+
run before existing pending work is placed with `--before` or `--after`,
|
|
200
|
+
never appended. Testing tasks carry a runnable command and both testing
|
|
201
|
+
gates name one; `valid` without `ready` is a successful, incomplete write.
|
|
202
|
+
Done when every scoped edit, test, and validation command has a task.
|
|
203
|
+
|
|
204
|
+
6. **Author the delta scene** — for user-observable behavior, as the scene
|
|
205
|
+
routing above directs; skip for a technical change.
|
|
206
|
+
|
|
207
|
+
7. **Generate strict YAML delta specs only when specs change** — one
|
|
208
|
+
`generate <change-name> delta-spec` invocation per target spec carrying every
|
|
209
|
+
operation for it, so the files mirror the main spec paths; prefer `MODIFIED`
|
|
210
|
+
when correcting an existing requirement. Scenarios and requirements are
|
|
211
|
+
added incrementally and removed by id through the same command, never
|
|
212
|
+
rebuilt. Delta tech takes the same shape: one invocation per altered
|
|
213
|
+
standard (`schema-show delta-tech`).
|
|
214
|
+
|
|
215
|
+
8. **Run the proposal checkpoint** — before validation, self-check every change
|
|
216
|
+
artifact against the request, main specs, standards, and project
|
|
217
|
+
constraints for decision-ready detail in scope, unchanged behavior, design
|
|
218
|
+
decisions, task coverage, unresolved-question impact, delta spec scenarios
|
|
219
|
+
(or the justified absence of a delta spec), and delta tech use. Fix safe
|
|
220
|
+
in-scope documentation gaps by rerunning `generate`; never expand scope or
|
|
221
|
+
answer a human question here — record it in `questions.yaml`.
|
|
222
|
+
|
|
223
|
+
9. **Validate** — `ready <change-name>` is the proposal-handoff gate: fix every
|
|
224
|
+
structural blocker it names, leaving open questions recorded for the next
|
|
225
|
+
skill. `verify <change-name>` then checks schema and shape; pending-task
|
|
226
|
+
diagnostics are expected at proposal time.
|
|
227
|
+
|
|
228
|
+
10. **Hand off** — summarize scope, key decisions, checkpoint refinements, task
|
|
229
|
+
count, unchanged behavior, and open questions, and recommend
|
|
230
|
+
`strict-spec-auto` without invoking it; open questions are resolved through
|
|
231
|
+
`strict-spec-auto` or `strict-spec-apply` before coding starts.
|
|
535
232
|
|
|
536
233
|
## Rules
|
|
537
234
|
|
|
538
|
-
-
|
|
539
|
-
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
- Do not pause for user confirmation or question resolution during proposal
|
|
543
|
-
- Keep all change artifacts in strict YAML structures
|
|
544
|
-
- Document ambiguity in `questions.yaml` instead of guessing
|
|
545
|
-
- Do not auto-invoke `/strict-spec-auto` during strict-spec-propose; hand off
|
|
546
|
-
after proposal validation instead
|
|
547
|
-
- Treat applicable technical standards under `.strict-spec-driven/tech/` as
|
|
548
|
-
binding: design within MUST rules, follow SHOULD rules by default, and record
|
|
549
|
-
any deviation or conflict as a decision or open question
|
|
550
|
-
- When the change must alter a standard, carry that change as a delta tech
|
|
551
|
-
artifact under the change's `tech/` directory so it merges through archive;
|
|
552
|
-
never edit live standards under `.strict-spec-driven/tech/` directly during a
|
|
553
|
-
change
|
|
235
|
+
- Never implement, pause for confirmation, resolve ambiguity by guessing, or
|
|
236
|
+
auto-invoke `strict-spec-auto`.
|
|
237
|
+
- Ask the scene questions in every proposal and never invent an actor flow; a
|
|
238
|
+
standard that must change travels as delta tech, never as a live edit.
|