dsh-plugin-strict-spec 0.5.1 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -13
- package/README.zh.md +10 -12
- package/dist/cli/strict-spec-cli.js +111 -778
- 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 +95 -271
- 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 +138 -274
- 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-tech-edit/SKILL.md +43 -124
- package/dist/skills/strict-tech-sync/SKILL.md +60 -162
- package/package.json +2 -1
- package/dist/skills/strict-spec-verify/SKILL.md +0 -79
|
@@ -8,21 +8,14 @@ metadata:
|
|
|
8
8
|
version: 1.0.0
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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. **
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
component
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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
|
-
-
|
|
151
|
-
|
|
152
|
-
- Never hand-edit `DESIGN.md` or
|
|
153
|
-
|
|
154
|
-
-
|
|
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
|
-
|
|
12
|
-
|
|
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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
-
|
|
49
|
-
|
|
50
|
-
user
|
|
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** —
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
2. **Run init** —
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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
|
-
|
|
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
|
-
-
|
|
117
|
-
- Never
|
|
118
|
-
|
|
119
|
-
-
|
|
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
|
-
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
|
|
67
|
-
|
|
68
|
-
`
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
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
|
-
|
|
84
|
-
|
|
85
|
-
user
|
|
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
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
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.
|