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,62 +8,37 @@ metadata:
|
|
|
8
8
|
version: 1.0.0
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
|
|
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
|
-
|
|
47
|
-
|
|
48
|
-
`spec-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
-
|
|
64
|
-
|
|
65
|
-
user
|
|
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** —
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
2. **Run the final current-change tech sync** — before final verification
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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
|
|
158
|
-
|
|
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.
|