dsh-plugin-strict-spec 0.0.0-stage → 0.5.1

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 (33) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +236 -2
  3. package/README.zh.md +191 -0
  4. package/cordis.patch.yml +5 -0
  5. package/dist/cli/strict-spec-cli.js +38892 -0
  6. package/dist/client.js +50 -0
  7. package/dist/host.js +154 -0
  8. package/dist/skills/strict-roadmap-plan/SKILL.md +176 -0
  9. package/dist/skills/strict-roadmap-recommend/SKILL.md +321 -0
  10. package/dist/skills/strict-roadmap-reorder/SKILL.md +194 -0
  11. package/dist/skills/strict-roadmap-review/SKILL.md +180 -0
  12. package/dist/skills/strict-roadmap-transition/SKILL.md +323 -0
  13. package/dist/skills/strict-scene-edit/SKILL.md +156 -0
  14. package/dist/skills/strict-spec-apply/SKILL.md +212 -0
  15. package/dist/skills/strict-spec-architecture/SKILL.md +143 -0
  16. package/dist/skills/strict-spec-archive/SKILL.md +165 -0
  17. package/dist/skills/strict-spec-auto/SKILL.md +334 -0
  18. package/dist/skills/strict-spec-brainstorm/SKILL.md +228 -0
  19. package/dist/skills/strict-spec-bugfix/SKILL.md +285 -0
  20. package/dist/skills/strict-spec-design/SKILL.md +168 -0
  21. package/dist/skills/strict-spec-design-sync/SKILL.md +165 -0
  22. package/dist/skills/strict-spec-init/SKILL.md +123 -0
  23. package/dist/skills/strict-spec-maintenance/SKILL.md +130 -0
  24. package/dist/skills/strict-spec-modify/SKILL.md +148 -0
  25. package/dist/skills/strict-spec-propose/SKILL.md +553 -0
  26. package/dist/skills/strict-spec-review/SKILL.md +315 -0
  27. package/dist/skills/strict-spec-ship/SKILL.md +94 -0
  28. package/dist/skills/strict-spec-spec-edit/SKILL.md +117 -0
  29. package/dist/skills/strict-spec-sync-specs/SKILL.md +128 -0
  30. package/dist/skills/strict-spec-verify/SKILL.md +79 -0
  31. package/dist/skills/strict-tech-edit/SKILL.md +161 -0
  32. package/dist/skills/strict-tech-sync/SKILL.md +202 -0
  33. package/package.json +109 -4
@@ -0,0 +1,194 @@
1
+ ---
2
+ name: strict-roadmap-reorder
3
+ description: Reorder strict roadmap milestones by changing one active milestone's order value through the strict roadmap CLI, renumbering canonical spacing only when no integer gap remains.
4
+ metadata:
5
+ skill_id: strict_roadmap_reorder
6
+ author: strict-spec-driven
7
+ type: agent_skill
8
+ version: 1.0.0
9
+ ---
10
+
11
+ You are helping the user change where one milestone sits in strict roadmap
12
+ order. The whole operation is a single `roadmap-reorder` invocation against
13
+ `.strict-spec-driven/roadmap/`. The skill's job is to resolve the requested
14
+ position into exactly one placement argument, raise any dependency-order concern
15
+ the command does not check for you, run it once, and report what moved.
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
+ roadmap-status: strict-spec-cli roadmap-status
25
+ roadmap-overview: strict-spec-cli roadmap-overview
26
+ roadmap-reorder: strict-spec-cli roadmap-reorder <milestone-id> (--before <milestone-id> | --after <milestone-id> | --order <integer>)
27
+ roadmap-renumber: strict-spec-cli roadmap-renumber
28
+ ```
29
+
30
+ ## What This Skill Does and Does Not Move
31
+
32
+ `roadmap-reorder` changes one active milestone's `order` value. That is the
33
+ whole operation.
34
+
35
+ - It moves a **milestone**, never a planned change. Moving a standalone
36
+ planned-change artifact to a different milestone is
37
+ `/strict-roadmap-transition` with the `move` operation.
38
+ - It changes **position**, never status. Holding a milestone out of
39
+ recommendation is `pause`, and declaring it not yet elaborated is `defer`;
40
+ both are `/strict-roadmap-transition` operations.
41
+ - It changes **order**, never content. Authoring or elaborating milestone and
42
+ planned-change content is `/strict-roadmap-plan` and `/strict-roadmap-review`.
43
+
44
+ ## Ordering Rules
45
+
46
+ - Roadmap order comes from the optional integer `order` field, not from the
47
+ milestone id prefix and not from the filename.
48
+ - Use `roadmap-status` or `roadmap-overview` order, never id-prefix order, as
49
+ the sequencing source. The reported `displayOrdinal` is a rendering of
50
+ position; the `order` integer is the stored value the command writes.
51
+ - Milestone ownership for standalone work items is defined by
52
+ `planned_change.milestone`, so reordering a milestone carries its owned
53
+ standalone planned-change artifacts with it without rewriting any of them.
54
+ - Treat filenames as helpful conventions only. Reorder never renames a file,
55
+ and a planned-change basename stays in its canonical
56
+ `<milestone-id>-<planned-change-id>.yaml` form; when a basename is already
57
+ wrong, `roadmap-sync --fix-names` repairs it, not this skill.
58
+
59
+ ## Preconditions
60
+
61
+ - **Archived milestones are frozen history.** Reorder applies only to active
62
+ milestones. If the user names an archived milestone, report that and stop
63
+ rather than reviving it to move it.
64
+ - **A roadmap with unresolved diagnostics blocks the reorder.** Run
65
+ `roadmap-status` first and resolve blocking diagnostics before mutating; the
66
+ command refuses to run against an invalid roadmap.
67
+ - **One command, once.** The placement must be expressible as a single
68
+ `roadmap-reorder` invocation. Needing two is a signal the request is a
69
+ different operation, not an invitation to chain commands.
70
+
71
+ ## Resolving the Placement
72
+
73
+ Resolve the request into exactly one of these, and pass exactly one:
74
+
75
+ | the user means | flag |
76
+ | --- | --- |
77
+ | put it immediately before a named neighbour | `--before <milestone-id>` |
78
+ | put it immediately after a named neighbour | `--after <milestone-id>` |
79
+ | set a specific stored position | `--order <integer>` |
80
+
81
+ Prefer `--before` or `--after` when the user describes the move relative to
82
+ another milestone, because the command computes the integer and a hand-picked
83
+ `--order` can silently collide with an existing value.
84
+
85
+ If no integer gap exists between the requested neighbours, run
86
+ `roadmap-renumber` first, then rerun the reorder. Use `roadmap-renumber` only
87
+ when integer gaps are exhausted or the user asks to normalize spacing — it
88
+ rewrites every active milestone's `order`, so it is not a routine step before
89
+ an ordinary reorder.
90
+
91
+ ## Dependency Order Is the One Judgment Call
92
+
93
+ Before running the command, inspect the target milestone and its owned planned
94
+ changes for dependencies on other milestones or planned changes. If the new
95
+ position would place a milestone before work it depends on, report that
96
+ dependency-order concern and stop for an explicit human answer instead of
97
+ silently moving it.
98
+
99
+ The command does not read `depends_on` edges, so a reorder that inverts a
100
+ dependency succeeds and leaves a roadmap that recommends work before its
101
+ prerequisite. This check is the reason the operation is not merely mechanical.
102
+
103
+ ## CLI-Only YAML Authoring Protocol
104
+
105
+ Every mutation of repository-owned YAML in this skill goes through the strict
106
+ CLI. This skill writes `roadmap-state`. Before the first mutation run
107
+ `strict-spec-cli yaml-authoring-protocol roadmap-state`: that command reports
108
+ the ordered authoring steps, the owning command for each operation, and the
109
+ bundled schema and example keys with their cache-resolved paths, bound to the
110
+ artifact kind and current where a copy would go stale. Validate the result with
111
+ `strict-spec-cli roadmap-status`.
112
+
113
+ **Stop rather than edit YAML directly.** When a required command, argument, or
114
+ artifact kind is unavailable, stop and report the missing capability. Editing
115
+ the YAML directly, writing a raw payload, or scripting around the CLI is never
116
+ an available fallback, and an unavailable command is a reason to stop rather
117
+ than a reason to improvise.
118
+
119
+ ## Preferred Human Language
120
+
121
+ Comply with `preferred_human_language` from `.strict-spec-driven/config.yaml` —
122
+ the user's common human language, not a programming language — for all
123
+ user-facing and generated operator-facing text, unless that file is absent or
124
+ the active user message asks otherwise.
125
+
126
+ ## Steps
127
+
128
+ Before any other step, run `strict-spec-cli check-workflow-state`. If `.strict-spec-driven/` is
129
+ missing, stop immediately and tell the user to run `/strict-spec-init`. Do not
130
+ run `init` from this skill.
131
+
132
+ 1. **Confirm the request is a reorder** — the request must name one active
133
+ milestone and a target position. If it names a planned change, a status
134
+ change, or milestone content, route it to the skill that owns that work
135
+ rather than reordering something adjacent.
136
+
137
+ 2. **Load targeted roadmap context** — read `.strict-spec-driven/config.yaml`,
138
+ `.strict-spec-driven/roadmap/INDEX.yaml`, the target milestone YAML file
139
+ under `.strict-spec-driven/roadmap/milestones/`, and the milestone files
140
+ named as neighbours. Read only what the placement needs.
141
+
142
+ 3. **Inspect deterministic state** — run:
143
+ ```bash
144
+ strict-spec-cli roadmap-status
145
+ ```
146
+ If human-readable context helps, also run `roadmap-overview`. Use the
147
+ reported milestone ids, `order` values, `declaredStatus`, `derivedStatus`,
148
+ and diagnostics as the facts for this reorder. Resolve blocking diagnostics
149
+ before mutating.
150
+
151
+ 4. **Resolve the placement into one flag** — translate the request into exactly
152
+ one of `--before`, `--after`, or `--order`, using the reported order rather
153
+ than id prefixes. If the request is ambiguous about which neighbour it means,
154
+ stop and ask rather than choosing the more likely one.
155
+
156
+ 5. **Check dependency order** — inspect `depends_on` edges on the target
157
+ milestone and its owned standalone planned changes. Report any
158
+ dependency-order concern the new position would create and stop for an
159
+ explicit human answer.
160
+
161
+ 6. **Renumber only if the gap is exhausted** — if no integer gap exists between
162
+ the requested neighbours, run:
163
+ ```bash
164
+ strict-spec-cli roadmap-renumber
165
+ ```
166
+ then rerun `roadmap-status` to read the new spacing before the reorder.
167
+
168
+ 7. **Run the owning command once** — run `roadmap-reorder` with the single
169
+ resolved placement flag. Inspect the structured result rather than assuming
170
+ success: confirm it is valid, that it reports the expected milestone and new
171
+ `order`, and that the changed paths are only the milestone artifact plus the
172
+ roadmap index.
173
+
174
+ 8. **Report the result** — summarize the milestone id, its previous and new
175
+ `order` and position, whether a renumber ran and why, any dependency-order concern
176
+ raised and how the user resolved it, any warnings the command
177
+ relayed, and the natural next step: `/strict-roadmap-recommend` to see which
178
+ work the new order recommends first.
179
+
180
+ ## Rules
181
+
182
+ - Perform exactly one reorder per invocation, through the one owning command
183
+ - Pass exactly one of `--before`, `--after`, or `--order`; never combine them
184
+ - Keep every artifact this skill touches rooted in `.strict-spec-driven/roadmap/`
185
+ - Archived milestones are frozen history; never reorder or revive them
186
+ - Never hand-edit a milestone file to change an `order` field — the owning
187
+ command exists so the canonical write and index sync stay deterministic
188
+ - Never rename a milestone or planned-change file as a way of changing order;
189
+ order lives in the `order` field, not in the filename
190
+ - Never write under `.strict-spec-driven/changes/` from this skill
191
+ - Run `roadmap-renumber` only when integer gaps are exhausted or the user asks
192
+ for it, and say so in the report when it runs
193
+ - Stop for an explicit human answer when the new position would place a
194
+ milestone before work it depends on
@@ -0,0 +1,180 @@
1
+ ---
2
+ name: strict-roadmap-review
3
+ description: Review all incomplete strict roadmap milestones and directly apply fixes that make their definitions concrete and executable.
4
+ metadata:
5
+ skill_id: strict_roadmap_review
6
+ author: strict-spec-driven
7
+ type: agent_skill
8
+ version: 1.0.0
9
+ ---
10
+
11
+ You are reviewing all incomplete strict roadmap milestones and directly
12
+ applying fixes to their definitions.
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
+ roadmap-generate-milestone: strict-spec-cli roadmap-generate milestone --<named-args>
22
+ roadmap-generate-planned-change: strict-spec-cli roadmap-generate planned-change --milestone <milestone-id> --id <planned-change-id> --summary "..." --details "..." [--depends-on <planned-change-id>] [--status <planned|complete>] [--remove-depends-on <planned-change-id>]
23
+ roadmap-status: strict-spec-cli roadmap-status
24
+ roadmap-overview: strict-spec-cli roadmap-overview
25
+ roadmap-sync: strict-spec-cli roadmap-sync [--fix-names]
26
+ ```
27
+
28
+ ## Review Scope
29
+
30
+ - This skill reviews all milestones whose status is not complete. Completed
31
+ milestones are historical record and out of review scope; do not edit them.
32
+ - Milestone ownership for standalone work items is defined by
33
+ `planned_change.milestone`. Use `roadmap-status` output to locate
34
+ planned-change source files; each `plannedChanges[]` entry reports its
35
+ `path`. The file basename is enforced to the canonical form
36
+ `<milestone-id>-<planned-change-id>.yaml` (milestone prefix not duplicated
37
+ when the id already starts with it); a misnamed active planned-change file
38
+ is a blocking diagnostic that `roadmap-sync --fix-names` repairs.
39
+ - Milestone sequencing comes from the order reported by `roadmap-status` or
40
+ `roadmap-overview`, which derives from the optional integer `order` field.
41
+ Never infer review order from the milestone id prefix; review does not set
42
+ or repair order values.
43
+ - Milestone `intake_questions` are part of definition quality. Review them as
44
+ planning checks whose answers must be recoverable from milestone fields or
45
+ owned planned-change detail before the milestone is treated as executable.
46
+ - **A milestone declaring `awaiting_refinement` is out of scope for filling in
47
+ detail.** That mapping is an operator's explicit statement that the milestone
48
+ is planned but cannot be elaborated yet, because a precondition named in its
49
+ `reason` has not matured. Its thin goal, sparse scope, or absent planned
50
+ changes are the declared state, not a defect. Report such a milestone as
51
+ deliberately deferred, quote the recorded reason, and move on — never invent
52
+ a goal, done criterion, or planned change for it, and never clear the
53
+ declaration. Only `/strict-roadmap-transition` with the `refine` operation
54
+ clears it, and only a human can judge that the precondition has matured.
55
+ Reviewing its structural validity (schema shape, canonical filenames,
56
+ dependency references) is still in scope.
57
+
58
+ ## CLI-Only YAML Authoring Protocol
59
+
60
+ Every mutation of repository-owned YAML in this skill goes through the strict
61
+ CLI. This skill writes `roadmap-state`. Before the first mutation run
62
+ `strict-spec-cli yaml-authoring-protocol roadmap-state`: that command reports
63
+ the ordered authoring steps, the owning command for each operation, and the
64
+ bundled schema and example keys with their cache-resolved paths, bound to the
65
+ artifact kind and current where a copy would go stale. Validate the result with
66
+ `strict-spec-cli roadmap-status`.
67
+
68
+ **Stop rather than edit YAML directly.** When a required command, argument, or
69
+ artifact kind is unavailable, stop and report the missing capability. Editing
70
+ the YAML directly, writing a raw payload, or scripting around the CLI is never
71
+ an available fallback, and an unavailable command is a reason to stop rather
72
+ than a reason to improvise.
73
+
74
+ ## Preferred Human Language
75
+
76
+ Comply with `preferred_human_language` from `.strict-spec-driven/config.yaml` —
77
+ the user's common human language, not a programming language — for all
78
+ user-facing and generated operator-facing text, unless that file is absent or
79
+ the active user message asks otherwise.
80
+
81
+ ## Steps
82
+
83
+ Before any other step, run `strict-spec-cli check-workflow-state`. If `.strict-spec-driven/` is
84
+ missing, stop immediately and tell the user to run `/strict-spec-init`. Do not
85
+ run `init` from this skill.
86
+
87
+ 1. **Load roadmap context** — read `.strict-spec-driven/config.yaml`,
88
+ `.strict-spec-driven/roadmap/INDEX.yaml`, every milestone YAML file under
89
+ `.strict-spec-driven/roadmap/milestones/`, and the strict specs the
90
+ incomplete milestones are likely to affect.
91
+
92
+ 2. **Check current roadmap state** — run:
93
+ ```bash
94
+ strict-spec-cli roadmap-status
95
+ ```
96
+ and, when wider context helps, `roadmap-overview`. Use each milestone's
97
+ declared status, derived status, planned change state, planned-change
98
+ paths, and any diagnostics as the deterministic facts for the review.
99
+ Identify every milestone whose status is not complete and process them in
100
+ roadmap order from the command output, not id-prefix order. If every milestone is complete, stop here and report that
101
+ there are no incomplete milestones in review scope.
102
+
103
+ 3. **Assess definition quality** — for each incomplete milestone, review the
104
+ milestone for goal clarity, verifiable `done_criteria`, coherent `scope`,
105
+ `dependencies`, and `risks`, and planned-change coverage of the milestone
106
+ goal. Also check milestone `intake_questions` for answer evidence in
107
+ `goal`, `scope`, `done_criteria`, `dependencies`, `risks`, `details`,
108
+ `notes`, and owned planned-change `summary`, `details`,
109
+ `depends_on`, and metadata. Treat an intake question as answered only when
110
+ the answer is explicit enough to guide proposal scope, implementation
111
+ boundaries, tests, dependencies, risks, or technical standards. Review each
112
+ owned planned change for missing or vague `details` that would block turning
113
+ it into an executable strict change proposal.
114
+
115
+ 4. **Assess delivery state** — for each incomplete milestone, compare its
116
+ declared status with the derived status and per-planned-change state
117
+ reported by `roadmap-status`, including archived strict change evidence,
118
+ and identify gaps between definition and delivery.
119
+
120
+ 5. **Apply fixes directly** — use roadmap-generate milestone for milestone YAML
121
+ shape and milestone-field fixes under `.strict-spec-driven/roadmap/`:
122
+ ```bash
123
+ strict-spec-cli roadmap-generate milestone --id <milestone-id> --title "..." --goal "..." --scope-in "..." --scope-out "..." --done "..." --dependency "..." --risk "..." --note "..." --details "..."
124
+ ```
125
+ A supplied scalar field replaces the recorded value with no extra flag, and list fields always append, so editing one field never discards unrelated recorded content. `--intake-question` values merge by id, and restating an id replaces just that question. Remove a recorded entry by naming it: `--remove-scope-in`, `--remove-scope-out`, `--remove-done`, `--remove-dependency`, `--remove-risk` and `--remove-note` take a substring that must match exactly one entry, and `--remove-intake-question` takes an id. Fix standalone planned-change `summary`, `details`,
126
+ `depends_on`, and `status` through the planned-change authoring command:
127
+ ```bash
128
+ strict-spec-cli roadmap-generate planned-change --milestone <milestone-id> --id <planned-change-id> --summary "..." --details "..."
129
+ ```
130
+ The CLI owns the canonical `<milestone-id>-<planned-change-id>.yaml`
131
+ filename; never create or rename planned-change files by hand. Tighten
132
+ vague wording into verifiable statements; elaborate planned-change details
133
+ until each one carries enough executable planning context to propose
134
+ without re-deriving intent. When an
135
+ intake answer is missing but can be safely derived from existing roadmap,
136
+ spec or planned-change evidence, update the relevant milestone
137
+ field or planned-change detail so the answer evidence is explicit. When an
138
+ intake answer needs a human product, compatibility, risk, dependency, or
139
+ technical-standard decision, report the unresolved decision and impact in
140
+ the final summary instead of inventing an answer or writing a change-level
141
+ `questions.yaml` blocker. Never hand-edit completion status: milestone and
142
+ planned-change completion flows only from roadmap sync reconciliation
143
+ against active and archived strict changes.
144
+
145
+ 6. **Resync the roadmap** — after edits, run:
146
+ ```bash
147
+ strict-spec-cli roadmap-sync
148
+ ```
149
+ Confirm every reviewed milestone still participates in a canonical
150
+ `.strict-spec-driven/roadmap/` index and that planned change state is
151
+ consistent with active and archived strict changes.
152
+
153
+ 7. **Report findings and applied fixes** — summarize in conversation the
154
+ definition-quality and delivery-state findings for each incomplete
155
+ milestone, the fixes applied to each edited file, the planned-change paths
156
+ involved, and any follow-up work that needs a human decision. Do not persist
157
+ a separate review-report artifact.
158
+
159
+ ## Rules
160
+
161
+ - Keep all roadmap state under `.strict-spec-driven/roadmap/`
162
+ - Review all milestones whose status is not complete; refuse completed
163
+ milestones as out of review scope
164
+ - Apply milestone definition fixes through `roadmap-generate milestone` and
165
+ planned-change detail fixes through `roadmap-generate planned-change`, then
166
+ resync the roadmap; never leave the roadmap unsynced after edits
167
+ - Use `roadmap-generate milestone` for milestone YAML shape and
168
+ `roadmap-generate planned-change` for standalone planned-change artifacts;
169
+ never hand-pick planned-change filenames — the canonical
170
+ `<milestone-id>-<planned-change-id>.yaml` naming is CLI-owned and
171
+ `roadmap-sync --fix-names` repairs misnamed files
172
+ - check milestone intake_questions for answer evidence during definition
173
+ review, using milestone fields and owned planned-change details before
174
+ asking the human for missing decisions
175
+ - Never mark planned changes or milestones complete by hand; completion state
176
+ is owned by roadmap sync reconciliation
177
+ - Do not record milestone-level intake gaps in change-level `questions.yaml`
178
+ - Do not invent planned change state that conflicts with the strict workflow
179
+ - Keep milestone scope focused; surface boundary changes to the user instead
180
+ of silently moving work across milestones