dsh-plugin-strict-spec 0.5.1 → 0.7.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 +111 -778
  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 +95 -271
  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 +138 -274
  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-tech-edit/SKILL.md +43 -124
  27. package/dist/skills/strict-tech-sync/SKILL.md +60 -162
  28. package/package.json +2 -1
  29. package/dist/skills/strict-spec-verify/SKILL.md +0 -79
@@ -8,62 +8,37 @@ metadata:
8
8
  version: 1.0.0
9
9
  ---
10
10
 
11
- You are helping the user archive a completed strict YAML change.
11
+ Archive a completed strict change: settle its final technical-standard
12
+ checkpoint, then let the archive command do the rest. `archive` alone merges the
13
+ delta specs, scenes, and tech into the live artifacts, regenerates their
14
+ indexes, reconciles roadmap status, and moves the change under
15
+ `.strict-spec-driven/changes/archive/`; none of that is done by hand.
12
16
 
13
17
  ## This Skill's Commands
14
18
 
15
- If you cannot remember the exact command used by this skill, look it up here
16
- before running anything. Do not guess.
17
-
18
19
  ```yaml
19
20
  check-workflow-state: strict-spec-cli check-workflow-state
20
21
  modify: strict-spec-cli modify [change-name|archive-dir]
21
22
  verify: strict-spec-cli verify <change-name>
22
23
  generate: strict-spec-cli generate <change-name> delta-tech --<named-args>
23
24
  archive: strict-spec-cli archive <change-name>
25
+ scene-status: strict-spec-cli scene-status [--area <area>] [--scene <scene-id>]
24
26
  lesson-status: strict-spec-cli lesson-status [--category <category>]
25
27
  ```
26
28
 
27
- ## Responsibility Split
28
-
29
- **Handled by CLI scripts**
30
- - merge strict YAML delta specs into main specs during archive
31
- - merge strict YAML delta scenes into `.strict-spec-driven/scenes/` and regenerate the scene index
32
- - regenerate `.strict-spec-driven/specs/INDEX.yaml`
33
- - reconcile `.strict-spec-driven/roadmap/` milestone and index status when archive changes roadmap-derived completion state
34
- - move the change directory into `.strict-spec-driven/changes/archive/`
35
-
36
- **Handled by the AI**
37
- - choose the change to archive
38
- - perform a final current-change-scoped technical-standard synchronization
39
- - decide and apply the recommendation when a possible reusable convention is not
40
- covered by applicable standards or current delta tech
41
- - confirm verification and review readiness
42
- - interpret archive output and summarize the final result
43
-
44
29
  ## CLI-Only YAML Authoring Protocol
45
30
 
46
- Every mutation of repository-owned YAML in this skill goes through the strict
47
- CLI. This skill writes `change-planning-state`, `change-delta-state`,
48
- `spec-state`, `tech-state`, `scene-state`. Before the first mutation run `strict-spec-cli
49
- yaml-authoring-protocol <artifact-kind>` for each of them: that command reports
50
- the ordered authoring steps, the owning command for each operation, and the
51
- bundled schema and example keys with their cache-resolved paths, bound to the
52
- artifact kind and current where a copy would go stale. Validate the result with
53
- `strict-spec-cli verify <change-name>`.
54
-
55
- **Stop rather than edit YAML directly.** When a required command, argument, or
56
- artifact kind is unavailable, stop and report the missing capability. Editing
57
- the YAML directly, writing a raw payload, or scripting around the CLI is never
58
- an available fallback, and an unavailable command is a reason to stop rather
59
- than a reason to improvise.
31
+ This skill writes `change-planning-state`, `change-delta-state`, `spec-state`,
32
+ `tech-state`, `scene-state`. 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>`.
60
36
 
61
37
  ## Preferred Human Language
62
38
 
63
- Comply with `preferred_human_language` from `.strict-spec-driven/config.yaml` —
64
- the user's common human language, not a programming language — for all
65
- user-facing and generated operator-facing text, unless that file is absent or
66
- 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.
67
42
 
68
43
  ## Steps
69
44
 
@@ -71,95 +46,50 @@ Before any other step, run `strict-spec-cli check-workflow-state`. If `.strict-s
71
46
  missing, stop immediately and tell the user to run `/strict-spec-init`. Do not
72
47
  run `init` from this skill.
73
48
 
74
- 1. **Select the change** — run `modify` without an argument to list active
75
- changes. If the change is already specified, use it.
76
-
77
- 2. **Run the final current-change tech sync** — before final verification or
78
- invoking the raw archive command, apply the active-change procedure from
79
- `strict-tech-sync` to the selected change.
80
- - bound the scan to the selected change's proposal, design, tasks, questions,
81
- delta specs, delta tech, attributable tracked and untracked files, and
82
- applicable technical standards
83
- - exclude unrelated repository drift and surface ambiguous file ownership
84
- instead of silently widening the archive scope
85
- - continue immediately when applicable main standards and current delta tech
86
- already cover the change and no reusable convention gap remains
87
- - when a possible reusable convention is uncovered, state the target or
88
- proposed standard, operation, stable rule id, strength, statement,
89
- rationale, and enforcement, then apply the recommendation the bounded
90
- evidence supports without pausing for operator confirmation: capture a
91
- convention the evidence shows is reusable as current-change delta tech, or
92
- record the classification that the pattern is not reusable together with the
93
- reason it is specific to this change
94
- - report the applied decision in the archive summary, because removing the
95
- confirmation removes the operator's only view of what the checkpoint decided
96
- - never defer a convention confirmed as reusable until after archive; use
97
- `generate <change-name> delta-tech ...` so it remains part of the active
98
- change rather than editing a live main standard directly
99
- - after any delta-tech edit, review the final delta artifact and rerun strict
100
- verification; a write the configured regression command neither compiles
101
- nor reads — currently a change-local delta-tech artifact or a lesson — does
102
- not invalidate passing complete project regression evidence, so rerun the
103
- configured regression command here only when this step also changed a file
104
- outside that carve-out
105
-
106
- 3. **Confirm the lesson declaration** — confirm that review declared either a
107
- recorded lesson or a justified "no lesson" for this change. Experience is
108
- learned during implementation and is lost the moment the change is archived,
109
- so this is the last point at which it can be captured cheaply. If the
110
- declaration was never made, make it now against the objective criteria in
111
- `strict-spec-review` — an overturned design decision, an unforeseen question,
112
- a task added from a discovery, or a regression exposing a pre-existing trap —
113
- and record the lesson before continuing. Do not invent one to fill the slot.
114
- Recording it here costs no regression rerun: a lesson is inside the carve-out
115
- named in the previous step.
116
-
117
- 4. **Confirm readiness** — after the final tech-sync checkpoint and any required
118
- evidence reruns, run:
119
- ```bash
120
- strict-spec-cli verify <change-name>
121
- ```
122
- Stop if the command reports blockers.
123
-
124
- 5. **Check for observable spec impact** — inspect
125
- `.strict-spec-driven/changes/<name>/specs/`.
126
- - if it is empty, treat the change as having no delta specs to merge and
127
- continue directly to archive
128
- - otherwise proceed
129
-
130
- 5b. **Check for scene impact** — inspect
131
- `.strict-spec-driven/changes/<name>/scenes/`.
132
- - if it is absent or empty, the change merges no scene and the recorded
133
- scenes are left untouched
134
- - otherwise the archive command merges those delta scenes into
135
- `.strict-spec-driven/scenes/` and regenerates the scene index in the same
136
- transaction. Step 4's verification already blocked an uncovered flow step,
137
- so nothing is re-derived here; note which scenes will be merged so the
138
- summary can report them.
139
-
140
- 6. **Archive the change** — use the raw command only as the deterministic
141
- verification, delta-merge, index-regeneration, roadmap-reconciliation, and
142
- change-move mechanism:
143
- ```bash
144
- strict-spec-cli archive <change-name>
145
- ```
146
-
147
- 7. **Confirm the result** — summarize:
148
- - the archive destination
149
- - the strict main specs that were updated
150
- - the recorded scenes the archive command merged, if any
151
- - any roadmap files the archive command reconciled
152
- - the tech-sync decision applied at step 2, or that the checkpoint found
153
- nothing uncovered
49
+ 1. **Select the change** — use the change the user named; otherwise `modify`
50
+ without an argument lists the active ones.
51
+
52
+ 2. **Run the final current-change tech sync** — before final verification and
53
+ the raw archive command, apply `strict-tech-sync`'s active-change procedure
54
+ to this change, bounded to its planning artifacts, delta specs, delta tech,
55
+ attributable tracked and untracked files, and the applicable standards;
56
+ surface ambiguous file ownership rather than absorbing unrelated drift.
57
+ - When the standards and current delta tech already cover the change,
58
+ continue immediately.
59
+ - For each uncovered possible reusable convention, apply the recommendation
60
+ the bounded evidence supports without pausing for operator confirmation:
61
+ capture a reusable convention as current-change delta tech through
62
+ `generate <change-name> delta-tech`, or record the classification that
63
+ the pattern is not reusable, with the reason it is specific to this change.
64
+ - Report the applied decision in the archive summary — target standard,
65
+ operation, rule id, strength, statement, rationale, and enforcement, or
66
+ the not-reusable reason — since it is the operator's only view of it.
67
+ - Never defer a confirmed reusable convention until after archive, and never
68
+ edit a live main standard.
69
+ - After any delta-tech write, review the final delta artifact and rerun
70
+ `verify`. Rerun the regression command only when this step changed a file
71
+ outside the carve-out: a write the configured regression command neither
72
+ compiles nor reads — currently a change-local delta-tech artifact or a
73
+ lesson — does not invalidate passing complete project regression evidence.
74
+
75
+ 3. **Confirm readiness** — review must have declared the lesson outcome; if it
76
+ did not, declare it now under `strict-spec-review`'s criteria, which costs no
77
+ rerun because a lesson is inside the carve-out. Then `verify <change-name>`
78
+ must pass; stop on any blocker.
79
+
80
+ 4. **Archive the change** — run `archive <change-name>`, the only mechanism for
81
+ the delta merge, index regeneration, roadmap reconciliation, and change
82
+ move. Delta scenes merge in the same transaction; `verify` already blocked
83
+ any uncovered flow step, so nothing is re-derived (`scene-status` shows a
84
+ merged scene's state).
85
+
86
+ 5. **Report the result** — the archive destination, main specs updated, scenes
87
+ merged, roadmap files reconciled, and the step 2 decision or that the
88
+ checkpoint found nothing uncovered.
154
89
 
155
90
  ## Rules
156
91
 
157
- - Never archive a change with verification blockers
158
- - Never invoke archive before the final current-change tech-sync checkpoint is
159
- resolved
160
- - Never defer a confirmed reusable convention until after archive; capture it as
161
- current-change delta tech
92
+ - Never archive with verification blockers or before the final current-change
93
+ tech sync is resolved.
162
94
  - Never put an archive-time tech-sync finding to the operator as a question;
163
- decide it from the bounded evidence, apply it, and report what was applied
164
- - Use the strict archive command rather than manually moving change directories
165
- - Treat the current YAML artifacts and repository state as authoritative
95
+ decide it from the bounded evidence, apply it, and report what was applied.