dsh-plugin-strict-spec 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/README.md +13 -13
  2. package/README.zh.md +10 -12
  3. package/dist/cli/strict-spec-cli.js +109 -771
  4. package/dist/skills/strict-roadmap-plan/SKILL.md +49 -139
  5. package/dist/skills/strict-roadmap-recommend/SKILL.md +63 -282
  6. package/dist/skills/strict-roadmap-reorder/SKILL.md +40 -158
  7. package/dist/skills/strict-roadmap-review/SKILL.md +48 -144
  8. package/dist/skills/strict-roadmap-transition/SKILL.md +52 -274
  9. package/dist/skills/strict-scene-edit/SKILL.md +51 -121
  10. package/dist/skills/strict-spec-apply/SKILL.md +63 -173
  11. package/dist/skills/strict-spec-architecture/SKILL.md +39 -97
  12. package/dist/skills/strict-spec-archive/SKILL.md +57 -127
  13. package/dist/skills/strict-spec-auto/SKILL.md +98 -270
  14. package/dist/skills/strict-spec-brainstorm/SKILL.md +73 -176
  15. package/dist/skills/strict-spec-bugfix/SKILL.md +101 -225
  16. package/dist/skills/strict-spec-design/SKILL.md +55 -124
  17. package/dist/skills/strict-spec-design-sync/SKILL.md +55 -123
  18. package/dist/skills/strict-spec-init/SKILL.md +45 -93
  19. package/dist/skills/strict-spec-maintenance/SKILL.md +44 -94
  20. package/dist/skills/strict-spec-modify/SKILL.md +44 -113
  21. package/dist/skills/strict-spec-propose/SKILL.md +180 -495
  22. package/dist/skills/strict-spec-review/SKILL.md +121 -273
  23. package/dist/skills/strict-spec-ship/SKILL.md +25 -60
  24. package/dist/skills/strict-spec-spec-edit/SKILL.md +35 -84
  25. package/dist/skills/strict-spec-sync-specs/SKILL.md +44 -94
  26. package/dist/skills/strict-spec-verify/SKILL.md +28 -43
  27. package/dist/skills/strict-tech-edit/SKILL.md +43 -124
  28. package/dist/skills/strict-tech-sync/SKILL.md +60 -162
  29. package/package.json +2 -1
@@ -8,13 +8,11 @@ metadata:
8
8
  version: 1.0.0
9
9
  ---
10
10
 
11
- You are helping the user modify an existing strict YAML change artifact.
11
+ Change an existing strict change's artifacts to say what the user now intends,
12
+ without losing completed work or drifting from the main specs.
12
13
 
13
14
  ## This Skill's Commands
14
15
 
15
- If you cannot remember the exact command used by this skill, look it up here
16
- before running anything. Do not guess.
17
-
18
16
  ```yaml
19
17
  check-workflow-state: strict-spec-cli check-workflow-state
20
18
  modify: strict-spec-cli modify [change-name|archive-dir]
@@ -22,53 +20,19 @@ generate: strict-spec-cli generate <change-name> <proposal|design|questions|task
22
20
  verify: strict-spec-cli verify <change-name>
23
21
  ```
24
22
 
25
- ## YAML Writing Rules
26
-
27
- - Keep updated artifacts in valid strict YAML structures. Do not replace
28
- structured fields with Markdown prose or side notes.
29
- - If artifact fields are unclear, use `strict-spec-cli schema-show <schema-name>`;
30
- installed skills do not carry a `templates` directory.
31
- - 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.
32
- - If a valid artifact example would clarify the shape, use
33
- `strict-spec-cli sample-show <sample-name>`; installed skills do not rely on a
34
- local `examples` directory.
35
- - Use block scalars only for free-text content. Prefer `>-` for wrapped prose
36
- such as longer `summary`, `approach`, `decision`, `rationale`, `question`,
37
- `context`, `answer`, and spec `statement` values. Use `|` only when literal
38
- line breaks must be preserved.
39
- - Quote short strings that may contain YAML-sensitive characters or ambiguous
40
- scalar values, including `command` strings, URLs, paths, text containing `:`
41
- or `#`, leading `-`, JSON-like fragments, boolean-like words, and timestamp-
42
- like values.
43
- - Keep short structural fields as plain scalars unless quoting is needed for
44
- correctness. Do not force IDs, enums, schema identifiers, artifact types,
45
- task references, or similar fields into block scalars.
46
- - Before finishing, self-check indentation, list nesting, quote closure, and
47
- colon spacing, then run `verify` when the skill instructions call for it.
48
-
49
23
  ## CLI-Only YAML Authoring Protocol
50
24
 
51
- Every mutation of repository-owned YAML in this skill goes through the strict
52
- CLI. This skill writes `change-planning-state`, `change-delta-state`. Before
53
- the first mutation run `strict-spec-cli yaml-authoring-protocol
54
- <artifact-kind>` for each of them: that command reports the ordered authoring
55
- steps, the owning command for each operation, and the bundled schema and
56
- example keys with their cache-resolved paths, bound to the artifact kind and
57
- current where a copy would go stale. Validate the result with `strict-spec-cli
58
- verify <change-name>`.
59
-
60
- **Stop rather than edit YAML directly.** When a required command, argument, or
61
- artifact kind is unavailable, stop and report the missing capability. Editing
62
- the YAML directly, writing a raw payload, or scripting around the CLI is never
63
- an available fallback, and an unavailable command is a reason to stop rather
64
- than a reason to improvise.
25
+ This skill writes `change-planning-state`, `change-delta-state`. Before its
26
+ first mutation, run `strict-spec-cli yaml-authoring-protocol <artifact-kind>`
27
+ for each kind and follow it, including its rule to stop and report a missing
28
+ command rather than work around it; validate the result with
29
+ `strict-spec-cli verify <change-name>`.
65
30
 
66
31
  ## Preferred Human Language
67
32
 
68
- Comply with `preferred_human_language` from `.strict-spec-driven/config.yaml` —
69
- the user's common human language, not a programming language — for all
70
- user-facing and generated operator-facing text, unless that file is absent or
71
- the active user message asks otherwise.
33
+ Write user-facing and generated operator-facing text in the human language named
34
+ by `preferred_human_language` in `.strict-spec-driven/config.yaml`, unless the
35
+ active user message asks otherwise.
72
36
 
73
37
  ## Steps
74
38
 
@@ -76,73 +40,40 @@ Before any other step, run `strict-spec-cli check-workflow-state`. If `.strict-s
76
40
  missing, stop immediately and tell the user to run `/strict-spec-init`. Do not
77
41
  run `init` from this skill.
78
42
 
79
- 1. **Select the change** — run `modify` without an argument to list active
80
- changes. If the change is already specified, use it.
81
-
82
- 2. **Understand the requested edit** — clarify the content change, not just which
83
- file to touch.
84
-
85
- 3. **Read affected strict artifacts** — choose from:
86
- - `proposal.yaml`
87
- - `design.yaml`
88
- - `tasks.yaml`
89
- - `questions.yaml`
90
- - strict YAML delta specs under `changes/<name>/specs/`
91
- Also read `.strict-spec-driven/config.yaml`, `.strict-spec-driven/specs/INDEX.yaml`,
92
- and relevant main specs when editing delta specs.
93
-
94
- 4. **Apply targeted edits through `generate`**
95
- - for `proposal.yaml`, use the proposal generator's named summary, scope,
96
- unchanged-behavior, status, roadmap-link, and removal arguments
97
- - for `design.yaml`, use named approach, decision, alternative, risk,
98
- removal, or isolated deletion arguments
99
- - for strict YAML delta specs and delta tech, use target-confined operation,
100
- requirement/rule, scenario, removal, and deletion arguments; preserve
101
- `target_spec` or `target_standard` identity
102
- - for `tasks.yaml`, use `strict-spec-cli generate <change-name> tasks` to
103
- add or update a task. Read `strict-spec-cli generate --help --json` (or `--help`).
104
- Choose `--implementation`, `--testing`, or `--verification` for the fixed
105
- section; each takes no value and opens one task group whose following fields
106
- belong to it. Use one invocation per task, for example `--implementation
107
- --task <id> --text "..."`; repeat a selector per task in multi-task calls.
108
- The command upserts by section and task id, so
109
- other tasks are untouched. Restating a task is a field-level merge that
110
- overwrites only the fields you pass, so an existing `status: complete` and
111
- `command` are preserved automatically on a text-only edit — you no longer
112
- need to re-pass `--status complete`. Delete a task with `--remove <id>`,
113
- and move a task between sections by `--remove`-ing it and restating it
114
- under the new section in the same call. Place a task with
115
- `--before <task-id>` or `--after <task-id>` instead of letting it append;
116
- task order is the order `apply` walks, so a task that must run before
117
- existing pending work is anchored rather than appended, and naming an
118
- existing task id with an anchor moves it there while preserving its
119
- `status` and `command`. Set gates with
120
- `--validation-task`/`--unit-test-task`; both reference Testing task ids.
121
- Removal and gate flags are global and need no selector. `valid` reports write
122
- success and `ready` reports completeness; `valid: true, ready: false` is a
123
- successful incomplete write. Use `--text=...`/`--command=...`
124
- when a value begins with a dash. Rename a task id by removing the old id
125
- and restating it under the new id in one invocation. Preserve existing
126
- `status: complete` entries unless the user explicitly asks to change
127
- completed work
128
- - for `questions.yaml`, use named open, resolved, resolve, and removal
129
- arguments; canonical requirement questions remain protected
130
-
131
- 5. **Validate after editing** — when the edited change is implementation-complete,
132
- run:
133
- ```bash
134
- strict-spec-cli verify <change-name>
135
- ```
136
- If the change still has pending tasks or open questions, use the output only
137
- as a strict YAML structure check and treat those lifecycle diagnostics as
138
- expected until implementation is complete.
139
-
140
- 6. **Summarize the change** — explain what changed across the updated YAML
141
- artifacts and confirm the resulting proposal state.
43
+ 1. **Select the change** — use the change the user named; otherwise `modify`
44
+ without an argument lists the active ones.
45
+
46
+ 2. **Understand the edit** — pin down the content change the user wants, not
47
+ only which file it lands in.
48
+
49
+ 3. **Read what it affects** — the change's proposal, design, tasks, questions,
50
+ and delta artifacts it touches; for a delta-spec edit, also the config, the
51
+ spec index, and the target main specs.
52
+
53
+ 4. **Apply targeted edits through `generate`** — read
54
+ `strict-spec-cli generate --help --json` for each artifact's named, removal,
55
+ and deletion arguments, and change only the entries the edit names.
56
+ - Delta specs and delta tech keep their `target_spec` or `target_standard`
57
+ identity, so each delta file stays aligned with its main spec path.
58
+ - Tasks are addressed by fixed section selector and task id
59
+ (`--implementation`, `--testing`, `--verification`); restating a task
60
+ merges only the fields passed, so completed status and commands survive.
61
+ A task that must run before existing pending work is moved with `--before`
62
+ or `--after` rather than appended, and a rename or section move is a
63
+ remove-and-restate in one invocation.
64
+ - Canonical requirement questions cannot be removed; they are resolved.
65
+ Done when each requested change is recorded and nothing else moved.
66
+
67
+ 5. **Validate** — run `verify <change-name>`. While tasks are pending or
68
+ questions open, its lifecycle diagnostics are expected and only structural
69
+ ones need fixing.
70
+
71
+ 6. **Summarize** — what changed in each artifact and the resulting proposal
72
+ state.
142
73
 
143
74
  ## Rules
144
75
 
145
- - Preserve completed task state unless the user explicitly asks otherwise
146
- - Keep strict delta specs aligned to the target main spec paths
147
- - Never hand-edit change planning or delta YAML; every supported mutation flows
148
- through `generate`
76
+ - Preserve completed task state unless the user explicitly asks to change
77
+ completed work.
78
+ - Keep strict delta specs aligned to their target main spec paths.
79
+ - Every mutation flows through `generate`.