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,13 +8,11 @@ metadata:
|
|
|
8
8
|
version: 1.0.0
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
|
|
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
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
-
|
|
69
|
-
|
|
70
|
-
user
|
|
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** —
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
2. **Understand the
|
|
83
|
-
file
|
|
84
|
-
|
|
85
|
-
3. **Read
|
|
86
|
-
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
-
|
|
91
|
-
|
|
92
|
-
and
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
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
|
|
146
|
-
|
|
147
|
-
-
|
|
148
|
-
|
|
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`.
|