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.
Files changed (29) hide show
  1. package/README.md +13 -13
  2. package/README.zh.md +10 -12
  3. package/dist/cli/strict-spec-cli.js +109 -771
  4. package/dist/skills/strict-roadmap-plan/SKILL.md +49 -139
  5. package/dist/skills/strict-roadmap-recommend/SKILL.md +63 -282
  6. package/dist/skills/strict-roadmap-reorder/SKILL.md +40 -158
  7. package/dist/skills/strict-roadmap-review/SKILL.md +48 -144
  8. package/dist/skills/strict-roadmap-transition/SKILL.md +52 -274
  9. package/dist/skills/strict-scene-edit/SKILL.md +51 -121
  10. package/dist/skills/strict-spec-apply/SKILL.md +63 -173
  11. package/dist/skills/strict-spec-architecture/SKILL.md +39 -97
  12. package/dist/skills/strict-spec-archive/SKILL.md +57 -127
  13. package/dist/skills/strict-spec-auto/SKILL.md +98 -270
  14. package/dist/skills/strict-spec-brainstorm/SKILL.md +73 -176
  15. package/dist/skills/strict-spec-bugfix/SKILL.md +101 -225
  16. package/dist/skills/strict-spec-design/SKILL.md +55 -124
  17. package/dist/skills/strict-spec-design-sync/SKILL.md +55 -123
  18. package/dist/skills/strict-spec-init/SKILL.md +45 -93
  19. package/dist/skills/strict-spec-maintenance/SKILL.md +44 -94
  20. package/dist/skills/strict-spec-modify/SKILL.md +44 -113
  21. package/dist/skills/strict-spec-propose/SKILL.md +180 -495
  22. package/dist/skills/strict-spec-review/SKILL.md +121 -273
  23. package/dist/skills/strict-spec-ship/SKILL.md +25 -60
  24. package/dist/skills/strict-spec-spec-edit/SKILL.md +35 -84
  25. package/dist/skills/strict-spec-sync-specs/SKILL.md +44 -94
  26. package/dist/skills/strict-spec-verify/SKILL.md +28 -43
  27. package/dist/skills/strict-tech-edit/SKILL.md +43 -124
  28. package/dist/skills/strict-tech-sync/SKILL.md +60 -162
  29. package/package.json +2 -1
@@ -8,14 +8,12 @@ metadata:
8
8
  version: 1.0.0
9
9
  ---
10
10
 
11
- You are helping the user turn an early-stage idea into a strict YAML change
12
- proposal.
11
+ Shape a rough idea into a decision-ready strict change through discussion, and
12
+ scaffold its proposal artifacts only after the user explicitly confirms the
13
+ summary.
13
14
 
14
15
  ## This Skill's Commands
15
16
 
16
- If you cannot remember the exact command used by this skill, look it up here
17
- before running anything. Do not guess.
18
-
19
17
  ```yaml
20
18
  check-workflow-state: strict-spec-cli check-workflow-state
21
19
  tech-status: strict-spec-cli tech-status
@@ -30,34 +28,23 @@ verify: strict-spec-cli verify <change-name>
30
28
 
31
29
  ## CLI-Only YAML Authoring Protocol
32
30
 
33
- Every mutation of repository-owned YAML in this skill goes through the strict
34
- CLI. This skill writes `change-planning-state`, `change-delta-state`,
35
- `scene-state`. Before the first mutation run `strict-spec-cli yaml-authoring-protocol
36
- <artifact-kind>` for each of them: that command reports the ordered authoring
37
- steps, the owning command for each operation, and the bundled schema and
38
- example keys with their cache-resolved paths, bound to the artifact kind and
39
- current where a copy would go stale. Validate the result with `strict-spec-cli
40
- verify <change-name>`.
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 `change-planning-state`, `change-delta-state`, `scene-state`.
32
+ Before its first mutation, run
33
+ `strict-spec-cli yaml-authoring-protocol <artifact-kind>` for each kind and
34
+ follow it, including its rule to stop and report a missing command rather than
35
+ work around it; validate the result with `strict-spec-cli verify <change-name>`.
47
36
 
48
37
  ## Preferred Human Language
49
38
 
50
- Comply with `preferred_human_language` from `.strict-spec-driven/config.yaml` —
51
- the user's common human language, not a programming language — for all
52
- user-facing and generated operator-facing text, unless that file is absent or
53
- the active user message asks otherwise.
39
+ Write user-facing and generated operator-facing text in the human language named
40
+ by `preferred_human_language` in `.strict-spec-driven/config.yaml`, unless the
41
+ active user message asks otherwise.
54
42
 
55
43
  ## Delegated Procedures
56
44
 
57
- Each procedure below is owned by the skill named beside it. That skill's
58
- guidance is authoritative for it, and this skill does not restate it. Follow the
59
- owning skill's procedure at the step that needs it; how it is loaded is whatever
60
- the running harness provides.
45
+ Each procedure below is owned by the skill named beside it, whose guidance is
46
+ authoritative; follow it at the step that needs it, however the running harness
47
+ loads it.
61
48
 
62
49
  - requirement-interrogation: owned by `strict-spec-propose`
63
50
  - scene-first-routing: owned by `strict-spec-propose`
@@ -66,15 +53,11 @@ the running harness provides.
66
53
  - delta-artifact-authoring: owned by `strict-spec-propose`
67
54
  - task-list-authoring: owned by `strict-spec-propose`
68
55
 
69
- Delegation moves where a procedure is stated, never whether it runs. Every gate
70
- this skill declares below still binds, and a delegated procedure that cannot be
71
- followed stops the run exactly as an inline one would.
72
-
73
- What brainstorming adds to those procedures stays here: the change-intake gate
74
- runs before this skill's own proposal confirmation checkpoint, not only before
75
- implementation handoff, because a summary the user confirms is already a
76
- commitment.
77
-
56
+ Delegation moves where a procedure is stated, never whether it runs: every gate
57
+ below still binds, and a delegated procedure that cannot be followed stops the
58
+ run. What brainstorming adds: the change-intake gate runs before this skill's
59
+ own confirmation checkpoint, not only before implementation handoff, because a
60
+ summary the user confirms is already a commitment.
78
61
 
79
62
  ## Steps
80
63
 
@@ -82,147 +65,61 @@ Before any other step, run `strict-spec-cli check-workflow-state`. If `.strict-s
82
65
  missing, stop immediately and tell the user to run `/strict-spec-init`. Do not
83
66
  run `init` from this skill.
84
67
 
85
- 1. **Start from the idea, not the artifact list** — ask the user what they want
86
- to achieve, what problem they are trying to solve, and any known constraints
87
- or preferences. Do not require a change name up front.
88
-
89
- 2. **Read strict project context, existing specs, and technical standards
90
- early** — before narrowing scope, read:
91
- - `.strict-spec-driven/config.yaml`
92
- - `.strict-spec-driven/specs/INDEX.yaml`
93
- - every relevant strict YAML main spec file the idea appears likely to touch,
94
- if any; for a purely technical change, confirm from the spec index that no
95
- main spec requirement is implicated instead of forcing one
96
- - run `strict-spec-cli tech-status` and read
97
- the relevant files under `.strict-spec-driven/tech/` so the brainstorm
98
- stays inside the project's technical standards from the start
99
- - select the lesson category that matches the likely spec or technical area, run
100
- `strict-spec-cli lesson-status --category <category>`, and read the lessons it ranks first.
101
- Repeat for another category when the idea genuinely spans more than one; use the unfiltered
102
- command only when repository evidence cannot identify a relevant category.
103
- Lessons are recorded experience, not binding rules: they carry no MUST or
104
- SHOULD strength, so treat each one as a warning worth checking against this
105
- change rather than a constraint to satisfy. Match on `applies_when` — that
106
- field states the condition under which the lesson is worth recalling. A
107
- lesson with several occurrences has bitten this project repeatedly and
108
- deserves weight even though nothing enforces it.
109
- Use this evidence to run the delegated change-intake-gate procedure before
110
- asking the human for details the repository already answers.
111
-
112
- 3. **Brainstorm until the change is decision-ready** — use the discussion to
113
- converge on:
114
- - the desired outcome and user-visible behavior
115
- - what is in scope and explicitly out of scope
116
- - important tradeoffs, constraints, risks, and unchanged behavior
117
- - how the idea fits the applicable technical standards: MUST rules are hard
118
- constraints on the approach, SHOULD rules are the default, and any tension
119
- with a standard is a tradeoff to settle now or raise as an open question
120
- - for user interface work, how it splits: user-observable UI behavior becomes
121
- spec requirements, UI engineering and design rules become a `ui`-category
122
- technical standard, and visual fidelity is governed by visual-regression
123
- snapshots rather than inlined detail
124
- - which existing strict YAML spec files will likely be modified, or whether a
125
- new strict spec area is needed, or why no strict spec area should change
126
- because the change is purely technical, decided with the delegated
68
+ 1. **Start from the idea** — what the user wants to achieve, the problem behind
69
+ it, and known constraints; require no change name up front.
70
+
71
+ 2. **Load context early** — read the config, the spec index, and every main
72
+ spec the idea may touch (for a technical change, confirm none is
73
+ implicated); the standards `tech-status` shows apply; and the lessons
74
+ `lesson-status --category <category>` ranks, matched by `applies_when` —
75
+ warnings weighted by occurrence, not rules. Run the delegated
76
+ change-intake-gate from that evidence so the user is never asked what the
77
+ repository already answers.
78
+
79
+ 3. **Converge until decision-ready** — through discussion, settle:
80
+ - the problem, outcome, trigger, non-goals, and intended reading, asked with
81
+ the delegated requirement-interrogation procedure; only the requester can
82
+ answer them
83
+ - the situation, asked with the delegated scene-first-routing procedure
84
+ before any requirement is discussed
85
+ - scope in and out, unchanged behavior, tradeoffs, and risks, with
86
+ standards' MUST rules as hard constraints and SHOULD rules as defaults
87
+ - which spec areas change, or why none does, decided with the delegated
127
88
  spec-artifact-routing procedure
128
- - the answers the delegated requirement-interrogation procedure asks for, which
129
- only the requester can give and which shape every choice above
130
- - the situation the idea occurs in, asked with the delegated
131
- scene-first-routing procedure before any requirement is discussed, so the
132
- spec areas above are derived from a flow rather than recalled
133
- - any other questions that still need a human answer before implementation
134
-
135
- 4. **Suggest the change name** — once the idea is coherent enough, propose a
136
- short kebab-case change name. If the user already provided a valid name, keep
137
- it. Otherwise derive one from the agreed strict workflow scope.
138
-
139
- 5. **Present a proposal checkpoint** — before creating any files, summarize:
140
- - the proposed change name
141
- - the goal and scope
142
- - the main strict spec areas expected to change, or "no strict spec changes"
143
- with the technical-only rationale
144
- - key decisions or tradeoffs already settled
145
- - any unresolved questions that would go into `questions.yaml`
146
-
147
- Then ask for explicit confirmation. If the user wants revisions, continue the
148
- brainstorm and re-summarize until confirmed.
149
-
150
- 6. **Scaffold the change after confirmation** — run:
151
- ```bash
152
- strict-spec-cli propose <change-name>
153
- ```
154
- This creates `.strict-spec-driven/changes/<name>/` with strict planning
155
- artifacts and an empty `specs/` directory for strict YAML delta files.
156
-
157
- 7. **Populate `proposal.yaml` and related artifacts step by step** — after
158
- scaffolding, follow this exact order. Generate every supported artifact,
159
- including `tasks.yaml`, with direct parameterized CLI invocations, and do not
160
- create JSON payload files.
161
- - `strict-spec-cli generate <change-name> proposal --what "..." --why "..." --in "..." --out "..." --unchanged "..."`
162
- - `strict-spec-cli generate <change-name> design --approach "..." --decision <decision-id> --decision-text "..." --rationale "..."`
163
- - populate `tasks.yaml` by following the delegated task-list-authoring
164
- procedure
165
- - `strict-spec-cli generate <change-name> questions --open <question-id> --question "..." --context "..."` plus any needed `--resolved` entries
166
- Include impact analysis and recommendation/options in `--context`; do
167
- not pass nonexistent `--impact` or `--recommendation` flags.
168
- - when the change touches user-observable behavior, `strict-spec-cli generate <change-name> delta-scene --target-scene <scene-id> --operation ADDED --step <step-id> --action "..." --covered-by <spec-id>:<requirement-id>`
169
- before the delta spec below, following the delegated scene-first-routing
170
- procedure; run `strict-spec-cli scene-status` first to find a recorded
171
- scene that already describes the situation
172
- - only when the change has observable spec impact, `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 "..."`
173
- once per target strict main spec path, following the delegated
174
- delta-artifact-authoring procedure
175
- - when the change alters a technical standard, `strict-spec-cli generate <change-name> delta-tech --target-standard <standard-id> [--title "..." --category <category>] --operation ADDED --rule <rule-id> --strength MUST --statement "..." --rationale "..." --method review`
176
- If the change has no observable spec impact, leave the `specs/` directory
177
- empty rather than inventing a prose-only file. Prefer one invocation per
178
- supported generated artifact (or per target spec for delta specs) so
179
- generated YAML matches the full document shape immediately.
180
-
181
- 8. **Run the proposal checkpoint over generated planning artifacts** — before
182
- validation, perform a semantic self-check of every generated or edited file under
183
- `.strict-spec-driven/changes/<change-name>/` against the confirmed brainstorm
184
- summary, the relevant main specs if any, technical standards, and the
185
- existing project constraints. Check for decision-ready detail in scope,
186
- unchanged behavior, design decisions, task coverage, unresolved-question
187
- impact, delta spec scenarios, and delta tech use when applicable. When no
188
- delta specs are appropriate, replace delta spec scenario review with a
189
- justified absence check for the technical-only change.
190
- For technical-only changes, verify that the task list includes the concrete
191
- scripts or generated assets to edit, validation commands to run, strict
192
- `ready`/`verify` checks, and archive or archive-merge checks whenever the
193
- change affects artifacts that archive consumes.
194
- The checkpoint should fix safe, in-scope documentation gaps immediately by
195
- rerunning the supported `generate` commands for script-owned artifacts,
196
- including `generate <change-name> tasks` for task-list structure. Do not
197
- expand scope or answer unresolved human questions during this checkpoint;
198
- record ambiguity in `questions.yaml` or return to the user checkpoint when the
199
- scope changes.
200
-
201
- 9. **Validate proposal readiness and artifact structure** — run:
202
- ```bash
203
- strict-spec-cli ready <change-name>
204
- ```
205
- Use this as the deterministic proposal-handoff check. It reports structural
206
- blockers without asking the CLI to decide product scope or requirement
207
- content. Then run:
208
- ```bash
209
- strict-spec-cli verify <change-name>
210
- ```
211
- Use this as a strict YAML schema and artifact-shape check. At proposal time,
212
- pending-task diagnostics are expected because implementation has not started
213
- yet. Fix safe structure issues before handing the proposal off.
214
-
215
- 10. **Hand off** — summarize the strict change scope, key decisions, whether
216
- delta specs are present or intentionally absent, proposal checkpoint
217
- refinements made, task count, unchanged behavior, and any open questions. If
218
- `questions.yaml` still has open entries, make clear that implementation must
219
- stop for explicit user resolution before coding starts.
89
+ - what still needs a human answer before implementation
90
+
91
+ 4. **Confirm the proposal summary** — present the kebab-case change name (the
92
+ user's, if given), goal and scope, expected spec areas or the technical-only
93
+ rationale for none, settled decisions, and open questions. Scaffold nothing
94
+ until the user explicitly confirms; on revisions, keep brainstorming and
95
+ re-summarize.
96
+
97
+ 5. **Scaffold and populate** — after confirmation, `propose <change-name>`,
98
+ then generate the proposal, design, and questions from the confirmed
99
+ summary (`strict-spec-cli generate --help --json`); populate `tasks.yaml`
100
+ with the delegated task-list-authoring procedure; author the delta scene
101
+ (after `scene-status`), delta specs, and delta tech with the delegated
102
+ delta-artifact-authoring procedure, only where routing called for them.
103
+
104
+ 6. **Run the proposal checkpoint** — before validation, check every change
105
+ artifact against the confirmed brainstorm summary, main specs, standards,
106
+ and project constraints for decision-ready detail in scope, unchanged
107
+ behavior, design decisions, task coverage, unresolved-question impact, delta
108
+ spec scenarios (or the justified absence of a delta spec), and delta tech
109
+ use. Fix safe in-scope documentation gaps through `generate`; record a human
110
+ question rather than answering it, and return to step 4 if scope changes.
111
+
112
+ 7. **Validate** — `ready <change-name>` is the handoff gate and
113
+ `verify <change-name>` the schema check; fix safe structural issues, and
114
+ treat pending-task diagnostics as expected at proposal time.
115
+
116
+ 8. **Hand off** — summarize scope, decisions, whether delta specs are present
117
+ or deliberately absent, checkpoint refinements, task count, unchanged
118
+ behavior, and open questions; open questions stop implementation until the
119
+ user resolves them.
220
120
 
221
121
  ## Rules
222
122
 
223
- - Do not implement code during brainstorming
224
- - Do not scaffold proposal artifacts until the user explicitly confirms the
225
- brainstorm summary and change name
226
- - Keep all planning artifacts in strict YAML structures under
227
- `.strict-spec-driven/`
228
- - Record ambiguity in `questions.yaml` instead of guessing silently
123
+ - Implement no code, and scaffold nothing until the user explicitly confirms
124
+ the summary and change name.
125
+ - Record ambiguity in `questions.yaml` rather than guessing.