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,13 +8,11 @@ metadata:
8
8
  version: 1.0.0
9
9
  ---
10
10
 
11
- You are reviewing the code quality of a completed strict YAML change.
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
- Every mutation of repository-owned YAML in this skill goes through the strict
32
- CLI. This skill writes `lessons-state`. Before the first mutation run
33
- `strict-spec-cli yaml-authoring-protocol lessons-state`: that command reports
34
- the ordered authoring steps, the owning command for each operation, and the
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
- Comply with `preferred_human_language` from `.strict-spec-driven/config.yaml` —
48
- the user's common human language, not a programming language — for all
49
- user-facing and generated operator-facing text, unless that file is absent or
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
- The agent that implemented a change is usually the agent reviewing it, so a
55
- review written from the author's seat explains the implementation instead of
56
- testing it, and reports clean. This section splits the review into two stances
57
- and makes the boundary between them a written artifact rather than an intention.
58
-
59
- **Stance one — reconstruct the requirement.**
60
- Read only `proposal.yaml`, `design.yaml`, `questions.yaml`, and the delta specs,
61
- and write the reconstruction down
62
- before any implementation file, diff, or test file is read:
63
-
64
- - the problem the change exists to solve, and the observable outcome that would
65
- prove it solved
66
- - the non-goals, and every `unchanged_behavior` item the result must still honor
67
- - a numbered list of acceptance items, each independently checkable from
68
- outside the system
69
-
70
- Never derive the requirement from the implementation.
71
- A requirement read off the diff is satisfied by whatever the diff happens to do,
72
- which is exactly the failure this ordering exists to prevent. When the change
73
- carries no delta spec, build the acceptance items from `proposal.yaml`'s
74
- `summary.what`, `scope.in`, and `unchanged_behavior` plus the `design.yaml`
75
- decisions, so the list is never empty.
76
-
77
- **Stance two — verify from outside.** Now read the changed files as
78
- an outside reviewer who did not write them.
79
- Knowing why the code took its shape has no standing here: a justification that
80
- exists only in your memory of writing it is not evidence, and the review reports
81
- what the repository can be shown to do.
82
-
83
- **Verdicts.** Answer every numbered acceptance item with exactly one of
84
- `satisfied`, `not satisfied`, or `unprovable from evidence`,
85
- and give each verdict
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** — run `modify` without an argument to list active
120
- changes. If the change is already specified, use it.
121
-
122
- 2. **Confirm readiness** — run:
123
- ```bash
124
- strict-spec-cli verify <change-name>
125
- ```
126
- If verification reports blockers, stop and resolve them before review.
127
-
128
- 3. **Reconstruct the requirement** — stance one from Review Independence. When
129
- a fresh-context reviewer is used, steps 3 through 8 run inside it and this
130
- skill resumes at step 9 with its report. Read only:
131
- - `proposal.yaml`
132
- - `design.yaml`
133
- - `questions.yaml`
134
- - every strict YAML delta spec in `changes/<name>/specs/`
135
- - every strict YAML delta scene in `changes/<name>/scenes/`, if present,
136
- which states the situation the requirements were derived from
137
- - every strict YAML delta tech artifact in `changes/<name>/tech/`, if present
138
-
139
- Write down the problem, the observable outcome, the non-goals and
140
- `unchanged_behavior` items, and the numbered acceptance items. Do not open a
141
- changed file, a diff, or a test in this step.
142
-
143
- 4. **Load the implementation context** — only now read:
144
- - `git status --short` and the relevant diff for changed tracked files
145
- - the implementation and test files mapped to the delta specs
146
- - any newly created untracked source, test, documentation, or strict workflow
147
- files that belong to the change
148
- - the technical standards that govern the changed files: run
149
- `strict-spec-cli tech-status` and read the
150
- relevant files under `.strict-spec-driven/tech/`
151
-
152
- 5. **Read every changed file yourself** — perform an author-agnostic code
153
- review from repository evidence. Do not call a `strict-spec-cli review`
154
- command and do not treat any deterministic script as a substitute for code
155
- review.
156
-
157
- 6. **Record a verdict for every acceptance item** — resolve each numbered item
158
- from step 3 to one of the three verdicts with its evidence, before writing any
159
- finding. A verdict reached by recalling what was implemented rather than by
160
- locating it in the repository is not a verdict.
161
-
162
- 7. **Apply the review checklist** — evaluate findings across:
163
- - correctness and behavioral regressions
164
- - strict spec alignment and `unchanged_behavior`
165
- - test coverage, test independence, and test assertions
166
- - error handling and edge cases
167
- - security and unsafe input handling
168
- - performance or scalability risks
169
- - maintainability, readability, and unnecessary abstraction
170
- - user-visible CLI or documentation behavior
171
- - generated artifacts, build output, and packaging impact
172
- - technical-standard compliance: every changed file must satisfy the
173
- applicable MUST and SHOULD rules under `.strict-spec-driven/tech/`. A MUST
174
- violation is a MUST FIX finding; an unjustified SHOULD violation is at
175
- least a SHOULD FIX finding. A deviation is acceptable only when the
176
- change's `design.yaml` records an explicit justification for it.
177
- - delta tech correctness: when the change carries delta tech artifacts under
178
- `changes/<name>/tech/`, confirm each standard change is justified by
179
- `proposal.yaml`/`design.yaml`, that the `operations` target the right rule
180
- ids, that `ADDED` rules do not duplicate existing rules, and that a new
181
- standard supplies a `standard` block with title and category. Flag an
182
- unjustified or incorrect standard change as a MUST FIX finding.
183
-
184
- 8. **Check spec alignment** — confirm the implementation and tests match the
185
- strict YAML delta specs and do not violate `unchanged_behavior`. When the
186
- change carries delta scenes, also run
187
- `strict-spec-cli scene-status --scene <scene-id>` for each one and read the
188
- coverage state of every flow step. `verify` already blocks a step naming
189
- neither a covering requirement nor an explicit no-coverage reason, so what
190
- review adds is judgment the gate cannot apply: whether a recorded
191
- no-coverage reason is a real decision rather than a way to silence a gap, and
192
- whether a covering requirement genuinely covers the step it is attached to. A
193
- hollow waiver or a mismatched covering reference is a MUST FIX finding.
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
- - Reconstruct the requirement from the change's planning artifacts before
293
- reading the implementation, and report a verdict with evidence for every
294
- acceptance item
295
- - Read every changed file before commenting on it
296
- - Prefer a fresh-context reviewer for steps 3 through 8 where the running
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
- You are helping the user ship an archived strict YAML change with a focused git commit.
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
- Comply with `preferred_human_language` from `.strict-spec-driven/config.yaml` —
46
- the user's common human language, not a programming language — for all
47
- user-facing and generated operator-facing text, unless that file is absent or
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. **Run the ship command** to get verification JSON:
57
- ```bash
58
- strict-spec-cli ship <change-name>
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
- 3. **Review git status** to confirm which files have changed:
71
- ```bash
72
- git status
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
- 4. **Stage the relevant files** — use `git add` for the implementation files,
78
- test files, skill files, spec files, and workflow artifacts that belong to
79
- this change. Do not stage unrelated files.
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
- 5. **Commit** with the constructed message:
82
- ```bash
83
- git commit -m "<commit-message>"
84
- ```
50
+ 4. **Commit** — run `git commit` with the constructed message.
85
51
 
86
- 6. **Present push** — show the operator the `git push` command and wait for
87
- explicit confirmation before executing it.
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
- - Do not push without explicit operator confirmation
92
- - Use the `ship` command output as the source for change name and summary
93
- - Do not stage files that do not belong to the archived change
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.