dsh-plugin-strict-spec 0.0.0-stage → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +236 -2
- package/README.zh.md +191 -0
- package/cordis.patch.yml +5 -0
- package/dist/cli/strict-spec-cli.js +38892 -0
- package/dist/client.js +50 -0
- package/dist/host.js +154 -0
- package/dist/skills/strict-roadmap-plan/SKILL.md +176 -0
- package/dist/skills/strict-roadmap-recommend/SKILL.md +321 -0
- package/dist/skills/strict-roadmap-reorder/SKILL.md +194 -0
- package/dist/skills/strict-roadmap-review/SKILL.md +180 -0
- package/dist/skills/strict-roadmap-transition/SKILL.md +323 -0
- package/dist/skills/strict-scene-edit/SKILL.md +156 -0
- package/dist/skills/strict-spec-apply/SKILL.md +212 -0
- package/dist/skills/strict-spec-architecture/SKILL.md +143 -0
- package/dist/skills/strict-spec-archive/SKILL.md +165 -0
- package/dist/skills/strict-spec-auto/SKILL.md +334 -0
- package/dist/skills/strict-spec-brainstorm/SKILL.md +228 -0
- package/dist/skills/strict-spec-bugfix/SKILL.md +285 -0
- package/dist/skills/strict-spec-design/SKILL.md +168 -0
- package/dist/skills/strict-spec-design-sync/SKILL.md +165 -0
- package/dist/skills/strict-spec-init/SKILL.md +123 -0
- package/dist/skills/strict-spec-maintenance/SKILL.md +130 -0
- package/dist/skills/strict-spec-modify/SKILL.md +148 -0
- package/dist/skills/strict-spec-propose/SKILL.md +553 -0
- package/dist/skills/strict-spec-review/SKILL.md +315 -0
- package/dist/skills/strict-spec-ship/SKILL.md +94 -0
- package/dist/skills/strict-spec-spec-edit/SKILL.md +117 -0
- package/dist/skills/strict-spec-sync-specs/SKILL.md +128 -0
- package/dist/skills/strict-spec-verify/SKILL.md +79 -0
- package/dist/skills/strict-tech-edit/SKILL.md +161 -0
- package/dist/skills/strict-tech-sync/SKILL.md +202 -0
- package/package.json +109 -4
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
You are helping the user verify a strict YAML change before archive.
|
|
12
|
+
|
|
13
|
+
## This Skill's Commands
|
|
14
|
+
|
|
15
|
+
If you cannot remember the exact command used by this skill, look it up here
|
|
16
|
+
before running anything. Do not guess.
|
|
17
|
+
|
|
18
|
+
```yaml
|
|
19
|
+
check-workflow-state: strict-spec-cli check-workflow-state
|
|
20
|
+
modify: strict-spec-cli modify [change-name|archive-dir]
|
|
21
|
+
verify: strict-spec-cli verify <change-name>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Preferred Human Language
|
|
25
|
+
|
|
26
|
+
Comply with `preferred_human_language` from `.strict-spec-driven/config.yaml` —
|
|
27
|
+
the user's common human language, not a programming language — for all
|
|
28
|
+
user-facing and generated operator-facing text, unless that file is absent or
|
|
29
|
+
the active user message asks otherwise.
|
|
30
|
+
|
|
31
|
+
## Steps
|
|
32
|
+
|
|
33
|
+
Before any other step, run `strict-spec-cli check-workflow-state`. If `.strict-spec-driven/` is
|
|
34
|
+
missing, stop immediately and tell the user to run `/strict-spec-init`. Do not
|
|
35
|
+
run `init` from this skill.
|
|
36
|
+
|
|
37
|
+
1. **Select the change** — run `modify` without an argument to list active
|
|
38
|
+
changes. If the change is already specified, use it.
|
|
39
|
+
|
|
40
|
+
2. **Run strict verification first** — run:
|
|
41
|
+
```bash
|
|
42
|
+
strict-spec-cli verify <change-name>
|
|
43
|
+
```
|
|
44
|
+
Treat the returned diagnostics as lifecycle blockers until resolved.
|
|
45
|
+
|
|
46
|
+
3. **Read the current change artifacts** — inspect:
|
|
47
|
+
- `proposal.yaml`
|
|
48
|
+
- `design.yaml`
|
|
49
|
+
- `tasks.yaml`
|
|
50
|
+
- `questions.yaml`
|
|
51
|
+
- strict YAML delta specs under `changes/<name>/specs/`
|
|
52
|
+
- relevant strict YAML main specs and the implementation and test files the
|
|
53
|
+
change touches
|
|
54
|
+
|
|
55
|
+
4. **Check completion evidence** — confirm the repository state matches every
|
|
56
|
+
completed task.
|
|
57
|
+
- unfinished work in `tasks.yaml` is a blocker
|
|
58
|
+
- non-empty `questions.yaml.open` is a blocker
|
|
59
|
+
- delta specs must match what was implemented
|
|
60
|
+
- when the workflow config declares a coverage contract under
|
|
61
|
+
`review_evidence.project_regression.coverage`, the configured regression
|
|
62
|
+
command enforces it through its exit code: a coverage failure is a blocker
|
|
63
|
+
exactly like failing tests, never advisory output, and verification never
|
|
64
|
+
measures coverage itself or second-guesses the declared threshold
|
|
65
|
+
|
|
66
|
+
5. **Check unchanged behavior** — compare the implementation against
|
|
67
|
+
`proposal.yaml.unchanged_behavior` and treat regressions as blockers.
|
|
68
|
+
|
|
69
|
+
6. **Fix safe blockers automatically** — if a verification issue is clearly
|
|
70
|
+
fixable, fix it and rerun `verify`.
|
|
71
|
+
|
|
72
|
+
7. **Report the result** — provide a tiered summary of blockers, warnings, and
|
|
73
|
+
optional suggestions, then recommend `strict-spec-review` when the change is
|
|
74
|
+
clean.
|
|
75
|
+
|
|
76
|
+
## Rules
|
|
77
|
+
|
|
78
|
+
- Be honest; do not treat checked tasks as proof by themselves
|
|
79
|
+
- Use the current YAML artifacts and repository state as the source of truth
|
|
@@ -0,0 +1,161 @@
|
|
|
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
|
+
You are helping the user create or modify strict YAML technical standard files
|
|
12
|
+
under `.strict-spec-driven/tech/` through the artifact-aware CLI, without going
|
|
13
|
+
through the strict change workflow.
|
|
14
|
+
|
|
15
|
+
Technical standards capture the implementation-facing engineering rules that
|
|
16
|
+
main specs deliberately exclude: technology choices, coding conventions,
|
|
17
|
+
architecture rules, internal structure constraints, and security, performance,
|
|
18
|
+
or API design baselines. A main spec says what the system does; a technical
|
|
19
|
+
standard says how the code that implements it must be built.
|
|
20
|
+
|
|
21
|
+
Use this skill only for standalone, lightweight standard maintenance that is not
|
|
22
|
+
part of an active strict change. When a standard change is part of a code change
|
|
23
|
+
— so it must be reviewed and merged alongside that change — do not edit the live
|
|
24
|
+
standard here; carry it as a delta tech artifact under
|
|
25
|
+
`.strict-spec-driven/changes/<name>/tech/` through `/strict-spec-propose`,
|
|
26
|
+
`/strict-spec-apply`, and archive instead.
|
|
27
|
+
|
|
28
|
+
## This Skill's Commands
|
|
29
|
+
|
|
30
|
+
If you cannot remember the exact command used by this skill, look it up here
|
|
31
|
+
before running anything. Do not guess.
|
|
32
|
+
|
|
33
|
+
```yaml
|
|
34
|
+
check-workflow-state: strict-spec-cli check-workflow-state
|
|
35
|
+
tech-edit: strict-spec-cli tech-edit <standard-id> [--tech-path <path>] --<named-args>
|
|
36
|
+
tech-status: strict-spec-cli tech-status
|
|
37
|
+
lesson-status: strict-spec-cli lesson-status [--category <category>]
|
|
38
|
+
lesson-edit: strict-spec-cli lesson-edit <lesson-id> --promoted-standard <id> --promoted-rule <id>
|
|
39
|
+
schema-show: strict-spec-cli schema-show main-tech
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## CLI-Only YAML Authoring Protocol
|
|
43
|
+
|
|
44
|
+
Every mutation of repository-owned YAML in this skill goes through the strict
|
|
45
|
+
CLI. This skill writes `tech-state`. Before the first mutation run
|
|
46
|
+
`strict-spec-cli yaml-authoring-protocol tech-state`: that command reports the
|
|
47
|
+
ordered authoring steps, the owning command for each operation, and the bundled
|
|
48
|
+
schema and example keys with their cache-resolved paths, bound to the artifact
|
|
49
|
+
kind and current where a copy would go stale. Validate the result with
|
|
50
|
+
`strict-spec-cli tech-status`.
|
|
51
|
+
|
|
52
|
+
**Stop rather than edit YAML directly.** When a required command, argument, or
|
|
53
|
+
artifact kind is unavailable, stop and report the missing capability. Editing
|
|
54
|
+
the YAML directly, writing a raw payload, or scripting around the CLI is never
|
|
55
|
+
an available fallback, and an unavailable command is a reason to stop rather
|
|
56
|
+
than a reason to improvise.
|
|
57
|
+
|
|
58
|
+
## Preferred Human Language
|
|
59
|
+
|
|
60
|
+
Comply with `preferred_human_language` from `.strict-spec-driven/config.yaml` —
|
|
61
|
+
the user's common human language, not a programming language — for all
|
|
62
|
+
user-facing and generated operator-facing text, unless that file is absent or
|
|
63
|
+
the active user message asks otherwise.
|
|
64
|
+
|
|
65
|
+
## Steps
|
|
66
|
+
|
|
67
|
+
Before any other step, run `strict-spec-cli check-workflow-state`. If `.strict-spec-driven/` is
|
|
68
|
+
missing, stop immediately and tell the user to run `/strict-spec-init`. Do not
|
|
69
|
+
run `init` from this skill.
|
|
70
|
+
|
|
71
|
+
1. **Read strict tech context first** — before making any changes, read:
|
|
72
|
+
- `.strict-spec-driven/config.yaml`
|
|
73
|
+
- `.strict-spec-driven/tech/INDEX.yaml`
|
|
74
|
+
- run `tech-status` to see existing standards and their rules
|
|
75
|
+
- any existing strict YAML technical standard files relevant to the request
|
|
76
|
+
- the schema contract via `schema-show main-tech` when unsure of the shape
|
|
77
|
+
|
|
78
|
+
2. **Check whether a lesson is being promoted** — run
|
|
79
|
+
`strict-spec-cli lesson-status --category <category>` with the target standard's category and
|
|
80
|
+
check whether recorded experience already
|
|
81
|
+
covers the rule being added. A lesson with repeated occurrences is the
|
|
82
|
+
strongest case for a new standard: the recurrence count is objective evidence
|
|
83
|
+
that the rule is needed, and the lesson's `observation` already supplies the
|
|
84
|
+
`rationale`. Note any lesson the rule originates from; step 7 links them once
|
|
85
|
+
the standard exists.
|
|
86
|
+
|
|
87
|
+
3. **Understand the request** — identify whether the user wants to:
|
|
88
|
+
- add a new strict YAML technical standard file or category
|
|
89
|
+
- add new structured rules to an existing standard file
|
|
90
|
+
- modify an existing rule
|
|
91
|
+
- remove one or more existing rules
|
|
92
|
+
|
|
93
|
+
4. **Choose the target** — use `INDEX.yaml` and `tech-status` to determine where
|
|
94
|
+
the content belongs:
|
|
95
|
+
- if an existing standard file covers the area, use it
|
|
96
|
+
- only create a new standard file if no existing file fits
|
|
97
|
+
- keep one standard file focused on one category
|
|
98
|
+
(`coding`, `architecture`, `security`, `performance`, `api`, `testing`,
|
|
99
|
+
`tooling`, `operations`, or `documentation`)
|
|
100
|
+
|
|
101
|
+
5. **Prepare the changes** — draft the exact structured edits. Every rule must
|
|
102
|
+
carry:
|
|
103
|
+
- `strength`: MUST (required, no exceptions), SHOULD (default unless
|
|
104
|
+
justified), or MAY (genuinely optional)
|
|
105
|
+
- `statement`: the rule itself, phrased as an enforceable engineering
|
|
106
|
+
constraint
|
|
107
|
+
- `rationale`: why the rule exists — this is what separates a standard from
|
|
108
|
+
arbitrary preference
|
|
109
|
+
- `enforcement`: a `method` of `lint`, `ci`, `test`, `review`, or `manual`,
|
|
110
|
+
plus optional `detail`
|
|
111
|
+
- optional `examples.good` / `examples.bad` and `exceptions`
|
|
112
|
+
|
|
113
|
+
6. **Present and confirm** — show the user:
|
|
114
|
+
- which strict YAML standard file or files will change
|
|
115
|
+
- the exact content that will be added, modified, or removed
|
|
116
|
+
- whether `.strict-spec-driven/tech/INDEX.yaml` needs updating
|
|
117
|
+
|
|
118
|
+
Wait for explicit confirmation before writing anything.
|
|
119
|
+
|
|
120
|
+
7. **Apply the confirmed edits through `tech-edit`** — after confirmation:
|
|
121
|
+
- create a standard with `tech-edit <standard-id> --tech-path <path>
|
|
122
|
+
--title <text> --category <category> --rule <id> --strength
|
|
123
|
+
<MUST|SHOULD|MAY> --statement <text> --rationale <text> --method
|
|
124
|
+
<lint|ci|test|review|manual>`
|
|
125
|
+
- update one rule by restating `--rule <id>` and only the scalar, enforcement,
|
|
126
|
+
example, or exception fields that changed
|
|
127
|
+
- remove keyed content with `--remove-rule`, or rule-scoped examples and
|
|
128
|
+
exceptions with their named removal flags
|
|
129
|
+
- use isolated `tech-edit <standard-id> --delete` only for a confirmed whole
|
|
130
|
+
standard removal; active delta-tech references block deletion
|
|
131
|
+
Never edit main-tech or tech-index YAML text. The command validates the full
|
|
132
|
+
candidate and reconciles the index in the same transaction.
|
|
133
|
+
- link any lesson the new rule came from, now that the standard exists:
|
|
134
|
+
```bash
|
|
135
|
+
strict-spec-cli lesson-edit <lesson-id> --promoted-standard <standard-id> --promoted-rule <rule-id>
|
|
136
|
+
```
|
|
137
|
+
This sets the lesson to `promoted` and drops it from the default lesson
|
|
138
|
+
list so the same guidance is not surfaced twice. Never delete the lesson —
|
|
139
|
+
a rule states what must be done but omits the failure that motivated it,
|
|
140
|
+
and the lesson is the only remaining record of that failure.
|
|
141
|
+
|
|
142
|
+
8. **Validate the result** — after editing, verify:
|
|
143
|
+
- each edited file remains valid strict YAML matching the `main-tech` schema
|
|
144
|
+
- the mutation result reports the reconciled tech index
|
|
145
|
+
- run `tech-status` to confirm the standards and rules read back correctly
|
|
146
|
+
|
|
147
|
+
9. **Summarize** — tell the user which strict YAML standard files changed, what
|
|
148
|
+
was added, modified, or removed, and whether `INDEX.yaml` was updated.
|
|
149
|
+
|
|
150
|
+
## Rules
|
|
151
|
+
|
|
152
|
+
- Always read existing standards before authoring through `tech-edit`
|
|
153
|
+
- Present the exact changes and wait for confirmation before writing
|
|
154
|
+
- Prefer existing categories and files unless the content clearly requires a new
|
|
155
|
+
path
|
|
156
|
+
- Every rule MUST carry a rationale and an enforcement method — no rationale-free
|
|
157
|
+
rules
|
|
158
|
+
- Do not implement product code
|
|
159
|
+
- Do not create or interact with `.strict-spec-driven/changes/`
|
|
160
|
+
- Never hand-edit main-tech or tech-index YAML; express every standalone
|
|
161
|
+
mutation through `strict-spec-cli tech-edit`
|
|
@@ -0,0 +1,202 @@
|
|
|
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.
|
|
4
|
+
metadata:
|
|
5
|
+
skill_id: strict_tech_sync
|
|
6
|
+
author: strict-spec-driven
|
|
7
|
+
type: agent_skill
|
|
8
|
+
version: 1.0.0
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
You are helping the user synchronize `.strict-spec-driven/tech/` with the
|
|
12
|
+
implementation conventions that already exist in the repository.
|
|
13
|
+
|
|
14
|
+
Technical standards capture implementation-facing engineering rules — technology
|
|
15
|
+
choices, coding conventions, architecture rules, internal structure constraints,
|
|
16
|
+
and security, performance, or API design baselines. This skill detects where the
|
|
17
|
+
codebase already follows (or violates) such conventions and reconciles the
|
|
18
|
+
written standards with that reality.
|
|
19
|
+
|
|
20
|
+
## This Skill's Commands
|
|
21
|
+
|
|
22
|
+
If you cannot remember the exact command used by this skill, look it up here
|
|
23
|
+
before running anything. Do not guess.
|
|
24
|
+
|
|
25
|
+
```yaml
|
|
26
|
+
check-workflow-state: strict-spec-cli check-workflow-state
|
|
27
|
+
tech-status: strict-spec-cli tech-status
|
|
28
|
+
tech-edit: strict-spec-cli tech-edit <standard-id> [--tech-path <path>] --<named-args>
|
|
29
|
+
lesson-status: strict-spec-cli lesson-status [--category <category>]
|
|
30
|
+
lesson-edit: strict-spec-cli lesson-edit <lesson-id> --promoted-standard <id> --promoted-rule <id>
|
|
31
|
+
modify: strict-spec-cli modify [change-name|archive-dir]
|
|
32
|
+
generate: strict-spec-cli generate <change-name> delta-tech --<named-args>
|
|
33
|
+
verify: strict-spec-cli verify <change-name>
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## CLI-Only YAML Authoring Protocol
|
|
37
|
+
|
|
38
|
+
Every mutation of repository-owned YAML in this skill goes through the strict
|
|
39
|
+
CLI. This skill writes `tech-state`, `change-delta-state`. Before the first
|
|
40
|
+
mutation run `strict-spec-cli yaml-authoring-protocol <artifact-kind>` for each
|
|
41
|
+
of them: that command reports the ordered authoring steps, the owning command
|
|
42
|
+
for each operation, and the bundled schema and example keys with their
|
|
43
|
+
cache-resolved paths, bound to the artifact kind and current where a copy would
|
|
44
|
+
go stale. Validate the result with `strict-spec-cli tech-status`,
|
|
45
|
+
`strict-spec-cli verify <change-name>`.
|
|
46
|
+
|
|
47
|
+
**Stop rather than edit YAML directly.** When a required command, argument, or
|
|
48
|
+
artifact kind is unavailable, stop and report the missing capability. Editing
|
|
49
|
+
the YAML directly, writing a raw payload, or scripting around the CLI is never
|
|
50
|
+
an available fallback, and an unavailable command is a reason to stop rather
|
|
51
|
+
than a reason to improvise.
|
|
52
|
+
|
|
53
|
+
## Preferred Human Language
|
|
54
|
+
|
|
55
|
+
Comply with `preferred_human_language` from `.strict-spec-driven/config.yaml` —
|
|
56
|
+
the user's common human language, not a programming language — for all
|
|
57
|
+
user-facing and generated operator-facing text, unless that file is absent or
|
|
58
|
+
the active user message asks otherwise.
|
|
59
|
+
|
|
60
|
+
## Steps
|
|
61
|
+
|
|
62
|
+
Before any other step, run `strict-spec-cli check-workflow-state`. If `.strict-spec-driven/` is
|
|
63
|
+
missing, stop immediately and tell the user to run `/strict-spec-init`. Do not
|
|
64
|
+
run `init` from this skill.
|
|
65
|
+
|
|
66
|
+
1. **Choose the synchronization mode and scan scope** — determine whether the
|
|
67
|
+
user wants:
|
|
68
|
+
- an **active-change sync** for a selected change that is still under
|
|
69
|
+
`.strict-spec-driven/changes/`; use `modify` without an argument to list
|
|
70
|
+
candidates when the user did not name one
|
|
71
|
+
- a **standalone sync** that directly reconciles live standards outside an
|
|
72
|
+
active change
|
|
73
|
+
|
|
74
|
+
Then determine whether the requested scope is:
|
|
75
|
+
- a repository-wide scan
|
|
76
|
+
- a scoped scan for a specific directory, module, layer, or concern
|
|
77
|
+
(for example: error handling, logging, API surface, build tooling)
|
|
78
|
+
|
|
79
|
+
An active-change sync is always bounded to the selected change. Build its
|
|
80
|
+
scope from the selected change's proposal, design, tasks, questions, delta
|
|
81
|
+
specs, delta tech, and repository changes attributable to the change. Use
|
|
82
|
+
attributable tracked and untracked files only as supporting evidence; surface
|
|
83
|
+
ambiguous ownership instead of absorbing unrelated repository drift.
|
|
84
|
+
If a standalone user already gave a scope, use it. Otherwise ask whether to
|
|
85
|
+
scan the whole repository or a narrower target.
|
|
86
|
+
|
|
87
|
+
2. **Read strict tech context first** — before deciding that any drift exists,
|
|
88
|
+
read:
|
|
89
|
+
- `.strict-spec-driven/config.yaml`
|
|
90
|
+
- `.strict-spec-driven/tech/INDEX.yaml`
|
|
91
|
+
- run `tech-status` to enumerate existing standards and rules
|
|
92
|
+
- every strict YAML standard file relevant to the chosen scope
|
|
93
|
+
- run `lesson-status --category <category>` for each technical category in scope to see recorded
|
|
94
|
+
experience in the same area. Use unfiltered status only when no relevant category can be
|
|
95
|
+
identified. A lesson
|
|
96
|
+
with repeated occurrences is the strongest evidence that a convention has
|
|
97
|
+
earned a binding rule: the occurrence count is objective proof the project
|
|
98
|
+
keeps hitting it, and the lesson's observation already supplies the
|
|
99
|
+
rationale. Treat repeated lessons as promotion candidates for this sync.
|
|
100
|
+
|
|
101
|
+
3. **Read repository evidence in the chosen scope** — inspect the code,
|
|
102
|
+
configuration, build files, lint/format configs, CI definitions, and tests
|
|
103
|
+
that reveal current implementation conventions. Look for conventions that are
|
|
104
|
+
followed consistently enough to be a de facto standard, and for inconsistent
|
|
105
|
+
areas where a standard is missing. For active-change sync, inspect only the
|
|
106
|
+
selected change evidence and the applicable standards; do not turn the scan
|
|
107
|
+
into repository-wide maintenance.
|
|
108
|
+
|
|
109
|
+
4. **Classify drift findings** — compare repository evidence to current
|
|
110
|
+
standards and sort findings into:
|
|
111
|
+
- conventions already covered by applicable main standards or the active
|
|
112
|
+
change's delta tech
|
|
113
|
+
- established conventions present in the codebase but missing from standards
|
|
114
|
+
- existing standard rules that are outdated, contradicted by the code, or
|
|
115
|
+
unenforced
|
|
116
|
+
- inconsistent areas where the team should pick a standard (needs human input)
|
|
117
|
+
- patterns that are specific to this change and are not reusable engineering
|
|
118
|
+
conventions
|
|
119
|
+
- unrelated repository drift excluded from an active-change scan
|
|
120
|
+
- areas with no meaningful drift in the scanned scope
|
|
121
|
+
|
|
122
|
+
5. **Report the drift summary in chat** — present a concise summary covering:
|
|
123
|
+
- the scan scope that was analyzed
|
|
124
|
+
- confirmed convention gaps or outdated standard rules, with file references
|
|
125
|
+
- inconsistencies that need a human decision before becoming a rule
|
|
126
|
+
- areas in scope where no meaningful drift was found
|
|
127
|
+
|
|
128
|
+
6. **Get operator confirmation, except at archive time** — before writing any
|
|
129
|
+
standard or delta-tech artifact when this skill is invoked on its own, ask the
|
|
130
|
+
operator to confirm each proposed change. For every finding,
|
|
131
|
+
provide the target standard (or proposed new standard), operation, stable rule
|
|
132
|
+
id, strength, normative statement, rationale, and enforcement method. Do not
|
|
133
|
+
proceed until the operator explicitly approves both the normative content and
|
|
134
|
+
its strength. A convention only becomes a MUST when the operator agrees it is
|
|
135
|
+
mandatory. A surfaced
|
|
136
|
+
pattern may instead be explicitly classified as not reusable; a convention
|
|
137
|
+
confirmed as reusable may not be deferred until after its active change is
|
|
138
|
+
archived.
|
|
139
|
+
When these steps are applied as the pre-archive checkpoint that
|
|
140
|
+
`strict-spec-archive` owns, that skill's rule replaces this confirmation: the
|
|
141
|
+
same finding detail is stated, the decision is taken from the bounded
|
|
142
|
+
evidence, and it is reported rather than put to the operator.
|
|
143
|
+
|
|
144
|
+
7. **Write confirmed findings through the selected mode** — for each confirmed
|
|
145
|
+
finding:
|
|
146
|
+
- in active-change mode, use `generate <change-name> delta-tech ...` to add or
|
|
147
|
+
update a strict delta-tech artifact under the selected change; never edit a
|
|
148
|
+
live main standard directly
|
|
149
|
+
- in standalone mode, invoke `tech-edit <standard-id>` with named semantic
|
|
150
|
+
arguments for each confirmed scalar, keyed rule, example, or exception
|
|
151
|
+
mutation; use `--tech-path`, title, category, and one complete rule when
|
|
152
|
+
creating a standard
|
|
153
|
+
- add, modify, or remove structured rules with `strength`, `statement`,
|
|
154
|
+
`rationale`, and `enforcement`
|
|
155
|
+
- if no existing category or file fits, create a new standard through the
|
|
156
|
+
selected mode with the correct relative path and category
|
|
157
|
+
- never edit live main-tech or tech-index YAML text; `tech-edit` validates and
|
|
158
|
+
reconciles both atomically in standalone mode
|
|
159
|
+
|
|
160
|
+
8. **Link any lesson this sync promoted** — when a rule written in the previous
|
|
161
|
+
step originated from a recorded lesson, mark that lesson promoted now that
|
|
162
|
+
the standard or delta tech exists:
|
|
163
|
+
```bash
|
|
164
|
+
strict-spec-cli lesson-edit <lesson-id> --promoted-standard <standard-id> --promoted-rule <rule-id>
|
|
165
|
+
```
|
|
166
|
+
This drops the lesson from the default lesson list so the same guidance is
|
|
167
|
+
not surfaced twice at consumption points. Never delete a promoted lesson: the
|
|
168
|
+
rule states what must be done but omits the failure that motivated it, and
|
|
169
|
+
the lesson is the only remaining record of that failure.
|
|
170
|
+
|
|
171
|
+
9. **Refresh supporting tech state** — after all edits are complete:
|
|
172
|
+
- in active-change mode, run `verify <change-name>` and review every generated
|
|
173
|
+
delta-tech operation against the confirmed finding before archive continues;
|
|
174
|
+
a write the configured regression command neither compiles nor reads —
|
|
175
|
+
currently a change-local delta-tech artifact or a lesson — does not
|
|
176
|
+
invalidate passing complete project regression evidence, so rerun the
|
|
177
|
+
configured regression command only when this sync also changed a file
|
|
178
|
+
outside that carve-out, which covers both the delta tech this sync wrote
|
|
179
|
+
and the lesson promotion that recorded it
|
|
180
|
+
- in standalone mode, confirm `tech-edit` reported the reconciled tech index
|
|
181
|
+
- run `tech-status` to confirm the standards read back correctly
|
|
182
|
+
|
|
183
|
+
10. **Report final changes** — summarize:
|
|
184
|
+
- which standard files were added, modified, or removed
|
|
185
|
+
- a brief description of the drift fixed in each file
|
|
186
|
+
- any inconsistencies that were left unresolved and why
|
|
187
|
+
|
|
188
|
+
## Rules
|
|
189
|
+
|
|
190
|
+
- Do not change product code; synchronize only strict technical-standard state
|
|
191
|
+
- Read strict tech context before judging drift
|
|
192
|
+
- Respect the user-selected scope
|
|
193
|
+
- Use code, configs, CI, and tests as evidence; record the rule plus its
|
|
194
|
+
rationale and enforcement, not raw implementation detail
|
|
195
|
+
- Do not create a strict change. In active-change mode write confirmed findings
|
|
196
|
+
only as delta tech inside the already selected change; use `tech-edit` for
|
|
197
|
+
live standards only in standalone mode.
|
|
198
|
+
- Do not write a standalone report file; the summary belongs in chat
|
|
199
|
+
- Get explicit user confirmation before editing any strict YAML standard file,
|
|
200
|
+
except when these steps run as the pre-archive checkpoint `strict-spec-archive`
|
|
201
|
+
owns, which decides from the bounded evidence and reports what it applied
|
|
202
|
+
- Never hand-edit main-tech or tech-index YAML
|
package/package.json
CHANGED
|
@@ -1,6 +1,111 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-plugin-strict-spec",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.5.1",
|
|
4
|
+
"description": "Strict workflow document viewer plugin for DeepSeek Harness",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/host.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./dist/host.js",
|
|
9
|
+
"./client": "./dist/client.js",
|
|
10
|
+
"./package.json": "./package.json"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"dist",
|
|
14
|
+
"cordis.patch.yml",
|
|
15
|
+
"README.md",
|
|
16
|
+
"README.zh.md",
|
|
17
|
+
"LICENSE"
|
|
18
|
+
],
|
|
19
|
+
"dsh": {
|
|
20
|
+
"bundle": {
|
|
21
|
+
"patch": "./cordis.patch.yml"
|
|
22
|
+
},
|
|
23
|
+
"client": {
|
|
24
|
+
"inject": [
|
|
25
|
+
"@deepseek-ai/dsh-api-session-controller",
|
|
26
|
+
"@deepseek-ai/dsh-api-workspace-controller",
|
|
27
|
+
"@deepseek-ai/dsh-api-workspace-files",
|
|
28
|
+
"@deepseek-ai/dsh-client-locale",
|
|
29
|
+
"@deepseek-ai/dsh-client-store",
|
|
30
|
+
"@deepseek-ai/dsh-client-ui-layout",
|
|
31
|
+
"@deepseek-ai/dsh-client-ui-primitives",
|
|
32
|
+
"@deepseek-ai/dsh-client-ui-renderer",
|
|
33
|
+
"@deepseek-ai/dsh-client-ui-sidebar",
|
|
34
|
+
"@deepseek-ai/dsh-client-ui-sidebar-right",
|
|
35
|
+
"@deepseek-ai/dsh-client-ui-slots",
|
|
36
|
+
"@deepseek-ai/dsh-commands"
|
|
37
|
+
],
|
|
38
|
+
"platform": "web"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"engines": {
|
|
42
|
+
"dsh": ">=0.2.1-rc.2 <0.2.2"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@deepseek-ai/schemastery": "~3.18.5"
|
|
46
|
+
},
|
|
47
|
+
"scripts": {
|
|
48
|
+
"build": "bun scripts/build-client.ts",
|
|
49
|
+
"lint": "tsc --noEmit -p .",
|
|
50
|
+
"prepublishOnly": "bun run build"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@deepseek-ai/dsh-api-session-controller": "0.2.1-rc.2",
|
|
54
|
+
"@deepseek-ai/dsh-api-workspace-controller": "0.2.1-rc.2",
|
|
55
|
+
"@deepseek-ai/dsh-api-workspace-files": "0.2.1-rc.2",
|
|
56
|
+
"@deepseek-ai/dsh-client-locale": "0.2.1-rc.2",
|
|
57
|
+
"@deepseek-ai/dsh-client-shortcuts": "0.2.1-rc.2",
|
|
58
|
+
"@deepseek-ai/dsh-client-store": "0.2.1-rc.2",
|
|
59
|
+
"@deepseek-ai/dsh-client-ui-dockkit": "0.2.1-rc.2",
|
|
60
|
+
"@deepseek-ai/dsh-client-ui-layout": "0.2.1-rc.2",
|
|
61
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.1-rc.2",
|
|
62
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.1-rc.2",
|
|
63
|
+
"@deepseek-ai/dsh-client-ui-sidebar": "0.2.1-rc.2",
|
|
64
|
+
"@deepseek-ai/dsh-client-ui-sidebar-right": "0.2.1-rc.2",
|
|
65
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.2",
|
|
66
|
+
"@deepseek-ai/dsh-commands": "0.2.1-rc.2",
|
|
67
|
+
"@deepseek-ai/dsh-package-manifest": "0.2.1-rc.2",
|
|
68
|
+
"@deepseek-ai/dsh-skill": "0.2.1-rc.2",
|
|
69
|
+
"@deepseek-ai/dsh-util-code-language": "0.2.1-rc.2",
|
|
70
|
+
"@deepseek-ai/dsh-util-workspace-path": "0.2.1-rc.2",
|
|
71
|
+
"@shikijs/langs": "^4.4.3",
|
|
72
|
+
"@tanstack/react-virtual": "^3.14.21",
|
|
73
|
+
"@types/bun": "^1.4.3",
|
|
74
|
+
"@types/js-yaml": "^4.0.9",
|
|
75
|
+
"@types/react": "~18.3.1",
|
|
76
|
+
"@types/react-dom": "~18.3.0",
|
|
77
|
+
"anser": "^2.3.5",
|
|
78
|
+
"clsx": "^2.0.0",
|
|
79
|
+
"diff": "^9.0.0",
|
|
80
|
+
"immer": "^10.1.1",
|
|
81
|
+
"js-yaml": "4.1.1",
|
|
82
|
+
"katex": "^0.18.7",
|
|
83
|
+
"mdast-util-from-markdown": "^2.0.3",
|
|
84
|
+
"mdast-util-gfm": "^3.0.0",
|
|
85
|
+
"mdast-util-math": "^3.0.0",
|
|
86
|
+
"micromark-core-commonmark": "^2.0.3",
|
|
87
|
+
"micromark-extension-gfm": "^3.0.0",
|
|
88
|
+
"micromark-extension-math": "^3.0.0",
|
|
89
|
+
"micromark-factory-space": "^2.1.0",
|
|
90
|
+
"micromark-util-character": "^2.1.0",
|
|
91
|
+
"micromark-util-classify-character": "^2.0.1",
|
|
92
|
+
"micromark-util-sanitize-uri": "^2.0.1",
|
|
93
|
+
"micromark-util-symbol": "^2.0.1",
|
|
94
|
+
"react": "^18.2.0",
|
|
95
|
+
"react-dom": "^18.2.0",
|
|
96
|
+
"shiki": "^4.4.3",
|
|
97
|
+
"simple-icons": "16.31.0",
|
|
98
|
+
"typescript": "^5.9.3",
|
|
99
|
+
"zustand": "~4.5.7"
|
|
100
|
+
},
|
|
101
|
+
"license": "Apache-2.0",
|
|
102
|
+
"publishConfig": {
|
|
103
|
+
"access": "public",
|
|
104
|
+
"registry": "https://registry.npmjs.org/"
|
|
105
|
+
},
|
|
106
|
+
"repository": {
|
|
107
|
+
"type": "git",
|
|
108
|
+
"url": "git+https://github.com/kw12121212/strict-spec-driven.git",
|
|
109
|
+
"directory": "plugins/dsh-strict-spec"
|
|
110
|
+
}
|
|
111
|
+
}
|