dsh-plugin-strict-spec 0.0.0-stage → 0.5.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/LICENSE +201 -0
- package/README.md +236 -2
- package/README.zh.md +191 -0
- package/cordis.patch.yml +5 -0
- package/dist/cli/strict-spec-cli.js +38892 -0
- package/dist/client.js +50 -0
- package/dist/host.js +154 -0
- package/dist/skills/strict-roadmap-plan/SKILL.md +176 -0
- package/dist/skills/strict-roadmap-recommend/SKILL.md +321 -0
- package/dist/skills/strict-roadmap-reorder/SKILL.md +194 -0
- package/dist/skills/strict-roadmap-review/SKILL.md +180 -0
- package/dist/skills/strict-roadmap-transition/SKILL.md +323 -0
- package/dist/skills/strict-scene-edit/SKILL.md +156 -0
- package/dist/skills/strict-spec-apply/SKILL.md +212 -0
- package/dist/skills/strict-spec-architecture/SKILL.md +143 -0
- package/dist/skills/strict-spec-archive/SKILL.md +165 -0
- package/dist/skills/strict-spec-auto/SKILL.md +334 -0
- package/dist/skills/strict-spec-brainstorm/SKILL.md +228 -0
- package/dist/skills/strict-spec-bugfix/SKILL.md +285 -0
- package/dist/skills/strict-spec-design/SKILL.md +168 -0
- package/dist/skills/strict-spec-design-sync/SKILL.md +165 -0
- package/dist/skills/strict-spec-init/SKILL.md +123 -0
- package/dist/skills/strict-spec-maintenance/SKILL.md +130 -0
- package/dist/skills/strict-spec-modify/SKILL.md +148 -0
- package/dist/skills/strict-spec-propose/SKILL.md +553 -0
- package/dist/skills/strict-spec-review/SKILL.md +315 -0
- package/dist/skills/strict-spec-ship/SKILL.md +94 -0
- package/dist/skills/strict-spec-spec-edit/SKILL.md +117 -0
- package/dist/skills/strict-spec-sync-specs/SKILL.md +128 -0
- package/dist/skills/strict-spec-verify/SKILL.md +79 -0
- package/dist/skills/strict-tech-edit/SKILL.md +161 -0
- package/dist/skills/strict-tech-sync/SKILL.md +202 -0
- package/package.json +109 -4
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: strict-spec-auto
|
|
3
|
+
description: Run the strict workflow end to end. Propose, implement, verify, review, and archive a strict YAML change without extra confirmation unless open questions block progress.
|
|
4
|
+
metadata:
|
|
5
|
+
skill_id: strict_spec_auto
|
|
6
|
+
author: strict-spec-driven
|
|
7
|
+
type: agent_skill
|
|
8
|
+
version: 1.0.0
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
You are running the strict workflow end to end for a single strict YAML change.
|
|
12
|
+
|
|
13
|
+
This skill is the orchestration spine. It owns the sequence, the gates between
|
|
14
|
+
phases, and the decisions that only the whole run can make; each phase procedure
|
|
15
|
+
is owned by the skill that performs it, listed under Delegated Procedures below.
|
|
16
|
+
|
|
17
|
+
## This Skill's Commands
|
|
18
|
+
|
|
19
|
+
If you cannot remember the exact command used by this skill, look it up here
|
|
20
|
+
before running anything. Do not guess.
|
|
21
|
+
|
|
22
|
+
```yaml
|
|
23
|
+
check-workflow-state: strict-spec-cli check-workflow-state
|
|
24
|
+
tech-status: strict-spec-cli tech-status
|
|
25
|
+
lesson-status: strict-spec-cli lesson-status [--category <category>]
|
|
26
|
+
lesson-create: strict-spec-cli lesson-create --title <text> --category <category> --context <text> --observation <text> --takeaway <text> --applies-when <text> --origin <text> --evidence <text>
|
|
27
|
+
lesson-edit: strict-spec-cli lesson-edit <lesson-id> --origin <text> --evidence <text>
|
|
28
|
+
propose: strict-spec-cli propose <change-name>
|
|
29
|
+
generate: strict-spec-cli generate <change-name> <proposal|design|questions|tasks|delta-spec|delta-tech> --<named-args>
|
|
30
|
+
generate-delta-scene: strict-spec-cli generate <change-name> delta-scene --<named-args>
|
|
31
|
+
scene-status: strict-spec-cli scene-status [--area <area>] [--scene <scene-id>]
|
|
32
|
+
apply: strict-spec-cli apply <change-name>
|
|
33
|
+
verify: strict-spec-cli verify <change-name>
|
|
34
|
+
ready: strict-spec-cli ready <change-name>
|
|
35
|
+
next: strict-spec-cli next <change-name>
|
|
36
|
+
archive: strict-spec-cli archive <change-name>
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Delegated Procedures
|
|
40
|
+
|
|
41
|
+
Each procedure below is owned by the skill named beside it. That skill's
|
|
42
|
+
guidance is authoritative for it, and this skill does not restate it. Follow the
|
|
43
|
+
owning skill's procedure at the step that needs it; how it is loaded is whatever
|
|
44
|
+
the running harness provides.
|
|
45
|
+
|
|
46
|
+
- requirement-interrogation: owned by `strict-spec-propose`
|
|
47
|
+
- scene-first-routing: owned by `strict-spec-propose`
|
|
48
|
+
- change-intake-gate: owned by `strict-spec-propose`
|
|
49
|
+
- spec-artifact-routing: owned by `strict-spec-propose`
|
|
50
|
+
- task-list-authoring: owned by `strict-spec-propose`
|
|
51
|
+
- delta-artifact-authoring: owned by `strict-spec-propose`
|
|
52
|
+
- implementation-order: owned by `strict-spec-apply`
|
|
53
|
+
- gitignore-hygiene: owned by `strict-spec-apply`
|
|
54
|
+
- review-independence: owned by `strict-spec-review`
|
|
55
|
+
- lesson-outcome: owned by `strict-spec-review`
|
|
56
|
+
- archive-tech-sync: owned by `strict-spec-archive`
|
|
57
|
+
- archive-execution: owned by `strict-spec-archive`
|
|
58
|
+
|
|
59
|
+
Delegation moves where a procedure is stated, never whether it runs. Every gate
|
|
60
|
+
this skill declares below still binds, and a delegated procedure that cannot be
|
|
61
|
+
followed stops the run exactly as an inline one would.
|
|
62
|
+
|
|
63
|
+
## YAML Writing Rules
|
|
64
|
+
|
|
65
|
+
- Keep strict artifacts in valid YAML structures at every stage. Do not replace
|
|
66
|
+
structured fields with Markdown prose.
|
|
67
|
+
- If artifact fields are unclear, use `strict-spec-cli schema-show <schema-name>`;
|
|
68
|
+
installed skills do not carry a `templates` directory.
|
|
69
|
+
- Shared schema cache root: `~/.strict-spec-schemas/`. When a YAML artifact already declares `schema_file`, resolve that relative path under the shared cache root to inspect the concrete schema file without relying on a local templates directory.
|
|
70
|
+
- If a valid artifact example would clarify the shape, use
|
|
71
|
+
`strict-spec-cli sample-show <sample-name>`; installed skills
|
|
72
|
+
do not rely on a local `examples` directory.
|
|
73
|
+
- Use block scalars only for free-text content. Prefer `>-` for wrapped prose
|
|
74
|
+
such as longer `summary`, `approach`, `decision`, `rationale`, `question`,
|
|
75
|
+
`context`, `answer`, and spec `statement` values. Use `|` only when literal
|
|
76
|
+
line breaks must be preserved.
|
|
77
|
+
- Quote short strings that may contain YAML-sensitive characters or ambiguous
|
|
78
|
+
scalar values, including `command` strings, URLs, paths, text containing `:`
|
|
79
|
+
or `#`, leading `-`, JSON-like fragments, boolean-like words, and timestamp-
|
|
80
|
+
like values.
|
|
81
|
+
- Keep short structural fields as plain scalars unless quoting is needed for
|
|
82
|
+
correctness. Do not force IDs, enums, schema identifiers, artifact types,
|
|
83
|
+
task references, or similar fields into block scalars.
|
|
84
|
+
- Before moving between workflow stages, self-check indentation, list nesting,
|
|
85
|
+
quote closure, and colon spacing, then use the documented verification
|
|
86
|
+
commands to catch remaining schema or YAML issues.
|
|
87
|
+
|
|
88
|
+
## CLI-Only YAML Authoring Protocol
|
|
89
|
+
|
|
90
|
+
Every mutation of repository-owned YAML in this skill goes through the strict
|
|
91
|
+
CLI. This skill writes `change-planning-state`, `change-delta-state`,
|
|
92
|
+
`spec-state`, `tech-state`, `scene-state`, `lessons-state`. Before the first mutation run
|
|
93
|
+
`strict-spec-cli yaml-authoring-protocol <artifact-kind>` for each of them:
|
|
94
|
+
that command reports the ordered authoring steps, the owning command for each
|
|
95
|
+
operation, and the bundled schema and example keys with their cache-resolved
|
|
96
|
+
paths, bound to the artifact kind and current where a copy would go stale.
|
|
97
|
+
Validate the result with `strict-spec-cli verify <change-name>`,
|
|
98
|
+
`strict-spec-cli lesson-status`.
|
|
99
|
+
|
|
100
|
+
**Stop rather than edit YAML directly.** When a required command, argument, or
|
|
101
|
+
artifact kind is unavailable, stop and report the missing capability. Editing
|
|
102
|
+
the YAML directly, writing a raw payload, or scripting around the CLI is never
|
|
103
|
+
an available fallback, and an unavailable command is a reason to stop rather
|
|
104
|
+
than a reason to improvise.
|
|
105
|
+
|
|
106
|
+
## Preferred Human Language
|
|
107
|
+
|
|
108
|
+
Comply with `preferred_human_language` from `.strict-spec-driven/config.yaml` —
|
|
109
|
+
the user's common human language, not a programming language — for all
|
|
110
|
+
user-facing and generated operator-facing text, unless that file is absent or
|
|
111
|
+
the active user message asks otherwise.
|
|
112
|
+
|
|
113
|
+
## Steps
|
|
114
|
+
|
|
115
|
+
Before any other step, run `strict-spec-cli check-workflow-state`. If `.strict-spec-driven/` is
|
|
116
|
+
missing, stop immediately and tell the user to run `/strict-spec-init`. Do not
|
|
117
|
+
run `init` from this skill.
|
|
118
|
+
|
|
119
|
+
1. **Reset context from targeted files** — treat prior chat context as stale
|
|
120
|
+
unless it has been revalidated from the current change artifacts, relevant
|
|
121
|
+
main specs, the applicable technical standards (run
|
|
122
|
+
`strict-spec-cli tech-status` and read the
|
|
123
|
+
relevant files under `.strict-spec-driven/tech/`), the implementation and
|
|
124
|
+
test files the change touches, repository status, and regression
|
|
125
|
+
configuration when needed. Do not reread unrelated roadmap, archive, or spec
|
|
126
|
+
files just because they exist.
|
|
127
|
+
Also select the lesson category matching the affected spec or technical area, run
|
|
128
|
+
`strict-spec-cli lesson-status --category <category>`, and match its `applies_when`
|
|
129
|
+
conditions against the work at hand. Repeat for another category when the change genuinely
|
|
130
|
+
spans more than one; use the unfiltered command only when repository evidence cannot identify a
|
|
131
|
+
relevant category. Lessons carry no MUST or SHOULD
|
|
132
|
+
strength, so treat them as warnings worth checking rather than constraints to
|
|
133
|
+
satisfy; weight a lesson with several occurrences, because the count means
|
|
134
|
+
this project has hit it repeatedly.
|
|
135
|
+
Use this evidence before asking the human anything or continuing into
|
|
136
|
+
implementation.
|
|
137
|
+
|
|
138
|
+
2. **Assess complexity** — proceed automatically only when the change is clearly
|
|
139
|
+
scoped inside this repository with a concrete definition of done. If the
|
|
140
|
+
request is open-ended or cross-repository, stop and suggest
|
|
141
|
+
`strict-spec-brainstorm`.
|
|
142
|
+
|
|
143
|
+
3. **Interrogate the need** — this is the one checkpoint where the automatic
|
|
144
|
+
workflow stops: complete it before proposing, then continue unattended
|
|
145
|
+
through archive. Follow the delegated requirement-interrogation procedure.
|
|
146
|
+
Its answers come from the requester, so this skill cannot supply them from
|
|
147
|
+
repository evidence and cannot proceed past an unanswered one.
|
|
148
|
+
|
|
149
|
+
4. **Propose or resume the change** — if the strict change does not exist yet,
|
|
150
|
+
scaffold with `propose` and author its planning artifacts by following the
|
|
151
|
+
delegated scene-first-routing, change-intake-gate, spec-artifact-routing,
|
|
152
|
+
delta-artifact-authoring,
|
|
153
|
+
and task-list-authoring procedures, authoring the scene before the delta spec
|
|
154
|
+
it is covered by. Keep or add a
|
|
155
|
+
dedicated lint Testing task before full unit or regression test tasks when the project has a runnable lint command. If a prior workflow step such as `/strict-roadmap-recommend`
|
|
156
|
+
already created a populated change directory containing proposal, design,
|
|
157
|
+
tasks, questions, and any needed delta spec, delta scene, or delta tech artifacts,
|
|
158
|
+
resume the existing populated strict change scaffold without regenerating planning artifacts
|
|
159
|
+
or running `propose` again.
|
|
160
|
+
For roadmap-backed scaffolds, preserve selected planned-change provenance as intake evidence
|
|
161
|
+
and inspect `questions.yaml.open` before implementation.
|
|
162
|
+
When resuming a roadmap-backed scaffold, also read the proposal's roadmap links
|
|
163
|
+
and use the selected standalone planned-change `summary`, `details`,
|
|
164
|
+
`depends_on`, labels, and owning milestone `details` as valid intake evidence.
|
|
165
|
+
Carry answers already present in that roadmap evidence forward instead of
|
|
166
|
+
re-asking.
|
|
167
|
+
For roadmap-backed scaffolds, make the context say whether the uncertainty
|
|
168
|
+
affects proposal scope, spec delta, implementation files, tests,
|
|
169
|
+
dependencies, or technical standards.
|
|
170
|
+
For newly created or newly populated scaffolds, **run the proposal checkpoint
|
|
171
|
+
over generated planning artifacts** before running handoff validation: a
|
|
172
|
+
semantic self-check of every generated or edited file under
|
|
173
|
+
`.strict-spec-driven/changes/<change-name>/` against the user request, the
|
|
174
|
+
relevant main specs, technical standards, and the existing project
|
|
175
|
+
constraints, looking for decision-ready detail in
|
|
176
|
+
scope, unchanged behavior, design decisions, task coverage, unresolved-question impact, delta spec scenarios, and delta tech use when applicable.
|
|
177
|
+
The checkpoint should fix safe, in-scope documentation gaps immediately by
|
|
178
|
+
rerunning the supported `generate` commands for script-owned artifacts. Do
|
|
179
|
+
not expand scope or answer unresolved human questions during this checkpoint;
|
|
180
|
+
record ambiguity in `questions.yaml`.
|
|
181
|
+
Run `ready <change-name>` or `next <change-name>` to surface deterministic
|
|
182
|
+
blockers before implementation. If you use `verify` at proposal time, treat
|
|
183
|
+
pending-task diagnostics as expected until implementation is complete. If
|
|
184
|
+
`questions.yaml.open` is not empty, do not infer answers or continue
|
|
185
|
+
automatically. For each open question, explain:
|
|
186
|
+
- the unresolved decision or missing information
|
|
187
|
+
- the impact on scope, implementation, testing, or spec behavior
|
|
188
|
+
- the recommended answer or options, with the tradeoff for each
|
|
189
|
+
Then stop and wait for an explicit human reply. Record the answers in
|
|
190
|
+
`questions.yaml.resolved` and remove them from `open` before implementation.
|
|
191
|
+
|
|
192
|
+
5. **Implement and complete each task** — follow the delegated
|
|
193
|
+
implementation-order procedure, preserving every `unchanged_behavior` item
|
|
194
|
+
from `proposal.yaml` and honoring the technical standards under
|
|
195
|
+
`.strict-spec-driven/tech/`. If a task can only be completed by breaking a
|
|
196
|
+
MUST rule, stop and surface it as an open question instead of breaking the
|
|
197
|
+
standard; if the standard itself must change as part of this change, carry it
|
|
198
|
+
as a delta tech artifact under `changes/<change-name>/tech/` so it merges on
|
|
199
|
+
archive, never by editing the live standard directly.
|
|
200
|
+
Use `next <change-name>` when you need deterministic state, blockers, or
|
|
201
|
+
script-owned next-step command suggestions; do not use it as a replacement
|
|
202
|
+
for user answers or implementation judgment.
|
|
203
|
+
|
|
204
|
+
6. **Run testing commands from `tasks.yaml`** — complete every Testing task by
|
|
205
|
+
actually running its `command` before marking it complete.
|
|
206
|
+
|
|
207
|
+
7. **Clean up generated artifacts** — once all tasks including Testing are
|
|
208
|
+
complete, follow the delegated gitignore-hygiene procedure.
|
|
209
|
+
|
|
210
|
+
8. **Verify the finished change** — run:
|
|
211
|
+
```bash
|
|
212
|
+
strict-spec-cli verify <change-name>
|
|
213
|
+
```
|
|
214
|
+
Fix safe blockers automatically, then rerun verification. When the change
|
|
215
|
+
carries delta scenes, verification blocks on a flow step naming neither a
|
|
216
|
+
covering requirement nor an explicit no-coverage reason, and the diagnostic
|
|
217
|
+
names the runnable command that records it; run
|
|
218
|
+
`strict-spec-cli scene-status --scene <scene-id>` to see the coverage state of
|
|
219
|
+
the whole scene rather than one step at a time. Record the coverage that is
|
|
220
|
+
real and raise a missing requirement as a finding — a no-coverage reason
|
|
221
|
+
written to clear the diagnostic is not a safe blocker fix.
|
|
222
|
+
|
|
223
|
+
9. **Review code quality** — this workflow implements and reviews the same
|
|
224
|
+
change, so follow the delegated review-independence procedure, including
|
|
225
|
+
its fresh-context reviewer recommendation, rather than reviewing from the
|
|
226
|
+
seat that wrote the code. The reviewer — that fresh-context sub-agent when
|
|
227
|
+
one is used, otherwise you — reads every changed implementation and test
|
|
228
|
+
file, including the files named by delta specs, `git status --short`, the
|
|
229
|
+
relevant tracked diff, and any untracked source, test, documentation, or
|
|
230
|
+
strict workflow files that belong to the change. Do not call a `strict-spec-cli review` command and do not treat
|
|
231
|
+
deterministic validation as code review evidence. Evaluate correctness, spec
|
|
232
|
+
alignment, `unchanged_behavior`, test coverage and assertions, error
|
|
233
|
+
handling, edge cases, security, performance, maintainability, user-visible
|
|
234
|
+
behavior, documentation impact, generated artifacts, packaging impact, and
|
|
235
|
+
technical-standard compliance against `.strict-spec-driven/tech/` (a MUST
|
|
236
|
+
rule violation is a MUST FIX; an unjustified SHOULD violation is a SHOULD
|
|
237
|
+
FIX; a deviation is acceptable only when `design.yaml` justifies it). When the
|
|
238
|
+
change carries delta tech artifacts under `changes/<change-name>/tech/`,
|
|
239
|
+
confirm each standard change is justified by the proposal and design and that
|
|
240
|
+
its operations are correct; treat an unjustified or malformed standard change
|
|
241
|
+
as a MUST FIX. Automatically fix safe in-scope review findings when they are
|
|
242
|
+
MUST FIX and in scope. If review-time code or workflow artifact changes are
|
|
243
|
+
made, rerun strict verification and the configured complete project
|
|
244
|
+
regression command before continuing. Unsafe, ambiguous, blocked, or
|
|
245
|
+
out-of-scope fixes must stop archive rather than being inferred or silently
|
|
246
|
+
expanded, and an unresolved MUST-strength unprovable verdict stops archive on
|
|
247
|
+
the same terms.
|
|
248
|
+
After the review checklist, also reflect — non-blocking — on whether this
|
|
249
|
+
change established a reusable engineering convention not yet captured under
|
|
250
|
+
`.strict-spec-driven/tech/` (a coding, architecture, testing, tooling,
|
|
251
|
+
security, performance, or API rule). When it did, report the finding with the
|
|
252
|
+
recommendation you derived rather than putting the choice to the operator:
|
|
253
|
+
carry it now as a delta tech artifact under `changes/<change-name>/tech/` so
|
|
254
|
+
archive merges it into the standards, or leave it to the mandatory
|
|
255
|
+
technical-standard checkpoint before archive, which applies that
|
|
256
|
+
recommendation.
|
|
257
|
+
|
|
258
|
+
10. **Declare the lesson outcome (required)** — before archive, follow the
|
|
259
|
+
delegated lesson-outcome procedure and report its result as part of this
|
|
260
|
+
run's summary.
|
|
261
|
+
|
|
262
|
+
11. **Re-check complete regression evidence** — inspect project workflow
|
|
263
|
+
context, including `.strict-spec-driven/config.yaml` when available, for the
|
|
264
|
+
complete project-level regression test method. Require evidence that the full
|
|
265
|
+
project regression command has passed during review before archive execution,
|
|
266
|
+
even when all Testing tasks are complete. A previously passed Testing task
|
|
267
|
+
command may satisfy the archive gate only when it
|
|
268
|
+
exactly matches the configured complete project regression command and no implementation, test,
|
|
269
|
+
strict artifact, or configuration files relevant to the change have changed
|
|
270
|
+
since that command passed. One class of write is carved out of that list:
|
|
271
|
+
a write the configured regression command neither compiles nor reads — currently a change-local delta-tech artifact or a lesson — does not invalidate passing complete project regression evidence,
|
|
272
|
+
because such a file is not compiled, is not imported by the suite, and
|
|
273
|
+
reaches live workflow state only at archive. Decide an artifact kind neither
|
|
274
|
+
list names by that same criterion, and rerun when the suite does compile or
|
|
275
|
+
read it. Every other strict artifact, including a delta-spec and a planning
|
|
276
|
+
artifact, still invalidates the evidence. When the config declares a
|
|
277
|
+
coverage contract under `review_evidence.project_regression.coverage`,
|
|
278
|
+
the regression command is the coverage gate: a non-zero exit because measured
|
|
279
|
+
coverage fell below the declared threshold blocks archive exactly like
|
|
280
|
+
failing tests and is
|
|
281
|
+
never advisory output; you never measure coverage yourself or second-guess
|
|
282
|
+
the declared threshold. If the regression command cannot run because
|
|
283
|
+
dependencies, services, credentials, fixtures, or other test conditions are
|
|
284
|
+
unavailable, stop before archive and give the human actionable setup or
|
|
285
|
+
waiting guidance.
|
|
286
|
+
|
|
287
|
+
12. **Resolve the technical-standard checkpoint** — before invoking archive,
|
|
288
|
+
follow the delegated archive-tech-sync procedure for the selected change. It
|
|
289
|
+
either clears immediately or resolves itself on its own recommendation
|
|
290
|
+
without an operator answer; this skill does
|
|
291
|
+
not archive until it has cleared. After any delta-tech edit it directs,
|
|
292
|
+
review the artifact and rerun strict verification, and rerun the configured
|
|
293
|
+
regression command only when that step also changed a file outside the
|
|
294
|
+
carve-out named in step 11.
|
|
295
|
+
|
|
296
|
+
13. **Archive cleanly** — if the technical-standard checkpoint is resolved, the
|
|
297
|
+
change verifies, reviews cleanly, and has passing complete project-level
|
|
298
|
+
regression test evidence for the final artifact state, follow the delegated
|
|
299
|
+
archive-execution procedure. Then summarize the result, including any roadmap
|
|
300
|
+
files or milestone statuses the archive step reconciled, and recommend
|
|
301
|
+
`/strict-spec-ship <change-name>` as an optional next step for creating a
|
|
302
|
+
focused git commit.
|
|
303
|
+
|
|
304
|
+
## Rules
|
|
305
|
+
|
|
306
|
+
- The context reset is mandatory
|
|
307
|
+
- The complexity check is mandatory
|
|
308
|
+
- The workflow is automatic except when open questions block progress
|
|
309
|
+
- Open questions require a problem explanation, impact analysis, recommendation,
|
|
310
|
+
and explicit human answer before continuing; encode the impact and
|
|
311
|
+
recommendation in `questions.yaml.open[*].context`
|
|
312
|
+
- A delegated procedure is followed, not summarized: read the owning skill's
|
|
313
|
+
guidance at the step that needs it rather than acting from memory of it
|
|
314
|
+
- Honor applicable technical standards under `.strict-spec-driven/tech/` across
|
|
315
|
+
proposal, implementation, and review: never break a MUST rule, follow SHOULD
|
|
316
|
+
rules by default, and treat unjustified violations as review findings that
|
|
317
|
+
block archive
|
|
318
|
+
- When a change must alter a standard, carry it as a delta tech artifact under
|
|
319
|
+
the change's `tech/` directory so it merges on archive; never edit live
|
|
320
|
+
standards directly during a change
|
|
321
|
+
- The final `/strict-spec-ship <change-name>` recommendation is advisory and
|
|
322
|
+
must not be treated as required to complete `strict-spec-auto`
|
|
323
|
+
- Do not call or rely on a `strict-spec-cli review` command
|
|
324
|
+
- Do not run archive without direct code review evidence from changed
|
|
325
|
+
implementation and test files
|
|
326
|
+
- Reconstruct the requirement before reading the implementation, and do not run
|
|
327
|
+
archive while a MUST-strength acceptance item is unprovable from evidence
|
|
328
|
+
- Automatically fix safe in-scope review findings before archive, and
|
|
329
|
+
rerun strict verification plus the configured complete regression command after review-time changes
|
|
330
|
+
- Do not run archive without passing complete project-level regression test
|
|
331
|
+
evidence or explicit setup guidance explaining why that evidence is blocked
|
|
332
|
+
- Do not run archive before the delegated technical-standard checkpoint is
|
|
333
|
+
resolved
|
|
334
|
+
- Do not commit or push automatically
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: strict-spec-brainstorm
|
|
3
|
+
description: Discuss and shape a strict YAML change from a rough idea, then after explicit confirmation scaffold the proposal artifacts.
|
|
4
|
+
metadata:
|
|
5
|
+
skill_id: strict_spec_brainstorm
|
|
6
|
+
author: strict-spec-driven
|
|
7
|
+
type: agent_skill
|
|
8
|
+
version: 1.0.0
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
You are helping the user turn an early-stage idea into a strict YAML change
|
|
12
|
+
proposal.
|
|
13
|
+
|
|
14
|
+
## This Skill's Commands
|
|
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
|
+
```yaml
|
|
20
|
+
check-workflow-state: strict-spec-cli check-workflow-state
|
|
21
|
+
tech-status: strict-spec-cli tech-status
|
|
22
|
+
lesson-status: strict-spec-cli lesson-status [--category <category>]
|
|
23
|
+
propose: strict-spec-cli propose <change-name>
|
|
24
|
+
generate: strict-spec-cli generate <change-name> <proposal|design|questions|tasks|delta-spec|delta-tech> --<named-args>
|
|
25
|
+
generate-delta-scene: strict-spec-cli generate <change-name> delta-scene --<named-args>
|
|
26
|
+
scene-status: strict-spec-cli scene-status [--area <area>] [--scene <scene-id>]
|
|
27
|
+
ready: strict-spec-cli ready <change-name>
|
|
28
|
+
verify: strict-spec-cli verify <change-name>
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## CLI-Only YAML Authoring Protocol
|
|
32
|
+
|
|
33
|
+
Every mutation of repository-owned YAML in this skill goes through the strict
|
|
34
|
+
CLI. This skill writes `change-planning-state`, `change-delta-state`,
|
|
35
|
+
`scene-state`. Before the first mutation run `strict-spec-cli yaml-authoring-protocol
|
|
36
|
+
<artifact-kind>` for each of them: that command reports the ordered authoring
|
|
37
|
+
steps, the owning command for each operation, and the bundled schema and
|
|
38
|
+
example keys with their cache-resolved paths, bound to the artifact kind and
|
|
39
|
+
current where a copy would go stale. Validate the result with `strict-spec-cli
|
|
40
|
+
verify <change-name>`.
|
|
41
|
+
|
|
42
|
+
**Stop rather than edit YAML directly.** When a required command, argument, or
|
|
43
|
+
artifact kind is unavailable, stop and report the missing capability. Editing
|
|
44
|
+
the YAML directly, writing a raw payload, or scripting around the CLI is never
|
|
45
|
+
an available fallback, and an unavailable command is a reason to stop rather
|
|
46
|
+
than a reason to improvise.
|
|
47
|
+
|
|
48
|
+
## Preferred Human Language
|
|
49
|
+
|
|
50
|
+
Comply with `preferred_human_language` from `.strict-spec-driven/config.yaml` —
|
|
51
|
+
the user's common human language, not a programming language — for all
|
|
52
|
+
user-facing and generated operator-facing text, unless that file is absent or
|
|
53
|
+
the active user message asks otherwise.
|
|
54
|
+
|
|
55
|
+
## Delegated Procedures
|
|
56
|
+
|
|
57
|
+
Each procedure below is owned by the skill named beside it. That skill's
|
|
58
|
+
guidance is authoritative for it, and this skill does not restate it. Follow the
|
|
59
|
+
owning skill's procedure at the step that needs it; how it is loaded is whatever
|
|
60
|
+
the running harness provides.
|
|
61
|
+
|
|
62
|
+
- requirement-interrogation: owned by `strict-spec-propose`
|
|
63
|
+
- scene-first-routing: owned by `strict-spec-propose`
|
|
64
|
+
- change-intake-gate: owned by `strict-spec-propose`
|
|
65
|
+
- spec-artifact-routing: owned by `strict-spec-propose`
|
|
66
|
+
- delta-artifact-authoring: owned by `strict-spec-propose`
|
|
67
|
+
- task-list-authoring: owned by `strict-spec-propose`
|
|
68
|
+
|
|
69
|
+
Delegation moves where a procedure is stated, never whether it runs. Every gate
|
|
70
|
+
this skill declares below still binds, and a delegated procedure that cannot be
|
|
71
|
+
followed stops the run exactly as an inline one would.
|
|
72
|
+
|
|
73
|
+
What brainstorming adds to those procedures stays here: the change-intake gate
|
|
74
|
+
runs before this skill's own proposal confirmation checkpoint, not only before
|
|
75
|
+
implementation handoff, because a summary the user confirms is already a
|
|
76
|
+
commitment.
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
## Steps
|
|
80
|
+
|
|
81
|
+
Before any other step, run `strict-spec-cli check-workflow-state`. If `.strict-spec-driven/` is
|
|
82
|
+
missing, stop immediately and tell the user to run `/strict-spec-init`. Do not
|
|
83
|
+
run `init` from this skill.
|
|
84
|
+
|
|
85
|
+
1. **Start from the idea, not the artifact list** — ask the user what they want
|
|
86
|
+
to achieve, what problem they are trying to solve, and any known constraints
|
|
87
|
+
or preferences. Do not require a change name up front.
|
|
88
|
+
|
|
89
|
+
2. **Read strict project context, existing specs, and technical standards
|
|
90
|
+
early** — before narrowing scope, read:
|
|
91
|
+
- `.strict-spec-driven/config.yaml`
|
|
92
|
+
- `.strict-spec-driven/specs/INDEX.yaml`
|
|
93
|
+
- every relevant strict YAML main spec file the idea appears likely to touch,
|
|
94
|
+
if any; for a purely technical change, confirm from the spec index that no
|
|
95
|
+
main spec requirement is implicated instead of forcing one
|
|
96
|
+
- run `strict-spec-cli tech-status` and read
|
|
97
|
+
the relevant files under `.strict-spec-driven/tech/` so the brainstorm
|
|
98
|
+
stays inside the project's technical standards from the start
|
|
99
|
+
- select the lesson category that matches the likely spec or technical area, run
|
|
100
|
+
`strict-spec-cli lesson-status --category <category>`, and read the lessons it ranks first.
|
|
101
|
+
Repeat for another category when the idea genuinely spans more than one; use the unfiltered
|
|
102
|
+
command only when repository evidence cannot identify a relevant category.
|
|
103
|
+
Lessons are recorded experience, not binding rules: they carry no MUST or
|
|
104
|
+
SHOULD strength, so treat each one as a warning worth checking against this
|
|
105
|
+
change rather than a constraint to satisfy. Match on `applies_when` — that
|
|
106
|
+
field states the condition under which the lesson is worth recalling. A
|
|
107
|
+
lesson with several occurrences has bitten this project repeatedly and
|
|
108
|
+
deserves weight even though nothing enforces it.
|
|
109
|
+
Use this evidence to run the delegated change-intake-gate procedure before
|
|
110
|
+
asking the human for details the repository already answers.
|
|
111
|
+
|
|
112
|
+
3. **Brainstorm until the change is decision-ready** — use the discussion to
|
|
113
|
+
converge on:
|
|
114
|
+
- the desired outcome and user-visible behavior
|
|
115
|
+
- what is in scope and explicitly out of scope
|
|
116
|
+
- important tradeoffs, constraints, risks, and unchanged behavior
|
|
117
|
+
- how the idea fits the applicable technical standards: MUST rules are hard
|
|
118
|
+
constraints on the approach, SHOULD rules are the default, and any tension
|
|
119
|
+
with a standard is a tradeoff to settle now or raise as an open question
|
|
120
|
+
- for user interface work, how it splits: user-observable UI behavior becomes
|
|
121
|
+
spec requirements, UI engineering and design rules become a `ui`-category
|
|
122
|
+
technical standard, and visual fidelity is governed by visual-regression
|
|
123
|
+
snapshots rather than inlined detail
|
|
124
|
+
- which existing strict YAML spec files will likely be modified, or whether a
|
|
125
|
+
new strict spec area is needed, or why no strict spec area should change
|
|
126
|
+
because the change is purely technical, decided with the delegated
|
|
127
|
+
spec-artifact-routing procedure
|
|
128
|
+
- the answers the delegated requirement-interrogation procedure asks for, which
|
|
129
|
+
only the requester can give and which shape every choice above
|
|
130
|
+
- the situation the idea occurs in, asked with the delegated
|
|
131
|
+
scene-first-routing procedure before any requirement is discussed, so the
|
|
132
|
+
spec areas above are derived from a flow rather than recalled
|
|
133
|
+
- any other questions that still need a human answer before implementation
|
|
134
|
+
|
|
135
|
+
4. **Suggest the change name** — once the idea is coherent enough, propose a
|
|
136
|
+
short kebab-case change name. If the user already provided a valid name, keep
|
|
137
|
+
it. Otherwise derive one from the agreed strict workflow scope.
|
|
138
|
+
|
|
139
|
+
5. **Present a proposal checkpoint** — before creating any files, summarize:
|
|
140
|
+
- the proposed change name
|
|
141
|
+
- the goal and scope
|
|
142
|
+
- the main strict spec areas expected to change, or "no strict spec changes"
|
|
143
|
+
with the technical-only rationale
|
|
144
|
+
- key decisions or tradeoffs already settled
|
|
145
|
+
- any unresolved questions that would go into `questions.yaml`
|
|
146
|
+
|
|
147
|
+
Then ask for explicit confirmation. If the user wants revisions, continue the
|
|
148
|
+
brainstorm and re-summarize until confirmed.
|
|
149
|
+
|
|
150
|
+
6. **Scaffold the change after confirmation** — run:
|
|
151
|
+
```bash
|
|
152
|
+
strict-spec-cli propose <change-name>
|
|
153
|
+
```
|
|
154
|
+
This creates `.strict-spec-driven/changes/<name>/` with strict planning
|
|
155
|
+
artifacts and an empty `specs/` directory for strict YAML delta files.
|
|
156
|
+
|
|
157
|
+
7. **Populate `proposal.yaml` and related artifacts step by step** — after
|
|
158
|
+
scaffolding, follow this exact order. Generate every supported artifact,
|
|
159
|
+
including `tasks.yaml`, with direct parameterized CLI invocations, and do not
|
|
160
|
+
create JSON payload files.
|
|
161
|
+
- `strict-spec-cli generate <change-name> proposal --what "..." --why "..." --in "..." --out "..." --unchanged "..."`
|
|
162
|
+
- `strict-spec-cli generate <change-name> design --approach "..." --decision <decision-id> --decision-text "..." --rationale "..."`
|
|
163
|
+
- populate `tasks.yaml` by following the delegated task-list-authoring
|
|
164
|
+
procedure
|
|
165
|
+
- `strict-spec-cli generate <change-name> questions --open <question-id> --question "..." --context "..."` plus any needed `--resolved` entries
|
|
166
|
+
Include impact analysis and recommendation/options in `--context`; do
|
|
167
|
+
not pass nonexistent `--impact` or `--recommendation` flags.
|
|
168
|
+
- when the change touches user-observable behavior, `strict-spec-cli generate <change-name> delta-scene --target-scene <scene-id> --operation ADDED --step <step-id> --action "..." --covered-by <spec-id>:<requirement-id>`
|
|
169
|
+
before the delta spec below, following the delegated scene-first-routing
|
|
170
|
+
procedure; run `strict-spec-cli scene-status` first to find a recorded
|
|
171
|
+
scene that already describes the situation
|
|
172
|
+
- only when the change has observable spec impact, `strict-spec-cli generate <change-name> delta-spec --target-spec <spec-id> --operation ADDED --requirement <requirement-id> --strength MUST --statement "..." --scenario <scenario-id> --given "..." --when "..." --then "..."`
|
|
173
|
+
once per target strict main spec path, following the delegated
|
|
174
|
+
delta-artifact-authoring procedure
|
|
175
|
+
- when the change alters a technical standard, `strict-spec-cli generate <change-name> delta-tech --target-standard <standard-id> [--title "..." --category <category>] --operation ADDED --rule <rule-id> --strength MUST --statement "..." --rationale "..." --method review`
|
|
176
|
+
If the change has no observable spec impact, leave the `specs/` directory
|
|
177
|
+
empty rather than inventing a prose-only file. Prefer one invocation per
|
|
178
|
+
supported generated artifact (or per target spec for delta specs) so
|
|
179
|
+
generated YAML matches the full document shape immediately.
|
|
180
|
+
|
|
181
|
+
8. **Run the proposal checkpoint over generated planning artifacts** — before
|
|
182
|
+
validation, perform a semantic self-check of every generated or edited file under
|
|
183
|
+
`.strict-spec-driven/changes/<change-name>/` against the confirmed brainstorm
|
|
184
|
+
summary, the relevant main specs if any, technical standards, and the
|
|
185
|
+
existing project constraints. Check for decision-ready detail in scope,
|
|
186
|
+
unchanged behavior, design decisions, task coverage, unresolved-question
|
|
187
|
+
impact, delta spec scenarios, and delta tech use when applicable. When no
|
|
188
|
+
delta specs are appropriate, replace delta spec scenario review with a
|
|
189
|
+
justified absence check for the technical-only change.
|
|
190
|
+
For technical-only changes, verify that the task list includes the concrete
|
|
191
|
+
scripts or generated assets to edit, validation commands to run, strict
|
|
192
|
+
`ready`/`verify` checks, and archive or archive-merge checks whenever the
|
|
193
|
+
change affects artifacts that archive consumes.
|
|
194
|
+
The checkpoint should fix safe, in-scope documentation gaps immediately by
|
|
195
|
+
rerunning the supported `generate` commands for script-owned artifacts,
|
|
196
|
+
including `generate <change-name> tasks` for task-list structure. Do not
|
|
197
|
+
expand scope or answer unresolved human questions during this checkpoint;
|
|
198
|
+
record ambiguity in `questions.yaml` or return to the user checkpoint when the
|
|
199
|
+
scope changes.
|
|
200
|
+
|
|
201
|
+
9. **Validate proposal readiness and artifact structure** — run:
|
|
202
|
+
```bash
|
|
203
|
+
strict-spec-cli ready <change-name>
|
|
204
|
+
```
|
|
205
|
+
Use this as the deterministic proposal-handoff check. It reports structural
|
|
206
|
+
blockers without asking the CLI to decide product scope or requirement
|
|
207
|
+
content. Then run:
|
|
208
|
+
```bash
|
|
209
|
+
strict-spec-cli verify <change-name>
|
|
210
|
+
```
|
|
211
|
+
Use this as a strict YAML schema and artifact-shape check. At proposal time,
|
|
212
|
+
pending-task diagnostics are expected because implementation has not started
|
|
213
|
+
yet. Fix safe structure issues before handing the proposal off.
|
|
214
|
+
|
|
215
|
+
10. **Hand off** — summarize the strict change scope, key decisions, whether
|
|
216
|
+
delta specs are present or intentionally absent, proposal checkpoint
|
|
217
|
+
refinements made, task count, unchanged behavior, and any open questions. If
|
|
218
|
+
`questions.yaml` still has open entries, make clear that implementation must
|
|
219
|
+
stop for explicit user resolution before coding starts.
|
|
220
|
+
|
|
221
|
+
## Rules
|
|
222
|
+
|
|
223
|
+
- Do not implement code during brainstorming
|
|
224
|
+
- Do not scaffold proposal artifacts until the user explicitly confirms the
|
|
225
|
+
brainstorm summary and change name
|
|
226
|
+
- Keep all planning artifacts in strict YAML structures under
|
|
227
|
+
`.strict-spec-driven/`
|
|
228
|
+
- Record ambiguity in `questions.yaml` instead of guessing silently
|