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,13 +8,11 @@ metadata:
|
|
|
8
8
|
version: 1.0.0
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Review a completed strict change from repository evidence, as someone who did
|
|
12
|
+
not write it, and decide whether it is ready to archive.
|
|
12
13
|
|
|
13
14
|
## This Skill's Commands
|
|
14
15
|
|
|
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
16
|
```yaml
|
|
19
17
|
check-workflow-state: strict-spec-cli check-workflow-state
|
|
20
18
|
tech-status: strict-spec-cli tech-status
|
|
@@ -28,87 +26,51 @@ lesson-edit: strict-spec-cli lesson-edit <lesson-id> --origin <text> --evidence
|
|
|
28
26
|
|
|
29
27
|
## CLI-Only YAML Authoring Protocol
|
|
30
28
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
bundled schema and example keys with their cache-resolved paths, bound to the
|
|
36
|
-
artifact kind and current where a copy would go stale. Validate the result with
|
|
37
|
-
`strict-spec-cli lesson-status`.
|
|
38
|
-
|
|
39
|
-
**Stop rather than edit YAML directly.** When a required command, argument, or
|
|
40
|
-
artifact kind is unavailable, stop and report the missing capability. Editing
|
|
41
|
-
the YAML directly, writing a raw payload, or scripting around the CLI is never
|
|
42
|
-
an available fallback, and an unavailable command is a reason to stop rather
|
|
43
|
-
than a reason to improvise.
|
|
29
|
+
This skill writes `lessons-state`. Before its first mutation, run
|
|
30
|
+
`strict-spec-cli yaml-authoring-protocol <artifact-kind>` for each kind and
|
|
31
|
+
follow it, including its rule to stop and report a missing command rather than
|
|
32
|
+
work around it; validate the result with `strict-spec-cli lesson-status`.
|
|
44
33
|
|
|
45
34
|
## Preferred Human Language
|
|
46
35
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
user
|
|
50
|
-
the active user message asks otherwise.
|
|
36
|
+
Write user-facing and generated operator-facing text in the human language named
|
|
37
|
+
by `preferred_human_language` in `.strict-spec-driven/config.yaml`, unless the
|
|
38
|
+
active user message asks otherwise.
|
|
51
39
|
|
|
52
40
|
## Review Independence
|
|
53
41
|
|
|
54
|
-
|
|
55
|
-
review
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
and
|
|
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
|
-
an implementation reference and a test reference
|
|
87
|
-
— file and line where the evidence exists, or a statement of what is missing
|
|
88
|
-
where it does not. A blanket claim that the implementation matches the proposal
|
|
89
|
-
is not a substitute for per-item verdicts,
|
|
90
|
-
and an acceptance item no test covers is not `satisfied`.
|
|
91
|
-
|
|
92
|
-
`unprovable from evidence` on a MUST-strength delta spec requirement is a MUST
|
|
93
|
-
FIX finding that
|
|
94
|
-
blocks the archive recommendation
|
|
95
|
-
until a test or an explicit human decision resolves it. On any other acceptance
|
|
96
|
-
item it is a SHOULD FIX finding that must be reported but does not block.
|
|
97
|
-
|
|
98
|
-
**Fresh-context reviewer.** When the running harness provides it, hand the
|
|
99
|
-
review to a sub-agent started with a fresh context. It carries no memory of
|
|
100
|
-
writing the change, and its file reading stays out of the implementing context
|
|
101
|
-
that the later steps still run in. Brief it with the change name and this
|
|
102
|
-
skill's procedure, never with an account of how the change was implemented: a
|
|
103
|
-
briefing that explains the code carries the author's seat into the fresh
|
|
104
|
-
context. The reviewer performs steps 3 through 8 from repository evidence
|
|
105
|
-
alone, edits no file, and returns the step 6 verdict table with its findings
|
|
106
|
-
and any convention candidate for step 11; the implementing agent then resumes
|
|
107
|
-
at step 9 and keeps the fixes, the reruns, the lesson outcome, and the archive
|
|
108
|
-
decision.
|
|
109
|
-
This is a recommendation, not a requirement: when no such capability is
|
|
110
|
-
available, or the operator prefers otherwise, perform the review in the current
|
|
111
|
-
context under the same two stances. The review standard is the same either way.
|
|
42
|
+
A review written from the author's seat explains the code instead of testing
|
|
43
|
+
it, so the review runs in two stances with a written artifact between them.
|
|
44
|
+
|
|
45
|
+
**Stance one — reconstruct the requirement.** Before any implementation file,
|
|
46
|
+
diff, or test file is read, write down from `proposal.yaml`, `design.yaml`,
|
|
47
|
+
`questions.yaml`, and the delta specs alone: the problem and the observable
|
|
48
|
+
outcome that proves it solved, the non-goals and `unchanged_behavior` items,
|
|
49
|
+
and numbered acceptance items, each checkable from outside the system. Never
|
|
50
|
+
derive the requirement from the implementation: a requirement read off the
|
|
51
|
+
diff is satisfied by whatever the diff does. Without a delta spec, build the
|
|
52
|
+
items from the proposal's `summary.what`, `scope.in`, and `unchanged_behavior`
|
|
53
|
+
and the design decisions, so the list is never empty.
|
|
54
|
+
|
|
55
|
+
**Stance two — verify from outside.** Read the changed files as an outside
|
|
56
|
+
reviewer who did not write them; a justification that exists only in your
|
|
57
|
+
memory of writing the code is not evidence.
|
|
58
|
+
|
|
59
|
+
**Verdicts.** Give every item exactly one of `satisfied`, `not satisfied`, or
|
|
60
|
+
`unprovable from evidence`, with an implementation reference and a test
|
|
61
|
+
reference — file and line, or what is missing. A blanket claim that the
|
|
62
|
+
implementation matches the proposal replaces no per-item verdict, and an item
|
|
63
|
+
no test covers is not `satisfied`. `unprovable from evidence` on a
|
|
64
|
+
MUST-strength requirement is a MUST FIX finding that blocks the archive
|
|
65
|
+
recommendation until a test or an explicit human decision resolves it; on any
|
|
66
|
+
other item it is a non-blocking SHOULD FIX.
|
|
67
|
+
|
|
68
|
+
**Fresh-context reviewer.** When the running harness provides one, hand steps
|
|
69
|
+
3 to 6 to a sub-agent started with a fresh context and briefed with the change
|
|
70
|
+
name and this skill, never with how the change was implemented. It edits no
|
|
71
|
+
file and returns the verdict table, its findings, and any convention candidate;
|
|
72
|
+
the implementing agent resumes at step 7. This is a recommendation, not a
|
|
73
|
+
requirement: otherwise review in the current context under the same stances.
|
|
112
74
|
|
|
113
75
|
## Steps
|
|
114
76
|
|
|
@@ -116,200 +78,86 @@ Before any other step, run `strict-spec-cli check-workflow-state`. If `.strict-s
|
|
|
116
78
|
missing, stop immediately and tell the user to run `/strict-spec-init`. Do not
|
|
117
79
|
run `init` from this skill.
|
|
118
80
|
|
|
119
|
-
1. **Select the change** —
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
2. **Confirm readiness** —
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
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
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
9. **Fix safe in-scope findings** — if review finds MUST FIX issues that are
|
|
196
|
-
safe to repair within the current strict change scope, make those fixes
|
|
197
|
-
automatically before reporting the review as complete. If any review-time
|
|
198
|
-
code or workflow artifact changes are made, rerun strict verification and
|
|
199
|
-
the configured complete project regression command before recommending
|
|
200
|
-
archive. Unsafe, ambiguous, blocked, or out-of-scope fixes must remain
|
|
201
|
-
reported as blockers instead of being inferred or silently expanded.
|
|
202
|
-
|
|
203
|
-
10. **Confirm complete regression evidence** — inspect project workflow context,
|
|
204
|
-
including `.strict-spec-driven/config.yaml` when available, for the complete
|
|
205
|
-
project-level regression test method. Require evidence that the full project
|
|
206
|
-
regression command has passed before recommending archive. When the config
|
|
207
|
-
declares a coverage contract under
|
|
208
|
-
`review_evidence.project_regression.coverage`, the regression command is the
|
|
209
|
-
coverage gate: a non-zero exit because measured coverage fell below the
|
|
210
|
-
declared threshold is blocking review evidence exactly like failing tests,
|
|
211
|
-
never advisory output. Do not measure coverage yourself or second-guess the
|
|
212
|
-
threshold — the project's configured command owns measurement and
|
|
213
|
-
enforcement. If the command cannot run because dependencies, services,
|
|
214
|
-
credentials, fixtures, or other test conditions are unavailable, treat
|
|
215
|
-
archive recommendation as blocked and give the human actionable setup or
|
|
216
|
-
waiting guidance instead of inferring a clean result.
|
|
217
|
-
|
|
218
|
-
The evidence collected here survives the two steps that follow it: a write
|
|
219
|
-
the configured regression command neither compiles nor reads — currently a
|
|
220
|
-
change-local delta-tech artifact or a lesson — does not invalidate passing
|
|
221
|
-
complete project regression evidence, so recording the lesson in step 12 or
|
|
222
|
-
capturing a convention as delta tech in step 11 costs no rerun. Every other
|
|
223
|
-
write, including a delta-spec, a planning artifact, and any source or test
|
|
224
|
-
file, does invalidate it and forces the command to be rerun before archive is
|
|
225
|
-
recommended.
|
|
226
|
-
|
|
227
|
-
11. **Reflect on uncaptured engineering conventions (non-blocking)** — after the
|
|
228
|
-
review checklist, consider whether this change established a reusable
|
|
229
|
-
engineering convention not yet captured under `.strict-spec-driven/tech/` (a
|
|
230
|
-
coding, architecture, testing, tooling, security, performance, or API rule).
|
|
231
|
-
When it did, report the finding with the recommendation you derived — the
|
|
232
|
-
target standard, operation, rule id, strength, statement, rationale, and
|
|
233
|
-
enforcement you would capture, or the reason the pattern is specific to this
|
|
234
|
-
change. Do not put that choice to the operator. You may carry it now as a
|
|
235
|
-
delta tech artifact under `changes/<name>/tech/` so archive merges it into the
|
|
236
|
-
standards; otherwise the mandatory final current-change tech sync in
|
|
237
|
-
`strict-spec-archive` applies that recommendation before archive is invoked.
|
|
238
|
-
This early reflection does not by itself block strict verification or review
|
|
239
|
-
completion. However, a convention confirmed as reusable may not be deferred
|
|
240
|
-
until after archive: the final archive checkpoint captures it as
|
|
241
|
-
current-change delta tech or records that the surfaced pattern is not
|
|
242
|
-
reusable.
|
|
243
|
-
|
|
244
|
-
12. **Declare the lesson outcome (required)** — before reporting, state
|
|
245
|
-
explicitly either that a lesson was recorded or that none applies, with the
|
|
246
|
-
reason. Judge this from the objective proposal-versus-implementation diff,
|
|
247
|
-
not from a general sense of having learned something. Record a lesson when
|
|
248
|
-
any of these is true:
|
|
249
|
-
- a `design.yaml` decision or approach was overturned during implementation
|
|
250
|
-
- a question surfaced that the proposal did not foresee
|
|
251
|
-
- a task was added because of a discovery rather than a scope change
|
|
252
|
-
- a regression failure exposed a trap that this change did not introduce
|
|
253
|
-
|
|
254
|
-
When one applies, first check whether an existing lesson already covers the
|
|
255
|
-
same `applies_when` condition:
|
|
256
|
-
```bash
|
|
257
|
-
strict-spec-cli lesson-status --category <category>
|
|
258
|
-
```
|
|
259
|
-
If it does, append the recurrence instead of creating a near-duplicate:
|
|
260
|
-
```bash
|
|
261
|
-
strict-spec-cli lesson-edit <lesson-id> --origin <change-name> --evidence "..."
|
|
262
|
-
```
|
|
263
|
-
Otherwise record a new one:
|
|
264
|
-
```bash
|
|
265
|
-
strict-spec-cli lesson-create --title "..." --category <category> --context "..." \
|
|
266
|
-
--observation "..." --takeaway "..." --applies-when "..." \
|
|
267
|
-
--origin <change-name> --evidence "..."
|
|
268
|
-
```
|
|
269
|
-
Spend the effort on `--applies-when`: it is the retrieval key that decides
|
|
270
|
-
whether anyone ever sees the lesson again. When none of the four criteria
|
|
271
|
-
applies, say "no lesson" and give the one-line reason. Do not manufacture an
|
|
272
|
-
entry to fill the slot — a store padded with filler stops being read.
|
|
273
|
-
|
|
274
|
-
13. **Report the result** — include review evidence before findings:
|
|
275
|
-
- changed implementation and test files read
|
|
276
|
-
- strict artifacts and delta specs read
|
|
277
|
-
- verification and regression commands executed, including post-fix reruns
|
|
278
|
-
when review-time changes were made, with pass/fail status
|
|
279
|
-
Then report the verdict table from step 6 — every acceptance item with its
|
|
280
|
-
verdict and evidence — before any finding, so a reader can tell a review that
|
|
281
|
-
verified nothing from one that found nothing. Then group findings into:
|
|
282
|
-
- MUST FIX
|
|
283
|
-
- SHOULD FIX
|
|
284
|
-
- NITS
|
|
285
|
-
Findings should include file and line references when available.
|
|
286
|
-
Recommend `strict-spec-archive` only when review is clean enough to archive
|
|
287
|
-
and complete project-level regression test evidence has passed, noting that
|
|
288
|
-
archive guidance will still run its bounded final current-change tech sync.
|
|
81
|
+
1. **Select the change** — use the change the user named; otherwise `modify`
|
|
82
|
+
without an argument lists the active ones.
|
|
83
|
+
|
|
84
|
+
2. **Confirm readiness** — `verify <change-name>` must pass first.
|
|
85
|
+
|
|
86
|
+
3. **Reconstruct the requirement** — stance one, from the planning artifacts,
|
|
87
|
+
delta specs, delta scenes, and delta tech only. Done when the numbered
|
|
88
|
+
acceptance items are written and no changed file, diff, or test is open.
|
|
89
|
+
|
|
90
|
+
4. **Read the change as an outside reviewer** — only now read
|
|
91
|
+
`git status --short`, the tracked diff, every changed or new file belonging
|
|
92
|
+
to the change, and the standards governing them (`tech-status`). Read every
|
|
93
|
+
changed file yourself; no `strict-spec-cli review` command or deterministic
|
|
94
|
+
script substitutes for code review.
|
|
95
|
+
|
|
96
|
+
5. **Record a verdict for every acceptance item** — before any finding, each
|
|
97
|
+
located in the repository rather than recalled from writing it.
|
|
98
|
+
|
|
99
|
+
6. **Apply the review checklist** — correctness and regressions; spec
|
|
100
|
+
alignment and `unchanged_behavior`; test coverage, independence, and
|
|
101
|
+
assertions; error handling and edge cases; security; performance;
|
|
102
|
+
maintainability and needless abstraction; user-visible CLI and docs;
|
|
103
|
+
generated artifacts and packaging. A standard's MUST violation is MUST FIX
|
|
104
|
+
and an unjustified SHOULD violation at least SHOULD FIX, unless `design.yaml`
|
|
105
|
+
justifies the deviation. An unjustified or malformed delta-tech operation
|
|
106
|
+
(`schema-show delta-tech`) is MUST FIX. For each delta scene, run
|
|
107
|
+
`scene-status --scene <scene-id>` and judge what `verify` cannot: whether a
|
|
108
|
+
no-coverage reason is a real decision and a covering requirement truly
|
|
109
|
+
covers its step; a hollow waiver or mismatched reference is MUST FIX.
|
|
110
|
+
|
|
111
|
+
7. **Fix safe in-scope findings** — repair MUST FIX issues safe within scope,
|
|
112
|
+
then rerun `verify` and the configured complete regression command. Unsafe,
|
|
113
|
+
ambiguous, blocked, or out-of-scope fixes stay reported as blockers.
|
|
114
|
+
|
|
115
|
+
8. **Confirm complete regression evidence** — require a passing run of the
|
|
116
|
+
complete project regression command configured under
|
|
117
|
+
`review_evidence.project_regression.command` for the final state. With a
|
|
118
|
+
declared coverage contract, that command is the coverage gate: its non-zero
|
|
119
|
+
exit is blocking evidence, never advisory, and you never measure coverage
|
|
120
|
+
yourself. When it cannot run (dependencies, services, credentials,
|
|
121
|
+
fixtures), the archive recommendation is blocked; give actionable setup or
|
|
122
|
+
waiting guidance. Steps 9 and 10 cost no rerun: a write the configured
|
|
123
|
+
regression command neither compiles nor reads — currently a change-local
|
|
124
|
+
delta-tech artifact or a lesson — does not invalidate passing complete
|
|
125
|
+
project regression evidence. Any other write, delta specs and planning
|
|
126
|
+
artifacts included, does.
|
|
127
|
+
|
|
128
|
+
9. **Reflect on uncaptured engineering conventions (non-blocking)** — did the
|
|
129
|
+
change establish a reusable convention not yet captured under
|
|
130
|
+
`.strict-spec-driven/tech/`? Report each finding with the recommendation you
|
|
131
|
+
derived — target standard, operation, rule id, strength, statement,
|
|
132
|
+
rationale, and enforcement — or why it is specific to this change. Do not
|
|
133
|
+
put that choice to the operator. Carry it now as delta tech, or leave it to
|
|
134
|
+
the mandatory final current-change tech sync in `strict-spec-archive`, which
|
|
135
|
+
applies it before archive. The reflection blocks nothing, but a convention
|
|
136
|
+
confirmed as reusable may not be deferred until after archive.
|
|
137
|
+
|
|
138
|
+
10. **Declare the lesson outcome (required)** — state the lesson recorded, or
|
|
139
|
+
"no lesson" with a one-line reason, judged from the objective
|
|
140
|
+
proposal-versus-implementation difference: a lesson applies when a design
|
|
141
|
+
decision was overturned, a question surfaced the proposal did not foresee,
|
|
142
|
+
a task was added for a discovery rather than a scope change, or a
|
|
143
|
+
regression failure exposed a trap this change did not introduce. Check
|
|
144
|
+
`lesson-status --category <category>` before `lesson-create`, and append a
|
|
145
|
+
recurrence with `lesson-edit` when a lesson already covers the same
|
|
146
|
+
`applies_when` — the key that decides whether anyone sees it again. Never
|
|
147
|
+
manufacture an entry to fill the slot.
|
|
148
|
+
|
|
149
|
+
11. **Report** — first the evidence: files and artifacts read, and the
|
|
150
|
+
verification and regression commands run with pass/fail, including
|
|
151
|
+
post-fix reruns. Then the verdict table, so a review that verified nothing
|
|
152
|
+
is distinguishable from one that found nothing. Then MUST FIX, SHOULD FIX,
|
|
153
|
+
and NITS with file and line references. Recommend `strict-spec-archive`
|
|
154
|
+
only when the review is clean and complete regression evidence has passed,
|
|
155
|
+
noting that archive still runs its bounded final current-change tech sync.
|
|
289
156
|
|
|
290
157
|
## Rules
|
|
291
158
|
|
|
292
|
-
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
-
|
|
296
|
-
|
|
297
|
-
harness provides one, and review in the current context to the same standard
|
|
298
|
-
where it does not
|
|
299
|
-
- Do not call or rely on a `strict-spec-cli review` command
|
|
300
|
-
- Do not recommend archive without explicit direct code review evidence
|
|
301
|
-
- Automatically fix safe in-scope review findings before archive
|
|
302
|
-
recommendation, and rerun strict verification plus the configured complete
|
|
303
|
-
regression command after review-time changes
|
|
304
|
-
- Focus on real issues, not style churn already handled elsewhere
|
|
305
|
-
- Review code based on repository evidence, never on authorship
|
|
306
|
-
- Treat applicable technical standards under `.strict-spec-driven/tech/` as part
|
|
307
|
-
of the review bar: MUST violations are MUST FIX, unjustified SHOULD violations
|
|
308
|
-
are SHOULD FIX, and deviations are acceptable only when `design.yaml` justifies
|
|
309
|
-
them
|
|
310
|
-
- When the change carries delta tech artifacts under `changes/<name>/tech/`,
|
|
311
|
-
review each standard change for justification and correct merge operations; an
|
|
312
|
-
unjustified or malformed standard change is a MUST FIX finding
|
|
313
|
-
- Do not recommend archive without passing complete project-level regression
|
|
314
|
-
test evidence or explicit setup guidance explaining why that evidence is
|
|
315
|
-
blocked
|
|
159
|
+
- Never recommend archive without direct code review evidence, a verdict for
|
|
160
|
+
every acceptance item, and passing complete regression evidence or setup
|
|
161
|
+
guidance explaining why it is blocked.
|
|
162
|
+
- Review from repository evidence, never from authorship; focus on real
|
|
163
|
+
issues, not style churn handled elsewhere.
|
|
@@ -8,44 +8,23 @@ metadata:
|
|
|
8
8
|
version: 1.0.0
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Ship an archived strict change as one focused git commit, and leave the push to
|
|
12
|
+
the operator. The change must already be archived under
|
|
13
|
+
`.strict-spec-driven/changes/archive/`, the only ship source; run
|
|
14
|
+
`strict-spec-archive` first when it is not.
|
|
12
15
|
|
|
13
16
|
## This Skill's Commands
|
|
14
17
|
|
|
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
18
|
```yaml
|
|
19
19
|
check-workflow-state: strict-spec-cli check-workflow-state
|
|
20
20
|
ship: strict-spec-cli ship <change-name>
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
## Responsibility Split
|
|
24
|
-
|
|
25
|
-
**Handled by CLI scripts**
|
|
26
|
-
- resolve the archived change directory under `.strict-spec-driven/changes/archive/`
|
|
27
|
-
- read the proposal summary from archived change artifacts
|
|
28
|
-
- snapshot current roadmap state
|
|
29
|
-
- emit structured JSON for the skill to consume
|
|
30
|
-
|
|
31
|
-
**Handled by the AI**
|
|
32
|
-
- construct the focused git commit message from ship command output
|
|
33
|
-
- stage the relevant files with `git add`
|
|
34
|
-
- run `git commit`
|
|
35
|
-
- present `git push` for operator confirmation before executing
|
|
36
|
-
|
|
37
|
-
## Prerequisites
|
|
38
|
-
|
|
39
|
-
The change must already be archived under
|
|
40
|
-
`.strict-spec-driven/changes/archive/`. Run `/strict-spec-archive` first if it is
|
|
41
|
-
not.
|
|
42
|
-
|
|
43
23
|
## Preferred Human Language
|
|
44
24
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
user
|
|
48
|
-
the active user message asks otherwise.
|
|
25
|
+
Write user-facing and generated operator-facing text in the human language named
|
|
26
|
+
by `preferred_human_language` in `.strict-spec-driven/config.yaml`, unless the
|
|
27
|
+
active user message asks otherwise.
|
|
49
28
|
|
|
50
29
|
## Steps
|
|
51
30
|
|
|
@@ -53,42 +32,28 @@ Before any other step, run `strict-spec-cli check-workflow-state`. If `.strict-s
|
|
|
53
32
|
missing, stop immediately and tell the user to run `/strict-spec-init`. Do not
|
|
54
33
|
run `init` from this skill.
|
|
55
34
|
|
|
56
|
-
1. **
|
|
57
|
-
|
|
58
|
-
strict-spec-cli ship
|
|
59
|
-
|
|
60
|
-
Stop if the command exits non-zero. The output includes `changeName`,
|
|
61
|
-
`archivePath`, `proposalSummary`, and `roadmapSnapshot`.
|
|
62
|
-
|
|
63
|
-
2. **Construct the commit message** using the JSON output:
|
|
64
|
-
- Title line: `feat: <changeName>` (use `fix:`, `chore:`, or `docs:` if
|
|
65
|
-
`proposalSummary` clearly indicates a different commit type)
|
|
66
|
-
- Keep the title under 72 characters
|
|
67
|
-
- Optionally add a short body line from `proposalSummary` if it adds
|
|
68
|
-
meaningful context beyond the title
|
|
35
|
+
1. **Collect the ship record** — run `ship <change-name>`; it resolves the
|
|
36
|
+
archived change, reads its proposal summary, and snapshots roadmap state as
|
|
37
|
+
structured output (`strict-spec-cli ship --help --json` describes it). Stop
|
|
38
|
+
when it exits non-zero.
|
|
69
39
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
Confirm the staged and unstaged changes correspond to the archived change
|
|
75
|
-
before proceeding. Stop if unrelated work-in-progress changes are present.
|
|
40
|
+
2. **Build the commit message from that output** — a conventional title under
|
|
41
|
+
72 characters naming the change: `feat:` by default, or `fix:`, `chore:`,
|
|
42
|
+
or `docs:` when the proposal summary clearly says so. Add a short body line
|
|
43
|
+
only when the summary adds context the title lacks.
|
|
76
44
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
45
|
+
3. **Stage only this change** — read `git status` and confirm the changes
|
|
46
|
+
correspond to the archived change; stop when unrelated work in progress is
|
|
47
|
+
present. Stage the implementation, test, skill, spec, and workflow files
|
|
48
|
+
that belong to the change, and nothing else.
|
|
80
49
|
|
|
81
|
-
|
|
82
|
-
```bash
|
|
83
|
-
git commit -m "<commit-message>"
|
|
84
|
-
```
|
|
50
|
+
4. **Commit** — run `git commit` with the constructed message.
|
|
85
51
|
|
|
86
|
-
|
|
87
|
-
explicit confirmation
|
|
52
|
+
5. **Hand off the push** — show the operator the `git push` command and run it
|
|
53
|
+
only after explicit confirmation.
|
|
88
54
|
|
|
89
55
|
## Rules
|
|
90
56
|
|
|
91
|
-
-
|
|
92
|
-
-
|
|
93
|
-
- Do not
|
|
94
|
-
- Do not re-run verify or archive as part of this skill — those steps are done
|
|
57
|
+
- Never push without explicit operator confirmation.
|
|
58
|
+
- The `ship` output is the source for the change name and summary.
|
|
59
|
+
- Do not rerun verify or archive; both are already done.
|