sdtk-code-kit 0.3.2 → 0.3.4
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/assets/manifest/toolkit-bundle.manifest.json +34 -29
- package/assets/manifest/toolkit-bundle.sha256.txt +8 -7
- package/assets/toolkit/toolkit/AGENTS.md +193 -218
- package/assets/toolkit/toolkit/SDTKCODE_TOOLKIT.md +197 -0
- package/assets/toolkit/toolkit/sdtk-spec.config.json +36 -4
- package/assets/toolkit/toolkit/sdtk-spec.config.profiles.example.json +44 -6
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.3.
|
|
3
|
-
"sourceCommit": "
|
|
4
|
-
"fileCount":
|
|
2
|
+
"version": "0.3.4",
|
|
3
|
+
"sourceCommit": "375b27555f8dfc0ac32a3f6479b7158c17ca03cc",
|
|
4
|
+
"fileCount": 29,
|
|
5
5
|
"files": [
|
|
6
6
|
{
|
|
7
7
|
"path": "toolkit/AGENTS.md",
|
|
8
|
-
"sha256": "
|
|
9
|
-
"size":
|
|
8
|
+
"sha256": "0871c6d46c64a093fc5f9d06af373db8143943cd27f144957dad0cc86893dc62",
|
|
9
|
+
"size": 15069
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
"path": "toolkit/install.ps1",
|
|
@@ -35,29 +35,34 @@
|
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
"path": "toolkit/sdtk-spec.config.json",
|
|
38
|
-
"sha256": "
|
|
39
|
-
"size":
|
|
38
|
+
"sha256": "ce760f639a09913b236be6dde6c692ea19ee92eb1d9e63d10dcdeb398e7ed2fb",
|
|
39
|
+
"size": 1209
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"path": "toolkit/sdtk-spec.config.profiles.example.json",
|
|
43
|
-
"sha256": "
|
|
44
|
-
"size":
|
|
43
|
+
"sha256": "e04ea5e3f72510e569ab849ebef3dea4a8728c2996c485e997d3e13a6c4f1f86",
|
|
44
|
+
"size": 1495
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"path": "toolkit/SDTKCODE_TOOLKIT.md",
|
|
48
|
+
"sha256": "9269a5afe88ce97885d054f5a78d496c1aafa50097f581d070e34dceb597c8fe",
|
|
49
|
+
"size": 6945
|
|
45
50
|
},
|
|
46
51
|
{
|
|
47
52
|
"path": "toolkit/skills/code-brainstorm/SKILL.md",
|
|
48
53
|
"sha256": "d797d707dc34d299dbac13f09f3bc8cc42759cb69a9fa5b2cb2269e4c246061e",
|
|
49
54
|
"size": 2215
|
|
50
55
|
},
|
|
51
|
-
{
|
|
52
|
-
"path": "toolkit/skills/code-debug/SKILL.md",
|
|
53
|
-
"sha256": "7e18869c8cd9ad1637bede13bc6449beec545eee115517a19d691817e5cda9cb",
|
|
54
|
-
"size": 9988
|
|
55
|
-
},
|
|
56
56
|
{
|
|
57
57
|
"path": "toolkit/skills/code-debug/references/root-cause-tracing.md",
|
|
58
58
|
"sha256": "698c89de9a0586e83ee52147adf345fa2ab813a06b454ca50e9c69e423f0a910",
|
|
59
59
|
"size": 2206
|
|
60
60
|
},
|
|
61
|
+
{
|
|
62
|
+
"path": "toolkit/skills/code-debug/SKILL.md",
|
|
63
|
+
"sha256": "7e18869c8cd9ad1637bede13bc6449beec545eee115517a19d691817e5cda9cb",
|
|
64
|
+
"size": 9988
|
|
65
|
+
},
|
|
61
66
|
{
|
|
62
67
|
"path": "toolkit/skills/code-discover/SKILL.md",
|
|
63
68
|
"sha256": "d871b5147e894b47fb5aeae43f5b677a3e61ecda94c74ff40a5a4c46092c3e6e",
|
|
@@ -73,11 +78,6 @@
|
|
|
73
78
|
"sha256": "5e352fb1739cf0b9297f34e49ae01d8b0c0ed57448c3c8f3b286d12e1177a130",
|
|
74
79
|
"size": 4260
|
|
75
80
|
},
|
|
76
|
-
{
|
|
77
|
-
"path": "toolkit/skills/code-parallel/SKILL.md",
|
|
78
|
-
"sha256": "393edd1c3ef6ff936c5ec6e2e739d3c02f1e6370e5a72872f186b5d2971d37b7",
|
|
79
|
-
"size": 2691
|
|
80
|
-
},
|
|
81
81
|
{
|
|
82
82
|
"path": "toolkit/skills/code-parallel/references/code-quality-reviewer-prompt.md",
|
|
83
83
|
"sha256": "5fec663aa52b7fd2b942f71a0755f0cd109d2273a5cd21c7c24eeed7684a4cc9",
|
|
@@ -93,16 +93,16 @@
|
|
|
93
93
|
"sha256": "b22d3262f252f7cc994d13bfe16c7103f3afe1e66c255090d88e53fbd68a0f82",
|
|
94
94
|
"size": 1993
|
|
95
95
|
},
|
|
96
|
+
{
|
|
97
|
+
"path": "toolkit/skills/code-parallel/SKILL.md",
|
|
98
|
+
"sha256": "393edd1c3ef6ff936c5ec6e2e739d3c02f1e6370e5a72872f186b5d2971d37b7",
|
|
99
|
+
"size": 2691
|
|
100
|
+
},
|
|
96
101
|
{
|
|
97
102
|
"path": "toolkit/skills/code-plan/SKILL.md",
|
|
98
103
|
"sha256": "7fe115e27a83d04243401bb628ae4246a323246c972fd54890fe4a7e97926bbf",
|
|
99
104
|
"size": 3391
|
|
100
105
|
},
|
|
101
|
-
{
|
|
102
|
-
"path": "toolkit/skills/code-review/SKILL.md",
|
|
103
|
-
"sha256": "4d10ec40ae8ca87de03b2724b90c91053bf756c880a67d8f9a79aabd948f49b5",
|
|
104
|
-
"size": 2723
|
|
105
|
-
},
|
|
106
106
|
{
|
|
107
107
|
"path": "toolkit/skills/code-review/references/checklist.md",
|
|
108
108
|
"sha256": "4612b4e40992f594b577146ac14f1ff13c1812e8e9da64b07eb1e2de5363af5d",
|
|
@@ -113,21 +113,26 @@
|
|
|
113
113
|
"sha256": "7f5328dca12cb200005ae9d4386f63a9b0acb735ece57f82db206b4a3189ccae",
|
|
114
114
|
"size": 3385
|
|
115
115
|
},
|
|
116
|
+
{
|
|
117
|
+
"path": "toolkit/skills/code-review/SKILL.md",
|
|
118
|
+
"sha256": "4d10ec40ae8ca87de03b2724b90c91053bf756c880a67d8f9a79aabd948f49b5",
|
|
119
|
+
"size": 2723
|
|
120
|
+
},
|
|
116
121
|
{
|
|
117
122
|
"path": "toolkit/skills/code-ship/SKILL.md",
|
|
118
123
|
"sha256": "c8dbbae4f8ed65b00e38a386cb9adba340c90dc7fd0dd8257f3c1fea37322558",
|
|
119
124
|
"size": 2123
|
|
120
125
|
},
|
|
121
|
-
{
|
|
122
|
-
"path": "toolkit/skills/code-tdd/SKILL.md",
|
|
123
|
-
"sha256": "967ec7e8a0a7951e3423c4e0f92c7471912e3a03ea23dc572c392e5a37edc266",
|
|
124
|
-
"size": 10326
|
|
125
|
-
},
|
|
126
126
|
{
|
|
127
127
|
"path": "toolkit/skills/code-tdd/references/testing-anti-patterns.md",
|
|
128
128
|
"sha256": "a85c93883197eef41f5392875b41a19b8cdeb3b14b3c6fb5a6dbfb6f21a1b825",
|
|
129
129
|
"size": 8194
|
|
130
130
|
},
|
|
131
|
+
{
|
|
132
|
+
"path": "toolkit/skills/code-tdd/SKILL.md",
|
|
133
|
+
"sha256": "967ec7e8a0a7951e3423c4e0f92c7471912e3a03ea23dc572c392e5a37edc266",
|
|
134
|
+
"size": 10326
|
|
135
|
+
},
|
|
131
136
|
{
|
|
132
137
|
"path": "toolkit/skills/code-verify/SKILL.md",
|
|
133
138
|
"sha256": "6df69cf2db69d13672b3e73a2c25aca48791e9ea912c1e1fbc3ce7734399c346",
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
0871c6d46c64a093fc5f9d06af373db8143943cd27f144957dad0cc86893dc62 toolkit/AGENTS.md
|
|
2
2
|
dd7ffbd69c29f76d67f65c3e857ba241e92908931b2e93a9b9c503542e43f35c toolkit/install.ps1
|
|
3
3
|
720990cc979cdbca776bbe21eaeee0a73c5dd698ac6c8df430c7f22826ec9219 toolkit/scripts/install-claude-skills.ps1
|
|
4
4
|
7d61249db7eee6185e5454f7427b808c79d5e564e0d2214ee5f92fa105effb04 toolkit/scripts/install-codex-skills.ps1
|
|
5
5
|
148ddfc5a79a9dd6d7fa5b926c5511a5e4d458fa31003217cdc2eefcbe966cc2 toolkit/scripts/uninstall-claude-skills.ps1
|
|
6
6
|
0fd11650bd445fad37c728471872b99bfb8bd17dfb95e62431ceccfad7f0852f toolkit/scripts/uninstall-codex-skills.ps1
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
ce760f639a09913b236be6dde6c692ea19ee92eb1d9e63d10dcdeb398e7ed2fb toolkit/sdtk-spec.config.json
|
|
8
|
+
e04ea5e3f72510e569ab849ebef3dea4a8728c2996c485e997d3e13a6c4f1f86 toolkit/sdtk-spec.config.profiles.example.json
|
|
9
|
+
9269a5afe88ce97885d054f5a78d496c1aafa50097f581d070e34dceb597c8fe toolkit/SDTKCODE_TOOLKIT.md
|
|
9
10
|
d797d707dc34d299dbac13f09f3bc8cc42759cb69a9fa5b2cb2269e4c246061e toolkit/skills/code-brainstorm/SKILL.md
|
|
10
|
-
7e18869c8cd9ad1637bede13bc6449beec545eee115517a19d691817e5cda9cb toolkit/skills/code-debug/SKILL.md
|
|
11
11
|
698c89de9a0586e83ee52147adf345fa2ab813a06b454ca50e9c69e423f0a910 toolkit/skills/code-debug/references/root-cause-tracing.md
|
|
12
|
+
7e18869c8cd9ad1637bede13bc6449beec545eee115517a19d691817e5cda9cb toolkit/skills/code-debug/SKILL.md
|
|
12
13
|
d871b5147e894b47fb5aeae43f5b677a3e61ecda94c74ff40a5a4c46092c3e6e toolkit/skills/code-discover/SKILL.md
|
|
13
14
|
8627a8c33cd170cc8009feb2b6ab7bf2bc4be91daa3609dc331a554ba41b1b3d toolkit/skills/code-execute/SKILL.md
|
|
14
15
|
5e352fb1739cf0b9297f34e49ae01d8b0c0ed57448c3c8f3b286d12e1177a130 toolkit/skills/code-finish/SKILL.md
|
|
15
|
-
393edd1c3ef6ff936c5ec6e2e739d3c02f1e6370e5a72872f186b5d2971d37b7 toolkit/skills/code-parallel/SKILL.md
|
|
16
16
|
5fec663aa52b7fd2b942f71a0755f0cd109d2273a5cd21c7c24eeed7684a4cc9 toolkit/skills/code-parallel/references/code-quality-reviewer-prompt.md
|
|
17
17
|
10bc07e6498e6a1e54805cce4d964545f2c1614e6679b0c1c4eb7d17b894e3a6 toolkit/skills/code-parallel/references/implementer-prompt.md
|
|
18
18
|
b22d3262f252f7cc994d13bfe16c7103f3afe1e66c255090d88e53fbd68a0f82 toolkit/skills/code-parallel/references/spec-reviewer-prompt.md
|
|
19
|
+
393edd1c3ef6ff936c5ec6e2e739d3c02f1e6370e5a72872f186b5d2971d37b7 toolkit/skills/code-parallel/SKILL.md
|
|
19
20
|
7fe115e27a83d04243401bb628ae4246a323246c972fd54890fe4a7e97926bbf toolkit/skills/code-plan/SKILL.md
|
|
20
|
-
4d10ec40ae8ca87de03b2724b90c91053bf756c880a67d8f9a79aabd948f49b5 toolkit/skills/code-review/SKILL.md
|
|
21
21
|
4612b4e40992f594b577146ac14f1ff13c1812e8e9da64b07eb1e2de5363af5d toolkit/skills/code-review/references/checklist.md
|
|
22
22
|
7f5328dca12cb200005ae9d4386f63a9b0acb735ece57f82db206b4a3189ccae toolkit/skills/code-review/references/code-reviewer.md
|
|
23
|
+
4d10ec40ae8ca87de03b2724b90c91053bf756c880a67d8f9a79aabd948f49b5 toolkit/skills/code-review/SKILL.md
|
|
23
24
|
c8dbbae4f8ed65b00e38a386cb9adba340c90dc7fd0dd8257f3c1fea37322558 toolkit/skills/code-ship/SKILL.md
|
|
24
|
-
967ec7e8a0a7951e3423c4e0f92c7471912e3a03ea23dc572c392e5a37edc266 toolkit/skills/code-tdd/SKILL.md
|
|
25
25
|
a85c93883197eef41f5392875b41a19b8cdeb3b14b3c6fb5a6dbfb6f21a1b825 toolkit/skills/code-tdd/references/testing-anti-patterns.md
|
|
26
|
+
967ec7e8a0a7951e3423c4e0f92c7471912e3a03ea23dc572c392e5a37edc266 toolkit/skills/code-tdd/SKILL.md
|
|
26
27
|
6df69cf2db69d13672b3e73a2c25aca48791e9ea912c1e1fbc3ce7734399c346 toolkit/skills/code-verify/SKILL.md
|
|
27
28
|
194cf6ec70eae013c03d06f397d4bbaca73256ad69be681ad14812493a3d1962 toolkit/skills/code-worktree/SKILL.md
|
|
28
29
|
7b3e27b56153160b44b5813e63ee8f762ee6f4338157480934ec4860f4914884 toolkit/templates/CODE_WORKFLOW_TEMPLATE.md
|
|
@@ -1,219 +1,194 @@
|
|
|
1
|
-
# SDTK
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
`SDTK-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
`SDTK-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
- `sdtk-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
- review
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
- start from the workflow layer
|
|
58
|
-
- follow lane-aware routing
|
|
59
|
-
- keep execution traceable through `docs/dev/CODE_WORKFLOW_[FEATURE_KEY].md`
|
|
60
|
-
|
|
61
|
-
Important current truth:
|
|
62
|
-
- the workflow-first direction is locked
|
|
63
|
-
- the workflow routing contract now exists
|
|
64
|
-
- `start`, `plan`, `build`, `verify`, and `ship` now exist in the current package as control-plane workflow commands
|
|
65
|
-
|
|
66
|
-
That means this file is the routing contract for the workflow-first model. It describes the full intended workflow surface, which now exists in the CLI as control-plane workflow commands.
|
|
67
|
-
|
|
68
|
-
## 4. Two-Layer Model
|
|
69
|
-
### Workflow layer
|
|
70
|
-
This is the planned normal-mode surface.
|
|
71
|
-
|
|
72
|
-
Workflow phases:
|
|
73
|
-
- `start`
|
|
74
|
-
- `plan`
|
|
75
|
-
- `build`
|
|
76
|
-
- `verify`
|
|
77
|
-
- `ship`
|
|
78
|
-
|
|
79
|
-
The workflow layer is control-plane and routing-oriented.
|
|
80
|
-
It is intended to:
|
|
81
|
-
- validate state and inputs
|
|
82
|
-
- decide legal next steps
|
|
83
|
-
- update the workflow artifact
|
|
84
|
-
- route to the existing specialist engine
|
|
85
|
-
|
|
86
|
-
### Specialist skill engine
|
|
87
|
-
The existing 12 `code-*` skills remain intact.
|
|
88
|
-
|
|
89
|
-
They are:
|
|
90
|
-
- the internal execution engine behind the workflow layer
|
|
91
|
-
- the expert-mode direct entrypoints
|
|
92
|
-
- not the default onboarding surface
|
|
93
|
-
|
|
94
|
-
## 5. V1 Lane Model
|
|
95
|
-
V1 supports only two explicit lanes:
|
|
96
|
-
- `feature`
|
|
97
|
-
- `bugfix`
|
|
98
|
-
|
|
99
|
-
Deferred lanes remain out of scope for v1:
|
|
100
|
-
- `hardening`
|
|
101
|
-
- `review-only`
|
|
102
|
-
- `ship-only`
|
|
103
|
-
|
|
104
|
-
Lane intent:
|
|
105
|
-
- `feature` = full workflow: `start -> plan -> build -> verify -> ship`
|
|
106
|
-
- `bugfix` = lighter path: `start -> build -> verify -> ship`
|
|
107
|
-
|
|
108
|
-
Lane intake note:
|
|
109
|
-
- `feature` expects formal handoff by default and uses compatibility fallback only when the handoff file is missing
|
|
110
|
-
- `bugfix` also prefers formal handoff, but bounded compatibility fallback remains acceptable when the handoff file is missing
|
|
111
|
-
|
|
112
|
-
## 6. Workflow Artifact
|
|
113
|
-
Canonical workflow artifact:
|
|
114
|
-
- `docs/dev/CODE_WORKFLOW_[FEATURE_KEY].md`
|
|
115
|
-
|
|
116
|
-
Canonical template path:
|
|
117
|
-
- `products/sdtk-code/toolkit/templates/CODE_WORKFLOW_TEMPLATE.md`
|
|
118
|
-
|
|
119
|
-
The workflow artifact is not a replacement for `FEATURE_IMPL_PLAN_[FEATURE_KEY].md`.
|
|
120
|
-
It is the coding execution memory that sits beside the upstream handoff artifact.
|
|
121
|
-
|
|
122
|
-
Evidence rule:
|
|
123
|
-
- summarized evidence belongs in `CODE_WORKFLOW_[FEATURE_KEY].md`
|
|
124
|
-
- raw command output should be stored separately and referenced from the workflow artifact
|
|
125
|
-
- `verify` also emits `docs/dev/REVIEW_PACKET_[FEATURE_KEY].md` as an evidence package for QA/controller review, not as final approval
|
|
126
|
-
|
|
127
|
-
## 7. Phase-To-Engine Mapping
|
|
128
|
-
| Workflow phase | Primary engine skills | Conditional engine skills | Notes |
|
|
129
|
-
|---|---|---|---|
|
|
130
|
-
| `start` | `code-discover` | `code-brainstorm` | Use `code-brainstorm` only when the slice is still ambiguous after intake grounding. |
|
|
131
|
-
| `plan` | `code-plan` | `code-brainstorm` | `code-brainstorm` remains optional when the implementation path is unclear. |
|
|
132
|
-
| `build` | `code-worktree`, `code-tdd`, `code-execute` | `code-parallel` | `code-parallel` should be used only for clearly independent tasks. |
|
|
133
|
-
| `verify` | `code-verify`, `code-review` | none | Review order stays evidence first, then spec/compliance, then quality. |
|
|
134
|
-
| `ship` | `code-ship`, `code-finish` | none | Ship stays coding-scope only and does not expand into full release governance. |
|
|
135
|
-
|
|
136
|
-
### Cross-cutting reactive skill
|
|
137
|
-
`code-debug` is cross-cutting and reactive.
|
|
138
|
-
|
|
139
|
-
It is not a fixed top-level workflow phase.
|
|
140
|
-
Trigger it when failures occur during:
|
|
141
|
-
- `build`
|
|
142
|
-
- `verify`
|
|
143
|
-
- `ship` pre-flight or integration checks
|
|
144
|
-
|
|
145
|
-
## 8. Normal Mode vs Expert Mode
|
|
146
|
-
### Normal mode
|
|
147
|
-
Normal mode is workflow-first.
|
|
148
|
-
|
|
149
|
-
It should:
|
|
150
|
-
- begin from the workflow layer
|
|
151
|
-
- follow the lane model
|
|
152
|
-
- use the workflow artifact as the execution memory
|
|
153
|
-
- route to the engine skills intentionally rather than making the user choose blindly
|
|
154
|
-
|
|
155
|
-
### Expert mode
|
|
156
|
-
Expert mode is direct raw `code-*` usage inside the runtime.
|
|
157
|
-
|
|
158
|
-
Examples:
|
|
159
|
-
- `/code-plan`
|
|
160
|
-
- `/code-tdd`
|
|
161
|
-
- `/code-debug`
|
|
162
|
-
|
|
163
|
-
Expert mode rules:
|
|
164
|
-
- raw skill usage remains available
|
|
165
|
-
- it is an advanced path, not the default onboarding path
|
|
166
|
-
- if a workflow artifact already exists, expert-mode deviations should be recorded against it
|
|
167
|
-
- v1 does not require a dedicated CLI expert-mode flag
|
|
168
|
-
|
|
169
|
-
### Expert-mode deviation recording convention
|
|
170
|
-
Batch 7 keeps expert mode lightweight.
|
|
171
|
-
|
|
172
|
-
If a workflow artifact already exists and you bypass the normal workflow command path with raw `code-*` usage, record the deviation under `## 6. Evidence And Review Notes` using a lightweight note that captures:
|
|
173
|
-
- date/time
|
|
174
|
-
- current phase
|
|
175
|
-
- raw skill used
|
|
176
|
-
- reason for bypass
|
|
177
|
-
- evidence refs
|
|
178
|
-
- outcome or next action
|
|
179
|
-
|
|
180
|
-
This batch does not add runtime interception or a new artifact section for expert mode.
|
|
181
|
-
The rule is documentation plus lightweight recording inside the existing workflow artifact.
|
|
182
|
-
|
|
183
|
-
## 9. Runtime Truth
|
|
184
|
-
| Runtime | Current truth | Workflow note |
|
|
1
|
+
# SDTK Orchestrator Routing Contract
|
|
2
|
+
|
|
3
|
+
Goal: use the SDTK Suite as a coordinated operating model:
|
|
4
|
+
- `SDTK-SPEC` governs upstream discovery, planning, design, traceability, and release gates.
|
|
5
|
+
- `SDTK-CODE` is the default downstream system for implementation, bug fixing, refactoring, verification, and ship-ready code changes.
|
|
6
|
+
- `SDTK-OPS` is the downstream system for deployment, infrastructure, CI/CD, monitoring, incident handling, and operational verification.
|
|
7
|
+
|
|
8
|
+
Orchestrator Intake is the always-winning front door for every unprefixed request.
|
|
9
|
+
|
|
10
|
+
## 1) Default Rules
|
|
11
|
+
- If role is not specified, default to Orchestrator Intake, not PM.
|
|
12
|
+
- Orchestrator first classifies the user request intent, then routes to the smallest sufficient SDTK product, role, and skill.
|
|
13
|
+
- PM starts only when the request is ready for formal SDTK-SPEC product initiation after discovery readiness is confirmed.
|
|
14
|
+
- Do not skip phases. If inputs are missing, ask focused questions before moving on.
|
|
15
|
+
- At the end of every SDTK-SPEC phase, update:
|
|
16
|
+
- `SHARED_PLANNING.md`
|
|
17
|
+
- `QUALITY_CHECKLIST.md`
|
|
18
|
+
- Artifact language under `docs/**` should default to English.
|
|
19
|
+
- Read stack and command configuration from `sdtk-spec.config.json` in the project root.
|
|
20
|
+
- For VI/JP source requirements, keep original text in an appendix and add literal English translation for traceability.
|
|
21
|
+
- `/dev` stops at `FEATURE_IMPL_PLAN + CODE_HANDOFF`; SDTK-CODE is the default downstream coding system.
|
|
22
|
+
- Verification-before-completion: no phase may declare done, pass, or handoff-ready without fresh command evidence per `governance/ai/core/SDTK_VERIFICATION_BEFORE_COMPLETION_POLICY.md`.
|
|
23
|
+
- `toolkit/skills/skills.catalog.yaml` is the inventory source of truth for the 14 core SDTK-SPEC skills, including the bounded `mailbox-dispatch` controller skill.
|
|
24
|
+
|
|
25
|
+
## 2) Session Bootstrap Protocol
|
|
26
|
+
When starting a new session, read context in this order when the files exist:
|
|
27
|
+
1. `AGENTS.md`
|
|
28
|
+
2. `governance/ai/session/SDTK_ACTIVE_BOOTSTRAP.md`
|
|
29
|
+
3. `governance/ai/session/SDTK_AGENT_WORKING_RULES.md`
|
|
30
|
+
4. `governance/ai/core/IMPROVEMENT_BACKLOG.md`
|
|
31
|
+
5. issue-specific controller spec and implementation plan
|
|
32
|
+
|
|
33
|
+
Do not read the entire historical session archive by default. Use `SDTK_SESSION_MEMORY_*.md` only when chronology or past acceptance details are required.
|
|
34
|
+
|
|
35
|
+
Active orchestration check: if `.sdtk/agent-runtime/runs/` holds a run whose state is not terminal (`running` or `waiting_for_approval`), surface it in one line (run id plus the blocking gate, if any) and offer `sdtk-agent run continue` before starting unrelated work, the same way `.sdtk/handoff/` items are surfaced.
|
|
36
|
+
|
|
37
|
+
## 3) Orchestrator-First Intake Protocol
|
|
38
|
+
For every unprefixed user request:
|
|
39
|
+
1. Classify the request intent before selecting PM/BA/ARCH/DEV/QA or a downstream product lane.
|
|
40
|
+
2. Route to the smallest sufficient workflow:
|
|
41
|
+
- unclear idea or early concept -> brainstorm / requirement clarification, then create or update `docs/discovery/REQUIREMENT_[FEATURE_KEY].md`
|
|
42
|
+
- formal feature discovery or planning -> SDTK-SPEC pipeline
|
|
43
|
+
- implementation, bug fix, refactor, verification, or ship-ready code -> SDTK-CODE
|
|
44
|
+
- deploy, release, infrastructure, CI/CD, monitoring, incident, backup, security-infra, or ops verification -> SDTK-OPS
|
|
45
|
+
- documentation graph or Atlas viewer -> `sdtk-spec atlas` compatibility workflow, or `sdtk-wiki` for canonical SDTK-WIKI work
|
|
46
|
+
- SDTK-WIKI Ask -> native `sdtk-wiki ask` when `.sdtk/wiki/graph` and `wiki.ask` entitlement/runtime preconditions are present
|
|
47
|
+
- project ingest, project refresh, or project audit -> the matching project command or workflow
|
|
48
|
+
- review or release decision -> review/QA workflow
|
|
49
|
+
3. Ask focused questions only when missing information blocks safe routing.
|
|
50
|
+
4. Do not force raw ideas directly into PM Phase 1. Clarify the requirement first in `docs/discovery/REQUIREMENT_[FEATURE_KEY].md`, then start PM initiation only after the artifact is marked `READY_FOR_PM_INITIATION`.
|
|
51
|
+
5. When routing creates artifacts, record decisions and open questions in the correct SDTK artifact.
|
|
52
|
+
|
|
53
|
+
## 4) Intent-To-Skill Routing Matrix
|
|
54
|
+
Use this compact matrix during intake so the agent picks the smallest sufficient workflow instead of defaulting everything to PM:
|
|
55
|
+
|
|
56
|
+
| User intent | Primary route | Output expectation |
|
|
185
57
|
|---|---|---|
|
|
186
|
-
|
|
|
187
|
-
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
- `sdtk-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
-
|
|
201
|
-
-
|
|
202
|
-
-
|
|
203
|
-
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
58
|
+
| Raw idea | Brainstorm / requirement clarification | `docs/discovery/REQUIREMENT_[FEATURE_KEY].md` with clarified problem, scope, assumptions, open questions, and readiness |
|
|
59
|
+
| Approved idea ready for product planning | `SDTK-SPEC` PM initiation | `REQUIREMENT_[FEATURE_KEY]` marked `READY_FOR_PM_INITIATION`, then `PROJECT_INITIATION` kickoff |
|
|
60
|
+
| Formal feature delivery | `SDTK-SPEC` pipeline | PM -> BA -> ARCH -> DEV planning -> CODE handoff -> QA |
|
|
61
|
+
| Build, fix, or refactor implementation | `SDTK-CODE` | code-brainstorm (when slice is ambiguous) -> start -> plan -> build -> verify -> ship |
|
|
62
|
+
| Debug failure or unexpected behavior | `SDTK-CODE` debug | Root cause, bounded fix, regression verification |
|
|
63
|
+
| Deployment, release, infra, or CI/CD work | `SDTK-OPS` | ops-plan -> ops-deploy/ops-incident/ops-monitor -> ops-verify |
|
|
64
|
+
| Code review or spec review | Review / QA workflow | Findings, risks, blockers, acceptance signal |
|
|
65
|
+
| Atlas graph build or viewer work | `sdtk-spec atlas` compatibility workflow or `sdtk-wiki atlas` for canonical SDTK-WIKI work | Local `.sdtk/atlas` compatibility graph or `.sdtk/wiki` SDTK-WIKI result |
|
|
66
|
+
| SDTK-WIKI Ask | `sdtk-wiki ask` | Grounded answer when `.sdtk/wiki/graph` plus `wiki.ask` entitlement/runtime preconditions are present, otherwise explicit blocker |
|
|
67
|
+
| Existing project scan: project ingest, project refresh, or project audit | Matching premium project workflow | Project-local foundation, refresh, or audit result without overclaiming entitlement |
|
|
68
|
+
| Multi-step durable workflow: 3+ dependent steps, human gates between steps, must survive a pause, or spans multiple lanes/sessions | Propose `sdtk-agent` orchestration (opt-in, token-aware, see the orchestration cost gate in section 5) | `.sdtk/agent-runtime/runs/<run_id>/` ledger plus `reports/final_report.md` |
|
|
69
|
+
| "what should we do next" | Orchestrator state review | Recommended next action with rationale and lane choice |
|
|
70
|
+
|
|
71
|
+
Guardrails:
|
|
72
|
+
- Explicit user role prefix wins unless safety or missing critical inputs block execution.
|
|
73
|
+
- Raw idea clarification should use `docs/discovery/REQUIREMENT_[FEATURE_KEY].md`; do not widen the discovery-clarification scope into generator automation, package sync, or downstream validation work.
|
|
74
|
+
- Do not claim SDTK-WIKI Ask, project ingest, project refresh, project audit, web discover, compile, or query-history availability unless the runtime and entitlement preconditions are actually present.
|
|
75
|
+
- Ambiguous intent: ask, do not guess. Cap re-routes at 2 to avoid bouncing between products. Escalate to the user when intent cannot be classified or when the re-route limit is hit.
|
|
76
|
+
|
|
77
|
+
## 5) Proceed-Vs-Ask Decision Rules
|
|
78
|
+
Ask clarification when:
|
|
79
|
+
1. the requested outcome is ambiguous
|
|
80
|
+
2. safety, security, or release impact is unclear
|
|
81
|
+
3. the target repo, project, or path is missing
|
|
82
|
+
4. implementation is requested without an acceptance boundary
|
|
83
|
+
5. the next command could mutate external state
|
|
84
|
+
6. the next step would spawn multiple sub-agents or incur significant token cost, such as dispatching an `sdtk-agent` run
|
|
85
|
+
|
|
86
|
+
Proceed when:
|
|
87
|
+
1. the intent and target are clear
|
|
88
|
+
2. the task is read-only analysis
|
|
89
|
+
3. the user already approved the relevant plan or spec
|
|
90
|
+
4. the requested change is bounded and verifiable
|
|
91
|
+
|
|
92
|
+
### 5.1) Orchestration Cost Gate (sdtk-agent)
|
|
93
|
+
`sdtk-agent` chains multiple steps and dispatches each ready task through an adapter, so a single run can spawn many sub-agents and consume significant token budget. Because of that cost, orchestration is always opt-in:
|
|
94
|
+
|
|
95
|
+
1. Never auto-start an `sdtk-agent` run on the user's behalf. Only propose it.
|
|
96
|
+
2. Propose only when a routing trigger is hit (the multi-step row in section 4) and the workflow clears the minimum size (default: 3 dependent steps). One- or two-step bounded tasks route straight to a lane instead of orchestration.
|
|
97
|
+
3. When proposing, state the trade-off concretely and let the user decide, defaulting to "no / run inline". Run `sdtk-agent workflow validate` first (it does not spawn anything) to count tasks, human gates, and adapter dispatches, then quote a cost band: dispatch count 3 or fewer is Low, 4-8 is Medium, more than 8 or any loop/retry is High. Example:
|
|
98
|
+
> This request fits sdtk-agent: durable, resumable, with hard approval gates, but it will spawn several agents and cost more tokens than an inline run. Estimate: 9 steps, 3 gates, 11 dispatches (token cost: HIGH). Use sdtk-agent for this, or run it inline? (default: inline)
|
|
99
|
+
4. `run start` only creates the ledger and never spawns; treat it as the safe preview point. Dispatch happens on `run continue`, which is an explicit user action. Before a `run continue` that would dispatch several ready tasks at once, report how many tasks and which adapters are about to run, and let the user confirm or step through one task at a time.
|
|
100
|
+
5. Honor `.sdtk/agent-runtime/config.json` `orchestration.confirmationMode` (`always` by default): no mode ever allows dispatch without at least one confirmation per run.
|
|
101
|
+
|
|
102
|
+
## 6) Clarification Protocol
|
|
103
|
+
Apply for all roles (`/pm`, `/ba`, `/arch`, `/dev`, `/qa`):
|
|
104
|
+
1. If there is ambiguity or missing data, log `Open Questions` as `OQ-xx` in the current phase artifact.
|
|
105
|
+
2. Do not guess for behavior, API contracts, UI/UX, data model, security, or release criteria.
|
|
106
|
+
3. Escalate unresolved items to PM with question ID and file reference.
|
|
107
|
+
4. PM resolves by:
|
|
108
|
+
- using available docs and making a clear decision, or
|
|
109
|
+
- asking the user if source information is still missing.
|
|
110
|
+
5. Record decisions in PRD (`Decision Log`) and update the originating `OQ-xx` with resolution.
|
|
111
|
+
|
|
112
|
+
For raw ideas before PM initiation:
|
|
113
|
+
1. Use `docs/discovery/REQUIREMENT_[FEATURE_KEY].md` as the canonical clarification artifact.
|
|
114
|
+
2. Record scope, non-goals, assumptions, constraints, open questions, and readiness there before opening `PROJECT_INITIATION`.
|
|
115
|
+
3. Treat the discovery artifact as a bridge into PM initiation, not as a PRD replacement.
|
|
116
|
+
|
|
117
|
+
## 7) Role Selection In One Message
|
|
118
|
+
When the user prefixes a message, execute that role:
|
|
119
|
+
- `/orchestrator` (default intake + routing)
|
|
120
|
+
- `/pm` (formal product initiation + planning)
|
|
121
|
+
- `/ba`
|
|
122
|
+
- `/arch`
|
|
123
|
+
- `/dev`
|
|
124
|
+
- `/qa`
|
|
125
|
+
- `/engineer` (escalation for technical blockers)
|
|
126
|
+
|
|
127
|
+
Notes:
|
|
128
|
+
- Supported delivery roles are PM/BA/ARCH/DEV/QA.
|
|
129
|
+
- There is no separate `/tester` role. Test-case design belongs to QA with `sdtk-test-case-spec`.
|
|
130
|
+
|
|
131
|
+
## 8) Suite Product Routing
|
|
132
|
+
Use the suite products according to task intent:
|
|
133
|
+
|
|
134
|
+
- `SDTK-SPEC`
|
|
135
|
+
- feature discovery
|
|
136
|
+
- requirements, BA, PRD, backlog, architecture, QA artifacts
|
|
137
|
+
- handoff generation and release-gate traceability
|
|
138
|
+
- entry: `/orchestrator` (recommended), `/pm`, `/ba`, `/arch`, `/dev`, `/qa`
|
|
139
|
+
- `SDTK-DESIGN`
|
|
140
|
+
- screen/layout design, visual tokens, prototype evidence, design handoff before coding
|
|
141
|
+
- use before `SDTK-CODE` when implementation needs reviewable screens or a design handoff
|
|
142
|
+
- `SDTK-CODE`
|
|
143
|
+
- build a feature
|
|
144
|
+
- fix a bug
|
|
145
|
+
- refactor implementation
|
|
146
|
+
- run implementation verification
|
|
147
|
+
- ship code changes
|
|
148
|
+
- workflow: `start -> plan -> build -> verify -> ship`
|
|
149
|
+
- entry point for ambiguous slices: `code-brainstorm`
|
|
150
|
+
- specialist engine: `code-plan`, `code-execute`, `code-tdd`, `code-debug`, `code-verify`, `code-review`, `code-ship`, `code-finish`, `code-worktree`, `code-discover`, `code-parallel` (sequential fallback when parallel dispatch is unavailable)
|
|
151
|
+
- `SDTK-OPS`
|
|
152
|
+
- deploy or release
|
|
153
|
+
- infrastructure and environment setup
|
|
154
|
+
- CI/CD changes
|
|
155
|
+
- monitoring, incident response, security-infra, backup, compliance
|
|
156
|
+
- entry: `ops-discover` (when boundary is unclear), `ops-plan`, `ops-deploy`, `ops-incident`, `ops-monitor`, `ops-backup`, `ops-verify`, `ops-debug`
|
|
157
|
+
|
|
158
|
+
Cross-cutting capabilities (not a linear lane; usable across every phase):
|
|
159
|
+
|
|
160
|
+
- `SDTK-WIKI` (memory)
|
|
161
|
+
- project knowledge graph, docs view, and grounded `sdtk-wiki ask`
|
|
162
|
+
- any lane may read from it for recall; build with `sdtk-wiki atlas build`
|
|
163
|
+
- `SDTK-AGENT` (orchestration)
|
|
164
|
+
- a durable, file-driven DAG controller that sits above `sdtk-code` agent-team; it does not own a phase, it chains steps across lanes
|
|
165
|
+
- surface: `sdtk-agent run start|continue|status|report`, `gate approve|reject`, `workflow validate`, `adapter hermes-kanban plan`
|
|
166
|
+
- use only when a workflow has 3+ dependent steps, needs human gates between steps, or must survive a pause; otherwise route straight to a lane
|
|
167
|
+
- opt-in and token-aware: always propose-then-confirm before dispatch (see the orchestration cost gate in section 5)
|
|
168
|
+
- the CLI is runtime-neutral and installs no skills; the engine is Free, and live external dispatch is not part of this release (hermes-kanban is dry-run only)
|
|
169
|
+
|
|
170
|
+
If the current project only has `SDTK-SPEC` runtime assets installed:
|
|
171
|
+
- keep `/dev` bounded to planning and `CODE_HANDOFF`
|
|
172
|
+
- do not overclaim that SDTK-CODE or SDTK-OPS runtime assets are already installed
|
|
173
|
+
- still describe the correct downstream suite path in guidance and handoffs
|
|
174
|
+
|
|
175
|
+
## 9) Shared State And Quality Gates
|
|
176
|
+
- `SHARED_PLANNING.md`: phase status, owners, artifacts, blockers, handoff notes.
|
|
177
|
+
- `QUALITY_CHECKLIST.md`: gate checklist by phase.
|
|
178
|
+
- No handoff to next phase while current gate is not PASS.
|
|
179
|
+
- QA cannot start until downstream implementation evidence exists, normally from SDTK-CODE.
|
|
180
|
+
- QA cannot approve until `OPS_HANDOFF` and downstream OPS evidence are present and aligned.
|
|
181
|
+
- QA accepts downstream implementation evidence from SDTK-CODE as the default handoff bridge, plus `OPS_HANDOFF + OPS evidence` in the current formal suite flow.
|
|
182
|
+
|
|
183
|
+
## 10) Runtime Availability Rules
|
|
184
|
+
- Route only to products whose runtime assets are installed; do not overclaim.
|
|
185
|
+
- For SDTK-SPEC-only installs: keep `/dev` bounded to planning and `CODE_HANDOFF`; do not claim SDTK-CODE or SDTK-OPS are installed.
|
|
186
|
+
- For Codex runtimes: project-local skills require the explicit local `CODEX_HOME=<project>/.codex` contract; native `.codex/skills` auto-discovery is not claimed.
|
|
187
|
+
- Use `ops-parallel` or `code-parallel` only for truly independent slices. If parallel dispatch is unavailable in the active runtime, execute them sequentially in one controller session.
|
|
188
|
+
- `SDTK-AGENT` is runtime-neutral: it installs no skills and behaves identically on Claude and Codex. It is CLI-only, so do not invent a slash command for it.
|
|
189
|
+
- The `sdtk-agent` hermes-kanban adapter is dry-run only in this release; it never calls a live gateway or creates a real card. Live dispatch is a future Pro capability, so do not claim it.
|
|
190
|
+
|
|
191
|
+
## 11) Discovery And PM Readiness
|
|
192
|
+
- PM initiation starts only after `docs/discovery/REQUIREMENT_[FEATURE_KEY].md` is marked `READY_FOR_PM_INITIATION`.
|
|
193
|
+
- Use `NEEDS_MORE_DISCOVERY` or `NOT_ACTIONABLE_YET` when the request is not ready.
|
|
194
|
+
- The discovery artifact is a pre-PM clarification bridge, not a PRD or BA replacement.
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
# Software Development Toolkit - Code (SDTK-CODE)
|
|
2
|
+
|
|
3
|
+
## Document Role
|
|
4
|
+
This file is the architecture and product-boundary document for `SDTK-CODE`.
|
|
5
|
+
|
|
6
|
+
Use this file to understand:
|
|
7
|
+
- how `SDTK-CODE` fits inside the `SDTK-SPEC -> SDTK-CODE -> SDTK-OPS` family
|
|
8
|
+
- what the workflow-first layer owns
|
|
9
|
+
- how the workflow layer maps to the existing `code-*` specialist engine
|
|
10
|
+
- what stays outside `SDTK-CODE` scope
|
|
11
|
+
|
|
12
|
+
Do not use this file as the primary install or onboarding guide.
|
|
13
|
+
|
|
14
|
+
Canonical end-user guide:
|
|
15
|
+
- `products/sdtk-code/governance/SDTKCODE_TOOLKIT_USAGE_GUIDE.md`
|
|
16
|
+
|
|
17
|
+
## 1. Overview
|
|
18
|
+
|
|
19
|
+
`SDTK-CODE` is the coding-process product in the `SDTK-SPEC -> SDTK-CODE -> SDTK-OPS` family.
|
|
20
|
+
|
|
21
|
+
It is workflow-first:
|
|
22
|
+
- `start`
|
|
23
|
+
- `plan`
|
|
24
|
+
- `build`
|
|
25
|
+
- `verify`
|
|
26
|
+
- `ship`
|
|
27
|
+
|
|
28
|
+
It still keeps the existing specialist engine:
|
|
29
|
+
- the 12 `code-*` skills remain intact
|
|
30
|
+
- expert mode remains direct raw `code-*` usage inside Claude or Codex
|
|
31
|
+
|
|
32
|
+
`SDTK-OPS` now exists as a public downstream operations product via the `sdtk-ops-kit` package. Its install and usage truth is documented in the `products/sdtk-ops/` docs rather than in this file.
|
|
33
|
+
|
|
34
|
+
## 2. Boundary With SDTK-SPEC
|
|
35
|
+
|
|
36
|
+
`SDTK-SPEC` is upstream and remains the docs-first system.
|
|
37
|
+
|
|
38
|
+
`SDTK-SPEC` owns:
|
|
39
|
+
- PM, BA, and ARCH artifact generation
|
|
40
|
+
- docs-first SDLC orchestration
|
|
41
|
+
- upstream handoff generation
|
|
42
|
+
- QA artifact and release-governance flow
|
|
43
|
+
|
|
44
|
+
`SDTK-CODE` owns:
|
|
45
|
+
- implementation workflow after handoff
|
|
46
|
+
- execution-slice refinement and coding-plan discipline after valid intake
|
|
47
|
+
- TDD, debugging, verification, review, and ship discipline
|
|
48
|
+
- canonical `CODE -> OPS` bridge production from completed formal closeout
|
|
49
|
+
|
|
50
|
+
`SDTK-CODE` begins only after upstream handoff inputs already exist.
|
|
51
|
+
|
|
52
|
+
Task-breakdown truth:
|
|
53
|
+
- upstream `SDTK-SPEC` `/dev` still owns implementation-readiness planning and formal handoff scope
|
|
54
|
+
- `FEATURE_IMPL_PLAN_[FEATURE_KEY].md` remains the upstream readiness plan
|
|
55
|
+
- `sdtk-code plan` refines downstream execution slices only after intake succeeds
|
|
56
|
+
|
|
57
|
+
Preferred intake artifact:
|
|
58
|
+
- `docs/dev/CODE_HANDOFF_[FEATURE_KEY].json`
|
|
59
|
+
|
|
60
|
+
Bounded compatibility fallback when the formal handoff file is missing:
|
|
61
|
+
- `docs/dev/FEATURE_IMPL_PLAN_[FEATURE_KEY].md`
|
|
62
|
+
- `sdtk-spec.config.json`
|
|
63
|
+
- relevant architecture, API, database, and flow/screen specs for the current slice when applicable
|
|
64
|
+
|
|
65
|
+
Completed formal closeout also produces:
|
|
66
|
+
- `docs/dev/OPS_HANDOFF_[FEATURE_KEY].json`
|
|
67
|
+
|
|
68
|
+
Compatibility fallback does not replace the formal `CODE_HANDOFF -> OPS_HANDOFF` bridge chain.
|
|
69
|
+
|
|
70
|
+
## 3. Two-Layer Product Model
|
|
71
|
+
|
|
72
|
+
### 3.1 Workflow layer
|
|
73
|
+
The workflow layer is the default documented surface.
|
|
74
|
+
|
|
75
|
+
Its job is to:
|
|
76
|
+
- validate required inputs
|
|
77
|
+
- validate lane and phase state
|
|
78
|
+
- create or update the workflow artifact
|
|
79
|
+
- route users to the next legal step
|
|
80
|
+
- keep execution traceable
|
|
81
|
+
|
|
82
|
+
### 3.2 Specialist engine
|
|
83
|
+
The 12 existing `code-*` skills remain the internal execution engine.
|
|
84
|
+
|
|
85
|
+
They remain:
|
|
86
|
+
- the specialist building blocks behind the workflow layer
|
|
87
|
+
- the direct expert-mode entrypoints
|
|
88
|
+
- unchanged in identity for this implementation wave
|
|
89
|
+
|
|
90
|
+
## 4. Lane Model
|
|
91
|
+
|
|
92
|
+
V1 supports exactly two lanes:
|
|
93
|
+
- `feature`
|
|
94
|
+
- `bugfix`
|
|
95
|
+
|
|
96
|
+
Expected lane progression:
|
|
97
|
+
- feature: `start -> plan -> build -> verify -> ship`
|
|
98
|
+
- bugfix: `start -> build -> verify -> ship`
|
|
99
|
+
|
|
100
|
+
`code-debug` remains cross-cutting and reactive, not a top-level linear phase.
|
|
101
|
+
|
|
102
|
+
## 5. Workflow Artifact
|
|
103
|
+
|
|
104
|
+
Canonical workflow artifact:
|
|
105
|
+
- `docs/dev/CODE_WORKFLOW_[FEATURE_KEY].md`
|
|
106
|
+
|
|
107
|
+
Canonical template path:
|
|
108
|
+
- `products/sdtk-code/toolkit/templates/CODE_WORKFLOW_TEMPLATE.md`
|
|
109
|
+
|
|
110
|
+
The workflow artifact stores:
|
|
111
|
+
- metadata
|
|
112
|
+
- lane and phase state
|
|
113
|
+
- intake outcome
|
|
114
|
+
- slice summary
|
|
115
|
+
- summarized evidence and review notes
|
|
116
|
+
- final ship or finish decision
|
|
117
|
+
|
|
118
|
+
The workflow artifact does not inline full raw command output.
|
|
119
|
+
|
|
120
|
+
## 6. Runtime Truth
|
|
121
|
+
|
|
122
|
+
### Claude
|
|
123
|
+
- supports project and user scope
|
|
124
|
+
- installs `code-*` skills
|
|
125
|
+
|
|
126
|
+
### Codex
|
|
127
|
+
- defaults to user scope
|
|
128
|
+
- installs `sdtk-code-*` skills
|
|
129
|
+
- supports project-local installs only through the explicit local `CODEX_HOME=<project>/.codex` contract
|
|
130
|
+
- native `.codex/skills` auto-discovery is not claimed
|
|
131
|
+
- routing assumptions must not depend on unavailable multi-agent behavior
|
|
132
|
+
|
|
133
|
+
## 7. Documentation Map
|
|
134
|
+
|
|
135
|
+
Use these documents by role:
|
|
136
|
+
|
|
137
|
+
- Canonical end-user install and usage guide:
|
|
138
|
+
- `products/sdtk-code/governance/SDTKCODE_TOOLKIT_USAGE_GUIDE.md`
|
|
139
|
+
- Install-truth and smoke appendix:
|
|
140
|
+
- `products/sdtk-code/governance/installation-runbook.md`
|
|
141
|
+
- Workflow/boundary companion:
|
|
142
|
+
- `products/sdtk-code/governance/usage-guide.md`
|
|
143
|
+
- npm package landing page:
|
|
144
|
+
- `products/sdtk-code/distribution/sdtk-code-kit/README.md`
|
|
145
|
+
- Contract details:
|
|
146
|
+
- `products/sdtk-code/governance/workflow-contract.md`
|
|
147
|
+
- `products/sdtk-code/governance/workflow-routing-matrix.md`
|
|
148
|
+
- `products/sdtk-code/governance/workflow-state-model.md`
|
|
149
|
+
|
|
150
|
+
## 8. Upstream Boundary With SDTK-SPEC
|
|
151
|
+
|
|
152
|
+
`SDTK-SPEC` is the upstream docs-first system. `SDTK-CODE` begins only after valid upstream handoff inputs already exist.
|
|
153
|
+
|
|
154
|
+
Preferred upstream intake artifact:
|
|
155
|
+
- `docs/dev/CODE_HANDOFF_[FEATURE_KEY].json`
|
|
156
|
+
|
|
157
|
+
Compatibility fallback when the formal handoff file is missing:
|
|
158
|
+
- fall back to `FEATURE_IMPL_PLAN + sdtk-spec.config.json` only when the formal handoff file is missing
|
|
159
|
+
|
|
160
|
+
Task-breakdown truth:
|
|
161
|
+
- upstream `SDTK-SPEC` `/dev` owns implementation-readiness planning and formal handoff scope
|
|
162
|
+
- `FEATURE_IMPL_PLAN_[FEATURE_KEY].md` remains the upstream readiness plan
|
|
163
|
+
- `sdtk-code plan` refines downstream execution slices only after intake succeeds
|
|
164
|
+
|
|
165
|
+
`SDTK-CODE` expected outputs include:
|
|
166
|
+
- code changes
|
|
167
|
+
- test changes
|
|
168
|
+
- summarized verification evidence
|
|
169
|
+
- `docs/dev/REVIEW_PACKET_[FEATURE_KEY].md` from `verify` as downstream QA/controller input — not as final approval
|
|
170
|
+
- `docs/dev/OPS_HANDOFF_[FEATURE_KEY].json` on completed formal-handoff-backed closeout
|
|
171
|
+
|
|
172
|
+
## 9. Expert Mode And Deviation Recording
|
|
173
|
+
|
|
174
|
+
Expert mode is direct raw `code-*` usage inside the runtime.
|
|
175
|
+
|
|
176
|
+
Normal mode is workflow-first (`start -> plan -> build -> verify -> ship`). Expert mode is the direct raw entrypoint for advanced use.
|
|
177
|
+
|
|
178
|
+
Expert mode rules:
|
|
179
|
+
- v1 does not require a dedicated CLI expert-mode flag
|
|
180
|
+
- if a workflow artifact already exists and you bypass the normal workflow command path, record the deviation under `## 6. Evidence And Review Notes` in the workflow artifact using a lightweight note that captures:
|
|
181
|
+
- date/time
|
|
182
|
+
- current phase
|
|
183
|
+
- raw skill used
|
|
184
|
+
- reason for bypass
|
|
185
|
+
- evidence refs
|
|
186
|
+
- outcome or next action
|
|
187
|
+
|
|
188
|
+
## 10. Runtime And Codex Fallback Truth
|
|
189
|
+
|
|
190
|
+
| Runtime | Current truth |
|
|
191
|
+
|---|---|
|
|
192
|
+
| Claude | strongest intended runtime for v1; full workflow direction is designed with Claude in mind |
|
|
193
|
+
| Codex | defaults to user scope; project-local installs require the explicit `CODEX_HOME=<project>/.codex` contract |
|
|
194
|
+
|
|
195
|
+
Codex notes:
|
|
196
|
+
- workflow routing must not assume runtime capabilities that Codex cannot reliably support
|
|
197
|
+
- sequential fallback applies when parallel dispatch is unavailable: keep the same slice boundaries but execute sequentially
|
|
@@ -1,6 +1,38 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
"docs": {
|
|
3
|
+
"artifactsLanguage": "EN",
|
|
4
|
+
"guidanceLanguage": "VI",
|
|
5
|
+
"preserveOriginalInput": true,
|
|
6
|
+
"appendixIncludeEnglishTranslation": true,
|
|
7
|
+
"aiPeerReviewAllowed": true
|
|
8
|
+
},
|
|
9
|
+
"orchestration": {
|
|
10
|
+
"apiDesignDetailMode": "auto",
|
|
11
|
+
"testCaseSpecMode": "auto"
|
|
12
|
+
},
|
|
13
|
+
"stack": {
|
|
14
|
+
"backend": "Set your backend stack (example: Python Django REST Framework)",
|
|
15
|
+
"frontend": "Set your frontend stack (example: React + Vite)",
|
|
16
|
+
"mobile": "N/A",
|
|
17
|
+
"database": "Set your database (example: PostgreSQL 15)",
|
|
18
|
+
"auth": "Set your auth strategy (example: JWT/OAuth2)",
|
|
19
|
+
"detection": {
|
|
20
|
+
"language": null,
|
|
21
|
+
"framework": null,
|
|
22
|
+
"frameworkVersion": null,
|
|
23
|
+
"packageManager": null,
|
|
24
|
+
"confidence": "low",
|
|
25
|
+
"evidence": [],
|
|
26
|
+
"detectedAt": null,
|
|
27
|
+
"method": "static"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"commands": {
|
|
31
|
+
"backendTests": "UPDATE_ME: set backend test command",
|
|
32
|
+
"backendTypecheck": "UPDATE_ME: set backend typecheck command",
|
|
33
|
+
"backendLint": "UPDATE_ME: set backend lint command",
|
|
34
|
+
"frontendTests": "UPDATE_ME: set frontend test command",
|
|
35
|
+
"frontendLint": "UPDATE_ME: set frontend lint command",
|
|
36
|
+
"e2eTests": "UPDATE_ME: set e2e test command"
|
|
37
|
+
}
|
|
6
38
|
}
|
|
@@ -1,12 +1,50 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$comment": "SCAFFOLD: Example profiles config for SDTKCODE. Copy to sdtk-spec.config.profiles.json and customize.",
|
|
3
2
|
"profiles": {
|
|
4
|
-
"
|
|
3
|
+
"django-react": {
|
|
4
|
+
"orchestration": {
|
|
5
|
+
"apiDesignDetailMode": "auto",
|
|
6
|
+
"testCaseSpecMode": "auto"
|
|
7
|
+
},
|
|
5
8
|
"stack": {
|
|
6
|
-
"backend": "
|
|
7
|
-
"frontend": "
|
|
8
|
-
"
|
|
9
|
+
"backend": "Python 3.11 + Django 4.x + Django REST Framework",
|
|
10
|
+
"frontend": "React 18 + Vite",
|
|
11
|
+
"mobile": "N/A",
|
|
12
|
+
"database": "PostgreSQL 15",
|
|
13
|
+
"auth": "JWT"
|
|
14
|
+
},
|
|
15
|
+
"commands": {
|
|
16
|
+
"backendTests": "python -m pytest",
|
|
17
|
+
"backendTypecheck": "python -m mypy src/backend",
|
|
18
|
+
"backendLint": "python -m ruff check src/backend",
|
|
19
|
+
"frontendTests": "npm run test",
|
|
20
|
+
"frontendLint": "npm run lint",
|
|
21
|
+
"e2eTests": "npm run e2e"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"node-nextjs": {
|
|
25
|
+
"orchestration": {
|
|
26
|
+
"apiDesignDetailMode": "auto",
|
|
27
|
+
"testCaseSpecMode": "auto"
|
|
28
|
+
},
|
|
29
|
+
"stack": {
|
|
30
|
+
"backend": "Node.js 20 + Express/Fastify",
|
|
31
|
+
"frontend": "Next.js 14",
|
|
32
|
+
"mobile": "N/A",
|
|
33
|
+
"database": "PostgreSQL 15",
|
|
34
|
+
"auth": "OAuth2 + JWT"
|
|
35
|
+
},
|
|
36
|
+
"commands": {
|
|
37
|
+
"backendTests": "npm run test:api",
|
|
38
|
+
"backendTypecheck": "npm run typecheck:api",
|
|
39
|
+
"backendLint": "npm run lint:api",
|
|
40
|
+
"frontendTests": "npm run test:web",
|
|
41
|
+
"frontendLint": "npm run lint:web",
|
|
42
|
+
"e2eTests": "npm run test:e2e"
|
|
9
43
|
}
|
|
10
44
|
}
|
|
11
|
-
}
|
|
45
|
+
},
|
|
46
|
+
"notes": [
|
|
47
|
+
"Copy one profile into sdtk-spec.config.json and adjust for your project.",
|
|
48
|
+
"Do not keep UPDATE_ME placeholders before running real delivery gates."
|
|
49
|
+
]
|
|
12
50
|
}
|