dsh-plugin-strict-spec 0.6.0 → 0.8.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 CHANGED
@@ -135,7 +135,7 @@ page](https://github.com/kw12121212/strict-spec-driven/releases) and install
135
135
  its tarball (0.3.0 shown):
136
136
 
137
137
  ```sh
138
- dsh plugin --profile web add https://github.com/kw12121212/strict-spec-driven/releases/download/plugin-v0.6.0/dsh-plugin-strict-spec-0.6.0.tgz
138
+ dsh plugin --profile web add https://github.com/kw12121212/strict-spec-driven/releases/download/plugin-v0.8.0/dsh-plugin-strict-spec-0.8.0.tgz
139
139
  ```
140
140
 
141
141
  When a registry release exists, the name form works too:
package/README.zh.md CHANGED
@@ -105,7 +105,7 @@ roadmap-status` 报告该里程碑的所有计划变更都已完成时目标完
105
105
  选最新的 `plugin-v*` 标签安装其 tarball(以 0.3.0 为例):
106
106
 
107
107
  ```sh
108
- dsh plugin --profile web add https://github.com/kw12121212/strict-spec-driven/releases/download/plugin-v0.6.0/dsh-plugin-strict-spec-0.6.0.tgz
108
+ dsh plugin --profile web add https://github.com/kw12121212/strict-spec-driven/releases/download/plugin-v0.8.0/dsh-plugin-strict-spec-0.8.0.tgz
109
109
  ```
110
110
 
111
111
  若存在 registry 发布,按名称安装亦可:
@@ -11794,20 +11794,17 @@ mutation_surfaces:
11794
11794
  - skills/strict-spec-brainstorm/SKILL.md
11795
11795
  - skills/strict-spec-bugfix/SKILL.md
11796
11796
  - skills/strict-spec-design/SKILL.md
11797
- - skills/strict-spec-design-sync/SKILL.md
11798
11797
  - skills/strict-spec-init/SKILL.md
11799
11798
  - skills/strict-spec-maintenance/SKILL.md
11800
11799
  - skills/strict-spec-modify/SKILL.md
11801
11800
  - skills/strict-spec-propose/SKILL.md
11802
11801
  - skills/strict-spec-review/SKILL.md
11803
- - skills/strict-spec-spec-edit/SKILL.md
11804
- - skills/strict-spec-sync-specs/SKILL.md
11805
- - skills/strict-tech-edit/SKILL.md
11806
- - skills/strict-tech-sync/SKILL.md
11807
11802
  - skills/strict-roadmap-transition/SKILL.md
11808
11803
  - skills/strict-roadmap-reorder/SKILL.md
11809
11804
  - skills/strict-scene-edit/SKILL.md
11810
11805
  - plugins/dsh-strict-spec/dist/skills/*/SKILL.md
11806
+ - skills/strict-spec-specs/SKILL.md
11807
+ - skills/strict-spec-tech/SKILL.md
11811
11808
  mechanism: agent-guidance
11812
11809
  classification: remaining-direct-writer
11813
11810
  operations:
@@ -11872,23 +11869,6 @@ mutation_surfaces:
11872
11869
  evidence:
11873
11870
  - README.md
11874
11871
  - ROADMAP_GUIDE.md
11875
- read-only-skill-guidance:
11876
- path_patterns:
11877
- - skills/strict-spec-ship/SKILL.md
11878
- - skills/strict-spec-verify/SKILL.md
11879
- mechanism: agent-guidance
11880
- classification: read-only
11881
- operations:
11882
- - read
11883
- families:
11884
- - spec-state
11885
- - tech-state
11886
- - change-planning-state
11887
- - change-delta-state
11888
- - roadmap-state
11889
- evidence:
11890
- - skills/strict-spec-verify/SKILL.md
11891
- - skills/strict-spec-ship/SKILL.md
11892
11872
  generated-document-guidance:
11893
11873
  path_patterns:
11894
11874
  - ARCHITECTURE.md
@@ -34623,7 +34603,7 @@ var STRICT_SKILL_NAME_PREFIX_EXPECTATION = STRICT_SKILL_NAME_PREFIXES.map((prefi
34623
34603
  function hasStrictSkillNamePrefix(name) {
34624
34604
  return STRICT_SKILL_NAME_PREFIXES.some((prefix) => name.startsWith(prefix));
34625
34605
  }
34626
- var AUTO_GATE_STEP_ANCHORS = ["Verify", "Review", "Archive"];
34606
+ var AUTO_GATE_STEP_ANCHORS = ["Review", "Archive"];
34627
34607
  var REQUIREMENT_INTERROGATION_SKILLS = [
34628
34608
  "strict-spec-brainstorm",
34629
34609
  "strict-spec-propose",
@@ -34685,6 +34665,10 @@ var DELEGABLE_OBLIGATIONS = {
34685
34665
  element: "the incremental delta-spec and delta-tech authoring procedure",
34686
34666
  anchor: "Generate strict YAML delta specs only when specs change"
34687
34667
  },
34668
+ "review-readiness-gate": {
34669
+ element: "the strict verify readiness gate that opens review",
34670
+ anchor: "Pass the readiness gate"
34671
+ },
34688
34672
  "review-independence": {
34689
34673
  element: "the review-independence contract",
34690
34674
  anchor: "Review Independence"
@@ -34708,6 +34692,10 @@ var DELEGABLE_OBLIGATIONS = {
34708
34692
  "archive-execution": {
34709
34693
  element: "the archive execution procedure",
34710
34694
  anchor: "Archive the change"
34695
+ },
34696
+ "archive-commit": {
34697
+ element: "the commit of the archived change and the push hand-off",
34698
+ anchor: "Commit the change"
34711
34699
  }
34712
34700
  };
34713
34701
  function parseDelegations(content) {
@@ -34764,13 +34752,6 @@ var CORE_STRICT_SKILL_EXPECTATIONS = {
34764
34752
  },
34765
34753
  requiredHeadings: ["## Steps", "## Rules"]
34766
34754
  },
34767
- "strict-spec-verify": {
34768
- requiredCommands: {
34769
- modify: `${COMMAND_PREFIX} modify [change-name|archive-dir]`,
34770
- verify: `${COMMAND_PREFIX} verify <change-name>`
34771
- },
34772
- requiredHeadings: ["## Steps", "## Rules"]
34773
- },
34774
34755
  "strict-spec-review": {
34775
34756
  requiredCommands: {
34776
34757
  modify: `${COMMAND_PREFIX} modify [change-name|archive-dir]`,
@@ -34784,6 +34765,7 @@ var CORE_STRICT_SKILL_EXPECTATIONS = {
34784
34765
  modify: `${COMMAND_PREFIX} modify [change-name|archive-dir]`,
34785
34766
  verify: `${COMMAND_PREFIX} verify <change-name>`,
34786
34767
  archive: `${COMMAND_PREFIX} archive <change-name>`,
34768
+ ship: `${COMMAND_PREFIX} ship <change-name>`,
34787
34769
  "scene-status": SCENE_STATUS_COMMAND
34788
34770
  },
34789
34771
  requiredHeadings: ["## Steps", "## Rules"]
@@ -34815,34 +34797,22 @@ var CORE_STRICT_SKILL_EXPECTATIONS = {
34815
34797
  },
34816
34798
  requiredHeadings: ["## Steps", "## Rules"]
34817
34799
  },
34818
- "strict-tech-sync": {
34800
+ "strict-spec-tech": {
34819
34801
  requiredCommands: {
34820
34802
  modify: `${COMMAND_PREFIX} modify [change-name|archive-dir]`,
34821
34803
  generate: `${COMMAND_PREFIX} generate <change-name> delta-tech --<named-args>`,
34822
34804
  "tech-edit": `${COMMAND_PREFIX} tech-edit <standard-id> [--tech-path <path>] --<named-args>`,
34805
+ "tech-status": `${COMMAND_PREFIX} tech-status`,
34823
34806
  verify: `${COMMAND_PREFIX} verify <change-name>`
34824
34807
  },
34825
34808
  requiredHeadings: ["## Steps", "## Rules"]
34826
34809
  },
34827
- "strict-tech-edit": {
34828
- requiredCommands: {
34829
- "tech-edit": `${COMMAND_PREFIX} tech-edit <standard-id> [--tech-path <path>] --<named-args>`,
34830
- "tech-status": `${COMMAND_PREFIX} tech-status`
34831
- },
34832
- requiredHeadings: ["## Steps", "## Rules"]
34833
- },
34834
34810
  "strict-spec-modify": {
34835
34811
  requiredCommands: {
34836
34812
  modify: `${COMMAND_PREFIX} modify [change-name|archive-dir]`,
34837
34813
  verify: `${COMMAND_PREFIX} verify <change-name>`
34838
34814
  },
34839
34815
  requiredHeadings: ["## Steps", "## Rules"]
34840
- },
34841
- "strict-spec-ship": {
34842
- requiredCommands: {
34843
- ship: `${COMMAND_PREFIX} ship <change-name>`
34844
- },
34845
- requiredHeadings: ["## Steps", "## Rules"]
34846
34816
  }
34847
34817
  };
34848
34818
  var ROADMAP_STRICT_SKILL_EXPECTATIONS = {
@@ -34912,13 +34882,7 @@ var PLANNING_STRICT_SKILL_EXPECTATIONS = {
34912
34882
  },
34913
34883
  requiredHeadings: ["## Steps", "## Rules"]
34914
34884
  },
34915
- "strict-spec-spec-edit": {
34916
- requiredCommands: {
34917
- "spec-edit": `${COMMAND_PREFIX} spec-edit <spec-id> [--spec-path <path>] --<named-args>`
34918
- },
34919
- requiredHeadings: ["## Steps", "## Rules"]
34920
- },
34921
- "strict-spec-sync-specs": {
34885
+ "strict-spec-specs": {
34922
34886
  requiredCommands: {
34923
34887
  "spec-edit": `${COMMAND_PREFIX} spec-edit <spec-id> [--spec-path <path>] --<named-args>`,
34924
34888
  "scene-status": SCENE_STATUS_COMMAND
@@ -92,7 +92,7 @@ run `init` from this skill.
92
92
  source, configuration, or deliberate project output.
93
93
 
94
94
  7. **Finish** — done when `tasks.yaml` holds no pending task; suggest
95
- `strict-spec-verify`.
95
+ `strict-spec-review`.
96
96
 
97
97
  ## Rules
98
98
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: strict-spec-archive
3
- description: Archive a completed strict YAML change. Uses the strict archive command to merge delta specs into main specs, regenerate the spec index, reconcile roadmap status when present, and move the change into archive.
3
+ description: Archive a completed strict YAML change and commit it. Uses the strict archive command to merge delta specs into main specs, regenerate the spec index, reconcile roadmap status when present, and move the change into archive, then commits only that change and hands git push to the operator.
4
4
  metadata:
5
5
  skill_id: strict_spec_archive
6
6
  author: strict-spec-driven
@@ -12,7 +12,9 @@ Archive a completed strict change: settle its final technical-standard
12
12
  checkpoint, then let the archive command do the rest. `archive` alone merges the
13
13
  delta specs, scenes, and tech into the live artifacts, regenerates their
14
14
  indexes, reconciles roadmap status, and moves the change under
15
- `.strict-spec-driven/changes/archive/`; none of that is done by hand.
15
+ `.strict-spec-driven/changes/archive/`; none of that is done by hand. The
16
+ archived change is then committed on its own, and pushing stays the operator's
17
+ call.
16
18
 
17
19
  ## This Skill's Commands
18
20
 
@@ -22,6 +24,7 @@ modify: strict-spec-cli modify [change-name|archive-dir]
22
24
  verify: strict-spec-cli verify <change-name>
23
25
  generate: strict-spec-cli generate <change-name> delta-tech --<named-args>
24
26
  archive: strict-spec-cli archive <change-name>
27
+ ship: strict-spec-cli ship <change-name>
25
28
  scene-status: strict-spec-cli scene-status [--area <area>] [--scene <scene-id>]
26
29
  lesson-status: strict-spec-cli lesson-status [--category <category>]
27
30
  ```
@@ -50,7 +53,7 @@ run `init` from this skill.
50
53
  without an argument lists the active ones.
51
54
 
52
55
  2. **Run the final current-change tech sync** — before final verification and
53
- the raw archive command, apply `strict-tech-sync`'s active-change procedure
56
+ the raw archive command, apply `strict-spec-tech`'s active-change sync procedure
54
57
  to this change, bounded to its planning artifacts, delta specs, delta tech,
55
58
  attributable tracked and untracked files, and the applicable standards;
56
59
  surface ambiguous file ownership rather than absorbing unrelated drift.
@@ -83,9 +86,24 @@ run `init` from this skill.
83
86
  any uncovered flow step, so nothing is re-derived (`scene-status` shows a
84
87
  merged scene's state).
85
88
 
86
- 5. **Report the result** — the archive destination, main specs updated, scenes
87
- merged, roadmap files reconciled, and the step 2 decision or that the
88
- checkpoint found nothing uncovered.
89
+ 5. **Commit the change** — run `ship <change-name>`; it resolves the archived
90
+ change, reads its proposal summary, and snapshots roadmap state as structured
91
+ output (`strict-spec-cli ship --help --json` describes it). When it exits
92
+ non-zero, commit nothing and report it; the archive stands.
93
+ - Build a conventional title under 72 characters naming the change from that
94
+ output: `feat:` by default, or `fix:`, `chore:`, or `docs:` when the
95
+ proposal summary clearly says so. Add a short body line only when the
96
+ summary adds context the title lacks.
97
+ - Read `git status` and stage only the implementation, test, skill, spec,
98
+ and workflow files that belong to this change. When unrelated work in
99
+ progress makes that attribution ambiguous, commit nothing: the archive
100
+ stands, and the report names the files that blocked the commit.
101
+ - Run `git commit` with the constructed message, then show the operator the
102
+ `git push` command and run it only after explicit confirmation.
103
+
104
+ 6. **Report the result** — the archive destination, main specs updated, scenes
105
+ merged, roadmap files reconciled, the step 2 decision or that the checkpoint
106
+ found nothing uncovered, and the commit made or the reason it was skipped.
89
107
 
90
108
  ## Rules
91
109
 
@@ -93,3 +111,4 @@ run `init` from this skill.
93
111
  tech sync is resolved.
94
112
  - Never put an archive-time tech-sync finding to the operator as a question;
95
113
  decide it from the bounded evidence, apply it, and report what was applied.
114
+ - Never push without explicit operator confirmation.
@@ -1,6 +1,6 @@
1
1
  ---
2
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.
3
+ description: Run the strict workflow end to end. Propose, implement, review (opening with the strict verify readiness gate), archive, and commit a strict YAML change without extra confirmation unless open questions block progress; never pushes.
4
4
  metadata:
5
5
  skill_id: strict_spec_auto
6
6
  author: strict-spec-driven
@@ -30,6 +30,7 @@ verify: strict-spec-cli verify <change-name>
30
30
  ready: strict-spec-cli ready <change-name>
31
31
  next: strict-spec-cli next <change-name>
32
32
  archive: strict-spec-cli archive <change-name>
33
+ ship: strict-spec-cli ship <change-name>
33
34
  ```
34
35
 
35
36
  ## Delegated Procedures
@@ -47,10 +48,12 @@ stops the run exactly as an inline one would.
47
48
  - delta-artifact-authoring: owned by `strict-spec-propose`
48
49
  - implementation-order: owned by `strict-spec-apply`
49
50
  - gitignore-hygiene: owned by `strict-spec-apply`
51
+ - review-readiness-gate: owned by `strict-spec-review`
50
52
  - review-independence: owned by `strict-spec-review`
51
53
  - lesson-outcome: owned by `strict-spec-review`
52
54
  - archive-tech-sync: owned by `strict-spec-archive`
53
55
  - archive-execution: owned by `strict-spec-archive`
56
+ - archive-commit: owned by `strict-spec-archive`
54
57
 
55
58
  ## CLI-Only YAML Authoring Protocol
56
59
 
@@ -117,14 +120,9 @@ run `init` from this skill.
117
120
  its `command` has run. Then follow the delegated gitignore-hygiene
118
121
  procedure. `next` reports deterministic state, never judgment.
119
122
 
120
- 5. **Verify** — run `verify <change-name>` and fix safe blockers until it
121
- passes. A scene coverage gap names the command that records the coverage;
122
- inspect the scene with `scene-status --scene <scene-id>`, record coverage
123
- that is real, and raise a missing requirement as a finding — a no-coverage
124
- reason written to clear the diagnostic is not a safe fix.
125
-
126
- 6. **Review** — follow the delegated review-independence procedure, including
127
- its fresh-context reviewer recommendation. The review must produce direct
123
+ 5. **Review** — pass the delegated review-readiness-gate procedure first, then
124
+ follow the delegated review-independence procedure, including its
125
+ fresh-context reviewer recommendation. The review must produce direct
128
126
  code review evidence — every changed implementation and test file read and
129
127
  the `strict-spec-review` checklist applied — never a `strict-spec-cli review`
130
128
  command or deterministic validation in its place. Fix safe in-scope
@@ -132,11 +130,11 @@ run `init` from this skill.
132
130
  an unsafe, ambiguous, or out-of-scope fix, or an unprovable MUST-strength
133
131
  item, stops the run before archive. Close with the non-blocking
134
132
  uncaptured-convention reflection, reporting each finding with the
135
- recommendation you derived rather than an operator choice, for step 7 to
133
+ recommendation you derived rather than an operator choice, for step 6 to
136
134
  apply before archive and never after; and with the delegated lesson-outcome
137
135
  procedure.
138
136
 
139
- 7. **Archive** — archive only with passing complete regression evidence for the
137
+ 6. **Archive** — archive only with passing complete regression evidence for the
140
138
  final state. The configured complete project regression command — the
141
139
  coverage gate when a coverage contract is declared — is blocking evidence,
142
140
  never advisory. A passing Testing task run that exactly matches it counts
@@ -145,9 +143,10 @@ run `init` from this skill.
145
143
  write is. When it cannot run, stop with actionable setup or waiting
146
144
  guidance. Then follow the delegated archive-tech-sync procedure, which
147
145
  applies the review's recommendation without pausing and must clear first,
148
- and the delegated archive-execution procedure. Summarize the result,
149
- including reconciled roadmap statuses, and recommend
150
- `/strict-spec-ship <change-name>` as an optional next step.
146
+ the delegated archive-execution procedure, and the delegated archive-commit
147
+ procedure, stopping before its push hand-off: never run `git push`.
148
+ Summarize the result, including reconciled roadmap statuses, the commit made
149
+ or the reason it was skipped, and the `git push` command for the operator.
151
150
 
152
151
  ## Rules
153
152
 
@@ -159,4 +158,5 @@ run `init` from this skill.
159
158
  - Archive requires, in order: a passing `verify`, direct code review evidence
160
159
  with no unprovable MUST-strength item, passing complete regression evidence
161
160
  for the final state, and a cleared technical-standard checkpoint.
162
- - Never commit or push automatically; the ship recommendation is advisory.
161
+ - Commit only through the delegated archive-commit procedure, and never push:
162
+ the push command is reported for the operator to run.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: strict-spec-design
3
- description: Author or refresh the strict YAML design-system artifact from repository and design evidence, then render the generated DESIGN.md through the strict design CLI.
3
+ description: Author, refresh, or synchronize the strict YAML design-system artifact from repository and design evidence, then render the generated DESIGN.md through the strict design CLI.
4
4
  metadata:
5
5
  skill_id: strict_spec_design
6
6
  author: strict-spec-driven
@@ -9,10 +9,10 @@ metadata:
9
9
  ---
10
10
 
11
11
  Author or refresh `.strict-spec-driven/design-system.yaml` from the interface's
12
- real visual identity and render `DESIGN.md` from it. The document is generated
13
- and never hand-edited; the CLI owns rendering, comparison, and validation. The
14
- artifact is optional: a project with no user interface has none, and `init`
15
- never scaffolds one.
12
+ real visual identity, bring it back in line when the interface code has drifted,
13
+ and render `DESIGN.md` from it. The document is generated and never hand-edited;
14
+ the CLI owns rendering, comparison, and validation. The artifact is optional: a
15
+ project with no user interface has none, and `init` never scaffolds one.
16
16
 
17
17
  ## This Skill's Commands
18
18
 
@@ -49,12 +49,17 @@ User interface work splits three ways, and this artifact owns only the first:
49
49
  guidance explaining the identity. Pixel fidelity stays in visual-regression
50
50
  snapshots the components reference by path, never inlined.
51
51
  - **Observable UI behavior** — what is shown, what is interactive, state
52
- changes, and loading, error, and empty conditions — belongs in a main spec.
52
+ changes, and loading, error, and empty conditions — belongs in a main spec:
53
+ route it to `strict-spec-specs`, or to `strict-spec-brainstorm` or
54
+ `strict-spec-propose` when it ships with code.
53
55
  - **UI engineering rules** — design-system usage, styling, accessibility, and
54
- internationalization — belong in a `ui`-category technical standard.
56
+ internationalization — belong in a `ui`-category technical standard through
57
+ `strict-spec-tech`.
55
58
 
56
59
  Declare only token groups and entries the project actually has; an undeclared
57
- group is omitted from the rendered document.
60
+ group is omitted from the rendered document. This skill edits the live artifact
61
+ directly and has no active-change mode: there is no delta-design artifact and
62
+ archive has no design-system merge path, so never invent one.
58
63
 
59
64
  ## Steps
60
65
 
@@ -64,30 +69,52 @@ Before any other step, run `strict-spec-cli check-workflow-state`. If
64
69
 
65
70
  1. **Read the current state** — run `design-status`; it exits non-zero when the
66
71
  artifact is absent, which is expected for a project with no interface.
67
- Fix reported mapping drift; never delete a mapping to silence it.
68
-
69
- 2. **Create the artifact when absent** — only once the project is confirmed to
70
- have a user interface, run `design-init` for a valid skeleton; it never
71
- overwrites an existing artifact.
72
-
73
- 3. **Gather evidence** — derive tokens and components from the stylesheets,
74
- theme files, component-library configuration, and UI source the interface
75
- actually uses, and run `tech-status` to read any `ui` standard.
76
- `schema-show design-system` and `sample-show design-system` render the shape.
77
-
78
- 4. **Write through `design-edit`** — one named upsert or exact removal at a
72
+ Fix reported mapping drift by correcting the path or removing the component
73
+ that no longer exists; never delete a mapping to silence it.
74
+
75
+ 2. **Choose the mode and scope** — the request decides:
76
+ - **author** when the artifact is absent or the user asks to author or
77
+ refresh it from the interface as a whole. Create a missing artifact with
78
+ `design-init` only once the project is confirmed to have a user interface;
79
+ it never overwrites an existing one.
80
+ - **sync** when the user asks whether the recorded identity still matches
81
+ the code, over the scope they gave — the whole interface, or one component
82
+ family, theme, or token group; otherwise ask which, and do not widen it.
83
+ `design-status` only catches mapped paths that no longer exist; judging
84
+ that a stylesheet value has diverged from a recorded token is this mode's
85
+ job. Sync needs an existing artifact: when it is absent, say so and switch
86
+ to author mode only with the user's agreement.
87
+
88
+ 3. **Gather evidence** — read the stylesheets, theme and token files,
89
+ component-library configuration, and consuming UI source in scope, and run
90
+ `tech-status` for any `ui` standard; `schema-show design-system` and
91
+ `sample-show design-system` render the shape. In sync mode, classify each
92
+ finding as a value recorded differently, a token or component missing from
93
+ the artifact, one recorded that the code no longer has, a mapped path that no
94
+ longer resolves, an inconsistency the team must decide, or a finding that
95
+ belongs elsewhere.
96
+
97
+ 4. **Confirm in sync mode** — present in chat the scope, each divergence with
98
+ its file reference and current versus recorded value, the inconsistencies,
99
+ the findings routed elsewhere, and the clean areas, naming for each proposed
100
+ edit the token or component id, the operation, and the exact value. Write
101
+ nothing until the user explicitly approves; a value the code uses
102
+ inconsistently is the user's decision, not a majority vote. In author mode,
103
+ ask the user whenever the identity is ambiguous.
104
+
105
+ 5. **Write through `design-edit`** — one named upsert or exact removal at a
79
106
  time; read `strict-spec-cli design-edit --help --json` for its arguments.
80
107
  Keep token and component ids stable, since components reference tokens by
81
108
  dotted path such as `colors.primary`, and keep authoring order, which is
82
109
  render order.
83
110
 
84
- 5. **Render and confirm** — run `design-generate`, then `design-status` and
111
+ 6. **Render and confirm** — run `design-generate`, then `design-status` and
85
112
  `design-generate --check`. Done when status is clean with no mapping drift
86
- and the check passes.
113
+ and the check passes; report what changed and any inconsistency left
114
+ unresolved.
87
115
 
88
- `design-generate --check` is the on-demand artifact-to-document drift gate
89
- (schedulable as the `generated-doc-check` maintenance check); drift between the
90
- artifact and the interface code is `strict-spec-design-sync`'s job.
116
+ `design-generate --check` is the on-demand artifact-to-document drift gate,
117
+ schedulable as the `generated-doc-check` maintenance check.
91
118
 
92
119
  ## Rules
93
120
 
@@ -95,5 +122,7 @@ artifact and the interface code is `strict-spec-design-sync`'s job.
95
122
  the source artifact and re-render.
96
123
  - Never edit `.strict-spec-driven/design-system.yaml` directly; use
97
124
  `design-edit`.
125
+ - Change no product code and write no report file or strict change.
98
126
  - Do not create an artifact for a project with no user interface, and do not
99
- invent tokens or components; ask the user when the identity is ambiguous.
127
+ invent tokens or components.
128
+ - Keep component links in mappings, not in guidance prose.
@@ -9,7 +9,7 @@ metadata:
9
9
  ---
10
10
 
11
11
  Turn the configured maintenance checks' findings into an auditable maintenance
12
- change that is worked, verified, and archived.
12
+ change that is worked, reviewed, and archived.
13
13
 
14
14
  ## This Skill's Commands
15
15
 
@@ -18,8 +18,6 @@ check-workflow-state: strict-spec-cli check-workflow-state
18
18
  run-maintenance: strict-spec-cli maintenance
19
19
  seed-maintenance-change: strict-spec-cli maintenance --seed
20
20
  list-changes: strict-spec-cli list
21
- verify-change: strict-spec-cli verify <change-name>
22
- archive-change: strict-spec-cli archive <change-name>
23
21
  retire-lesson: strict-spec-cli lesson-obsolete <lesson-id> --reason <text>
24
22
  ```
25
23
 
@@ -70,8 +68,9 @@ run `init` from this skill.
70
68
  rarely triggered lesson is not stale, and a wrongly retired one loses the
71
69
  failure context its promoted rule omits.
72
70
 
73
- 4. **Verify and archive** — once every task is complete, run `verify` until it
74
- passes, then `archive`.
71
+ 4. **Review and archive** — once every task is complete, follow
72
+ `strict-spec-review`, which opens with the `verify` readiness gate, then
73
+ `strict-spec-archive`.
75
74
 
76
75
  ## Rules
77
76
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: strict-spec-review
3
- description: Review the code quality of a completed strict YAML change through direct repository evidence, changed-file reading, and complete regression evidence.
3
+ description: Review a completed strict YAML change before archive. Opens with the strict verify readiness gate, then reviews code quality through direct repository evidence, changed-file reading, and complete regression evidence.
4
4
  metadata:
5
5
  skill_id: strict_spec_review
6
6
  author: strict-spec-driven
@@ -65,12 +65,13 @@ MUST-strength requirement is a MUST FIX finding that blocks the archive
65
65
  recommendation until a test or an explicit human decision resolves it; on any
66
66
  other item it is a non-blocking SHOULD FIX.
67
67
 
68
- **Fresh-context reviewer.** When the running harness provides one, hand steps
69
- 3 to 6 to a sub-agent started with a fresh context and briefed with the change
70
- name and this skill, never with how the change was implemented. It edits no
71
- file and returns the verdict table, its findings, and any convention candidate;
72
- the implementing agent resumes at step 7. This is a recommendation, not a
73
- requirement: otherwise review in the current context under the same stances.
68
+ **Fresh-context reviewer.** When the running harness provides one, once step
69
+ 2 passes, hand steps 3 to 6 to a sub-agent started with a fresh context and
70
+ briefed with the change name and this skill, never with how the change was
71
+ implemented. It edits no file and returns the verdict table, its findings, and
72
+ any convention candidate; the implementing agent resumes at step 7. This is a
73
+ recommendation, not a requirement: otherwise review in the current context
74
+ under the same stances.
74
75
 
75
76
  ## Steps
76
77
 
@@ -81,7 +82,15 @@ run `init` from this skill.
81
82
  1. **Select the change** — use the change the user named; otherwise `modify`
82
83
  without an argument lists the active ones.
83
84
 
84
- 2. **Confirm readiness** — `verify <change-name>` must pass first.
85
+ 2. **Pass the readiness gate** — run `verify <change-name>`; every diagnostic
86
+ is a blocker. Route each safe structural fix through `strict-spec-modify`
87
+ and rerun until it passes, without opening any implementation file. For a
88
+ scene coverage gap, inspect the scene with `scene-status --scene <scene-id>`
89
+ and record coverage that is real through the same route; a step needing a
90
+ requirement nobody wrote stops review as a finding, because a no-coverage
91
+ reason written to clear the diagnostic is not a safe fix. An unfinished task
92
+ or a non-empty `questions.yaml.open` is not review work: stop and route back
93
+ to `strict-spec-apply` or to the human. Done when `verify` passes.
85
94
 
86
95
  3. **Reconstruct the requirement** — stance one, from the planning artifacts,
87
96
  delta specs, delta scenes, and delta tech only. Done when the numbered
@@ -102,7 +111,12 @@ run `init` from this skill.
102
111
  maintainability and needless abstraction; user-visible CLI and docs;
103
112
  generated artifacts and packaging. A standard's MUST violation is MUST FIX
104
113
  and an unjustified SHOULD violation at least SHOULD FIX, unless `design.yaml`
105
- justifies the deviation. An unjustified or malformed delta-tech operation
114
+ justifies the deviation. A delta spec that disagrees with what was built
115
+ is MUST FIX: fix the code when the implementation is wrong, correct the
116
+ delta spec through `strict-spec-modify` when it is stale and scope is
117
+ unchanged, and stop for a human scope decision through `strict-spec-modify`
118
+ when scope would change. An unjustified or malformed
119
+ delta-tech operation
106
120
  (`schema-show delta-tech`) is MUST FIX. For each delta scene, run
107
121
  `scene-status --scene <scene-id>` and judge what `verify` cannot: whether a
108
122
  no-coverage reason is a real decision and a covering requirement truly
@@ -161,3 +175,5 @@ run `init` from this skill.
161
175
  guidance explaining why it is blocked.
162
176
  - Review from repository evidence, never from authorship; focus on real
163
177
  issues, not style churn handled elsewhere.
178
+ - A checked task is not proof by itself; the current YAML artifacts and
179
+ repository state are the source of truth.
@@ -0,0 +1,92 @@
1
+ ---
2
+ name: strict-spec-specs
3
+ description: Edit or synchronize the live strict YAML main specs through the CLI — record an intended requirement change, or scan repository behavior for drift — after user confirmation.
4
+ metadata:
5
+ skill_id: strict_spec_specs
6
+ author: strict-spec-driven
7
+ type: agent_skill
8
+ version: 1.0.0
9
+ ---
10
+
11
+ Keep the live main specs under `.strict-spec-driven/specs/` in line with the
12
+ behavior the project intends and the behavior the repository implements,
13
+ outside the change workflow. Behavior changes that ship with code belong in a
14
+ change's delta spec, not here.
15
+
16
+ ## This Skill's Commands
17
+
18
+ ```yaml
19
+ check-workflow-state: strict-spec-cli check-workflow-state
20
+ spec-edit: strict-spec-cli spec-edit <spec-id> [--spec-path <path>] --<named-args>
21
+ scene-status: strict-spec-cli scene-status [--area <area>] [--scene <scene-id>]
22
+ ```
23
+
24
+ ## CLI-Only YAML Authoring Protocol
25
+
26
+ This skill writes `spec-state`. Before its first mutation, run
27
+ `strict-spec-cli yaml-authoring-protocol <artifact-kind>` for each kind and
28
+ follow it, including its rule to stop and report a missing command rather than
29
+ work around it; validate the result with `strict-spec-cli check-workflow-state`.
30
+
31
+ ## Preferred Human Language
32
+
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.
36
+
37
+ ## Steps
38
+
39
+ Before any other step, run `strict-spec-cli check-workflow-state`. If `.strict-spec-driven/` is
40
+ missing, stop immediately and tell the user to run `/strict-spec-init`. Do not
41
+ run `init` from this skill.
42
+
43
+ 1. **Choose the mode and scope** — the request decides:
44
+ - **edit** when the user states the content to record — a requirement or
45
+ scenario to add, correct, or remove;
46
+ - **sync** when the user asks to find where the specs and the repository
47
+ disagree, over the scope they gave; otherwise ask whether to scan the
48
+ whole repository or a named directory, module, or feature area.
49
+
50
+ Ask only when the request fits neither.
51
+
52
+ 2. **Read the recorded specs** — read the spec index and every main spec the
53
+ request or scope touches. In sync mode, when the project records scenes, run
54
+ `scene-status` for the scope: a covered step names the requirement that
55
+ should describe it, which turns a drift question into a located comparison,
56
+ and a waived step is a recorded decision, not a coverage gap.
57
+
58
+ 3. **Decide what changes** —
59
+ - In edit mode, place the content in an existing spec that covers the
60
+ behavior; create a new spec, or a new category, only when none fits.
61
+ - In sync mode, compare the code, tests, and nearby docs in scope against the
62
+ specs, and classify each finding as behavior missing from the specs, a
63
+ requirement that is outdated or incomplete (including a scene step whose
64
+ covering requirement no longer matches the code), or an ambiguity that
65
+ needs a human decision.
66
+
67
+ Either way a requirement states observable behavior; internal implementation
68
+ detail is not a requirement, and an implementation rule belongs in a
69
+ technical standard through `strict-spec-tech`.
70
+
71
+ 4. **Confirm the exact edit** — show the user each spec file that changes and
72
+ the requirements and scenarios being added, modified (before and after), or
73
+ removed. In sync mode also present the scope analyzed, each finding with
74
+ file references, the ambiguities, and the clean areas. Write nothing until
75
+ the user explicitly approves.
76
+
77
+ 5. **Apply** — express each approved edit through `spec-edit` with stable ids
78
+ and only the named fields that change; read
79
+ `strict-spec-cli spec-edit --help --json` for creation, update, removal, and
80
+ whole-spec deletion arguments. Done when each result reports the spec and the
81
+ reconciled index and `check-workflow-state` passes.
82
+
83
+ 6. **Report** — summarize the files changed, what was added, modified, or
84
+ removed in each, and any finding left unresolved and why.
85
+
86
+ ## Rules
87
+
88
+ - Change no product code, create no strict change, write no report file, and do
89
+ not touch `.strict-spec-driven/changes/`.
90
+ - Prefer existing categories and files.
91
+ - Never edit main-spec or spec-index YAML directly; every mutation goes through
92
+ `spec-edit`.
@@ -1,16 +1,18 @@
1
1
  ---
2
- name: strict-tech-sync
3
- description: Scan repository implementation conventions and strict YAML technical standards for drift, then synchronize standalone standards or active-change delta tech after user confirmation.
2
+ name: strict-spec-tech
3
+ description: Edit or synchronize strict YAML technical standards through the CLI — record a stated engineering rule, scan the repository's conventions for drift, or capture a change's conventions as delta tech — after user confirmation.
4
4
  metadata:
5
- skill_id: strict_tech_sync
5
+ skill_id: strict_spec_tech
6
6
  author: strict-spec-driven
7
7
  type: agent_skill
8
8
  version: 1.0.0
9
9
  ---
10
10
 
11
- Reconcile the technical standards under `.strict-spec-driven/tech/` with the
12
- implementation conventions the repository actually follows: capture reusable
13
- conventions the standards lack, and correct rules the code contradicts.
11
+ Keep the technical standards under `.strict-spec-driven/tech/` in line with how
12
+ the code must be built and how it actually is. A main spec says what the system
13
+ does; a technical standard says how the code that implements it must be built —
14
+ technology choices, coding conventions, architecture rules, and security,
15
+ performance, or API baselines.
14
16
 
15
17
  ## This Skill's Commands
16
18
 
@@ -18,6 +20,7 @@ conventions the standards lack, and correct rules the code contradicts.
18
20
  check-workflow-state: strict-spec-cli check-workflow-state
19
21
  tech-status: strict-spec-cli tech-status
20
22
  tech-edit: strict-spec-cli tech-edit <standard-id> [--tech-path <path>] --<named-args>
23
+ schema-show: strict-spec-cli schema-show main-tech
21
24
  lesson-status: strict-spec-cli lesson-status [--category <category>]
22
25
  lesson-edit: strict-spec-cli lesson-edit <lesson-id> --promoted-standard <id> --promoted-rule <id>
23
26
  modify: strict-spec-cli modify [change-name|archive-dir]
@@ -45,56 +48,73 @@ Before any other step, run `strict-spec-cli check-workflow-state`. If `.strict-s
45
48
  missing, stop immediately and tell the user to run `/strict-spec-init`. Do not
46
49
  run `init` from this skill.
47
50
 
48
- 1. **Choose the mode and scope** — the two modes write to different places:
51
+ 1. **Choose the mode and scope** — the modes write to different places:
52
+ - **edit** when the user states the rule to add, correct, or remove in the
53
+ live standards.
54
+ - **standalone sync** of the live standards, over the scope the user gave or
55
+ the whole repository or a named area when asked.
49
56
  - **active-change sync** for a change still under
50
57
  `.strict-spec-driven/changes/` (`modify` without an argument lists them).
51
58
  Scope is that change only: its proposal, design, tasks, questions, delta
52
59
  specs, and delta tech, with attributable tracked and untracked files as
53
60
  supporting evidence. Surface ambiguous ownership instead of absorbing
54
61
  unrelated repository drift.
55
- - **standalone sync** of the live standards, over the scope the user gave or
56
- the whole repository or a named area when asked.
57
-
58
- 2. **Find the drift** — run `tech-status`, read the standards in scope, and run
59
- `lesson-status` per category in scope; a repeatedly recurring lesson is the
60
- strongest case for a binding rule. Then read the code, configuration, CI, and
61
- tests in scope and classify each finding: already covered, a consistent
62
- convention the standards lack, a rule the code contradicts or never enforces,
63
- an inconsistency needing a human decision, or a change-specific pattern that
64
- is not reusable.
65
62
 
66
- 3. **Report and confirm** — present the scope, findings with file references,
63
+ Ask only when the request fits none of them.
64
+
65
+ 2. **Read the recorded standards** — run `tech-status`, read the standards in
66
+ scope (`schema-show main-tech` renders the rule shape), and run
67
+ `lesson-status` per category in scope. A lesson with repeated occurrences is
68
+ the strongest evidence a binding rule is needed, and its observation supplies
69
+ the rationale; note it for linking.
70
+
71
+ 3. **Decide what changes** —
72
+ - In edit mode, place the rule in the existing standard that covers the
73
+ area; create a new standard only when none fits, and keep each standard to
74
+ one category.
75
+ - In either sync mode, read the code, configuration, CI, and tests in scope
76
+ and classify each finding: already covered, a consistent convention the
77
+ standards lack, a rule the code contradicts or never enforces, an
78
+ inconsistency needing a human decision, or a change-specific pattern that
79
+ is not reusable.
80
+
81
+ 4. **Report and confirm** — present the scope, findings with file references,
67
82
  inconsistencies, and clean areas in chat, stating for each proposed write the
68
83
  target standard, operation, stable rule id, strength, statement, rationale,
69
- and enforcement method.
70
- - Standalone, get operator confirmation before writing: proceed only when the
71
- operator explicitly approves the normative content and its strength; a
72
- convention becomes MUST only when the operator agrees it is mandatory.
84
+ and enforcement method. A rule without a rationale and an enforcement method
85
+ is preference, not a standard.
86
+ - In edit and standalone sync, write nothing until the operator explicitly
87
+ approves the normative content and its strength; a convention becomes MUST
88
+ only when the operator agrees it is mandatory.
73
89
  - When these steps run as the pre-archive checkpoint `strict-spec-archive`
74
90
  owns, that skill's rule replaces the confirmation: the decision follows the
75
91
  bounded evidence and is reported rather than put to the operator.
76
92
  - A pattern may be classified as not reusable, but a convention confirmed as
77
93
  reusable is never deferred until after its change is archived.
78
94
 
79
- 4. **Write the confirmed findings** — active-change mode writes delta tech under
80
- the selected change through `generate` and never edits a live standard;
81
- standalone mode writes through `tech-edit`. Read the owning command's
82
- `--help --json` for its arguments. Link each lesson a rule came from through
83
- `lesson-edit`; never delete a promoted lesson, the only record of the failure
84
- its rule omits.
95
+ 5. **Write the confirmed findings** — active-change sync writes delta tech under
96
+ the selected change through `generate` and never edits a live standard; edit
97
+ and standalone sync write through `tech-edit` with stable ids and only the
98
+ named fields that change. Read the owning command's `--help --json` for its
99
+ arguments. Link each lesson a rule came from through `lesson-edit`, which
100
+ marks it promoted.
85
101
 
86
- 5. **Re-check and report** — in active-change mode, run `verify` and review each
102
+ 6. **Re-check and report** — in active-change sync, run `verify` and review each
87
103
  delta-tech operation against its finding. Rerun the regression command only
88
104
  when this sync changed a file outside the carve-out: a write the configured
89
105
  regression command neither compiles nor reads — currently a change-local
90
106
  delta-tech artifact or a lesson — does not invalidate passing complete
91
- project regression evidence. Done when `tech-status` reads the
92
- standards back correctly; summarize what changed and what stays unresolved.
107
+ project regression evidence. Done when `tech-status` reads the standards back
108
+ correctly; summarize what changed and what stays unresolved.
93
109
 
94
110
  ## Rules
95
111
 
96
112
  - Change no product code, create no strict change, and write no report file.
97
113
  - Record the rule with its rationale and enforcement, not raw implementation
98
114
  detail.
99
- - Use `tech-edit` for live standards only in standalone mode.
115
+ - Use `tech-edit` for live standards only outside active-change sync; a
116
+ standard change that ships with a code change travels as delta tech inside
117
+ that change.
118
+ - Never delete a promoted lesson: the rule omits the failure that motivated it,
119
+ and the lesson is the only remaining record of that failure.
100
120
  - Never edit main-tech or tech-index YAML directly.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-plugin-strict-spec",
3
- "version": "0.6.0",
3
+ "version": "0.8.0",
4
4
  "description": "Strict workflow document viewer plugin for DeepSeek Harness",
5
5
  "type": "module",
6
6
  "main": "./dist/host.js",
@@ -1,97 +0,0 @@
1
- ---
2
- name: strict-spec-design-sync
3
- description: Scan user interface code and the strict YAML design-system artifact for drift, then synchronize the live artifact and re-render the generated design document after user confirmation.
4
- metadata:
5
- skill_id: strict_spec_design_sync
6
- author: strict-spec-driven
7
- type: agent_skill
8
- version: 1.0.0
9
- ---
10
-
11
- Bring `.strict-spec-driven/design-system.yaml` back in line with the visual
12
- identity the interface code implements, then re-render `DESIGN.md`.
13
- `design-status` only catches mapped paths that no longer exist; judging that a
14
- stylesheet value has diverged from a recorded token is this skill's job.
15
- Authoring the artifact from scratch belongs to `strict-spec-design`.
16
-
17
- ## This Skill's Commands
18
-
19
- ```yaml
20
- check-workflow-state: strict-spec-cli check-workflow-state
21
- design-status: strict-spec-cli design-status
22
- design-init: strict-spec-cli design-init
23
- design-edit: strict-spec-cli design-edit [named semantic fields or removals]
24
- design-generate: strict-spec-cli design-generate
25
- design-check: strict-spec-cli design-generate --check
26
- schema-show: strict-spec-cli schema-show design-system
27
- tech-status: strict-spec-cli tech-status
28
- ```
29
-
30
- ## CLI-Only YAML Authoring Protocol
31
-
32
- This skill writes `design-system-state`. Before its first mutation, run
33
- `strict-spec-cli yaml-authoring-protocol <artifact-kind>` for each kind and
34
- follow it, including its rule to stop and report a missing command rather than
35
- work around it; validate the result with `strict-spec-cli design-status`.
36
-
37
- ## Preferred Human Language
38
-
39
- Write user-facing and generated operator-facing text in the human language named
40
- by `preferred_human_language` in `.strict-spec-driven/config.yaml`, including
41
- generated design prose, unless the active user message asks otherwise.
42
-
43
- ## Scope of This Skill
44
-
45
- This skill edits the live artifact directly and has no active-change mode:
46
- there is no delta-design artifact and archive has no design-system merge path,
47
- so never invent one. Drift that is really observable UI behavior belongs in a
48
- main spec — route it to `strict-spec-brainstorm` or `strict-spec-propose`.
49
- Drift that is really a UI engineering rule belongs in a `ui`-category standard —
50
- route it to `strict-tech-sync` or `strict-tech-edit`.
51
-
52
- ## Steps
53
-
54
- Before any other step, run `strict-spec-cli check-workflow-state`. If
55
- `.strict-spec-driven/` is missing, stop immediately and tell the user to run
56
- `/strict-spec-init`. Do not run `init` from this skill.
57
-
58
- 1. **Read the recorded identity** — run `design-status`. When the artifact is
59
- absent there is nothing to synchronize: say the project either has no
60
- interface or needs `design-init` and `strict-spec-design` first, and stop.
61
-
62
- 2. **Choose the scan scope** — use the scope the user gave; otherwise ask
63
- whether to scan the whole interface or one component family, theme, or token
64
- group. Do not widen it.
65
-
66
- 3. **Find the drift** — read the stylesheets, theme and token files,
67
- component-library configuration, and consuming UI source in scope, and run
68
- `tech-status` for any `ui` standard; `schema-show design-system` renders the
69
- shape. Classify each finding as a value recorded differently, a token or
70
- component missing from the artifact, one recorded that the code no longer
71
- has, a mapped path that no longer resolves, an inconsistency the team must
72
- decide, or a finding that belongs elsewhere.
73
-
74
- 4. **Report and confirm** — present in chat the scope, each divergence with its
75
- file reference and current versus recorded value, the inconsistencies, the
76
- findings routed elsewhere, and the clean areas. For each proposed edit, name
77
- the token or component id, the operation, and the exact value. Write nothing
78
- until the user explicitly approves; a value the code uses inconsistently is
79
- the user's decision, not a majority vote.
80
-
81
- 5. **Write through `design-edit`** — one named upsert or exact removal per
82
- approved finding; read `strict-spec-cli design-edit --help --json` for its
83
- arguments. Keep ids stable and authoring order intact, reference tokens by
84
- dotted path, and fix mapping drift by correcting the path or removing the
85
- component that no longer exists.
86
-
87
- 6. **Re-render and confirm** — run `design-generate`, then `design-status` and
88
- `design-generate --check`. Done when status is clean and the check passes;
89
- report what changed and any inconsistency left unresolved.
90
-
91
- ## Rules
92
-
93
- - Change no product code; write no report file, strict change, or new
94
- design-system artifact.
95
- - Never hand-edit `DESIGN.md` or edit `.strict-spec-driven/design-system.yaml`
96
- directly; use `design-edit` and re-render.
97
- - Keep component links in mappings, not in guidance prose.
@@ -1,59 +0,0 @@
1
- ---
2
- name: strict-spec-ship
3
- description: Ship an archived strict YAML change. Verifies the archived change, snapshots roadmap state, constructs a focused git commit message, and hands off git push to the operator.
4
- metadata:
5
- skill_id: strict_spec_ship
6
- author: strict-spec-driven
7
- type: agent_skill
8
- version: 1.0.0
9
- ---
10
-
11
- Ship an archived strict change as one focused git commit, and leave the push to
12
- the operator. The change must already be archived under
13
- `.strict-spec-driven/changes/archive/`, the only ship source; run
14
- `strict-spec-archive` first when it is not.
15
-
16
- ## This Skill's Commands
17
-
18
- ```yaml
19
- check-workflow-state: strict-spec-cli check-workflow-state
20
- ship: strict-spec-cli ship <change-name>
21
- ```
22
-
23
- ## Preferred Human Language
24
-
25
- Write user-facing and generated operator-facing text in the human language named
26
- by `preferred_human_language` in `.strict-spec-driven/config.yaml`, unless the
27
- active user message asks otherwise.
28
-
29
- ## Steps
30
-
31
- Before any other step, run `strict-spec-cli check-workflow-state`. If `.strict-spec-driven/` is
32
- missing, stop immediately and tell the user to run `/strict-spec-init`. Do not
33
- run `init` from this skill.
34
-
35
- 1. **Collect the ship record** — run `ship <change-name>`; it resolves the
36
- archived change, reads its proposal summary, and snapshots roadmap state as
37
- structured output (`strict-spec-cli ship --help --json` describes it). Stop
38
- when it exits non-zero.
39
-
40
- 2. **Build the commit message from that output** — a conventional title under
41
- 72 characters naming the change: `feat:` by default, or `fix:`, `chore:`,
42
- or `docs:` when the proposal summary clearly says so. Add a short body line
43
- only when the summary adds context the title lacks.
44
-
45
- 3. **Stage only this change** — read `git status` and confirm the changes
46
- correspond to the archived change; stop when unrelated work in progress is
47
- present. Stage the implementation, test, skill, spec, and workflow files
48
- that belong to the change, and nothing else.
49
-
50
- 4. **Commit** — run `git commit` with the constructed message.
51
-
52
- 5. **Hand off the push** — show the operator the `git push` command and run it
53
- only after explicit confirmation.
54
-
55
- ## Rules
56
-
57
- - Never push without explicit operator confirmation.
58
- - The `ship` output is the source for the change name and summary.
59
- - Do not rerun verify or archive; both are already done.
@@ -1,68 +0,0 @@
1
- ---
2
- name: strict-spec-spec-edit
3
- description: Create or modify individual strict YAML main spec files through the CLI for lightweight spec corrections.
4
- metadata:
5
- skill_id: strict_spec_spec_edit
6
- author: strict-spec-driven
7
- type: agent_skill
8
- version: 1.0.0
9
- ---
10
-
11
- Make a lightweight, intent-driven edit to the live main specs under
12
- `.strict-spec-driven/specs/` outside the change workflow. Drift found by
13
- scanning the repository belongs to `strict-spec-sync-specs`; behavior changes
14
- that ship with code belong in a change's delta spec.
15
-
16
- ## This Skill's Commands
17
-
18
- ```yaml
19
- check-workflow-state: strict-spec-cli check-workflow-state
20
- spec-edit: strict-spec-cli spec-edit <spec-id> [--spec-path <path>] --<named-args>
21
- ```
22
-
23
- ## CLI-Only YAML Authoring Protocol
24
-
25
- This skill writes `spec-state`. Before its first mutation, run
26
- `strict-spec-cli yaml-authoring-protocol <artifact-kind>` for each kind and
27
- follow it, including its rule to stop and report a missing command rather than
28
- work around it; validate the result with `strict-spec-cli check-workflow-state`.
29
-
30
- ## Preferred Human Language
31
-
32
- Write user-facing and generated operator-facing text in the human language named
33
- by `preferred_human_language` in `.strict-spec-driven/config.yaml`, unless the
34
- active user message asks otherwise.
35
-
36
- ## Steps
37
-
38
- Before any other step, run `strict-spec-cli check-workflow-state`. If `.strict-spec-driven/` is
39
- missing, stop immediately and tell the user to run `/strict-spec-init`. Do not
40
- run `init` from this skill.
41
-
42
- 1. **Read the recorded specs** — read the spec index and every main spec the
43
- request touches.
44
-
45
- 2. **Place the content** — put it in an existing spec that covers the behavior;
46
- create a new spec, or a new category, only when none fits. A requirement
47
- states observable behavior; an implementation rule belongs in a technical
48
- standard through `strict-tech-edit`.
49
-
50
- 3. **Confirm the exact edit** — show the user each spec file that changes and
51
- the requirements and scenarios being added, modified (before and after), or
52
- removed. Write nothing until the user explicitly approves.
53
-
54
- 4. **Apply** — express each approved edit through `spec-edit` with stable ids
55
- and only the named fields that change; read
56
- `strict-spec-cli spec-edit --help --json` for creation, update, removal, and
57
- whole-spec deletion arguments. Done when each result reports the spec and the
58
- reconciled index and `check-workflow-state` passes.
59
-
60
- 5. **Summarize** — report the files changed and what was added, modified, or
61
- removed.
62
-
63
- ## Rules
64
-
65
- - Change no product code and do not touch `.strict-spec-driven/changes/`.
66
- - Prefer existing categories and files.
67
- - Never edit main-spec or spec-index YAML directly; every mutation goes through
68
- `spec-edit`.
@@ -1,78 +0,0 @@
1
- ---
2
- name: strict-spec-sync-specs
3
- description: Scan repository behavior and strict YAML specs for drift, then synchronize strict specs through the CLI after user confirmation.
4
- metadata:
5
- skill_id: strict_spec_sync_specs
6
- author: strict-spec-driven
7
- type: agent_skill
8
- version: 1.0.0
9
- ---
10
-
11
- Bring the live main specs under `.strict-spec-driven/specs/` back in line with
12
- observable behavior the repository already implements. This skill owns
13
- repository-drift synchronization; intent edits belong to
14
- `strict-spec-spec-edit`.
15
-
16
- ## This Skill's Commands
17
-
18
- ```yaml
19
- check-workflow-state: strict-spec-cli check-workflow-state
20
- spec-edit: strict-spec-cli spec-edit <spec-id> [--spec-path <path>] --<named-args>
21
- scene-status: strict-spec-cli scene-status [--area <area>] [--scene <scene-id>]
22
- ```
23
-
24
- ## CLI-Only YAML Authoring Protocol
25
-
26
- This skill writes `spec-state`. Before its first mutation, run
27
- `strict-spec-cli yaml-authoring-protocol <artifact-kind>` for each kind and
28
- follow it, including its rule to stop and report a missing command rather than
29
- work around it; validate the result with `strict-spec-cli check-workflow-state`.
30
-
31
- ## Preferred Human Language
32
-
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.
36
-
37
- ## Steps
38
-
39
- Before any other step, run `strict-spec-cli check-workflow-state`. If `.strict-spec-driven/` is
40
- missing, stop immediately and tell the user to run `/strict-spec-init`. Do not
41
- run `init` from this skill.
42
-
43
- 1. **Choose the scan scope** — use the scope the user gave; otherwise ask
44
- whether to scan the whole repository or a named directory, module, or
45
- feature area.
46
-
47
- 2. **Read the recorded specs first** — read the spec index and every main spec
48
- relevant to the scope. When the project records scenes, run `scene-status`
49
- for the scope: a covered step names the requirement that should describe it,
50
- which turns a drift question into a located comparison, and a waived step is
51
- a recorded decision, not a coverage gap.
52
-
53
- 3. **Find the drift** — compare the code, tests, and nearby docs in scope
54
- against the specs. Classify each finding as behavior missing from the specs,
55
- a requirement that is outdated or incomplete (including a scene step whose
56
- covering requirement no longer matches the code), or an ambiguity that needs
57
- a human decision. Only observable behavior counts; internal implementation
58
- detail is not a requirement.
59
-
60
- 4. **Report and confirm** — present in chat the scope analyzed, each finding
61
- with file references, the ambiguities, and the clean areas, plus every spec
62
- file to be added, modified, or removed. Write nothing until the user
63
- explicitly approves.
64
-
65
- 5. **Synchronize** — apply each approved finding through `spec-edit` with the
66
- stable spec id and only the named fields that change; read
67
- `strict-spec-cli spec-edit --help --json` for creation, update, and removal
68
- arguments. Done when every mutation reports the reconciled spec index and
69
- `check-workflow-state` passes.
70
-
71
- 6. **Report** — summarize the files changed, the drift fixed in each, and any
72
- finding left unresolved and why.
73
-
74
- ## Rules
75
-
76
- - Change no product code, create no strict change, and write no report file.
77
- - Never edit main-spec or spec-index YAML directly; every mutation goes through
78
- `spec-edit`.
@@ -1,64 +0,0 @@
1
- ---
2
- name: strict-spec-verify
3
- description: Verify a strict YAML change before archive. Checks strict artifact structure, task completion, open questions, and unchanged behavior.
4
- metadata:
5
- skill_id: strict_spec_verify
6
- author: strict-spec-driven
7
- type: agent_skill
8
- version: 1.0.0
9
- ---
10
-
11
- Establish, from repository evidence rather than checked boxes, that an
12
- implemented strict change is complete and consistent enough to review.
13
-
14
- ## This Skill's Commands
15
-
16
- ```yaml
17
- check-workflow-state: strict-spec-cli check-workflow-state
18
- modify: strict-spec-cli modify [change-name|archive-dir]
19
- verify: strict-spec-cli verify <change-name>
20
- ```
21
-
22
- ## Preferred Human Language
23
-
24
- Write user-facing and generated operator-facing text in the human language named
25
- by `preferred_human_language` in `.strict-spec-driven/config.yaml`, unless the
26
- active user message asks otherwise.
27
-
28
- ## Steps
29
-
30
- Before any other step, run `strict-spec-cli check-workflow-state`. If `.strict-spec-driven/` is
31
- missing, stop immediately and tell the user to run `/strict-spec-init`. Do not
32
- run `init` from this skill.
33
-
34
- 1. **Select the change** — use the change the user named; otherwise `modify`
35
- without an argument lists the active ones.
36
-
37
- 2. **Run strict verification** — run `verify <change-name>`; every diagnostic
38
- it returns is a blocker until resolved. A scene coverage gap is a finding to
39
- resolve, not something to waive.
40
-
41
- 3. **Check the evidence behind the tasks** — read the change's planning
42
- artifacts and delta specs, the relevant main specs, and the implementation
43
- and test files the change touches, and confirm the repository matches every
44
- completed task. Blockers: an unfinished task, a non-empty
45
- `questions.yaml.open`, a delta spec that does not describe what was built,
46
- and any regression of a `proposal.yaml.unchanged_behavior` item.
47
-
48
- 4. **Honor the declared coverage contract** — when the workflow config declares
49
- one under `review_evidence.project_regression.coverage`, the configured
50
- regression command enforces it through its exit code. The coverage contract
51
- is blocking evidence, never advisory: a coverage failure blocks exactly like
52
- a failing test. Never measure coverage yourself or second-guess the
53
- threshold.
54
-
55
- 5. **Fix safe blockers** — fix what is clearly fixable within the change's
56
- scope and rerun `verify`; done when it passes and no blocker remains.
57
-
58
- 6. **Report** — give a tiered summary of blockers, warnings, and optional
59
- suggestions, and recommend `strict-spec-review` when the change is clean.
60
-
61
- ## Rules
62
-
63
- - Be honest: a checked task is not proof by itself, and the current YAML
64
- artifacts and repository state are the source of truth.
@@ -1,80 +0,0 @@
1
- ---
2
- name: strict-tech-edit
3
- description: Create or modify individual strict YAML technical standard files through the CLI for lightweight engineering-standard corrections.
4
- metadata:
5
- skill_id: strict_tech_edit
6
- author: strict-spec-driven
7
- type: agent_skill
8
- version: 1.0.0
9
- ---
10
-
11
- Make a lightweight, standalone edit to the live technical standards under
12
- `.strict-spec-driven/tech/`. A main spec says what the system does; a technical
13
- standard says how the code that implements it must be built — technology
14
- choices, coding conventions, architecture rules, and security, performance, or
15
- API baselines. A standard change that ships with a code change is not edited
16
- here: it travels as delta tech inside that change through `strict-spec-propose`
17
- and `strict-spec-apply`.
18
-
19
- ## This Skill's Commands
20
-
21
- ```yaml
22
- check-workflow-state: strict-spec-cli check-workflow-state
23
- tech-edit: strict-spec-cli tech-edit <standard-id> [--tech-path <path>] --<named-args>
24
- tech-status: strict-spec-cli tech-status
25
- lesson-status: strict-spec-cli lesson-status [--category <category>]
26
- lesson-edit: strict-spec-cli lesson-edit <lesson-id> --promoted-standard <id> --promoted-rule <id>
27
- schema-show: strict-spec-cli schema-show main-tech
28
- ```
29
-
30
- ## CLI-Only YAML Authoring Protocol
31
-
32
- This skill writes `tech-state`. Before its first mutation, run
33
- `strict-spec-cli yaml-authoring-protocol <artifact-kind>` for each kind and
34
- follow it, including its rule to stop and report a missing command rather than
35
- work around it; validate the result with `strict-spec-cli tech-status`.
36
-
37
- ## Preferred Human Language
38
-
39
- Write user-facing and generated operator-facing text in the human language named
40
- by `preferred_human_language` in `.strict-spec-driven/config.yaml`, unless the
41
- active user message asks otherwise.
42
-
43
- ## Steps
44
-
45
- Before any other step, run `strict-spec-cli check-workflow-state`. If `.strict-spec-driven/` is
46
- missing, stop immediately and tell the user to run `/strict-spec-init`. Do not
47
- run `init` from this skill.
48
-
49
- 1. **Read the recorded standards** — run `tech-status` and read the standards
50
- the request touches; `schema-show main-tech` renders the rule shape.
51
-
52
- 2. **Check for a lesson behind the rule** — run `lesson-status` for the target
53
- category. A lesson with repeated occurrences is the strongest evidence a rule
54
- is needed, and its observation supplies the rationale; note it for linking.
55
-
56
- 3. **Place the rule** — use the existing standard that covers the area; create
57
- a new standard only when none fits, and keep each standard to one category.
58
-
59
- 4. **Confirm the exact edit** — show the user each standard that changes and
60
- every rule added, modified, or removed, with its strength, statement,
61
- rationale, and enforcement. A rule without a rationale and an enforcement
62
- method is preference, not a standard. Write nothing until the user
63
- explicitly approves.
64
-
65
- 5. **Apply** — express each approved edit through `tech-edit` with stable ids
66
- and only the named fields that change; read
67
- `strict-spec-cli tech-edit --help --json` for its arguments. Then link each
68
- originating lesson through `lesson-edit`, which marks it promoted.
69
-
70
- 6. **Validate and summarize** — done when each result reports the reconciled
71
- tech index and `tech-status` reads the standards back correctly; report what
72
- changed.
73
-
74
- ## Rules
75
-
76
- - Change no product code and do not touch `.strict-spec-driven/changes/`.
77
- - Never delete a promoted lesson: the rule omits the failure that motivated it,
78
- and the lesson is the only remaining record of that failure.
79
- - Never edit main-tech or tech-index YAML directly; every mutation goes through
80
- `tech-edit`.