dsh-plugin-strict-spec 0.5.1 → 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 +108 -770
- 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,17 +8,11 @@ metadata:
|
|
|
8
8
|
version: 1.0.0
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
`.strict-spec-driven/roadmap/`. The skill's job is to pick the right one, check
|
|
14
|
-
the preconditions that command does not check for you, run it once, and report
|
|
15
|
-
what moved.
|
|
11
|
+
Move roadmap state with exactly one owning CLI command: take the operation the
|
|
12
|
+
request names, check what the command does not, run it once, report what moved.
|
|
16
13
|
|
|
17
14
|
## This Skill's Commands
|
|
18
15
|
|
|
19
|
-
If you cannot remember the exact command used by this skill, look it up here
|
|
20
|
-
before running anything. Do not guess.
|
|
21
|
-
|
|
22
16
|
```yaml
|
|
23
17
|
check-workflow-state: strict-spec-cli check-workflow-state
|
|
24
18
|
roadmap-status: strict-spec-cli roadmap-status
|
|
@@ -34,211 +28,36 @@ roadmap-archive: strict-spec-cli roadmap-archive [milestone-id]
|
|
|
34
28
|
roadmap-sync: strict-spec-cli roadmap-sync
|
|
35
29
|
roadmap-sync-materialize: strict-spec-cli roadmap-sync --materialize-planned-changes
|
|
36
30
|
roadmap-sync-fix-names: strict-spec-cli roadmap-sync --fix-names
|
|
37
|
-
roadmap-generate-planned-change: strict-spec-cli roadmap-generate planned-change --milestone <milestone-id> --id <planned-change-id> --summary "..." --details "..."
|
|
38
31
|
```
|
|
39
32
|
|
|
40
33
|
## Operations
|
|
41
34
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
| operation | target | owning command | effect |
|
|
46
|
-
| --- | --- | --- | --- |
|
|
47
|
-
| `pause` | milestone | `roadmap-pause` | hold a milestone out of recommendation and force it `blocked` |
|
|
48
|
-
| `resume` | milestone | `roadmap-resume` | clear a pause so status re-derives from planned-change state |
|
|
49
|
-
| `defer` | milestone | `roadmap-defer` | declare a milestone planned but not yet elaborated |
|
|
50
|
-
| `refine` | milestone | `roadmap-refine` | clear an awaiting-refinement declaration once its precondition matured |
|
|
51
|
-
| `move` | planned change | `roadmap-move-planned-change` | move one planned change to another milestone and rename it canonically |
|
|
52
|
-
| `reopen` | milestone | `roadmap-reopen` | reopen a completed milestone and seed a follow-up planned change |
|
|
53
|
-
| `archive` | milestone | `roadmap-archive` | relocate completed milestones and their completed planned changes |
|
|
54
|
-
| `sync` | whole roadmap | `roadmap-sync` | reconcile roadmap state against active and archived strict changes |
|
|
55
|
-
|
|
56
|
-
## Selecting the Operation
|
|
57
|
-
|
|
58
|
-
**The operation must be explicit.** Read it from the request — the operation
|
|
59
|
-
name, the slash-command form, or an unambiguous restatement of exactly one row
|
|
60
|
-
above.
|
|
61
|
-
|
|
62
|
-
When the request names no operation, or its wording fits more than one row,
|
|
63
|
-
stop and ask the user which of the eight is intended before running anything.
|
|
64
|
-
Do not infer the operation from roadmap state, and do not pick the operation
|
|
65
|
-
that seems most useful. Naming the wrong row is not a recoverable mistake:
|
|
66
|
-
`pause` and `resume` undo each other, `defer` and `refine` undo each other, and
|
|
67
|
-
`archive` and `reopen` move milestones in opposite directions.
|
|
68
|
-
|
|
69
|
-
Two neighbouring requests are not this skill's work at all:
|
|
70
|
-
|
|
71
|
-
- authoring or elaborating milestone and planned-change content is
|
|
72
|
-
`/strict-roadmap-plan` and `/strict-roadmap-review`
|
|
73
|
-
- choosing and scaffolding the next change is `/strict-roadmap-recommend`
|
|
74
|
-
- changing a milestone's position in roadmap order is `/strict-roadmap-reorder`
|
|
75
|
-
|
|
76
|
-
## Roadmap Linking Rules
|
|
77
|
-
|
|
78
|
-
- Milestone ownership for standalone work items is defined by
|
|
79
|
-
`planned_change.milestone`.
|
|
80
|
-
- Do not expect milestone files to list standalone planned-change file paths.
|
|
81
|
-
- Use `roadmap-status` output to locate planned-change source files; each
|
|
82
|
-
`plannedChanges[]` entry reports its `path`.
|
|
83
|
-
- Treat filenames as helpful conventions only. `planned_change.id` and
|
|
84
|
-
`planned_change.milestone` are the source of truth.
|
|
85
|
-
- Use `roadmap-status` or `roadmap-overview` order, never id-prefix order, as
|
|
86
|
-
the sequencing source.
|
|
87
|
-
|
|
88
|
-
## Preconditions Every Operation Shares
|
|
89
|
-
|
|
90
|
-
- **Archived milestones and archived planned changes are frozen history.** No
|
|
91
|
-
operation here may pause, resume, defer, refine, move, reopen, or
|
|
92
|
-
re-archive them. If the user names an archived target, report that and stop
|
|
93
|
-
rather than reviving it.
|
|
94
|
-
- **Completed planned changes are immutable.** Follow-up work is always a new
|
|
95
|
-
standalone planned-change artifact, never an edit to one that shipped.
|
|
96
|
-
- **Filenames are computed, never chosen.** A standalone planned-change file's
|
|
97
|
-
basename must be the canonical `<milestone-id>-<planned-change-id>.yaml` form
|
|
98
|
-
(the prefix is not duplicated when the id already starts with the milestone
|
|
99
|
-
id). `roadmap-generate planned-change` and `roadmap-move-planned-change`
|
|
100
|
-
compute it; `roadmap-sync --fix-names` repairs it. Never pick or rename a
|
|
101
|
-
planned-change filename by hand — a mismatched basename is a blocking
|
|
102
|
-
validation diagnostic.
|
|
103
|
-
- **A roadmap with unresolved diagnostics blocks the transition.** Run
|
|
104
|
-
`roadmap-status` first and resolve blocking diagnostics before the mutation;
|
|
105
|
-
most of these commands refuse to run against an invalid roadmap.
|
|
106
|
-
- **One command, once.** Translate the request into a single owning-command
|
|
107
|
-
invocation. If it cannot be expressed as one, that is a signal the operation
|
|
108
|
-
was misidentified, not an invitation to chain commands.
|
|
109
|
-
|
|
110
|
-
## Operation Semantics
|
|
111
|
-
|
|
112
|
-
### pause and resume — a reversible inverse pair
|
|
113
|
-
|
|
114
|
-
- Pause records a sticky top-level `paused` mapping (`status: true`, optional
|
|
115
|
-
`reason`, deterministic `paused_on` date). While paused, the milestone's
|
|
116
|
-
effective status is forced to `blocked`, surviving `roadmap-sync` canonical
|
|
117
|
-
rewrite, and `roadmap-recommend` skips every planned change it owns with a
|
|
118
|
-
`milestone-paused` skip reason.
|
|
119
|
-
- Pause is allowed on any non-archived milestone regardless of declared status.
|
|
120
|
-
Pausing a complete milestone forces it back to blocked and prevents
|
|
121
|
-
`archive` from relocating it until the pause is cleared.
|
|
122
|
-
- Resume deletes the `paused` field and lets status re-derive from
|
|
123
|
-
planned-change state. Resuming a milestone that carries no pause exits
|
|
124
|
-
non-zero and changes nothing.
|
|
125
|
-
- Neither ever modifies a planned-change file. Pause is meaningful only when
|
|
126
|
-
there is real work to defer; for a complete milestone with no pending work,
|
|
127
|
-
suggest `archive` instead. Pair every pause with a clear resume criterion in
|
|
128
|
-
the `--reason`.
|
|
129
|
-
|
|
130
|
-
### defer and refine — a reversible inverse pair
|
|
131
|
-
|
|
132
|
-
- Deferring records a sticky `awaiting_refinement` mapping (`status: true`,
|
|
133
|
-
optional `reason`, deterministic `deferred_on` date) that survives
|
|
134
|
-
`roadmap-sync` canonical rewrite.
|
|
135
|
-
- **Deferral is not a pause.** It does not force `blocked`; the milestone keeps
|
|
136
|
-
the status derived from its planned-change state, because work whose detail
|
|
137
|
-
is deferred is not work that is blocked.
|
|
138
|
-
- `roadmap-recommend` follows strict roadmap order, so when the
|
|
139
|
-
earliest-ordered incomplete milestone is deferred the command returns
|
|
140
|
-
`status: refine-milestone` and does not fall through to later milestones'
|
|
141
|
-
work. Say that plainly to the user: a long-lived deferral blocks downstream
|
|
142
|
-
work, and `pause` is the supported release valve.
|
|
143
|
-
- Deferral is rejected for a milestone whose derived status is `complete`, and
|
|
144
|
-
it never relaxes the milestone schema. A deferred milestone still needs
|
|
145
|
-
`goal`, `scope`, `done_criteria`, and at least one intake question. Record the
|
|
146
|
-
unmatured precondition as an intake question and as the `--reason`; never
|
|
147
|
-
invent content to satisfy the schema.
|
|
148
|
-
- Refine records the operator's judgement that the precondition matured and
|
|
149
|
-
clears the declaration. It elaborates nothing: the elaboration itself is
|
|
150
|
-
ordinary in-place editing through `roadmap-generate`. Ask the user directly
|
|
151
|
-
whether the recorded precondition is now true — repository evidence cannot
|
|
152
|
-
answer that, and a milestone that merely gained content has not matured.
|
|
153
|
-
- The milestone is one continuous artifact. Never create a successor milestone
|
|
154
|
-
or split it during refinement.
|
|
35
|
+
`pause`/`resume`, `defer`/`refine`, and `archive`/`reopen` undo each other, so
|
|
36
|
+
a wrong pick is never a safe guess.
|
|
155
37
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
-
|
|
159
|
-
|
|
160
|
-
- The
|
|
161
|
-
|
|
162
|
-
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
- Inspect `depends_on` edges touching the planned change. If the move would
|
|
167
|
-
leave an earlier milestone depending on work that now sits in a later
|
|
168
|
-
milestone, report that dependency-order concern and stop for an explicit
|
|
169
|
-
human answer.
|
|
170
|
-
- The command never edits summary, details, status, or `depends_on`, never
|
|
171
|
-
touches another planned change, and never writes under
|
|
172
|
-
`.strict-spec-driven/changes/`. Relay its non-blocking warnings — a stale
|
|
173
|
-
`proposal.yaml` roadmap linkage is refreshed with the reported
|
|
174
|
-
`strict-spec-cli generate <change-name> proposal` command, by the operator,
|
|
175
|
-
not by this skill.
|
|
176
|
-
- Reordering milestones themselves is `/strict-roadmap-reorder`, not this one.
|
|
177
|
-
|
|
178
|
-
### reopen — only a complete milestone, and history stays frozen
|
|
179
|
-
|
|
180
|
-
- Reopen appends a dated note, seeds exactly one pending follow-up planned
|
|
181
|
-
change, and rewrites the milestone to the status derived from planned-change
|
|
182
|
-
state — `proposed` while only the seeded follow-up is pending. Milestone
|
|
183
|
-
status is never held sticky.
|
|
184
|
-
- If the milestone is `active`, `blocked`, `proposed`, or `planned`, there is
|
|
185
|
-
nothing to reopen; add the follow-up work directly through
|
|
186
|
-
`/strict-roadmap-plan` instead.
|
|
187
|
-
- Confirm `frozenPlannedChanges` lists every completed planned change that must
|
|
188
|
-
remain untouched, and refine the seeded follow-up at
|
|
189
|
-
`seededFollowUp.path` with `roadmap-generate planned-change`. Additional gaps
|
|
190
|
-
become further new standalone planned-change artifacts owned by the same
|
|
191
|
-
milestone — never folded back into a completed one.
|
|
192
|
-
- Run the `sync` operation afterwards so the reopened milestone and its new
|
|
193
|
-
planned changes participate in the canonical index.
|
|
194
|
-
|
|
195
|
-
### archive — completed milestones only, all of them by default
|
|
196
|
-
|
|
197
|
-
- With no `milestone-id`, `roadmap-archive` must default to all unarchived
|
|
198
|
-
milestones, and it archives only milestones whose derived status is complete.
|
|
199
|
-
- It moves each archived milestone and its completed standalone planned-change
|
|
200
|
-
files into `.strict-spec-driven/roadmap/archive/`, then rewrites the active
|
|
201
|
-
roadmap index.
|
|
202
|
-
- Incomplete milestones and incomplete planned changes stay active and are
|
|
203
|
-
reported as skipped. Read `skippedMilestones` and relay why each was skipped
|
|
204
|
-
rather than reporting a clean archive.
|
|
205
|
-
- A paused complete milestone is not archivable until the pause is cleared with
|
|
206
|
-
the `resume` operation.
|
|
207
|
-
|
|
208
|
-
### sync — reconcile, never invent
|
|
209
|
-
|
|
210
|
-
- `roadmap-sync` regenerates canonical index state and reconciles milestone and
|
|
211
|
-
planned-change completion against active and archived strict changes.
|
|
212
|
-
- When diagnostics report legacy inline milestone `planned_changes`, use
|
|
213
|
-
`roadmap-sync --materialize-planned-changes` to convert them into standalone
|
|
214
|
-
files before reconciliation.
|
|
215
|
-
- When diagnostics report a non-canonical planned-change basename, use
|
|
216
|
-
`roadmap-sync --fix-names`; plain `roadmap-sync` only reports the diagnostic.
|
|
217
|
-
- Do not invent planned changes during a sync. If the roadmap cannot be
|
|
218
|
-
reconciled safely, stop and ask the user.
|
|
38
|
+
| operation | command | binding constraints |
|
|
39
|
+
| --- | --- | --- |
|
|
40
|
+
| `pause` | `roadmap-pause` | Holds a non-archived milestone out of recommendation, forced `blocked`; the reason names the resume criterion. A complete milestone with no pending work gets `archive` instead, since a paused one cannot be archived. |
|
|
41
|
+
| `resume` | `roadmap-resume` | Clears a recorded pause; status re-derives from planned-change state. |
|
|
42
|
+
| `defer` | `roadmap-defer` | Declares an incomplete milestone not yet elaborated; unlike a pause its status keeps deriving. The unmatured precondition becomes an intake question and the reason; warn that a deferred earliest milestone stops all later recommendations, with `pause` as the release valve. |
|
|
43
|
+
| `refine` | `roadmap-refine` | Clears a deferral only after the user confirms the precondition matured (gained content is not maturity); elaborates nothing and never splits or replaces the milestone. |
|
|
44
|
+
| `move` | `roadmap-move-planned-change` | Reassigns one planned change to an existing active milestone under its canonical filename. `--allow-complete` only after the user confirms moving completed work; leaving an earlier milestone depending on later work stops for a human answer. Relay the reported proposal refresh; never run it. |
|
|
45
|
+
| `reopen` | `roadmap-reopen` | Complete milestones only (otherwise add work through `strict-roadmap-plan`); seeds one follow-up planned change, completed ones stay frozen; follow with `sync`. |
|
|
46
|
+
| `archive` | `roadmap-archive` | Without an id considers every unarchived milestone and archives only those whose derived status is complete, with their completed planned changes; relay why each skipped one stayed. |
|
|
47
|
+
| `sync` | `roadmap-sync` | Reconciles completion against active and archived changes; the mapped variants materialize legacy inline planned changes and repair filenames. Invents nothing; an unreconcilable roadmap stops for the user. |
|
|
219
48
|
|
|
220
49
|
## CLI-Only YAML Authoring Protocol
|
|
221
50
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
bundled schema and example keys with their cache-resolved paths, bound to the
|
|
227
|
-
artifact kind and current where a copy would go stale. Validate the result with
|
|
228
|
-
`strict-spec-cli roadmap-status`.
|
|
229
|
-
|
|
230
|
-
**Stop rather than edit YAML directly.** When a required command, argument, or
|
|
231
|
-
artifact kind is unavailable, stop and report the missing capability. Editing
|
|
232
|
-
the YAML directly, writing a raw payload, or scripting around the CLI is never
|
|
233
|
-
an available fallback, and an unavailable command is a reason to stop rather
|
|
234
|
-
than a reason to improvise.
|
|
51
|
+
This skill writes `roadmap-state`. Before its first mutation, run
|
|
52
|
+
`strict-spec-cli yaml-authoring-protocol <artifact-kind>` for each kind and
|
|
53
|
+
follow it, including its rule to stop and report a missing command rather than
|
|
54
|
+
work around it; validate the result with `strict-spec-cli roadmap-status`.
|
|
235
55
|
|
|
236
56
|
## Preferred Human Language
|
|
237
57
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
user
|
|
241
|
-
the active user message asks otherwise.
|
|
58
|
+
Write user-facing and generated operator-facing text in the human language named
|
|
59
|
+
by `preferred_human_language` in `.strict-spec-driven/config.yaml`, unless the
|
|
60
|
+
active user message asks otherwise.
|
|
242
61
|
|
|
243
62
|
## Steps
|
|
244
63
|
|
|
@@ -246,78 +65,37 @@ Before any other step, run `strict-spec-cli check-workflow-state`. If `.strict-s
|
|
|
246
65
|
missing, stop immediately and tell the user to run `/strict-spec-init`. Do not
|
|
247
66
|
run `init` from this skill.
|
|
248
67
|
|
|
249
|
-
1. **Resolve the operation** —
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
operation
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
`archive`, the not-complete requirement for `defer`, the
|
|
274
|
-
declaration-present requirement for `resume` and `refine`, and the human
|
|
275
|
-
confirmation that a deferred precondition has matured before `refine`. Stop
|
|
276
|
-
for an explicit human answer when a precondition is unmet or ambiguous.
|
|
277
|
-
|
|
278
|
-
5. **Capture the reason** — for `pause`, `resume`, `defer`, `refine`, and
|
|
279
|
-
`reopen`, collect a short concrete reason from the user if one was not
|
|
280
|
-
supplied. A good reason names an observable condition, not a feeling.
|
|
281
|
-
|
|
282
|
-
6. **Run the owning command once** — run the single command the Operations
|
|
283
|
-
table names for the resolved operation. Inspect the structured result rather
|
|
284
|
-
than assuming success: confirm it is valid, that it reports the expected
|
|
285
|
-
target, and that the changed paths are only the milestone or planned-change
|
|
286
|
-
artifact plus the roadmap index.
|
|
287
|
-
|
|
288
|
-
7. **Confirm the effect on recommendation when it applies** — for `pause`,
|
|
289
|
-
`resume`, `defer`, and `refine`, run:
|
|
290
|
-
```bash
|
|
291
|
-
strict-spec-cli roadmap-recommend --details
|
|
292
|
-
```
|
|
293
|
-
Verify the expected skip reason appeared or cleared: `milestone-paused` for
|
|
294
|
-
pause and resume, `milestone-awaiting-refinement` and the `refineAction` for
|
|
295
|
-
defer and refine.
|
|
296
|
-
|
|
297
|
-
8. **Report the result** — summarize the operation, the target id, previous and
|
|
298
|
-
new status, the structured field written or cleared, any warnings the command
|
|
299
|
-
relayed, any milestones or planned changes it deliberately left untouched,
|
|
300
|
-
and the natural next step — the inverse operation for `pause` and `defer`,
|
|
301
|
-
`/strict-roadmap-recommend` once work is recommendable again, and
|
|
302
|
-
`roadmap-generate planned-change` to refine a seeded follow-up after `reopen`.
|
|
68
|
+
1. **Resolve the operation** — exactly one of the eight, by name, slash form,
|
|
69
|
+
or unambiguous restatement. When none is named or the wording fits several,
|
|
70
|
+
stop and ask which is intended; never infer it from roadmap state. Content
|
|
71
|
+
authoring belongs to `strict-roadmap-plan` and `strict-roadmap-review`, the
|
|
72
|
+
next change to `strict-roadmap-recommend`, and milestone order — not one of
|
|
73
|
+
the eight — to `strict-roadmap-reorder`.
|
|
74
|
+
|
|
75
|
+
2. **Check preconditions** — run `roadmap-status` (`roadmap-overview` for
|
|
76
|
+
readability), read only what the operation touches, and resolve blocking
|
|
77
|
+
diagnostics. Archived milestones and planned changes are frozen history:
|
|
78
|
+
report and stop. Stop for an explicit human answer when a constraint above is
|
|
79
|
+
unmet or ambiguous, and ask for a concrete reason naming an observable
|
|
80
|
+
condition when pause, resume, defer, refine, or reopen lacks one.
|
|
81
|
+
|
|
82
|
+
3. **Run the owning command once** — needing two commands means the operation
|
|
83
|
+
was misidentified. Confirm the result is valid, names the expected target,
|
|
84
|
+
and changed only that artifact and the roadmap index. After pause, resume,
|
|
85
|
+
defer, or refine, check with `roadmap-recommend --details` that the
|
|
86
|
+
milestone's skip reason or refine action appeared or cleared.
|
|
87
|
+
|
|
88
|
+
4. **Report** — operation, target, previous and new status, the field written
|
|
89
|
+
or cleared, relayed warnings, what was left untouched, and the next step:
|
|
90
|
+
the inverse operation, `strict-roadmap-recommend`, or `strict-roadmap-plan`
|
|
91
|
+
to elaborate a reopened follow-up.
|
|
303
92
|
|
|
304
93
|
## Rules
|
|
305
94
|
|
|
306
|
-
-
|
|
307
|
-
-
|
|
308
|
-
|
|
309
|
-
-
|
|
310
|
-
-
|
|
311
|
-
|
|
312
|
-
-
|
|
313
|
-
`paused`, `awaiting_refinement`, `milestone`, or status field — the
|
|
314
|
-
owning command exists so the canonical write and index sync stay deterministic
|
|
315
|
-
- Never pick or rename a planned-change filename yourself; the CLI computes the
|
|
316
|
-
canonical name and `roadmap-sync --fix-names` repairs it
|
|
317
|
-
- Never write under `.strict-spec-driven/changes/` from this skill; relay the
|
|
318
|
-
reported proposal refresh command instead
|
|
319
|
-
- Stop for an explicit human answer when a move appears to violate dependency
|
|
320
|
-
order, when a transition moves completed work, or when it would resolve a
|
|
321
|
-
deferral on the user's behalf
|
|
322
|
-
- Do not invent planned changes, milestone content, or planned-change state to
|
|
323
|
-
satisfy a schema; record what is unknown as an intake question instead
|
|
95
|
+
- One operation per invocation, through its one owning command.
|
|
96
|
+
- Never hand-edit a pause, deferral, ownership, status, or filename, or
|
|
97
|
+
hand-mark completion; the CLI computes canonical
|
|
98
|
+
`<milestone-id>-<planned-change-id>.yaml` names and `roadmap-sync
|
|
99
|
+
--fix-names` repairs them.
|
|
100
|
+
- Completed planned changes are immutable; write nothing under
|
|
101
|
+
`.strict-spec-driven/changes/`, and invent no planned change or content.
|
|
@@ -8,21 +8,18 @@ metadata:
|
|
|
8
8
|
version: 1.0.0
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
Author or correct a live scene under `.strict-spec-driven/scenes/` outside the
|
|
12
|
+
change workflow. A scene is one end-to-end situation a real actor goes through:
|
|
13
|
+
its actors, preconditions, ordered main flow, and the exception flows that branch
|
|
14
|
+
off it. Every flow step names the requirements covering it — possibly across
|
|
15
|
+
several specs — or an explicit reason it is deliberately covered by none.
|
|
14
16
|
|
|
15
|
-
A scene
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
it or an explicit reason it is waived. The scene is independent of any single
|
|
19
|
-
spec: one step may name covering requirements belonging to several specs.
|
|
17
|
+
A scene that belongs to an active change is a delta scene, authored by the
|
|
18
|
+
change workflow through `strict-spec-cli generate <change-name> delta-scene`,
|
|
19
|
+
not here.
|
|
20
20
|
|
|
21
21
|
## This Skill's Commands
|
|
22
22
|
|
|
23
|
-
If you cannot remember the exact command used by this skill, look it up here
|
|
24
|
-
before running anything. Do not guess.
|
|
25
|
-
|
|
26
23
|
```yaml
|
|
27
24
|
check-workflow-state: strict-spec-cli check-workflow-state
|
|
28
25
|
scene-edit: strict-spec-cli scene-edit <scene-id> [named fields and removals | --delete]
|
|
@@ -31,26 +28,16 @@ scene-status: strict-spec-cli scene-status [--area <area>] [--scene <scene-id>]
|
|
|
31
28
|
|
|
32
29
|
## CLI-Only YAML Authoring Protocol
|
|
33
30
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
schema and example keys with their cache-resolved paths, bound to the artifact
|
|
39
|
-
kind and current where a copy would go stale. Validate the result with
|
|
40
|
-
`strict-spec-cli scene-status`.
|
|
41
|
-
|
|
42
|
-
**Stop rather than edit YAML directly.** When a required command, argument, or
|
|
43
|
-
artifact kind is unavailable, stop and report the missing capability. Editing
|
|
44
|
-
the YAML directly, writing a raw payload, or scripting around the CLI is never
|
|
45
|
-
an available fallback, and an unavailable command is a reason to stop rather
|
|
46
|
-
than a reason to improvise.
|
|
31
|
+
This skill writes `scene-state`. Before its first mutation, run
|
|
32
|
+
`strict-spec-cli yaml-authoring-protocol <artifact-kind>` for each kind and
|
|
33
|
+
follow it, including its rule to stop and report a missing command rather than
|
|
34
|
+
work around it; validate the result with `strict-spec-cli scene-status`.
|
|
47
35
|
|
|
48
36
|
## Preferred Human Language
|
|
49
37
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
user
|
|
53
|
-
the active user message asks otherwise.
|
|
38
|
+
Write user-facing and generated operator-facing text in the human language named
|
|
39
|
+
by `preferred_human_language` in `.strict-spec-driven/config.yaml`, unless the
|
|
40
|
+
active user message asks otherwise.
|
|
54
41
|
|
|
55
42
|
## Steps
|
|
56
43
|
|
|
@@ -58,99 +45,42 @@ Before any other step, run `strict-spec-cli check-workflow-state`. If `.strict-s
|
|
|
58
45
|
missing, stop immediately and tell the user to run `/strict-spec-init`. Do not
|
|
59
46
|
run `init` from this skill.
|
|
60
47
|
|
|
61
|
-
1. **Read
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
that cover it or an explicit reason it is deliberately covered by none:
|
|
94
|
-
- read `.strict-spec-driven/specs/INDEX.yaml` and the spec files it names to
|
|
95
|
-
find the covering spec id and requirement id
|
|
96
|
-
- a step may name covering requirements in more than one spec area
|
|
97
|
-
- use a no-coverage reason only when the step is deliberately uncovered, and
|
|
98
|
-
say why; it is a recorded decision, not a way to silence a gap
|
|
99
|
-
- a requirement that ought to exist but does not is a finding to report, not
|
|
100
|
-
a reason to invent a covering reference
|
|
101
|
-
|
|
102
|
-
6. **Present and confirm** — show the user:
|
|
103
|
-
- which scene will be created or changed, and under which area
|
|
104
|
-
- the actors, preconditions, main-flow steps, and exception flows being set
|
|
105
|
-
- the coverage or waiver recorded for each step
|
|
106
|
-
- whether `.strict-spec-driven/scenes/INDEX.yaml` will gain or lose an entry
|
|
107
|
-
|
|
108
|
-
Wait for explicit confirmation before writing anything.
|
|
109
|
-
|
|
110
|
-
7. **Apply the confirmed edits through the CLI** — after confirmation, issue one
|
|
111
|
-
or more `scene-edit` invocations with named semantic arguments:
|
|
112
|
-
- create a scene with `scene-edit <scene-id> --title <text> --area <area>
|
|
113
|
-
--actor <name> --role <text> --precondition <text> --step <id>
|
|
114
|
-
--action <text> --covered-by <spec-id>:<requirement-id>
|
|
115
|
-
--exception-flow <flow-id> --trigger <text>
|
|
116
|
-
--exception-step <flow-id>:<step-id> --action <text>`
|
|
117
|
-
- update one entry by restating its id or name and only the fields that
|
|
118
|
-
changed; unnamed content is preserved
|
|
119
|
-
- declare an exception flow before adding a step to it
|
|
120
|
-
- waive one step with `--no-coverage-reason <text>`, which clears its
|
|
121
|
-
recorded covering references, and record coverage with `--covered-by`,
|
|
122
|
-
which clears a recorded waiver
|
|
123
|
-
- remove keyed content with `--remove-actor`, `--remove-precondition`,
|
|
124
|
-
`--remove-exception-flow`, `--remove-step`, or `--remove-covered-by`
|
|
125
|
-
- set `--status draft|active|obsolete` when the lifecycle state changes
|
|
126
|
-
- use an isolated `scene-edit <scene-id> --delete` only when the confirmed
|
|
127
|
-
change retires the whole scene
|
|
128
|
-
Never edit the scene YAML or the scene index text. The command validates the
|
|
129
|
-
complete candidate and reconciles the index in the same transaction.
|
|
130
|
-
|
|
131
|
-
8. **Validate the result** — after editing, run `strict-spec-cli scene-status`
|
|
132
|
-
and confirm:
|
|
133
|
-
- the command result reports both the scene artifact and the reconciled index
|
|
134
|
-
- every step reports as covered or as a deliberate waiver
|
|
135
|
-
- no step reports an unresolved covering reference
|
|
136
|
-
|
|
137
|
-
9. **Summarize** — tell the user which scene changed, what was added, modified,
|
|
138
|
-
removed, or waived, and which steps still report a coverage gap.
|
|
48
|
+
1. **Read the recorded scenes and specs** — run `scene-status` (narrowed by area
|
|
49
|
+
or scene when there are many) and read the spec index, since every covering
|
|
50
|
+
reference names a recorded spec and requirement.
|
|
51
|
+
|
|
52
|
+
2. **Interrogate the situation** — ask the user, and do not infer from the
|
|
53
|
+
code: who acts and what each actor does; what must already be true; what
|
|
54
|
+
happens step by ordered step when nothing goes wrong; and what can go wrong,
|
|
55
|
+
what triggers each exception flow, and what happens then. A scene filled in
|
|
56
|
+
from the code reproduces the blind spot it exists to expose. Keep an answer
|
|
57
|
+
you could not get as an open question rather than a plausible guess.
|
|
58
|
+
|
|
59
|
+
3. **Place the scene** — edit the recorded scene that already describes the
|
|
60
|
+
situation; otherwise choose its area, reusing a recorded one unless the
|
|
61
|
+
situation clearly belongs to a new one.
|
|
62
|
+
|
|
63
|
+
4. **Resolve coverage for every step** — name the covering spec and requirement
|
|
64
|
+
ids, or a no-coverage reason when the step is deliberately uncovered. A
|
|
65
|
+
requirement that ought to exist but does not is a finding to report, never a
|
|
66
|
+
reason to invent a covering reference.
|
|
67
|
+
|
|
68
|
+
5. **Confirm the exact edit** — show the user the scene and area, the actors,
|
|
69
|
+
preconditions, flows, and the coverage or waiver of each step. Write nothing
|
|
70
|
+
until the user explicitly approves.
|
|
71
|
+
|
|
72
|
+
6. **Apply** — express each approved edit through `scene-edit` with stable ids
|
|
73
|
+
and only the named fields that change; read
|
|
74
|
+
`strict-spec-cli scene-edit --help --json` for its arguments.
|
|
75
|
+
|
|
76
|
+
7. **Validate and summarize** — done when each result reports the scene and the
|
|
77
|
+
reconciled index and `scene-status` shows every step covered or deliberately
|
|
78
|
+
waived with no unresolved reference; report what changed and any step that
|
|
79
|
+
still has a coverage gap.
|
|
139
80
|
|
|
140
81
|
## Rules
|
|
141
82
|
|
|
142
|
-
-
|
|
143
|
-
code
|
|
144
|
-
-
|
|
145
|
-
`scene-edit
|
|
146
|
-
- Present the exact changes and wait for confirmation before writing
|
|
147
|
-
- Every step carries covering requirements or an explicit reason it has none
|
|
148
|
-
- Never invent a covering reference to silence a coverage gap; report the
|
|
149
|
-
missing requirement instead
|
|
150
|
-
- Describe observable situations, not implementation details
|
|
151
|
-
- Do not implement product code
|
|
152
|
-
- Do not create or interact with `.strict-spec-driven/changes/`; a scene change
|
|
153
|
-
that belongs to an active strict change is authored as a delta scene by the
|
|
154
|
-
change workflow, not here
|
|
155
|
-
- Never hand-edit scene or scene-index YAML; express every mutation through
|
|
156
|
-
`strict-spec-cli scene-edit` with named arguments
|
|
83
|
+
- Describe observable situations, not implementation details; change no product
|
|
84
|
+
code and do not touch `.strict-spec-driven/changes/`.
|
|
85
|
+
- Never edit scene or scene-index YAML directly; every mutation goes through
|
|
86
|
+
`scene-edit`.
|