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.
- package/README.md +13 -13
- package/README.zh.md +10 -12
- package/dist/cli/strict-spec-cli.js +109 -771
- 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 +98 -270
- 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 +121 -273
- 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-spec-verify/SKILL.md +28 -43
- 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
|
@@ -8,60 +8,33 @@ metadata:
|
|
|
8
8
|
version: 1.0.0
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Create or restructure the roadmap so every milestone and planned change carries
|
|
12
|
+
executable, reviewable detail a later proposal can use without inventing intent.
|
|
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
|
roadmap-generate-milestone: strict-spec-cli roadmap-generate milestone --<named-args>
|
|
21
|
-
roadmap-generate-planned-change: strict-spec-cli roadmap-generate planned-change
|
|
19
|
+
roadmap-generate-planned-change: strict-spec-cli roadmap-generate planned-change --<named-args>
|
|
22
20
|
roadmap-delete-planned-change: strict-spec-cli roadmap-delete-planned-change <planned-change-id> [--allow-complete] [--detach-dependents]
|
|
23
21
|
roadmap-status: strict-spec-cli roadmap-status
|
|
24
22
|
roadmap-sync: strict-spec-cli roadmap-sync [--fix-names]
|
|
25
23
|
roadmap-defer: strict-spec-cli roadmap-defer <milestone-id> [--reason "..."]
|
|
26
24
|
```
|
|
27
25
|
|
|
28
|
-
## Roadmap Linking Rules
|
|
29
|
-
|
|
30
|
-
- Milestone ownership is defined by `planned_change.milestone`.
|
|
31
|
-
- Do not expect milestone files to list standalone planned-change file paths.
|
|
32
|
-
- Use `roadmap-status` output to locate planned-change source files; each
|
|
33
|
-
`plannedChanges[]` entry reports its `path`.
|
|
34
|
-
- `planned_change.id` and `planned_change.milestone` are the source of truth
|
|
35
|
-
for identity, and the file basename is enforced to match them: the canonical
|
|
36
|
-
planned-change filename is `<milestone-id>-<planned-change-id>.yaml` (the
|
|
37
|
-
milestone prefix is not duplicated when the id already starts with it). A
|
|
38
|
-
misnamed active planned-change file is a blocking validation diagnostic;
|
|
39
|
-
never pick filenames yourself — create planned changes through
|
|
40
|
-
`roadmap-generate planned-change` and repair legacy names with
|
|
41
|
-
`roadmap-sync --fix-names`.
|
|
42
|
-
|
|
43
26
|
## CLI-Only YAML Authoring Protocol
|
|
44
27
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
bundled schema and example keys with their cache-resolved paths, bound to the
|
|
50
|
-
artifact kind and current where a copy would go stale. Validate the result with
|
|
51
|
-
`strict-spec-cli roadmap-status`.
|
|
52
|
-
|
|
53
|
-
**Stop rather than edit YAML directly.** When a required command, argument, or
|
|
54
|
-
artifact kind is unavailable, stop and report the missing capability. Editing
|
|
55
|
-
the YAML directly, writing a raw payload, or scripting around the CLI is never
|
|
56
|
-
an available fallback, and an unavailable command is a reason to stop rather
|
|
57
|
-
than a reason to improvise.
|
|
28
|
+
This skill writes `roadmap-state`. Before its first mutation, run
|
|
29
|
+
`strict-spec-cli yaml-authoring-protocol <artifact-kind>` for each kind and
|
|
30
|
+
follow it, including its rule to stop and report a missing command rather than
|
|
31
|
+
work around it; validate the result with `strict-spec-cli roadmap-status`.
|
|
58
32
|
|
|
59
33
|
## Preferred Human Language
|
|
60
34
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
user
|
|
64
|
-
the active user message asks otherwise.
|
|
35
|
+
Write user-facing and generated operator-facing text in the human language named
|
|
36
|
+
by `preferred_human_language` in `.strict-spec-driven/config.yaml`, unless the
|
|
37
|
+
active user message asks otherwise.
|
|
65
38
|
|
|
66
39
|
## Steps
|
|
67
40
|
|
|
@@ -69,108 +42,45 @@ Before any other step, run `strict-spec-cli check-workflow-state`. If `.strict-s
|
|
|
69
42
|
missing, stop immediately and tell the user to run `/strict-spec-init`. Do not
|
|
70
43
|
run `init` from this skill.
|
|
71
44
|
|
|
72
|
-
1. **
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
2. **
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
planned-change artifact an actionable `summary`, `details`, `depends_on`,
|
|
108
|
-
and `status` so later roadmap recommendation, proposal, and implementation
|
|
109
|
-
workflows can understand the work without inventing missing detail. Keep
|
|
110
|
-
milestone `planned_changes` empty unless you are explicitly materializing
|
|
111
|
-
legacy data.
|
|
112
|
-
If a milestone needs more than ten planned changes or mixes unrelated work,
|
|
113
|
-
split it or stop for explicit user confirmation instead of hiding the scope
|
|
114
|
-
problem in one large milestone.
|
|
115
|
-
Restructuring that consolidates or drops planned work removes artifacts with:
|
|
116
|
-
```bash
|
|
117
|
-
strict-spec-cli roadmap-delete-planned-change <planned-change-id> [--allow-complete] [--detach-dependents]
|
|
118
|
-
```
|
|
119
|
-
Deletion refuses by default when other planned changes depend on the target;
|
|
120
|
-
`--detach-dependents` drops those `depends_on` edges in the same operation so
|
|
121
|
-
the roadmap is never written through a dangling-reference state. Never remove
|
|
122
|
-
a planned-change file by hand — reducing the planned-change count is a CLI
|
|
123
|
-
operation like every other roadmap mutation.
|
|
124
|
-
|
|
125
|
-
4. **Offer deferral when a milestone cannot be detailed yet** — a milestone the
|
|
126
|
-
user is committed to but genuinely cannot elaborate — because an interface is
|
|
127
|
-
still moving, a dependency has not landed, or a decision belongs to someone
|
|
128
|
-
else — should not be padded with invented content, and should not be left out
|
|
129
|
-
of the roadmap either. Record the unmatured precondition as an
|
|
130
|
-
`--intake-question`, then declare the state:
|
|
131
|
-
```bash
|
|
132
|
-
strict-spec-cli roadmap-defer <milestone-id> --reason "<the unmatured precondition>"
|
|
133
|
-
```
|
|
134
|
-
This keeps the milestone at its planned-change-derived status rather than
|
|
135
|
-
forcing `blocked`, and makes `roadmap-recommend` return a refine action for it
|
|
136
|
-
instead of recommending its placeholder work. Recommendation follows strict
|
|
137
|
-
roadmap order, so tell the user that a deferred milestone suppresses later
|
|
138
|
-
milestones' work until `/strict-roadmap-transition` with the `refine`
|
|
139
|
-
operation clears it, or its `pause` operation releases it. Never defer a
|
|
140
|
-
milestone merely because its detail is unwritten — that is authoring work,
|
|
141
|
-
not a deferred precondition — and never relax a required milestone field to
|
|
142
|
-
create one.
|
|
143
|
-
|
|
144
|
-
5. **Normalize roadmap state** — run:
|
|
145
|
-
```bash
|
|
146
|
-
strict-spec-cli roadmap-sync
|
|
147
|
-
```
|
|
148
|
-
Use this to regenerate canonical index state and reconcile roadmap status
|
|
149
|
-
with active and archived strict changes.
|
|
150
|
-
|
|
151
|
-
6. **Review the roadmap plan before handoff** — run `roadmap-status` after
|
|
152
|
-
sync, then review the edited roadmap files directly. Check for placeholders,
|
|
153
|
-
overbroad milestones, unclear dependencies, unverifiable done criteria, weak
|
|
154
|
-
planned-change detail, excessive planned change count, stale status values,
|
|
155
|
-
and current roadmap diagnostics. Fix safe structural or wording issues
|
|
156
|
-
immediately. If the review finds a product scope decision, dependency
|
|
157
|
-
decision, milestone split, or prioritization decision that requires the user,
|
|
158
|
-
stop and report the specific question instead of guessing.
|
|
159
|
-
|
|
160
|
-
7. **Summarize the result** — report the milestone set, the next planned change
|
|
161
|
-
candidates, and any roadmap diagnostics that still need human attention.
|
|
45
|
+
1. **Load context** — read the config, the spec index, and the main specs that
|
|
46
|
+
define the current system, then `roadmap-status`, whose order, declared and
|
|
47
|
+
derived status, and diagnostics are the facts you plan from.
|
|
48
|
+
|
|
49
|
+
2. **Shape the milestones** — each planned change belongs to exactly one
|
|
50
|
+
milestone, which holds at most ten; one that needs more or mixes unrelated
|
|
51
|
+
work is split, or stopped for an explicit user decision. Milestone ids are
|
|
52
|
+
slug-only and stable; order lives in the optional integer `order` field,
|
|
53
|
+
owned by `strict-roadmap-reorder`, never in an id prefix or filename.
|
|
54
|
+
|
|
55
|
+
3. **Author executable detail** — milestones through `roadmap-generate
|
|
56
|
+
milestone`, standalone planned changes through `roadmap-generate
|
|
57
|
+
planned-change`, and dropped work through `roadmap-delete-planned-change`;
|
|
58
|
+
read each one's `--help --json` for its arguments. Refine milestone goal,
|
|
59
|
+
scope, done criteria, dependencies, risks, notes, and details, and each
|
|
60
|
+
planned change's summary, details, dependencies, and status, until they
|
|
61
|
+
state executable planning context rather than placeholders or intentions.
|
|
62
|
+
The CLI computes the canonical `<milestone-id>-<planned-change-id>.yaml`
|
|
63
|
+
filename; never choose or edit one by hand.
|
|
64
|
+
|
|
65
|
+
4. **Defer only an unmatured precondition** — a committed milestone that cannot
|
|
66
|
+
be elaborated yet (an interface still moving, a dependency not landed, a
|
|
67
|
+
decision owned elsewhere) is not padded: record the precondition as an
|
|
68
|
+
intake question and `roadmap-defer` it with that reason. Unwritten detail is
|
|
69
|
+
authoring work, not deferral. Warn that it suppresses later milestones' work
|
|
70
|
+
until `strict-roadmap-transition` refines or pauses it.
|
|
71
|
+
|
|
72
|
+
5. **Review the roadmap plan before handoff** — run `roadmap-sync` (with
|
|
73
|
+
`--fix-names` for non-canonical filenames), rerun `roadmap-status`, and
|
|
74
|
+
reread the edited files for placeholders, overbroad milestones, unclear
|
|
75
|
+
dependencies, unverifiable done criteria, weak planned-change detail, excess
|
|
76
|
+
planned-change count, stale status, and diagnostics. Fix safe structural or
|
|
77
|
+
wording issues; stop with the specific question for a scope, dependency,
|
|
78
|
+
split, or prioritization decision. Then report the milestone set, the next
|
|
79
|
+
candidate planned changes, and diagnostics still needing a human.
|
|
162
80
|
|
|
163
81
|
## Rules
|
|
164
82
|
|
|
165
|
-
- Keep
|
|
166
|
-
|
|
167
|
-
-
|
|
168
|
-
|
|
169
|
-
`reorder` operation), never from id prefixes or filenames. Legacy `NNNN-`
|
|
170
|
-
prefixed ids remain valid but do not mint new ones
|
|
171
|
-
- Keep each milestone to ten planned changes or fewer
|
|
172
|
-
- Use `roadmap-generate milestone` for milestone YAML shape and
|
|
173
|
-
`roadmap-generate planned-change` for standalone planned-change artifacts;
|
|
174
|
-
never hand-pick planned-change filenames — the CLI owns the canonical
|
|
175
|
-
`<milestone-id>-<planned-change-id>.yaml` naming and `roadmap-sync
|
|
176
|
-
--fix-names` repairs misnamed files
|
|
83
|
+
- Keep roadmap state under `.strict-spec-driven/roadmap/`, mutated only
|
|
84
|
+
through the mapped commands; never write roadmap YAML directly.
|
|
85
|
+
- Never hand-mark completion: status derives from planned-change state that
|
|
86
|
+
`roadmap-sync` reconciles against active and archived changes.
|
|
@@ -8,15 +8,12 @@ metadata:
|
|
|
8
8
|
version: 1.0.0
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
Turn the next roadmap planned change into a populated strict change and carry
|
|
12
|
+
it into the automatic workflow without pausing for confirmation;
|
|
13
|
+
`roadmap-recommend` owns selection, so its result is authoritative.
|
|
14
14
|
|
|
15
15
|
## This Skill's Commands
|
|
16
16
|
|
|
17
|
-
If you cannot remember the exact command used by this skill, look it up here
|
|
18
|
-
before running anything. Do not guess.
|
|
19
|
-
|
|
20
17
|
```yaml
|
|
21
18
|
check-workflow-state: strict-spec-cli check-workflow-state
|
|
22
19
|
roadmap-status: strict-spec-cli roadmap-status
|
|
@@ -25,104 +22,28 @@ generate: strict-spec-cli generate <change-name> <proposal|design|questions|task
|
|
|
25
22
|
ready: strict-spec-cli ready <change-name>
|
|
26
23
|
```
|
|
27
24
|
|
|
28
|
-
##
|
|
29
|
-
|
|
30
|
-
- Milestone ownership is defined by `planned_change.milestone`.
|
|
31
|
-
- Do not expect milestone files to list standalone planned-change file paths.
|
|
32
|
-
- Use `roadmap-status` output to locate planned-change source files; each
|
|
33
|
-
`plannedChanges[]` entry reports its `path`.
|
|
34
|
-
- Treat filenames as helpful conventions only. `planned_change.id` and
|
|
35
|
-
`planned_change.milestone` are the source of truth.
|
|
36
|
-
- If `roadmap-status` reports legacy inline milestone `planned_changes`, stop
|
|
37
|
-
and materialize them before recommending work.
|
|
38
|
-
|
|
39
|
-
## Roadmap Hint Parameters
|
|
25
|
+
## Delegated Procedures
|
|
40
26
|
|
|
41
|
-
|
|
42
|
-
a milestone selector before running the recommendation command.
|
|
27
|
+
Each owner's guidance is authoritative; follow it at the step that needs it.
|
|
43
28
|
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
when that is the only milestone with numeric prefix `5`.
|
|
49
|
-
- If the hint is not numeric, first try an exact milestone id match, then a
|
|
50
|
-
case-insensitive substring match against milestone id or title.
|
|
51
|
-
- Use `.strict-spec-driven/roadmap/INDEX.yaml` or `roadmap-status` only to
|
|
52
|
-
resolve the milestone selector. Do not inspect broad planned-change context
|
|
53
|
-
before running the scripted recommendation.
|
|
54
|
-
- If the hint matches zero milestones or more than one milestone, stop and
|
|
55
|
-
report the ambiguity. Do not manually choose a planned change.
|
|
56
|
-
- After resolving the hint to exactly one milestone id, run
|
|
57
|
-
`strict-spec-cli roadmap-recommend --milestone <resolved-milestone-id> --create` and
|
|
58
|
-
treat that scripted result as authoritative.
|
|
29
|
+
- change-intake-gate: owned by `strict-spec-propose`
|
|
30
|
+
- spec-artifact-routing: owned by `strict-spec-propose`
|
|
31
|
+
- task-list-authoring: owned by `strict-spec-propose`
|
|
32
|
+
- delta-artifact-authoring: owned by `strict-spec-propose`
|
|
59
33
|
|
|
60
34
|
## CLI-Only YAML Authoring Protocol
|
|
61
35
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
example keys with their cache-resolved paths, bound to the artifact kind and
|
|
68
|
-
current where a copy would go stale. Validate the result with `strict-spec-cli
|
|
69
|
-
verify <change-name>`.
|
|
70
|
-
|
|
71
|
-
**Stop rather than edit YAML directly.** When a required command, argument, or
|
|
72
|
-
artifact kind is unavailable, stop and report the missing capability. Editing
|
|
73
|
-
the YAML directly, writing a raw payload, or scripting around the CLI is never
|
|
74
|
-
an available fallback, and an unavailable command is a reason to stop rather
|
|
75
|
-
than a reason to improvise.
|
|
36
|
+
This skill writes `change-planning-state`, `change-delta-state`. Before its
|
|
37
|
+
first mutation, run `strict-spec-cli yaml-authoring-protocol <artifact-kind>`
|
|
38
|
+
for each kind and follow it, including its rule to stop and report a missing
|
|
39
|
+
command rather than work around it; validate the result with
|
|
40
|
+
`strict-spec-cli verify <change-name>`.
|
|
76
41
|
|
|
77
42
|
## Preferred Human Language
|
|
78
43
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
user
|
|
82
|
-
the active user message asks otherwise.
|
|
83
|
-
|
|
84
|
-
## Roadmap-Backed Intake Evidence
|
|
85
|
-
|
|
86
|
-
Apply the same plain change-intake checklist used by proposal skills, but treat
|
|
87
|
-
the selected roadmap data as first-class evidence. The selected standalone
|
|
88
|
-
planned-change `summary`, `details`, `depends_on`, labels, and owning milestone
|
|
89
|
-
`details` can answer checklist items. Carry those answers into
|
|
90
|
-
generated proposal, design, task, question, and delta artifacts instead of
|
|
91
|
-
asking the human again.
|
|
92
|
-
|
|
93
|
-
Preserve the existing rule that `roadmap-recommend` chooses exactly one eligible
|
|
94
|
-
planned change through the scripted command; do not manually select another
|
|
95
|
-
candidate. Do not mutate roadmap planned-change files during proposal creation
|
|
96
|
-
except through the existing roadmap workflows.
|
|
97
|
-
|
|
98
|
-
When roadmap detail is thin or focused spec/code search fails to identify
|
|
99
|
-
affected behavior, create `questions.yaml.open` entries before implementation.
|
|
100
|
-
Human-facing question text, context, impact, recommendations, options, and
|
|
101
|
-
summaries must use `preferred_human_language`. The open-question impact must
|
|
102
|
-
be included in `questions.yaml.open[*].context`, because the `questions`
|
|
103
|
-
generator has no `--impact` or `--recommendation` flags. The context must name
|
|
104
|
-
whether the uncertainty affects proposal scope, spec delta, implementation
|
|
105
|
-
files, tests, dependencies, or technical standards.
|
|
106
|
-
|
|
107
|
-
## Spec and Technical Artifact Routing
|
|
108
|
-
|
|
109
|
-
A strict change may legitimately have no delta spec. Do not invent a
|
|
110
|
-
`delta-spec` just to satisfy artifact shape.
|
|
111
|
-
|
|
112
|
-
- Create `delta-spec` artifacts only when the roadmap-backed change modifies
|
|
113
|
-
user-observable behavior or another requirement that belongs in a strict YAML
|
|
114
|
-
main spec.
|
|
115
|
-
- For purely technical roadmap-backed changes such as refactors, build or test
|
|
116
|
-
tooling, repository maintenance, architecture constraints, scripts,
|
|
117
|
-
validation flows, archive behavior, or skill guidance, leave `specs/` empty
|
|
118
|
-
when no main spec requirement changes.
|
|
119
|
-
- If a technical-only change alters, adds, or retires an engineering rule,
|
|
120
|
-
create a `delta-tech` artifact for the affected standard. If it only complies
|
|
121
|
-
with existing standards, leave `tech/` absent too.
|
|
122
|
-
- A technical-only change still needs complete workflow tasks: script or
|
|
123
|
-
tooling edits when applicable, focused tests, validation commands,
|
|
124
|
-
`ready`/`verify` checks, and archive-readiness or archive-merge checks when
|
|
125
|
-
the change affects artifacts consumed by archive.
|
|
44
|
+
Write user-facing and generated operator-facing text in the human language named
|
|
45
|
+
by `preferred_human_language` in `.strict-spec-driven/config.yaml`, unless the
|
|
46
|
+
active user message asks otherwise.
|
|
126
47
|
|
|
127
48
|
## Steps
|
|
128
49
|
|
|
@@ -130,192 +51,52 @@ Before any other step, run `strict-spec-cli check-workflow-state`. If `.strict-s
|
|
|
130
51
|
missing, stop immediately and tell the user to run `/strict-spec-init`. Do not
|
|
131
52
|
run `init` from this skill.
|
|
132
53
|
|
|
133
|
-
1. **
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
`
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
falling back to `propose` or inventing another name. Otherwise
|
|
175
|
-
`createdChange.name` is `<change-name>`; proceed to step 2.
|
|
176
|
-
The other three statuses create nothing.
|
|
177
|
-
Do not manually choose among planned changes; branch on `status`
|
|
178
|
-
instead of manually choosing among planned changes. Use the returned
|
|
179
|
-
recommendation `path` to open the exact standalone planned-change file you
|
|
180
|
-
are recommending from.
|
|
181
|
-
|
|
182
|
-
2. **Read targeted recommendation context** — after a successful scripted
|
|
183
|
-
recommendation, read only the files needed to explain and scaffold that
|
|
184
|
-
selected change:
|
|
185
|
-
- `.strict-spec-driven/config.yaml`
|
|
186
|
-
- `.strict-spec-driven/roadmap/INDEX.yaml`
|
|
187
|
-
- the owning milestone YAML file for the selected planned change
|
|
188
|
-
- the standalone planned-change YAML artifact reported by the
|
|
189
|
-
scripted recommendation result `path`
|
|
190
|
-
- `.strict-spec-driven/specs/INDEX.yaml`
|
|
191
|
-
- the strict YAML main specs the selected change is likely to touch, if any;
|
|
192
|
-
for a purely technical selected change, confirm from the spec index that no
|
|
193
|
-
main spec requirement is implicated instead of forcing one
|
|
194
|
-
- `roadmap-status` output only when needed to explain diagnostic context or
|
|
195
|
-
legacy inline planned-change state
|
|
196
|
-
- the owning milestone YAML file's `details` field, if present, as targeted
|
|
197
|
-
planning guidance for the recommended change
|
|
198
|
-
- the selected standalone planned-change artifact's `details` field, if the
|
|
199
|
-
planned change comes from a split-file artifact
|
|
200
|
-
Use the selected roadmap fields as change-intake evidence before generating
|
|
201
|
-
artifacts. If the roadmap data and focused repository search do not identify
|
|
202
|
-
scope, specs, implementation, tests, dependencies, or technical standards,
|
|
203
|
-
record blocking questions rather than guessing.
|
|
204
|
-
|
|
205
|
-
3. **Present a checkpoint before populating the change** — summarize:
|
|
206
|
-
- the change name, which is `createdChange.name` — the planned change id
|
|
207
|
-
itself — and never a name you choose
|
|
208
|
-
- the milestone it comes from
|
|
209
|
-
- the standalone planned-change file path from the scripted recommendation result
|
|
210
|
-
- why it is the best next step
|
|
211
|
-
- which strict specs are likely to change, or that no strict spec changes
|
|
212
|
-
are expected for a technical-only change
|
|
213
|
-
- any open questions that would need to go into the strict change proposal
|
|
214
|
-
Include any intake questions that result from thin roadmap details, missing
|
|
215
|
-
implementation/test/spec impact, dependency uncertainty, or technical
|
|
216
|
-
standard uncertainty.
|
|
217
|
-
Do not stop for human confirmation here — use the checkpoint only to explain
|
|
218
|
-
the recommendation and the change step 1 created before populating it.
|
|
219
|
-
|
|
220
|
-
4. **Populate the created change immediately** — step 1 already created
|
|
221
|
-
the change; do not run `roadmap-recommend` again. Use `createdChange.name` as
|
|
222
|
-
`<change-name>` in every later command. Roadmap status matches a change to
|
|
223
|
-
its planned change by directory name alone, so a change named anything else
|
|
224
|
-
is never marked complete when it archives.
|
|
225
|
-
Populate normal strict change artifacts under
|
|
226
|
-
`.strict-spec-driven/changes/<change-name>/` in this exact order. Generate
|
|
227
|
-
every supported artifact, including `tasks.yaml`, with direct named
|
|
228
|
-
arguments, and do not create JSON payload files.
|
|
229
|
-
- `strict-spec-cli generate <change-name> proposal --what "..." --why "..." --in "..." --out "..." --unchanged "..." --milestone <milestone-id> --planned-change <change-name>`
|
|
230
|
-
— the planned change id and the change name are the same value, and the
|
|
231
|
-
command refuses a link whose planned change is absent, owned by another
|
|
232
|
-
milestone, or named differently from the change
|
|
233
|
-
- `strict-spec-cli generate <change-name> design --approach "..." --decision <decision-id> --decision-text "..." --rationale "..."`
|
|
234
|
-
- populate `tasks.yaml` with `strict-spec-cli generate <change-name> tasks`, **one invocation per task** so no task list is hand-written:
|
|
235
|
-
- read `strict-spec-cli generate --help --json` (or `--help`) first.
|
|
236
|
-
Choose `--implementation`, `--testing`, or `--verification` for the
|
|
237
|
-
corresponding fixed section. Each takes no value and opens one task group;
|
|
238
|
-
following task fields belong to that group. Repeat a selector for each task
|
|
239
|
-
in a multi-task call. Removal and gate flags are global and need no selector.
|
|
240
|
-
- first task: `strict-spec-cli generate <change-name> tasks --implementation --task <task-id> --text "..." [--status pending|complete] [--command "..."]` — the task list starts absent and is created by this first call, so there are no placeholder tasks to remove
|
|
241
|
-
- each later task: one selector/`--task`/`--text` group per call
|
|
242
|
-
- restating an existing `(section, task-id)` is a field-level merge — it overwrites only the fields you pass, so a task's `status: complete` and `command` survive a text-only edit; a brand-new task still needs `--text`
|
|
243
|
-
- delete a task with `--remove <task-id>` (a repeatable global flag); to move a task between sections, `--remove` it and restate it under the new section in the same call
|
|
244
|
-
- place a task with `--before <task-id>` or `--after <task-id>` instead of letting
|
|
245
|
-
it append; task order is the order `apply` walks, so a task that must run before
|
|
246
|
-
existing pending work is anchored rather than appended, and naming an existing
|
|
247
|
-
task id with an anchor moves it there while preserving its `status` and
|
|
248
|
-
`command`
|
|
249
|
-
- values may begin with a dash via `--text=...` or `--command=...` (the `--flag=value` form)
|
|
250
|
-
- set the gates with `--validation-task <task-id>` and `--unit-test-task <task-id>`; both must reference `Testing` task ids
|
|
251
|
-
- the command upserts by `(section, task-id)` and is idempotent; each call returns `{valid, ready, diagnostics}` — `valid` reports write success and `ready` reports completeness, so a `ready: false` result naming empty sections or unset gates is not a failed write, keep adding tasks and confirm with `verify` before handoff
|
|
252
|
-
- cover concrete Implementation tasks for script, tooling, generated asset, documentation, or skill-prompt edits in scope; Testing tasks with runnable validation and unit/regression commands; and Verification tasks for `ready`, `verify`, and archive-readiness or archive-merge checks when relevant
|
|
253
|
-
- `strict-spec-cli generate <change-name> questions --open <question-id> --question "..." --context "..."`
|
|
254
|
-
Include impact analysis and recommendation/options in `--context`; do
|
|
255
|
-
not pass nonexistent `--impact` or `--recommendation` flags.
|
|
256
|
-
- 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 "..."` for each target spec
|
|
257
|
-
One requirement can include multiple scenario groups by repeating
|
|
258
|
-
`--scenario`. A later compatible call for the same operation, requirement
|
|
259
|
-
id, strength, and statement appends new scenario ids and remains idempotent
|
|
260
|
-
for equivalent scenarios. Scenarios append on their own, so nothing needs rebuilding or hand-editing to add one. Drop a single scenario with `--remove-scenario <requirement-id>:<scenario-id>` and a whole requirement with `--remove-requirement <id>`.
|
|
261
|
-
- when the change alters a technical standard, generate delta tech under `.strict-spec-driven/changes/<change-name>/tech/` with `generate <change-name> delta-tech --target-standard <id> ...`; for user interface work, capture observable UI behavior as delta-spec requirements and UI engineering and design rules as a `ui`-category technical standard, with visual fidelity governed by visual-regression snapshots rather than inlined
|
|
262
|
-
- if the change has no observable spec impact, leave the `specs/` directory
|
|
263
|
-
empty rather than inventing a prose-only file
|
|
264
|
-
Prefer one invocation per supported generated artifact (or per target spec
|
|
265
|
-
for delta specs).
|
|
266
|
-
Do this without copying full milestone-level planning metadata into the
|
|
267
|
-
change. If the selected planned change is a standalone artifact, keep that
|
|
268
|
-
artifact as the canonical home for its status, summary, dependencies, and
|
|
269
|
-
details. If the owning milestone has a `details` field or the standalone
|
|
270
|
-
planned-change artifact has a `details` field, extract only the portions
|
|
271
|
-
relevant to the selected planned change and use them as targeted planning
|
|
272
|
-
guidance when generating the change artifacts. Do not copy the full milestone
|
|
273
|
-
plan or the full planned-change details — only extract guidance relevant to
|
|
274
|
-
this one planned change. If `details` is absent, proceed normally.
|
|
275
|
-
|
|
276
|
-
5. **Run the proposal checkpoint and validate the proposed strict change** —
|
|
277
|
-
before running `ready`, perform a proposal checkpoint over the populated
|
|
278
|
-
change artifacts against the selected roadmap planned change, relevant main
|
|
279
|
-
specs, technical standards, and project constraints. Check for decision-ready
|
|
280
|
-
detail in scope, unchanged behavior, design decisions, task coverage,
|
|
281
|
-
unresolved-question impact, delta spec scenarios, and delta tech use when
|
|
282
|
-
applicable. When no delta specs are appropriate, replace delta spec scenario
|
|
283
|
-
review with a justified absence check for the technical-only change. For technical-only changes, verify that
|
|
284
|
-
tasks cover scripts or tooling, validation commands, `ready`/`verify`, and
|
|
285
|
-
archive or archive-merge checks when archive behavior is affected. The checkpoint should fix safe,
|
|
286
|
-
in-scope documentation gaps immediately, and record real ambiguity in
|
|
287
|
-
`questions.yaml` without expanding scope or answering unresolved human
|
|
288
|
-
questions.
|
|
289
|
-
|
|
290
|
-
Then run:
|
|
291
|
-
```bash
|
|
292
|
-
strict-spec-cli ready <change-name>
|
|
293
|
-
```
|
|
294
|
-
Use `ready` as the proposal handoff validation for deterministic blockers.
|
|
295
|
-
Do not run a separate full verify command at proposal time solely to
|
|
296
|
-
rediscover expected pending implementation tasks. Do not stop for human
|
|
297
|
-
question resolution during `strict-roadmap-recommend`; leave open questions
|
|
298
|
-
for `strict-spec-auto` or `strict-spec-apply` to surface before
|
|
299
|
-
implementation.
|
|
300
|
-
|
|
301
|
-
6. **Automatically continue with implementation** — immediately hand off to the
|
|
302
|
-
`/strict-spec-auto <change-name>` skill with the populated change scaffold
|
|
303
|
-
to carry the recommended change through the rest of the strict lifecycle
|
|
304
|
-
(review, apply, verify, archive). If `questions.yaml.open` is non-empty,
|
|
305
|
-
`strict-spec-auto` will surface those questions before implementation
|
|
306
|
-
begins. Do not offer a choice or ask the user which workflow to use — hand
|
|
307
|
-
off to `strict-spec-auto` and follow its guidance, however the running
|
|
308
|
-
harness loads it, relying on its populated-scaffold resume path instead of
|
|
309
|
-
regenerating the planning artifacts.
|
|
54
|
+
1. **Recommend and create in one call** — before reading broad roadmap
|
|
55
|
+
context, run `strict-spec-cli roadmap-recommend --create`, or with a
|
|
56
|
+
milestone hint `strict-spec-cli roadmap-recommend --milestone <resolved-milestone-id> --create`.
|
|
57
|
+
Resolve the hint from `roadmap-status` or the roadmap index alone: an exact
|
|
58
|
+
id; a bare number by numeric id prefix, ignoring leading zeros; else an
|
|
59
|
+
exact id, then a case-insensitive substring of an id or title. Zero or
|
|
60
|
+
several matches: report the ambiguity and stop. `createdChange.name` is
|
|
61
|
+
`<change-name>` from here on, since roadmap status matches a change by
|
|
62
|
+
directory name alone; never rerun the command, `propose`, or pick a name.
|
|
63
|
+
|
|
64
|
+
2. **Stop when nothing was created** — on a `roadmap-error`, `refine-milestone`,
|
|
65
|
+
or `no-candidate` status, or a null `createdChange`, report the diagnostics,
|
|
66
|
+
refine action, or blockers (`--details` explains them) and stop. Never add
|
|
67
|
+
`--allow-unrefined` yourself; that override is the human's.
|
|
68
|
+
|
|
69
|
+
3. **Read only targeted context, as intake evidence** — the planned-change
|
|
70
|
+
artifact at the recommendation's path, its owning milestone, the config, the
|
|
71
|
+
spec index, and the main specs the change likely touches. The planned
|
|
72
|
+
change's `summary`, `details`, `depends_on`, and labels and the milestone's
|
|
73
|
+
`details` answer intake items: carry them into the generated artifacts
|
|
74
|
+
instead of asking again, extracting only what concerns this planned change.
|
|
75
|
+
Where they are thin and focused search leaves scope, spec delta,
|
|
76
|
+
implementation files, tests, dependencies, or technical standards unknown,
|
|
77
|
+
the delegated change-intake-gate records a `questions.yaml.open` entry.
|
|
78
|
+
|
|
79
|
+
4. **Populate the change** — proposal, design, and questions, then tasks and
|
|
80
|
+
delta artifacts through the delegated task-list-authoring,
|
|
81
|
+
spec-artifact-routing, and delta-artifact-authoring procedures; link the
|
|
82
|
+
proposal with `--milestone` and `--planned-change`. Summarize the milestone,
|
|
83
|
+
path, why it is next, and expected spec impact, without waiting.
|
|
84
|
+
|
|
85
|
+
5. **Run the proposal checkpoint, then `ready`** — check every artifact against
|
|
86
|
+
the planned change, main specs, and standards for decision-ready scope,
|
|
87
|
+
unchanged behavior, design decisions, task coverage, question impact, and
|
|
88
|
+
delta spec and delta tech use or justified absence; fix safe in-scope gaps
|
|
89
|
+
and record real ambiguity as a question. `ready <change-name>` is the
|
|
90
|
+
handoff gate; open questions and pending tasks are expected here.
|
|
91
|
+
|
|
92
|
+
6. **Continue automatically** — hand off to `strict-spec-auto` and follow its
|
|
93
|
+
guidance, however the running harness loads it, for `<change-name>`; it
|
|
94
|
+
resumes the populated scaffold and surfaces open questions first.
|
|
310
95
|
|
|
311
96
|
## Rules
|
|
312
97
|
|
|
313
|
-
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
- Convert exactly one planned change into one normal strict change scaffold
|
|
319
|
-
- Do not pause for user confirmation during the recommend step
|
|
320
|
-
- Do not manually choose among eligible roadmap planned changes once the
|
|
321
|
-
scripted recommendation command returns a recommendation
|
|
98
|
+
- Convert exactly one planned change already under `.strict-spec-driven/roadmap/`
|
|
99
|
+
into one strict change; never choose among planned changes.
|
|
100
|
+
- The roadmap stays the canonical home of planning metadata: copy no full
|
|
101
|
+
milestone plan and mutate no roadmap file. Legacy inline milestone
|
|
102
|
+
`planned_changes` are first materialized by `strict-roadmap-transition` sync.
|