dsh-plugin-strict-spec 0.7.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 +1 -1
- package/README.zh.md +1 -1
- package/dist/cli/strict-spec-cli.js +10 -41
- package/dist/skills/strict-spec-archive/SKILL.md +25 -6
- package/dist/skills/strict-spec-auto/SKILL.md +9 -5
- package/dist/skills/strict-spec-design/SKILL.md +55 -26
- package/dist/skills/strict-spec-maintenance/SKILL.md +4 -5
- package/dist/skills/strict-spec-specs/SKILL.md +92 -0
- package/dist/skills/{strict-tech-sync → strict-spec-tech}/SKILL.md +52 -32
- package/package.json +1 -1
- package/dist/skills/strict-spec-design-sync/SKILL.md +0 -97
- package/dist/skills/strict-spec-ship/SKILL.md +0 -59
- package/dist/skills/strict-spec-spec-edit/SKILL.md +0 -68
- package/dist/skills/strict-spec-sync-specs/SKILL.md +0 -78
- package/dist/skills/strict-tech-edit/SKILL.md +0 -80
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.
|
|
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.
|
|
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,21 +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
|
-
mechanism: agent-guidance
|
|
11879
|
-
classification: read-only
|
|
11880
|
-
operations:
|
|
11881
|
-
- read
|
|
11882
|
-
families:
|
|
11883
|
-
- spec-state
|
|
11884
|
-
- tech-state
|
|
11885
|
-
- change-planning-state
|
|
11886
|
-
- change-delta-state
|
|
11887
|
-
- roadmap-state
|
|
11888
|
-
evidence:
|
|
11889
|
-
- skills/strict-spec-ship/SKILL.md
|
|
11890
11872
|
generated-document-guidance:
|
|
11891
11873
|
path_patterns:
|
|
11892
11874
|
- ARCHITECTURE.md
|
|
@@ -34710,6 +34692,10 @@ var DELEGABLE_OBLIGATIONS = {
|
|
|
34710
34692
|
"archive-execution": {
|
|
34711
34693
|
element: "the archive execution procedure",
|
|
34712
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"
|
|
34713
34699
|
}
|
|
34714
34700
|
};
|
|
34715
34701
|
function parseDelegations(content) {
|
|
@@ -34779,6 +34765,7 @@ var CORE_STRICT_SKILL_EXPECTATIONS = {
|
|
|
34779
34765
|
modify: `${COMMAND_PREFIX} modify [change-name|archive-dir]`,
|
|
34780
34766
|
verify: `${COMMAND_PREFIX} verify <change-name>`,
|
|
34781
34767
|
archive: `${COMMAND_PREFIX} archive <change-name>`,
|
|
34768
|
+
ship: `${COMMAND_PREFIX} ship <change-name>`,
|
|
34782
34769
|
"scene-status": SCENE_STATUS_COMMAND
|
|
34783
34770
|
},
|
|
34784
34771
|
requiredHeadings: ["## Steps", "## Rules"]
|
|
@@ -34810,34 +34797,22 @@ var CORE_STRICT_SKILL_EXPECTATIONS = {
|
|
|
34810
34797
|
},
|
|
34811
34798
|
requiredHeadings: ["## Steps", "## Rules"]
|
|
34812
34799
|
},
|
|
34813
|
-
"strict-tech
|
|
34800
|
+
"strict-spec-tech": {
|
|
34814
34801
|
requiredCommands: {
|
|
34815
34802
|
modify: `${COMMAND_PREFIX} modify [change-name|archive-dir]`,
|
|
34816
34803
|
generate: `${COMMAND_PREFIX} generate <change-name> delta-tech --<named-args>`,
|
|
34817
34804
|
"tech-edit": `${COMMAND_PREFIX} tech-edit <standard-id> [--tech-path <path>] --<named-args>`,
|
|
34805
|
+
"tech-status": `${COMMAND_PREFIX} tech-status`,
|
|
34818
34806
|
verify: `${COMMAND_PREFIX} verify <change-name>`
|
|
34819
34807
|
},
|
|
34820
34808
|
requiredHeadings: ["## Steps", "## Rules"]
|
|
34821
34809
|
},
|
|
34822
|
-
"strict-tech-edit": {
|
|
34823
|
-
requiredCommands: {
|
|
34824
|
-
"tech-edit": `${COMMAND_PREFIX} tech-edit <standard-id> [--tech-path <path>] --<named-args>`,
|
|
34825
|
-
"tech-status": `${COMMAND_PREFIX} tech-status`
|
|
34826
|
-
},
|
|
34827
|
-
requiredHeadings: ["## Steps", "## Rules"]
|
|
34828
|
-
},
|
|
34829
34810
|
"strict-spec-modify": {
|
|
34830
34811
|
requiredCommands: {
|
|
34831
34812
|
modify: `${COMMAND_PREFIX} modify [change-name|archive-dir]`,
|
|
34832
34813
|
verify: `${COMMAND_PREFIX} verify <change-name>`
|
|
34833
34814
|
},
|
|
34834
34815
|
requiredHeadings: ["## Steps", "## Rules"]
|
|
34835
|
-
},
|
|
34836
|
-
"strict-spec-ship": {
|
|
34837
|
-
requiredCommands: {
|
|
34838
|
-
ship: `${COMMAND_PREFIX} ship <change-name>`
|
|
34839
|
-
},
|
|
34840
|
-
requiredHeadings: ["## Steps", "## Rules"]
|
|
34841
34816
|
}
|
|
34842
34817
|
};
|
|
34843
34818
|
var ROADMAP_STRICT_SKILL_EXPECTATIONS = {
|
|
@@ -34907,13 +34882,7 @@ var PLANNING_STRICT_SKILL_EXPECTATIONS = {
|
|
|
34907
34882
|
},
|
|
34908
34883
|
requiredHeadings: ["## Steps", "## Rules"]
|
|
34909
34884
|
},
|
|
34910
|
-
"strict-spec-
|
|
34911
|
-
requiredCommands: {
|
|
34912
|
-
"spec-edit": `${COMMAND_PREFIX} spec-edit <spec-id> [--spec-path <path>] --<named-args>`
|
|
34913
|
-
},
|
|
34914
|
-
requiredHeadings: ["## Steps", "## Rules"]
|
|
34915
|
-
},
|
|
34916
|
-
"strict-spec-sync-specs": {
|
|
34885
|
+
"strict-spec-specs": {
|
|
34917
34886
|
requiredCommands: {
|
|
34918
34887
|
"spec-edit": `${COMMAND_PREFIX} spec-edit <spec-id> [--spec-path <path>] --<named-args>`,
|
|
34919
34888
|
"scene-status": SCENE_STATUS_COMMAND
|
|
@@ -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
|
|
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. **
|
|
87
|
-
|
|
88
|
-
|
|
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, review (opening with the strict verify readiness gate), and
|
|
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
|
|
@@ -52,6 +53,7 @@ stops the run exactly as an inline one would.
|
|
|
52
53
|
- lesson-outcome: owned by `strict-spec-review`
|
|
53
54
|
- archive-tech-sync: owned by `strict-spec-archive`
|
|
54
55
|
- archive-execution: owned by `strict-spec-archive`
|
|
56
|
+
- archive-commit: owned by `strict-spec-archive`
|
|
55
57
|
|
|
56
58
|
## CLI-Only YAML Authoring Protocol
|
|
57
59
|
|
|
@@ -141,9 +143,10 @@ run `init` from this skill.
|
|
|
141
143
|
write is. When it cannot run, stop with actionable setup or waiting
|
|
142
144
|
guidance. Then follow the delegated archive-tech-sync procedure, which
|
|
143
145
|
applies the review's recommendation without pausing and must clear first,
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
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.
|
|
147
150
|
|
|
148
151
|
## Rules
|
|
149
152
|
|
|
@@ -155,4 +158,5 @@ run `init` from this skill.
|
|
|
155
158
|
- Archive requires, in order: a passing `verify`, direct code review evidence
|
|
156
159
|
with no unprovable MUST-strength item, passing complete regression evidence
|
|
157
160
|
for the final state, and a cleared technical-standard checkpoint.
|
|
158
|
-
-
|
|
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
|
|
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
|
|
13
|
-
and
|
|
14
|
-
|
|
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
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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,
|
|
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. **
|
|
74
|
-
|
|
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
|
|
|
@@ -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
|
|
3
|
-
description:
|
|
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:
|
|
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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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
|
-
|
|
80
|
-
the selected change through `generate` and never edits a live standard;
|
|
81
|
-
standalone
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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,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,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`.
|