sdtk-code-kit 0.3.3 → 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 +9 -9
- package/assets/manifest/toolkit-bundle.sha256.txt +4 -4
- package/assets/toolkit/toolkit/AGENTS.md +31 -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": "
|
|
2
|
+
"version": "0.3.4",
|
|
3
|
+
"sourceCommit": "375b27555f8dfc0ac32a3f6479b7158c17ca03cc",
|
|
4
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,13 +35,13 @@
|
|
|
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
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"path": "toolkit/SDTKCODE_TOOLKIT.md",
|
|
@@ -149,4 +149,4 @@
|
|
|
149
149
|
"size": 3668
|
|
150
150
|
}
|
|
151
151
|
]
|
|
152
|
-
}
|
|
152
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
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
9
|
9269a5afe88ce97885d054f5a78d496c1aafa50097f581d070e34dceb597c8fe toolkit/SDTKCODE_TOOLKIT.md
|
|
10
10
|
d797d707dc34d299dbac13f09f3bc8cc42759cb69a9fa5b2cb2269e4c246061e toolkit/skills/code-brainstorm/SKILL.md
|
|
11
11
|
698c89de9a0586e83ee52147adf345fa2ab813a06b454ca50e9c69e423f0a910 toolkit/skills/code-debug/references/root-cause-tracing.md
|
|
@@ -26,4 +26,4 @@ a85c93883197eef41f5392875b41a19b8cdeb3b14b3c6fb5a6dbfb6f21a1b825 toolkit/skills
|
|
|
26
26
|
967ec7e8a0a7951e3423c4e0f92c7471912e3a03ea23dc572c392e5a37edc266 toolkit/skills/code-tdd/SKILL.md
|
|
27
27
|
6df69cf2db69d13672b3e73a2c25aca48791e9ea912c1e1fbc3ce7734399c346 toolkit/skills/code-verify/SKILL.md
|
|
28
28
|
194cf6ec70eae013c03d06f397d4bbaca73256ad69be681ad14812493a3d1962 toolkit/skills/code-worktree/SKILL.md
|
|
29
|
-
7b3e27b56153160b44b5813e63ee8f762ee6f4338157480934ec4860f4914884 toolkit/templates/CODE_WORKFLOW_TEMPLATE.md
|
|
29
|
+
7b3e27b56153160b44b5813e63ee8f762ee6f4338157480934ec4860f4914884 toolkit/templates/CODE_WORKFLOW_TEMPLATE.md
|
|
@@ -32,6 +32,8 @@ When starting a new session, read context in this order when the files exist:
|
|
|
32
32
|
|
|
33
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
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
|
+
|
|
35
37
|
## 3) Orchestrator-First Intake Protocol
|
|
36
38
|
For every unprefixed user request:
|
|
37
39
|
1. Classify the request intent before selecting PM/BA/ARCH/DEV/QA or a downstream product lane.
|
|
@@ -63,6 +65,7 @@ Use this compact matrix during intake so the agent picks the smallest sufficient
|
|
|
63
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 |
|
|
64
66
|
| SDTK-WIKI Ask | `sdtk-wiki ask` | Grounded answer when `.sdtk/wiki/graph` plus `wiki.ask` entitlement/runtime preconditions are present, otherwise explicit blocker |
|
|
65
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` |
|
|
66
69
|
| "what should we do next" | Orchestrator state review | Recommended next action with rationale and lane choice |
|
|
67
70
|
|
|
68
71
|
Guardrails:
|
|
@@ -78,6 +81,7 @@ Ask clarification when:
|
|
|
78
81
|
3. the target repo, project, or path is missing
|
|
79
82
|
4. implementation is requested without an acceptance boundary
|
|
80
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
|
|
81
85
|
|
|
82
86
|
Proceed when:
|
|
83
87
|
1. the intent and target are clear
|
|
@@ -85,6 +89,16 @@ Proceed when:
|
|
|
85
89
|
3. the user already approved the relevant plan or spec
|
|
86
90
|
4. the requested change is bounded and verifiable
|
|
87
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
|
+
|
|
88
102
|
## 6) Clarification Protocol
|
|
89
103
|
Apply for all roles (`/pm`, `/ba`, `/arch`, `/dev`, `/qa`):
|
|
90
104
|
1. If there is ambiguity or missing data, log `Open Questions` as `OQ-xx` in the current phase artifact.
|
|
@@ -122,6 +136,9 @@ Use the suite products according to task intent:
|
|
|
122
136
|
- requirements, BA, PRD, backlog, architecture, QA artifacts
|
|
123
137
|
- handoff generation and release-gate traceability
|
|
124
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
|
|
125
142
|
- `SDTK-CODE`
|
|
126
143
|
- build a feature
|
|
127
144
|
- fix a bug
|
|
@@ -138,6 +155,18 @@ Use the suite products according to task intent:
|
|
|
138
155
|
- monitoring, incident response, security-infra, backup, compliance
|
|
139
156
|
- entry: `ops-discover` (when boundary is unclear), `ops-plan`, `ops-deploy`, `ops-incident`, `ops-monitor`, `ops-backup`, `ops-verify`, `ops-debug`
|
|
140
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
|
+
|
|
141
170
|
If the current project only has `SDTK-SPEC` runtime assets installed:
|
|
142
171
|
- keep `/dev` bounded to planning and `CODE_HANDOFF`
|
|
143
172
|
- do not overclaim that SDTK-CODE or SDTK-OPS runtime assets are already installed
|
|
@@ -156,6 +185,8 @@ If the current project only has `SDTK-SPEC` runtime assets installed:
|
|
|
156
185
|
- For SDTK-SPEC-only installs: keep `/dev` bounded to planning and `CODE_HANDOFF`; do not claim SDTK-CODE or SDTK-OPS are installed.
|
|
157
186
|
- For Codex runtimes: project-local skills require the explicit local `CODEX_HOME=<project>/.codex` contract; native `.codex/skills` auto-discovery is not claimed.
|
|
158
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.
|
|
159
190
|
|
|
160
191
|
## 11) Discovery And PM Readiness
|
|
161
192
|
- PM initiation starts only after `docs/discovery/REQUIREMENT_[FEATURE_KEY].md` is marked `READY_FOR_PM_INITIATION`.
|
|
@@ -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
|
}
|