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,14 +8,12 @@ metadata:
|
|
|
8
8
|
version: 1.0.0
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
|
|
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
|
-
|
|
34
|
-
|
|
35
|
-
`
|
|
36
|
-
|
|
37
|
-
|
|
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
|
-
|
|
51
|
-
|
|
52
|
-
user
|
|
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
|
|
58
|
-
|
|
59
|
-
|
|
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
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
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
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
-
|
|
92
|
-
|
|
93
|
-
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
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
|
-
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
-
|
|
141
|
-
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
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
|
-
-
|
|
224
|
-
|
|
225
|
-
|
|
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.
|