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,21 +8,14 @@ metadata:
8
8
  version: 1.0.0
9
9
  ---
10
10
 
11
- You are helping the user synchronize `.strict-spec-driven/design-system.yaml` with
12
- the visual identity the user interface code already implements.
13
-
14
- `/strict-spec-design` authors the artifact from scratch. This skill is for
15
- afterwards: components get added and deleted, palettes get retuned, spacing
16
- scales get renamed, and the recorded identity silently stops matching the code.
17
- `design-status` catches only one kind of drift — a mapped path that no longer
18
- exists — because no script can tell that a hex value in a stylesheet has diverged
19
- from `tokens.colors.primary`. That judgment is this skill's job.
11
+ Bring `.strict-spec-driven/design-system.yaml` back in line with the visual
12
+ identity the interface code implements, then re-render `DESIGN.md`.
13
+ `design-status` only catches mapped paths that no longer exist; judging that a
14
+ stylesheet value has diverged from a recorded token is this skill's job.
15
+ Authoring the artifact from scratch belongs to `strict-spec-design`.
20
16
 
21
17
  ## This Skill's Commands
22
18
 
23
- If you cannot remember the exact command used by this skill, look it up here
24
- before running anything. Do not guess.
25
-
26
19
  ```yaml
27
20
  check-workflow-state: strict-spec-cli check-workflow-state
28
21
  design-status: strict-spec-cli design-status
@@ -36,42 +29,25 @@ tech-status: strict-spec-cli tech-status
36
29
 
37
30
  ## CLI-Only YAML Authoring Protocol
38
31
 
39
- Every mutation of repository-owned YAML in this skill goes through the strict
40
- CLI. This skill writes `design-system-state`. Before the first mutation run
41
- `strict-spec-cli yaml-authoring-protocol design-system-state`: that command
42
- reports the ordered authoring steps, the owning command for each operation, and
43
- the bundled schema and example keys with their cache-resolved paths, bound to
44
- the artifact kind and current where a copy would go stale. Validate the result
45
- with `strict-spec-cli design-status`.
46
-
47
- **Stop rather than edit YAML directly.** When a required command, argument, or
48
- artifact kind is unavailable, stop and report the missing capability. Editing
49
- the YAML directly, writing a raw payload, or scripting around the CLI is never
50
- an available fallback, and an unavailable command is a reason to stop rather
51
- than a reason to improvise.
32
+ This skill writes `design-system-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 design-status`.
52
36
 
53
37
  ## Preferred Human Language
54
38
 
55
- Comply with `preferred_human_language` from `.strict-spec-driven/config.yaml` —
56
- the user's common human language, not a programming language — for all
57
- user-facing and generated operator-facing text, including generated design
58
- prose, unless that file is absent or 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`, including
41
+ generated design prose, unless the active user message asks otherwise.
59
42
 
60
43
  ## Scope of This Skill
61
44
 
62
- This skill synchronizes the live design-system artifact directly. It has no
63
- active-change mode, unlike `/strict-tech-sync`:
64
-
65
- - There is no delta-design artifact type and archive has no design-system merge
66
- path, so a design-system edit is never carried inside a change.
67
- - Do not invent a `delta-design` artifact to mirror delta tech.
68
- - When the drift you find is really a change in **observable UI behavior**, it
69
- belongs in a strict main spec, not here — stop and route it to
70
- `/strict-spec-brainstorm` or `/strict-spec-propose`.
71
- - When it is really a **UI engineering rule** (design-system usage, styling
72
- conventions, accessibility baselines, internationalization), it belongs in a
73
- `ui`-category technical standard — stop and route it to `/strict-tech-sync` or
74
- `/strict-tech-edit`.
45
+ This skill edits the live artifact directly and has no active-change mode:
46
+ there is no delta-design artifact and archive has no design-system merge path,
47
+ so never invent one. Drift that is really observable UI behavior belongs in a
48
+ main spec — route it to `strict-spec-brainstorm` or `strict-spec-propose`.
49
+ Drift that is really a UI engineering rule belongs in a `ui`-category standard —
50
+ route it to `strict-tech-sync` or `strict-tech-edit`.
75
51
 
76
52
  ## Steps
77
53
 
@@ -79,87 +55,43 @@ Before any other step, run `strict-spec-cli check-workflow-state`. If
79
55
  `.strict-spec-driven/` is missing, stop immediately and tell the user to run
80
56
  `/strict-spec-init`. Do not run `init` from this skill.
81
57
 
82
- 1. **Check workflow state** — run `strict-spec-cli check-workflow-state` first.
83
-
84
- 2. **Read the recorded identity** — run `strict-spec-cli design-status`. It
85
- reports whether the artifact validates, how many token groups, tokens, and
86
- components it declares, and which mapped implementation and snapshot paths no
87
- longer exist. If it reports the artifact as absent, there is nothing to
88
- synchronize: the project either has no user interface, or it needs
89
- `strict-spec-cli design-init` and `/strict-spec-design` first. Say so and
90
- stop rather than authoring an artifact from a sync run.
91
-
92
- 3. **Choose the scan scope** — if the user already gave one, use it. Otherwise
93
- ask whether to scan the whole interface or a narrower target such as one
94
- component family, one theme, or one token group. Respect the answer; do not
95
- widen a scoped scan into repository-wide maintenance.
96
-
97
- 4. **Read repository evidence in that scope** — inspect the stylesheets, theme
98
- and token files, design-system or component-library configuration, and the UI
99
- sources that consume them. Run `strict-spec-cli tech-status` and read any
100
- `ui`-category standard so the identity you record stays consistent with the
101
- rules that bind the code. Use `strict-spec-cli schema-show design-system`
102
- when a field's shape is unclear; do not guess field names.
103
-
104
- 5. **Classify drift findings** — compare code evidence to the recorded artifact
105
- and sort findings into:
106
- - tokens and components already recorded accurately
107
- - values the code uses that the artifact records differently
108
- - tokens or components present in the code but missing from the artifact
109
- - tokens or components recorded in the artifact that the code no longer has
110
- - mapped implementation or snapshot paths that no longer resolve
111
- - inconsistent areas where the team must pick one value before it can be
112
- recorded (needs human input)
113
- - findings that belong in a main spec or a `ui` standard instead of here
114
- - areas in scope with no meaningful drift
115
-
116
- 6. **Report the drift summary in chat** — cover the scope analyzed, each
117
- confirmed divergence with its file reference and the current versus recorded
118
- value, the inconsistencies that need a decision, the findings routed
119
- elsewhere, and the areas that were clean. Do not write a report file.
120
-
121
- 7. **Get user confirmation** — before editing the artifact, ask the user to
122
- confirm each proposed edit: the target token or component id, the operation,
123
- and the exact value to record. Do not proceed on a plausible guess. A value
124
- that appears inconsistently across the code is a decision for the user, not a
125
- majority vote for you to take.
126
-
127
- 8. **Write confirmed findings to the live artifact** — translate every confirmed finding into a named `strict-spec-cli design-edit` upsert or exact removal. Never edit `.strict-spec-driven/design-system.yaml` directly:
128
- - keep token and component ids stable; renaming an id reads to a reader as a
129
- deletion plus an addition and breaks every component token reference that
130
- points at it
131
- - preserve authoring order within a group, because the renderer emits entries
132
- in document order
133
- - reference tokens from components by their dotted path, such as
134
- `colors.primary`
135
- - fix mapping drift by correcting the path or removing the component that no
136
- longer exists — never delete a mapping merely to silence the report
137
-
138
- 9. **Re-render and confirm** — run `strict-spec-cli design-generate` to
139
- re-render the design document, then `strict-spec-cli design-status` for clean
140
- validation and no mapping drift, then
141
- `strict-spec-cli design-generate --check` to confirm the rendered document
142
- matches its source.
143
-
144
- 10. **Report final changes** — summarize which tokens, components, guidance
145
- entries, and mappings changed, that the design document was re-rendered, and
146
- any inconsistency left unresolved and why.
58
+ 1. **Read the recorded identity** — run `design-status`. When the artifact is
59
+ absent there is nothing to synchronize: say the project either has no
60
+ interface or needs `design-init` and `strict-spec-design` first, and stop.
61
+
62
+ 2. **Choose the scan scope** — use the scope the user gave; otherwise ask
63
+ whether to scan the whole interface or one component family, theme, or token
64
+ group. Do not widen it.
65
+
66
+ 3. **Find the drift** — read the stylesheets, theme and token files,
67
+ component-library configuration, and consuming UI source in scope, and run
68
+ `tech-status` for any `ui` standard; `schema-show design-system` renders the
69
+ shape. Classify each finding as a value recorded differently, a token or
70
+ component missing from the artifact, one recorded that the code no longer
71
+ has, a mapped path that no longer resolves, an inconsistency the team must
72
+ decide, or a finding that belongs elsewhere.
73
+
74
+ 4. **Report and confirm** — present in chat the scope, each divergence with its
75
+ file reference and current versus recorded value, the inconsistencies, the
76
+ findings routed elsewhere, and the clean areas. For each proposed edit, name
77
+ the token or component id, the operation, and the exact value. Write nothing
78
+ until the user explicitly approves; a value the code uses inconsistently is
79
+ the user's decision, not a majority vote.
80
+
81
+ 5. **Write through `design-edit`** — one named upsert or exact removal per
82
+ approved finding; read `strict-spec-cli design-edit --help --json` for its
83
+ arguments. Keep ids stable and authoring order intact, reference tokens by
84
+ dotted path, and fix mapping drift by correcting the path or removing the
85
+ component that no longer exists.
86
+
87
+ 6. **Re-render and confirm** — run `design-generate`, then `design-status` and
88
+ `design-generate --check`. Done when status is clean and the check passes;
89
+ report what changed and any inconsistency left unresolved.
147
90
 
148
91
  ## Rules
149
92
 
150
- - Do not change product code; synchronize only the strict design-system artifact
151
- and re-render the document it feeds
152
- - Never hand-edit `DESIGN.md` or any file carrying the generated banner; change
153
- the artifact and re-render
154
- - Never hand-edit `.strict-spec-driven/design-system.yaml`; synchronize it only through `design-edit` named fields and removals
155
- - Read the recorded identity and the applicable `ui` standards before judging
156
- that any drift exists
157
- - Respect the user-selected scan scope
158
- - Get explicit user confirmation before every artifact edit, and never guess a
159
- token value the code reports inconsistently
160
- - Do not create a strict change, a delta-design artifact, or a design-system
161
- artifact from this skill; route behavior changes to main specs and engineering
162
- rules to `ui`-category standards
163
- - Do not write a standalone report file; the drift summary belongs in chat
164
- - Keep component links in `mapping.implementation` and `mapping.snapshots`, not
165
- in guidance prose
93
+ - Change no product code; write no report file, strict change, or new
94
+ design-system artifact.
95
+ - Never hand-edit `DESIGN.md` or edit `.strict-spec-driven/design-system.yaml`
96
+ directly; use `design-edit` and re-render.
97
+ - Keep component links in mappings, not in guidance prose.
@@ -8,116 +8,68 @@ metadata:
8
8
  version: 1.0.0
9
9
  ---
10
10
 
11
- You are helping the user initialize the strict spec-driven workflow in a
12
- project.
11
+ Initialize the strict workflow and leave the project with real context, a
12
+ runnable regression gate, an `AGENTS.md`, and specs for existing behavior.
13
13
 
14
14
  ## This Skill's Commands
15
15
 
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
16
  ```yaml
20
17
  init: strict-spec-cli init
21
18
  config-edit: strict-spec-cli config-edit --<named-args>
22
19
  spec-edit: strict-spec-cli spec-edit <spec-id> [--spec-path <path>] --<named-args>
23
20
  ```
24
21
 
25
- ## Prerequisites
26
-
27
- The target project directory must exist and be the intended project root;
28
- confirm the path before initializing it.
29
-
30
22
  ## CLI-Only YAML Authoring Protocol
31
23
 
32
- Every mutation of repository-owned YAML in this skill goes through the strict
33
- CLI. This skill writes `workflow-config` and `spec-state`. Before the first
34
- mutation run `strict-spec-cli yaml-authoring-protocol <artifact-kind>` for each
35
- of them: that command reports the ordered authoring steps, the owning command
36
- for each operation, and the bundled schema and example keys with their
37
- cache-resolved paths, bound to the artifact kind and current where a copy would
38
- go stale. Validate the result with `strict-spec-cli check-workflow-state`.
39
-
40
- **Stop rather than edit YAML directly.** When a required command, argument, or
41
- artifact kind is unavailable, stop and report the missing capability. Editing
42
- the YAML directly, writing a raw payload, or scripting around the CLI is never
43
- an available fallback, and an unavailable command is a reason to stop rather
44
- than a reason to improvise.
24
+ This skill writes `workflow-config` and `spec-state`. Before its first mutation,
25
+ run `strict-spec-cli yaml-authoring-protocol <artifact-kind>` for each kind and
26
+ follow it, including its rule to stop and report a missing command rather than
27
+ work around it; validate the result with `strict-spec-cli check-workflow-state`.
45
28
 
46
29
  ## Preferred Human Language
47
30
 
48
- Comply with `preferred_human_language` from `.strict-spec-driven/config.yaml` —
49
- the user's common human language, not a programming language — for all
50
- user-facing and generated operator-facing text, unless that file is absent or
51
- the active user message asks otherwise.
31
+ Write user-facing and generated operator-facing text in the human language named
32
+ by `preferred_human_language` in `.strict-spec-driven/config.yaml`, unless the
33
+ active user message asks otherwise.
52
34
 
53
35
  ## Steps
54
36
 
55
- 1. **Confirm the target project** — ask which project to initialize. If the user
56
- is already in the project root, use the current directory.
57
-
58
- 2. **Run init** — run:
59
- ```bash
60
- strict-spec-cli init
61
- ```
62
- - If `.strict-spec-driven/` does not exist, this bootstraps it from scratch.
63
- - If `.strict-spec-driven/` already exists, this repairs missing scaffold
64
- files without overwriting existing strict artifacts.
65
-
66
- 3. **Draft context** — read project files that describe the system
67
- (`README.md`, `AGENTS.md`, `package.json`, and similar) and draft a concise
68
- `context` value for `.strict-spec-driven/config.yaml`. Also set or preserve
69
- `preferred_human_language`, which records the user's common human language
70
- for AI interaction (for example English or Chinese) and is not a programming
71
- language field. Use `English` when no stronger project or user preference is
72
- known. Cover:
73
- - what the project does
74
- - the tech stack and languages
75
- - key conventions or constraints worth preserving
76
- Apply the drafted values through `strict-spec-cli config-edit` named
77
- arguments; never edit `config.yaml` directly. Then configure
78
- `review_evidence.project_regression.command` with the
79
- project's real complete regression command (build plus full test run) for
80
- the detected toolchain — the scaffold ships a REPLACE placeholder, not a
81
- runnable command. Recommend declaring the commented coverage contract
82
- (`coverage: threshold / metric / scope`) so minimum test coverage becomes a
83
- blocking review-evidence gate; the regression command must then enforce that
84
- threshold by exiting non-zero below it (for example via the test runner's
85
- own coverage threshold support). The strict CLI validates the declaration
86
- but never measures coverage itself.
87
-
88
- 4. **Ensure AGENTS.md exists** — check the target project root for an `AGENTS.md`.
89
- If none exists, generate a concise `AGENTS.md` describing the project for future
90
- agents, reusing the understanding you gathered while drafting context:
91
- - what the project does
92
- - the tech stack and languages
93
- - key conventions, constraints, and commands worth preserving
94
- Do not overwrite an existing `AGENTS.md`; if one is already present, leave it
95
- untouched.
96
-
97
- 5. **Capture existing behavior** — if the project already has stable behavior,
98
- help the user create initial strict YAML main specs under
99
- `.strict-spec-driven/specs/` by invoking `strict-spec-cli spec-edit <spec-id>
100
- --spec-path <path> --title <text> --requirement <id> --strength
101
- <MUST|SHOULD|MAY> --statement <text>` once per spec, adding `--scenario <id>
102
- --given <text> --when <text> --then <text>` for each scenario.
103
- - do not write `.strict-spec-driven/specs/INDEX.yaml`; `spec-edit` reconciles
104
- the index in the same transaction as the spec it writes
105
- - supply `spec.id`, `spec.title`, and `requirements` content as named
106
- arguments rather than as YAML text
107
- - describe current observable behavior, not future aspirations
108
- - run `strict-spec-cli check-workflow-state` once the specs are in place
109
-
110
- 6. **Confirm** — summarize what was created and suggest
111
- `strict-roadmap-plan` to shape the roadmap or `strict-spec-propose` to create
112
- the first strict change.
37
+ 1. **Confirm the target project** — the directory must exist and be the project
38
+ root the user means; use the current directory when it already is.
39
+
40
+ 2. **Run init** — `strict-spec-cli init` bootstraps `.strict-spec-driven/`, or
41
+ repairs missing scaffold files without overwriting existing artifacts.
42
+
43
+ 3. **Configure the workflow** — from `README.md`, `AGENTS.md`, manifests, and
44
+ similar evidence, set these through `config-edit`:
45
+ - `context`: a few sentences on what the project does, its stack, and the
46
+ conventions worth preserving.
47
+ - `preferred_human_language`: the user's human language for AI interaction
48
+ (for example English or Chinese), not a programming language. Keep an
49
+ existing value; default to `English` when nothing stronger is known.
50
+ - `review_evidence.project_regression.command`: the project's real complete
51
+ regression command (build plus full test run), replacing the scaffold's
52
+ placeholder.
53
+ - Recommend declaring the coverage contract. A declared contract is blocking
54
+ review evidence enforced through the regression command's exit code: the
55
+ command must exit non-zero below the threshold, because the CLI validates
56
+ the declaration but never measures coverage itself.
57
+
58
+ 4. **Ensure AGENTS.md exists** — when the project root has no `AGENTS.md`,
59
+ generate a concise one describing the project, its stack, and the
60
+ conventions and commands worth preserving. Leave an existing one untouched.
61
+
62
+ 5. **Capture existing behavior** — when the project already has stable
63
+ behavior, record it as main specs through `spec-edit`, describing current
64
+ observable behavior rather than plans. `spec-edit` reconciles the spec index;
65
+ never write it. Done when `strict-spec-cli check-workflow-state` passes.
66
+
67
+ 6. **Hand off** — summarize what was created and suggest `strict-roadmap-plan`
68
+ or `strict-spec-propose` next.
113
69
 
114
70
  ## Rules
115
71
 
116
- - Do not create a change during initialization
117
- - Never hand-edit `.strict-spec-driven/config.yaml`; use `config-edit` for every
118
- post-init field, list, and named-removal mutation
119
- - Keep the `context` field concise; a few sentences are enough
120
- - Do not overwrite existing `.strict-spec-driven/` artifacts when repairing
121
- scaffold files
122
- - Generate an `AGENTS.md` only when the project has none, and never overwrite an
123
- existing `AGENTS.md`
72
+ - Create no change during initialization.
73
+ - Never overwrite existing `.strict-spec-driven/` artifacts, and never overwrite
74
+ an existing `AGENTS.md`.
75
+ - Mutate `config.yaml` only through `config-edit`; never edit it directly.
@@ -8,7 +8,8 @@ metadata:
8
8
  version: 1.0.0
9
9
  ---
10
10
 
11
- # strict-spec-maintenance
11
+ Turn the configured maintenance checks' findings into an auditable maintenance
12
+ change that is worked, verified, and archived.
12
13
 
13
14
  ## This Skill's Commands
14
15
 
@@ -22,68 +23,25 @@ archive-change: strict-spec-cli archive <change-name>
22
23
  retire-lesson: strict-spec-cli lesson-obsolete <lesson-id> --reason <text>
23
24
  ```
24
25
 
25
- ## Prerequisites
26
-
27
- `.strict-spec-driven/config.yaml` must contain a `maintenance` section with at
28
- least one configured check; without one the command exits with zero findings.
29
-
30
- ## Maintenance Check Types
31
-
32
- Add a check entry to enable maintenance behavior:
33
-
34
- ```yaml
35
- maintenance:
36
- checks:
37
- - type: roadmap-sync-check
38
- - type: generated-doc-check
39
- - type: lesson-staleness-check
40
- ```
41
-
42
- Supported check types:
43
-
44
- | Type | What it reports | Corrections applied |
45
- |---|---|---|
46
- | `roadmap-sync-check` | Each roadmap file whose state was reconciled | Yes — sync is applied, the finding records it |
47
- | `specs-directory-structure-check` | A workflow state directory misplaced under `.strict-spec-driven/specs/` | No — the finding names the directory to remove |
48
- | `generated-doc-check` | A rendered `ARCHITECTURE.md` or `DESIGN.md` that no longer matches its strict YAML sources | No — the finding names the stale sources and the re-render command |
49
- | `lesson-staleness-check` | An active lesson whose `applies_when` names a repository path that no longer exists, or whose every occurrence comes from archived work with the newest older than 180 days | No — the finding names why the lesson is a candidate and the `lesson-obsolete` command that retires it |
50
-
51
- `lesson-staleness-check` only nominates candidates and never changes a lesson.
52
- Deciding that experience has expired is a judgment call, and a lesson retired
53
- wrongly takes with it the motivating context that its promoted technical-standard
54
- rule deliberately omits. Review each finding and either retire the lesson with
55
- `strict-spec-cli lesson-obsolete <lesson-id> --reason "<why>"` or update its
56
- `applies_when` condition — a lesson that is simply rarely triggered is not stale.
57
-
58
- `generated-doc-check` is read-only for the documents it inspects: it renders in
59
- memory, compares, and never writes. It reports only a document that is already on
60
- disk, because both generated documents are opt-in — a project that never rendered
61
- one has declined it rather than let it go stale. A project with no design-system
62
- artifact therefore gets no `DESIGN.md` finding.
26
+ The checks that run come from `maintenance.checks` in
27
+ `.strict-spec-driven/config.yaml`; `strict-spec-cli maintenance --help --json`
28
+ lists the supported check types, which of them apply a correction, and the
29
+ output keys.
63
30
 
64
31
  ## CLI-Only YAML Authoring Protocol
65
32
 
66
- Every mutation of repository-owned YAML in this skill goes through the strict
67
- CLI. This skill writes `change-planning-state`, `change-delta-state`,
68
- `lessons-state`. Before the first mutation run `strict-spec-cli
69
- yaml-authoring-protocol <artifact-kind>` for each of them: that command reports
70
- the ordered authoring steps, the owning command for each operation, and the
71
- bundled schema and example keys with their cache-resolved paths, bound to the
72
- artifact kind and current where a copy would go stale. Validate the result with
73
- `strict-spec-cli verify <change-name>`, `strict-spec-cli lesson-status`.
74
-
75
- **Stop rather than edit YAML directly.** When a required command, argument, or
76
- artifact kind is unavailable, stop and report the missing capability. Editing
77
- the YAML directly, writing a raw payload, or scripting around the CLI is never
78
- an available fallback, and an unavailable command is a reason to stop rather
79
- than a reason to improvise.
33
+ This skill writes `change-planning-state`, `change-delta-state`,
34
+ `lessons-state`. Before its first mutation, run
35
+ `strict-spec-cli yaml-authoring-protocol <artifact-kind>` for each kind and
36
+ follow it, including its rule to stop and report a missing command rather than
37
+ work around it; validate the result with `strict-spec-cli verify <change-name>`,
38
+ `strict-spec-cli lesson-status`.
80
39
 
81
40
  ## Preferred Human Language
82
41
 
83
- Comply with `preferred_human_language` from `.strict-spec-driven/config.yaml` —
84
- the user's common human language, not a programming language — for all
85
- user-facing and generated operator-facing text, unless that file is absent or
86
- the active user message asks otherwise.
42
+ Write user-facing and generated operator-facing text in the human language named
43
+ by `preferred_human_language` in `.strict-spec-driven/config.yaml`, unless the
44
+ active user message asks otherwise.
87
45
 
88
46
  ## Steps
89
47
 
@@ -91,40 +49,32 @@ Before any other step, run `strict-spec-cli check-workflow-state`. If `.strict-s
91
49
  missing, stop immediately and tell the user to run `/strict-spec-init`. Do not
92
50
  run `init` from this skill.
93
51
 
94
- 1. **Report the findings first** — execute:
95
- ```
96
- strict-spec-cli maintenance
97
- ```
98
- This run creates no change. Parse the JSON output. Fields: `valid`, `checksRun`,
99
- `findingsCount`, `generatedChange`, `seedingSkippedReason`.
100
-
101
- 2. **If `findingsCount` is zero** — nothing to act on. Report the clean state and stop.
102
-
103
- 3. **Show the findings and seed the change** — report what the checks found, then create the
104
- change from those same findings:
105
- ```
106
- strict-spec-cli maintenance --seed
107
- ```
108
- Only `--seed` writes; a bare run reports `generatedChange` null with a
109
- `seedingSkippedReason` naming the flag. If `generatedChange` is still null after `--seed`,
110
- read `seedingSkippedReason`: the two-active-change limit blocks seeding until a change is
111
- archived or cancelled.
112
-
113
- 4. **Inspect the seeded change** — it is created under `.strict-spec-driven/changes/<generatedChange>/` and contains:
114
- - `proposal.yaml`: scope listing each finding
115
- - `tasks.yaml`: one implementation task per finding, plus standard testing and verification tasks
116
- - `questions.yaml`: the requirement-interrogation set, seeded open for operator answers
117
- - `design.yaml`: not written; author it with `generate <change-name> design` before verify
118
-
119
- 5. **Work through tasks** — use the standard `/strict-spec-apply <generatedChange>` workflow to complete all pending tasks. For `roadmap-sync-check` findings, the roadmap sync was already applied; implementation tasks are to review and confirm the changes were correct. For `generated-doc-check` findings, nothing was applied: run the re-render command named in the finding, and if the stale sources reveal that the source artifact itself is wrong, fix the artifact through its own skill before re-rendering.
120
-
121
- 6. **Verify and archive** — once all tasks are complete:
122
- ```
123
- strict-spec-cli verify <generatedChange>
124
- strict-spec-cli archive <generatedChange>
125
- ```
126
-
127
- ## Notes
128
-
129
- - A bare `maintenance` run only reports. With `--seed` it runs the configured checks, applies automated corrections as a side effect (for example, updating roadmap sync state), and writes the change. The generated change is an auditable record of what was done. Not every check applies a correction; see the table above for which do.
130
- - The maintenance change name uses the format `maintenance-YYYY-MM-DD` (with a numeric suffix if a collision exists).
52
+ 1. **Report the findings** — run `strict-spec-cli maintenance`, which reports
53
+ without creating a change. With zero findings, report the clean state and
54
+ stop.
55
+
56
+ 2. **Seed the change** — run `strict-spec-cli maintenance --seed`. When it
57
+ still generates no change, report its `seedingSkippedReason` (for example
58
+ the active-change limit) and stop.
59
+
60
+ 3. **Work the seeded change** — author its `design.yaml` through `generate`,
61
+ then complete its tasks through `strict-spec-apply`. Each finding needs a
62
+ judgment, not a mechanical fix:
63
+ - `roadmap-sync-check` already applied its sync; confirm the result is
64
+ correct.
65
+ - `generated-doc-check` applied nothing; run the re-render command the
66
+ finding names, and when the stale source artifact is itself wrong, fix it
67
+ through `strict-spec-architecture` or `strict-spec-design` first.
68
+ - `lesson-staleness-check` only nominates. Retire a lesson whose experience
69
+ has truly expired with `lesson-obsolete`, or correct its `applies_when`; a
70
+ rarely triggered lesson is not stale, and a wrongly retired one loses the
71
+ failure context its promoted rule omits.
72
+
73
+ 4. **Verify and archive** — once every task is complete, run `verify` until it
74
+ passes, then `archive`.
75
+
76
+ ## Rules
77
+
78
+ - Only `--seed` creates a change; resolve every finding inside it so the
79
+ archive records what was done.
80
+ - Never retire a lesson merely because a check nominated it.