sdtk-spec-kit 0.4.12 → 0.4.15
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 +12 -12
- package/assets/manifest/toolkit-bundle.sha256.txt +5 -5
- package/assets/toolkit/toolkit/AGENTS.md +33 -117
- package/assets/toolkit/toolkit/runtimes/claude/CLAUDE_TEMPLATE.md +9 -5
- package/assets/toolkit/toolkit/runtimes/codex/CODEX_TEMPLATE.md +5 -4
- package/assets/toolkit/toolkit/skills/sdtk-orchestrator/SKILL.md +77 -9
- package/assets/toolkit/toolkit/skills-claude/orchestrator/SKILL.md +49 -3
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.4.
|
|
3
|
-
"sourceCommit": "
|
|
2
|
+
"version": "0.4.15",
|
|
3
|
+
"sourceCommit": "17db9f2e515e7dc0cb120d0bf8dae4f01487a239",
|
|
4
4
|
"fileCount": 98,
|
|
5
5
|
"files": [
|
|
6
6
|
{
|
|
7
7
|
"path": "toolkit/AGENTS.md",
|
|
8
|
-
"sha256": "
|
|
9
|
-
"size":
|
|
8
|
+
"sha256": "0387e747b9eb4500f810b338b28d795841e796fdaa40c4002e07b0d88b724167",
|
|
9
|
+
"size": 11053
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
"path": "toolkit/install.ps1",
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
"path": "toolkit/runtimes/claude/CLAUDE_TEMPLATE.md",
|
|
23
|
-
"sha256": "
|
|
24
|
-
"size":
|
|
23
|
+
"sha256": "42032999114addad5a664ee5dd891c521cfec87e8fadad6189f331a878156046",
|
|
24
|
+
"size": 5075
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
"path": "toolkit/runtimes/codex/CODEX_TEMPLATE.md",
|
|
28
|
-
"sha256": "
|
|
29
|
-
"size":
|
|
28
|
+
"sha256": "60b5b3d97937a1f6ec7b58fc50dc5513046d7cb81f514ec5b69c03e9129488bb",
|
|
29
|
+
"size": 3616
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
"path": "toolkit/scripts/agents/run-claude-task.ps1",
|
|
@@ -145,8 +145,8 @@
|
|
|
145
145
|
},
|
|
146
146
|
{
|
|
147
147
|
"path": "toolkit/skills-claude/orchestrator/SKILL.md",
|
|
148
|
-
"sha256": "
|
|
149
|
-
"size":
|
|
148
|
+
"sha256": "aa086be1038e34b1b29f7f65bacf254b5c1bfdc1203bd3e643c27acca4f9c2fa",
|
|
149
|
+
"size": 5359
|
|
150
150
|
},
|
|
151
151
|
{
|
|
152
152
|
"path": "toolkit/skills-claude/pm/SKILL.md",
|
|
@@ -240,8 +240,8 @@
|
|
|
240
240
|
},
|
|
241
241
|
{
|
|
242
242
|
"path": "toolkit/skills/sdtk-orchestrator/SKILL.md",
|
|
243
|
-
"sha256": "
|
|
244
|
-
"size":
|
|
243
|
+
"sha256": "66ddb66fee3b12b008ea269baa57acde77f8614ac15a9f87cc994eae64ca63dc",
|
|
244
|
+
"size": 12586
|
|
245
245
|
},
|
|
246
246
|
{
|
|
247
247
|
"path": "toolkit/skills/sdtk-pm/SKILL.md",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
0387e747b9eb4500f810b338b28d795841e796fdaa40c4002e07b0d88b724167 toolkit/AGENTS.md
|
|
2
2
|
52bdc750984ee3c3598c1f1838cf3d72b2fc0ed06fca173ec3da79929b10f20c toolkit/install.ps1
|
|
3
3
|
0218dea84f0f9a25ddd2e68c6ae9995685ec471ff0950bd17d1eddcaa99f3e0e toolkit/README.md
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
42032999114addad5a664ee5dd891c521cfec87e8fadad6189f331a878156046 toolkit/runtimes/claude/CLAUDE_TEMPLATE.md
|
|
5
|
+
60b5b3d97937a1f6ec7b58fc50dc5513046d7cb81f514ec5b69c03e9129488bb toolkit/runtimes/codex/CODEX_TEMPLATE.md
|
|
6
6
|
8616291be4aaa4fb5cb0f1f4c738c108ab79090bf767ee2b4403d6d582c150c7 toolkit/scripts/agents/run-claude-task.ps1
|
|
7
7
|
4996e8e7aa50283dbf52c473c4e315af7ee951ebddb671ff59cc4bcde9843907 toolkit/scripts/agents/run-codex-task.ps1
|
|
8
8
|
6bcebe5fdb87451a7260101eaed32c6b61a2cf07832be754790f5432e028a503 toolkit/scripts/agents/validate-mailbox-formal-artifact.py
|
|
@@ -26,7 +26,7 @@ b4de86bc4730c4fcfe4f1bde8f9f64f03fd517825bb699e911199825cc3d4249 toolkit/skills
|
|
|
26
26
|
37b3ae11db18bc3f64a76b22bca95cea778d6cfbb8b038d46851bd44ff8ff8f1 toolkit/skills-claude/dev-frontend/SKILL.md
|
|
27
27
|
a4f326e2cafff865aaaed8f8de9407f3baa3cfebe33979528a15eb26d2e8482b toolkit/skills-claude/dev/SKILL.md
|
|
28
28
|
6fa2283aa1ebb7bf5b6e84d5d5d9d9ddf71082091b108bd46895923a5fca3e09 toolkit/skills-claude/mailbox-dispatch/SKILL.md
|
|
29
|
-
|
|
29
|
+
aa086be1038e34b1b29f7f65bacf254b5c1bfdc1203bd3e643c27acca4f9c2fa toolkit/skills-claude/orchestrator/SKILL.md
|
|
30
30
|
e9e346ff0e1fc66236ceabf64a043c9a28926e7ff06296b26dd5836cf045802a toolkit/skills-claude/pm/SKILL.md
|
|
31
31
|
a94b06194dd120f959082e3bcded91573e8c7b2ee350ab5bbad63a9c3cc331ab toolkit/skills-claude/qa/SKILL.md
|
|
32
32
|
320263e423dff2e9748b373aa9286b97721379ded62fde4e8a4dc5435a5f0048 toolkit/skills-claude/screen-design-spec/SKILL.md
|
|
@@ -45,7 +45,7 @@ ce5af79e5c4902b9c8ceb7e8dae848a6a5a26d5b845eee94ee8aafff88990256 toolkit/skills
|
|
|
45
45
|
55dd53b1ccbedd271ad23ca8df01afc317eced27ee17af3b37f31f0b9176ca8b toolkit/skills/sdtk-dev/prompts/spec-reviewer.md
|
|
46
46
|
749f0ff0865d8940cec9b16859706fd46f111a4d9bf54b6ccba381fe9db7a90e toolkit/skills/sdtk-dev/SKILL.md
|
|
47
47
|
df593d5ab4e7c5f4b05ac9ddb5078189b25bd954e546ab65c0147d024e4f4d59 toolkit/skills/sdtk-mailbox-dispatch/SKILL.md
|
|
48
|
-
|
|
48
|
+
66ddb66fee3b12b008ea269baa57acde77f8614ac15a9f87cc994eae64ca63dc toolkit/skills/sdtk-orchestrator/SKILL.md
|
|
49
49
|
ae53d96b6a4fb4ea60fb5de6578b2620c3adb43e1d722a0469cdfa5a90b92903 toolkit/skills/sdtk-pm/SKILL.md
|
|
50
50
|
e2c7fa172483ad6f1401ef831cd890c0bd9289f62ddc898335a4b8ac32bd6f7f toolkit/skills/sdtk-qa/SKILL.md
|
|
51
51
|
0702605f4c3a42cd06eb35ef61ca4b64f928c6b89dfb1204bcc978fb3ce033f9 toolkit/skills/sdtk-screen-design-spec/references/commerce-profile-screens.md
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
# SDTK
|
|
1
|
+
# SDTK Orchestrator Routing Contract
|
|
2
2
|
|
|
3
3
|
Goal: use the SDTK Suite as a coordinated operating model:
|
|
4
4
|
- `SDTK-SPEC` governs upstream discovery, planning, design, traceability, and release gates.
|
|
5
5
|
- `SDTK-CODE` is the default downstream system for implementation, bug fixing, refactoring, verification, and ship-ready code changes.
|
|
6
6
|
- `SDTK-OPS` is the downstream system for deployment, infrastructure, CI/CD, monitoring, incident handling, and operational verification.
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
Orchestrator Intake is the always-winning front door for every unprefixed request.
|
|
9
9
|
|
|
10
|
-
##
|
|
10
|
+
## 1) Default Rules
|
|
11
11
|
- If role is not specified, default to Orchestrator Intake, not PM.
|
|
12
|
-
- Orchestrator first classifies the user request, 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.
|
|
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
14
|
- Do not skip phases. If inputs are missing, ask focused questions before moving on.
|
|
15
|
-
- At the end of every phase, update:
|
|
15
|
+
- At the end of every SDTK-SPEC phase, update:
|
|
16
16
|
- `SHARED_PLANNING.md`
|
|
17
17
|
- `QUALITY_CHECKLIST.md`
|
|
18
18
|
- Artifact language under `docs/**` should default to English.
|
|
@@ -22,7 +22,7 @@ Goal: use the SDTK Suite as a coordinated operating model:
|
|
|
22
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
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
24
|
|
|
25
|
-
##
|
|
25
|
+
## 2) Session Bootstrap Protocol
|
|
26
26
|
When starting a new session, read context in this order when the files exist:
|
|
27
27
|
1. `AGENTS.md`
|
|
28
28
|
2. `governance/ai/session/SDTK_ACTIVE_BOOTSTRAP.md`
|
|
@@ -32,7 +32,7 @@ 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
|
-
##
|
|
35
|
+
## 3) Orchestrator-First Intake Protocol
|
|
36
36
|
For every unprefixed user request:
|
|
37
37
|
1. Classify the request intent before selecting PM/BA/ARCH/DEV/QA or a downstream product lane.
|
|
38
38
|
2. Route to the smallest sufficient workflow:
|
|
@@ -48,7 +48,7 @@ For every unprefixed user request:
|
|
|
48
48
|
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`.
|
|
49
49
|
5. When routing creates artifacts, record decisions and open questions in the correct SDTK artifact.
|
|
50
50
|
|
|
51
|
-
##
|
|
51
|
+
## 4) Intent-To-Skill Routing Matrix
|
|
52
52
|
Use this compact matrix during intake so the agent picks the smallest sufficient workflow instead of defaulting everything to PM:
|
|
53
53
|
|
|
54
54
|
| User intent | Primary route | Output expectation |
|
|
@@ -56,9 +56,9 @@ Use this compact matrix during intake so the agent picks the smallest sufficient
|
|
|
56
56
|
| Raw idea | Brainstorm / requirement clarification | `docs/discovery/REQUIREMENT_[FEATURE_KEY].md` with clarified problem, scope, assumptions, open questions, and readiness |
|
|
57
57
|
| Approved idea ready for product planning | `SDTK-SPEC` PM initiation | `REQUIREMENT_[FEATURE_KEY]` marked `READY_FOR_PM_INITIATION`, then `PROJECT_INITIATION` kickoff |
|
|
58
58
|
| Formal feature delivery | `SDTK-SPEC` pipeline | PM -> BA -> ARCH -> DEV planning -> CODE handoff -> QA |
|
|
59
|
-
| Build, fix, or refactor implementation | `SDTK-CODE` |
|
|
59
|
+
| Build, fix, or refactor implementation | `SDTK-CODE` | code-brainstorm (when slice is ambiguous) -> start -> plan -> build -> verify -> ship |
|
|
60
60
|
| Debug failure or unexpected behavior | `SDTK-CODE` debug | Root cause, bounded fix, regression verification |
|
|
61
|
-
| Deployment, release, infra, or CI/CD work | `SDTK-OPS` |
|
|
61
|
+
| Deployment, release, infra, or CI/CD work | `SDTK-OPS` | ops-plan -> ops-deploy/ops-incident/ops-monitor -> ops-verify |
|
|
62
62
|
| Code review or spec review | Review / QA workflow | Findings, risks, blockers, acceptance signal |
|
|
63
63
|
| 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
64
|
| SDTK-WIKI Ask | `sdtk-wiki ask` | Grounded answer when `.sdtk/wiki/graph` plus `wiki.ask` entitlement/runtime preconditions are present, otherwise explicit blocker |
|
|
@@ -69,8 +69,9 @@ Guardrails:
|
|
|
69
69
|
- Explicit user role prefix wins unless safety or missing critical inputs block execution.
|
|
70
70
|
- 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.
|
|
71
71
|
- 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.
|
|
72
|
+
- 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.
|
|
72
73
|
|
|
73
|
-
##
|
|
74
|
+
## 5) Proceed-Vs-Ask Decision Rules
|
|
74
75
|
Ask clarification when:
|
|
75
76
|
1. the requested outcome is ambiguous
|
|
76
77
|
2. safety, security, or release impact is unclear
|
|
@@ -84,7 +85,7 @@ Proceed when:
|
|
|
84
85
|
3. the user already approved the relevant plan or spec
|
|
85
86
|
4. the requested change is bounded and verifiable
|
|
86
87
|
|
|
87
|
-
##
|
|
88
|
+
## 6) Clarification Protocol
|
|
88
89
|
Apply for all roles (`/pm`, `/ba`, `/arch`, `/dev`, `/qa`):
|
|
89
90
|
1. If there is ambiguity or missing data, log `Open Questions` as `OQ-xx` in the current phase artifact.
|
|
90
91
|
2. Do not guess for behavior, API contracts, UI/UX, data model, security, or release criteria.
|
|
@@ -99,7 +100,7 @@ For raw ideas before PM initiation:
|
|
|
99
100
|
2. Record scope, non-goals, assumptions, constraints, open questions, and readiness there before opening `PROJECT_INITIATION`.
|
|
100
101
|
3. Treat the discovery artifact as a bridge into PM initiation, not as a PRD replacement.
|
|
101
102
|
|
|
102
|
-
##
|
|
103
|
+
## 7) Role Selection In One Message
|
|
103
104
|
When the user prefixes a message, execute that role:
|
|
104
105
|
- `/orchestrator` (default intake + routing)
|
|
105
106
|
- `/pm` (formal product initiation + planning)
|
|
@@ -113,135 +114,50 @@ Notes:
|
|
|
113
114
|
- Supported delivery roles are PM/BA/ARCH/DEV/QA.
|
|
114
115
|
- There is no separate `/tester` role. Test-case design belongs to QA with `sdtk-test-case-spec`.
|
|
115
116
|
|
|
116
|
-
##
|
|
117
|
-
Use this formal pipeline after Orchestrator Intake determines that the request is ready for SDTK-SPEC feature delivery.
|
|
118
|
-
|
|
119
|
-
0. Discovery / Clarification when needed -> `docs/discovery/REQUIREMENT_[FEATURE_KEY].md`
|
|
120
|
-
1. PM Initiation -> `docs/product/PROJECT_INITIATION_[FEATURE_KEY].md`
|
|
121
|
-
2. BA Analysis -> `docs/specs/BA_SPEC_[FEATURE_KEY].md`
|
|
122
|
-
3. PM Planning -> `docs/product/PRD_[FEATURE_KEY].md` + `docs/product/BACKLOG_[FEATURE_KEY].md`
|
|
123
|
-
4. ARCH Design -> `docs/architecture/ARCH_DESIGN_[FEATURE_KEY].md` (plus API/layout docs when needed)
|
|
124
|
-
5. DEV Planning + SDTK-CODE Handoff -> `docs/dev/FEATURE_IMPL_PLAN_[FEATURE_KEY].md` + `docs/dev/CODE_HANDOFF_[FEATURE_KEY].json`
|
|
125
|
-
6. QA Testing -> `docs/qa/[FEATURE_KEY]_TEST_CASE.md` + `docs/qa/QA_RELEASE_REPORT_[FEATURE_KEY].md`
|
|
126
|
-
|
|
127
|
-
Notes:
|
|
128
|
-
- Phase 0 is only for raw ideas, unclear concepts, and early feature discovery.
|
|
129
|
-
- PM initiation starts only after `docs/discovery/REQUIREMENT_[FEATURE_KEY].md` is marked `READY_FOR_PM_INITIATION`.
|
|
130
|
-
- The discovery artifact does not replace PM, BA, PRD, backlog, or architecture deliverables.
|
|
131
|
-
|
|
132
|
-
Default bridge after Phase 5 planning output:
|
|
133
|
-
- `/dev` emits the handoff
|
|
134
|
-
- SDTK-CODE performs `start -> plan -> build -> verify -> ship`
|
|
135
|
-
- `/qa` consumes downstream implementation evidence plus `docs/dev/OPS_HANDOFF_[FEATURE_KEY].json` and downstream OPS evidence
|
|
136
|
-
|
|
137
|
-
## 2.1) DEV Handoff Contract
|
|
138
|
-
DEV output is planning + readiness gating, not final code delivery:
|
|
139
|
-
1. Build or refine `FEATURE_IMPL_PLAN`.
|
|
140
|
-
2. Generate `CODE_HANDOFF_[FEATURE_KEY].json`.
|
|
141
|
-
3. Keep blockers explicit when the work is not ready for SDTK-CODE.
|
|
142
|
-
|
|
143
|
-
`/dev` does not auto-run SDTK-CODE.
|
|
144
|
-
|
|
145
|
-
## 2.2) Suite Product Routing
|
|
117
|
+
## 8) Suite Product Routing
|
|
146
118
|
Use the suite products according to task intent:
|
|
147
119
|
|
|
148
120
|
- `SDTK-SPEC`
|
|
149
121
|
- feature discovery
|
|
150
122
|
- requirements, BA, PRD, backlog, architecture, QA artifacts
|
|
151
123
|
- handoff generation and release-gate traceability
|
|
124
|
+
- entry: `/orchestrator` (recommended), `/pm`, `/ba`, `/arch`, `/dev`, `/qa`
|
|
152
125
|
- `SDTK-CODE`
|
|
153
126
|
- build a feature
|
|
154
127
|
- fix a bug
|
|
155
128
|
- refactor implementation
|
|
156
129
|
- run implementation verification
|
|
157
130
|
- ship code changes
|
|
131
|
+
- workflow: `start -> plan -> build -> verify -> ship`
|
|
132
|
+
- entry point for ambiguous slices: `code-brainstorm`
|
|
133
|
+
- 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)
|
|
158
134
|
- `SDTK-OPS`
|
|
159
135
|
- deploy or release
|
|
160
136
|
- infrastructure and environment setup
|
|
161
137
|
- CI/CD changes
|
|
162
138
|
- monitoring, incident response, security-infra, backup, compliance
|
|
139
|
+
- entry: `ops-discover` (when boundary is unclear), `ops-plan`, `ops-deploy`, `ops-incident`, `ops-monitor`, `ops-backup`, `ops-verify`, `ops-debug`
|
|
163
140
|
|
|
164
141
|
If the current project only has `SDTK-SPEC` runtime assets installed:
|
|
165
142
|
- keep `/dev` bounded to planning and `CODE_HANDOFF`
|
|
166
143
|
- do not overclaim that SDTK-CODE or SDTK-OPS runtime assets are already installed
|
|
167
144
|
- still describe the correct downstream suite path in guidance and handoffs
|
|
168
145
|
|
|
169
|
-
##
|
|
146
|
+
## 9) Shared State And Quality Gates
|
|
170
147
|
- `SHARED_PLANNING.md`: phase status, owners, artifacts, blockers, handoff notes.
|
|
171
148
|
- `QUALITY_CHECKLIST.md`: gate checklist by phase.
|
|
172
149
|
- No handoff to next phase while current gate is not PASS.
|
|
173
150
|
- QA cannot start until downstream implementation evidence exists, normally from SDTK-CODE.
|
|
174
151
|
- QA cannot approve until `OPS_HANDOFF` and downstream OPS evidence are present and aligned.
|
|
175
|
-
|
|
176
|
-
## 4) Minimum Traceability
|
|
177
|
-
- PM: `REQ-xx` requirements, scope, success metrics.
|
|
178
|
-
- BA: `BR-xx`, `UC-xx`, `AC-xx`, `NFR-xx`, and traceability matrix.
|
|
179
|
-
- ARCH: map UC/BR to API/DB/flows/screens.
|
|
180
|
-
- DEV: map backlog stories to implementation slices, refs, blockers, and test obligations.
|
|
181
|
-
- QA: map downstream implementation evidence and downstream OPS evidence back to UC/AC.
|
|
182
|
-
|
|
183
|
-
## 5) Feature Bootstrap
|
|
184
|
-
Run from project root:
|
|
185
|
-
|
|
186
|
-
```
|
|
187
|
-
sdtk-spec generate --feature-key YOUR_FEATURE --feature-name "Your Feature"
|
|
188
|
-
```
|
|
189
|
-
|
|
190
|
-
## 6) ARCH Deliverables (Extended)
|
|
191
|
-
In addition to `ARCH_DESIGN`, ARCH may generate:
|
|
192
|
-
- `docs/api/[FEATURE_KEY]_ENDPOINTS.md`
|
|
193
|
-
- `docs/api/[FEATURE_KEY]_API_DESIGN_DETAIL.md`
|
|
194
|
-
- `docs/database/DATABASE_SPEC_[FEATURE_KEY].md`
|
|
195
|
-
- `docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md`
|
|
196
|
-
|
|
197
|
-
## 6.1) ARCH Orchestration Mapping
|
|
198
|
-
- Use `sdtk-api-doc` when API scope exists.
|
|
199
|
-
- Use `sdtk-api-design-spec` when API design detail is required from YAML + flow list.
|
|
200
|
-
- Use `sdtk-screen-design-spec` when UI flow-action specification is needed.
|
|
201
|
-
- Controlled by `sdtk-spec.config.json`:
|
|
202
|
-
- `orchestration.apiDesignDetailMode = auto|on|off`
|
|
203
|
-
- `auto`: generate when API scope and required sources are available.
|
|
204
|
-
- `on`: always generate for API scope.
|
|
205
|
-
- `off`: skip unless explicitly requested.
|
|
206
|
-
|
|
207
|
-
## 6.2) QA Orchestration Mapping
|
|
208
|
-
- Use `sdtk-test-case-spec` when detailed worksheet-style test-case artifacts are required.
|
|
209
|
-
- Use `sdtk-qa` for execution report and release decision.
|
|
210
152
|
- QA accepts downstream implementation evidence from SDTK-CODE as the default handoff bridge, plus `OPS_HANDOFF + OPS evidence` in the current formal suite flow.
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
-
|
|
220
|
-
-
|
|
221
|
-
-
|
|
222
|
-
- SDTK-CODE handoff generator: `toolkit/scripts/generate-code-handoff.ps1`
|
|
223
|
-
|
|
224
|
-
## 7) Mandatory Rule References
|
|
225
|
-
Canonical source-of-truth for shared rule files now lives under `toolkit/templates/docs/**`.
|
|
226
|
-
Use those paths when editing or reviewing the source toolkit.
|
|
227
|
-
|
|
228
|
-
Shared canonical rule files:
|
|
229
|
-
- `toolkit/templates/docs/api/YAML_CREATION_RULES.md` -- API YAML docs
|
|
230
|
-
- `toolkit/templates/docs/api/API_DESIGN_FLOWCHART_CREATION_RULES.md` -- API design detail + flow docs
|
|
231
|
-
- `toolkit/templates/docs/api/FLOWCHART_CREATION_RULES.md` -- API flow compatibility note
|
|
232
|
-
- `toolkit/templates/docs/api/API_DESIGN_CREATION_RULES.md` -- API design compatibility note
|
|
233
|
-
- `toolkit/templates/docs/specs/FLOW_ACTION_SPEC_CREATION_RULES.md` -- Screen flow-action specs
|
|
234
|
-
- `toolkit/templates/docs/qa/TEST_CASE_CREATION_RULES.md` -- QA test-case specs
|
|
235
|
-
|
|
236
|
-
Retained skill-specific local references:
|
|
237
|
-
- `toolkit/skills/sdtk-screen-design-spec/references/numbering-rules.md` -- Flow-action numbering policy
|
|
238
|
-
- `toolkit/skills/sdtk-screen-design-spec/references/figma-mcp.md` -- Figma MCP integration
|
|
239
|
-
- `toolkit/skills/sdtk-screen-design-spec/references/excel-image-export.md` -- Excel image export
|
|
240
|
-
|
|
241
|
-
Runtime-installed mirrors may surface these rule files under skill-local runtime paths such as `.claude/skills/<skill>/references/` or `$CODEX_HOME/skills/<skill>/references/`. Do not treat those runtime copies as the maintainer source of truth.
|
|
242
|
-
|
|
243
|
-
Workflow governance docs:
|
|
244
|
-
- `governance/ai/core/SDTK_VERIFICATION_BEFORE_COMPLETION_POLICY.md` -- verification-before-completion gate
|
|
245
|
-
- `governance/ai/core/SDTK_SKILL_AUTHORING_AND_TESTING.md` -- maintainer authoring/test guide
|
|
246
|
-
Flow-action numbering policy:
|
|
247
|
-
- Use one global numbering mode for the whole document (no per-screen reset).
|
|
153
|
+
|
|
154
|
+
## 10) Runtime Availability Rules
|
|
155
|
+
- Route only to products whose runtime assets are installed; do not overclaim.
|
|
156
|
+
- For SDTK-SPEC-only installs: keep `/dev` bounded to planning and `CODE_HANDOFF`; do not claim SDTK-CODE or SDTK-OPS are installed.
|
|
157
|
+
- For Codex runtimes: project-local skills require the explicit local `CODEX_HOME=<project>/.codex` contract; native `.codex/skills` auto-discovery is not claimed.
|
|
158
|
+
- 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.
|
|
159
|
+
|
|
160
|
+
## 11) Discovery And PM Readiness
|
|
161
|
+
- PM initiation starts only after `docs/discovery/REQUIREMENT_[FEATURE_KEY].md` is marked `READY_FOR_PM_INITIATION`.
|
|
162
|
+
- Use `NEEDS_MORE_DISCOVERY` or `NOT_ACTIONABLE_YET` when the request is not ready.
|
|
163
|
+
- The discovery artifact is a pre-PM clarification bridge, not a PRD or BA replacement.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# CLAUDE.md
|
|
2
2
|
|
|
3
|
-
Version: 2.
|
|
4
|
-
Last Updated: 2026-
|
|
3
|
+
Version: 2.2
|
|
4
|
+
Last Updated: 2026-06-19
|
|
5
5
|
Owner: SDTK-SPEC Core Team
|
|
6
6
|
|
|
7
7
|
This file defines runtime guidance for Claude Code sessions in projects using the SDTK Suite.
|
|
@@ -16,7 +16,7 @@ This file defines runtime guidance for Claude Code sessions in projects using th
|
|
|
16
16
|
## 2) Runtime Model
|
|
17
17
|
- Suite routing:
|
|
18
18
|
- `SDTK-SPEC`: orchestration, specs, planning, architecture, QA artifacts
|
|
19
|
-
- `SDTK-CODE`: implementation, bug fixing, refactoring, verification, ship flow
|
|
19
|
+
- `SDTK-CODE`: implementation, bug fixing, refactoring, verification, ship flow; workflow `start->plan->build->verify->ship`; entry for ambiguous slices: `code-brainstorm`
|
|
20
20
|
- `SDTK-OPS`: deploy, infra, CI/CD, monitoring, incident, ops verification
|
|
21
21
|
- Default unprefixed entry point: Orchestrator Intake.
|
|
22
22
|
- Orchestrator classifies the user request before selecting a role, product lane, or skill.
|
|
@@ -24,6 +24,7 @@ This file defines runtime guidance for Claude Code sessions in projects using th
|
|
|
24
24
|
- Entry point command: `/orchestrator` (recommended). Use `/pm` only for formal product initiation.
|
|
25
25
|
- Role commands: `/pm`, `/ba`, `/arch`, `/dev`, `/qa`
|
|
26
26
|
- Sub-skill commands: `/api-doc`, `/api-design-spec`, `/screen-design-spec`, `/design-layout`, `/test-case-spec`, `/dev-backend`, `/dev-frontend`
|
|
27
|
+
- SDTK-CODE workflow commands: `start`, `plan`, `build`, `verify`, `ship`
|
|
27
28
|
- Shared state files:
|
|
28
29
|
- `SHARED_PLANNING.md`
|
|
29
30
|
- `QUALITY_CHECKLIST.md`
|
|
@@ -38,7 +39,7 @@ Read these in order when they exist:
|
|
|
38
39
|
Routing rules:
|
|
39
40
|
- Raw idea -> brainstorm / requirement clarification, then create or update `docs/discovery/REQUIREMENT_[FEATURE_KEY].md` before PM initiation
|
|
40
41
|
- Formal feature delivery and approved planning work -> `SDTK-SPEC`
|
|
41
|
-
- build feature, fix code, refactor, or debug failure -> `SDTK-CODE` when available
|
|
42
|
+
- build feature, fix code, refactor, or debug failure -> `SDTK-CODE` when available; use `code-brainstorm` when the slice is ambiguous
|
|
42
43
|
- deploy/release/infra/ops -> `SDTK-OPS` when available
|
|
43
44
|
- Atlas graph/viewer, SDTK-WIKI Ask boundary, project ingest, project refresh, and project audit -> matching SDTK command or workflow
|
|
44
45
|
- "what should we do next" -> Orchestrator state review using the smallest sufficient workflow
|
|
@@ -69,7 +70,7 @@ Skills are installed at `.claude/skills/` and provide slash commands:
|
|
|
69
70
|
|
|
70
71
|
| Command | Purpose |
|
|
71
72
|
|---------|---------|
|
|
72
|
-
| `/orchestrator` |
|
|
73
|
+
| `/orchestrator` | Classify intent and route to the correct product workflow |
|
|
73
74
|
| `/pm` | PM initiation + planning |
|
|
74
75
|
| `/ba` | Business analysis |
|
|
75
76
|
| `/arch` | Solution architecture |
|
|
@@ -82,6 +83,8 @@ Skills are installed at `.claude/skills/` and provide slash commands:
|
|
|
82
83
|
| `/test-case-spec` | QA test-case spec |
|
|
83
84
|
| `/dev-backend` | Backend code conventions |
|
|
84
85
|
| `/dev-frontend` | Frontend code conventions |
|
|
86
|
+
| `/code-brainstorm` | Brainstorm and clarify before coding (SDTK-CODE entry for ambiguous slices) |
|
|
87
|
+
| `start` / `plan` / `build` / `verify` / `ship` | SDTK-CODE workflow phases |
|
|
85
88
|
|
|
86
89
|
Specialist rule reference files are installed inside each skill directory when that skill needs them (for example `.claude/skills/api-doc/references/`).
|
|
87
90
|
|
|
@@ -89,4 +92,5 @@ Specialist rule reference files are installed inside each skill directory when t
|
|
|
89
92
|
- `sdtk-spec.config.json`
|
|
90
93
|
- `governance/ai/session/SDTK_ACTIVE_BOOTSTRAP.md`
|
|
91
94
|
- `governance/ai/session/SDTK_AGENT_WORKING_RULES.md`
|
|
95
|
+
- `governance/ai/core/SDTK_WORKSPACE_LAYOUT_CONTRACT.md`
|
|
92
96
|
- `.claude/skills/<skill>/references/` (skill-local rule files when required)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# CODEX.md
|
|
2
2
|
|
|
3
|
-
Version: 1.
|
|
4
|
-
Last Updated: 2026-
|
|
3
|
+
Version: 1.2
|
|
4
|
+
Last Updated: 2026-06-19
|
|
5
5
|
Owner: SDTK-SPEC Core Team
|
|
6
6
|
|
|
7
7
|
This file defines runtime guidance for Codex sessions in projects using the SDTK Suite.
|
|
@@ -16,12 +16,13 @@ This file defines runtime guidance for Codex sessions in projects using the SDTK
|
|
|
16
16
|
## 2) Runtime Model
|
|
17
17
|
- Suite routing:
|
|
18
18
|
- `SDTK-SPEC`: orchestration, specs, planning, architecture, QA artifacts
|
|
19
|
-
- `SDTK-CODE`: implementation, bug fixing, refactoring, verification, ship flow
|
|
19
|
+
- `SDTK-CODE`: implementation, bug fixing, refactoring, verification, ship flow; workflow `start->plan->build->verify->ship`; entry for ambiguous slices: `code-brainstorm`
|
|
20
20
|
- `SDTK-OPS`: deploy, infra, CI/CD, monitoring, incident, ops verification
|
|
21
21
|
- Default unprefixed entry point: Orchestrator Intake.
|
|
22
22
|
- Orchestrator classifies the user request before selecting a role, product lane, or skill.
|
|
23
23
|
- `SDTK-SPEC` phase workflow remains: PM -> BA -> ARCH -> DEV -> QA after intake decides formal feature delivery is ready.
|
|
24
24
|
- Role tags: `/pm`, `/ba`, `/arch`, `/dev`, `/qa`
|
|
25
|
+
- SDTK-CODE workflow: `start -> plan -> build -> verify -> ship`
|
|
25
26
|
- Shared state files:
|
|
26
27
|
- `SHARED_PLANNING.md`
|
|
27
28
|
- `QUALITY_CHECKLIST.md`
|
|
@@ -36,7 +37,7 @@ Read these in order when they exist:
|
|
|
36
37
|
Routing rules:
|
|
37
38
|
- Raw idea -> brainstorm / requirement clarification, then create or update `docs/discovery/REQUIREMENT_[FEATURE_KEY].md` before PM initiation
|
|
38
39
|
- Formal feature delivery and approved planning work -> `SDTK-SPEC`
|
|
39
|
-
- build feature, fix code, refactor, or debug failure -> `SDTK-CODE` when available
|
|
40
|
+
- build feature, fix code, refactor, or debug failure -> `SDTK-CODE` when available; use `code-brainstorm` when the slice is ambiguous
|
|
40
41
|
- deploy/release/infra/ops -> `SDTK-OPS` when available
|
|
41
42
|
- Atlas graph/viewer, SDTK-WIKI Ask boundary, project ingest, project refresh, and project audit -> matching SDTK command or workflow
|
|
42
43
|
- "what should we do next" -> Orchestrator state review using the smallest sufficient workflow
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: sdtk-orchestrator
|
|
3
|
-
description: "
|
|
3
|
+
description: "Classify intent and route to the correct SDTK product workflow: SDTK-CODE start→plan→build→verify→ship, SDTK-SPEC PM→BA→ARCH→DEV→QA, or SDTK-OPS. Uses two-stage classify→registry routing with coarse-to-fine product selection."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# SDTK
|
|
6
|
+
# SDTK Orchestrator (Classify-and-Route)
|
|
7
7
|
|
|
8
8
|
## Critical Constraints
|
|
9
9
|
- I do not skip mandatory phases or hand off without current-phase evidence.
|
|
@@ -17,6 +17,55 @@ description: "Orchestrate a full 6-phase SDLC multi-agent workflow (PM/BA/ARCH/D
|
|
|
17
17
|
- `visible` and `working` are separate runtime checks; `working` requires observable controller action from a bounded request.
|
|
18
18
|
- Until runtime-specific direct syntax is validated, continue via the repo-local orchestrator contract in the current session.
|
|
19
19
|
|
|
20
|
+
## Stage 1 — Classify Intent
|
|
21
|
+
Before selecting any role or product lane, classify the incoming request:
|
|
22
|
+
|
|
23
|
+
| Request type | Classification |
|
|
24
|
+
|---|---|
|
|
25
|
+
| Raw / unclear idea | `brainstorm-discovery` |
|
|
26
|
+
| Analyze, clarify, or investigate an issue | `code-brainstorm` or `discovery` |
|
|
27
|
+
| Build a feature, fix a bug, or refactor | `sdtk-code` |
|
|
28
|
+
| Formal project spec or feature delivery pipeline | `sdtk-spec` |
|
|
29
|
+
| Deploy, infra, CI/CD, incident, monitoring | `sdtk-ops` |
|
|
30
|
+
| Code review or release decision | `review-qa` |
|
|
31
|
+
| Atlas / wiki graph or Ask | `atlas-wiki` |
|
|
32
|
+
| Project ingest, refresh, or audit | `project-cmd` |
|
|
33
|
+
| "What should we do next?" | `orchestrator-state-review` |
|
|
34
|
+
|
|
35
|
+
If the classification is ambiguous: **ask one focused question**, do not guess.
|
|
36
|
+
Cap re-routes at 2. If a third route would be needed, escalate to the user with an explicit summary of what has been tried and why it is blocked.
|
|
37
|
+
|
|
38
|
+
## Stage 2 — Coarse-to-Fine Route
|
|
39
|
+
After classifying intent, pick the **product** first, then the **skill within** that product:
|
|
40
|
+
|
|
41
|
+
- `brainstorm-discovery` → create or update `docs/discovery/REQUIREMENT_[FEATURE_KEY].md`; PM initiation only after `READY_FOR_PM_INITIATION`
|
|
42
|
+
- `code-brainstorm` → `/code-brainstorm` skill before entering the CODE workflow
|
|
43
|
+
- `sdtk-code` → `start -> plan -> build -> verify -> ship` workflow; use `code-brainstorm` when the slice is still ambiguous after intake grounding
|
|
44
|
+
- `sdtk-spec` → PM → BA → ARCH → DEV (planning + `CODE_HANDOFF`) → SDTK-CODE → QA
|
|
45
|
+
- `sdtk-ops` → `ops-discover` (when boundary unclear) or the relevant journey start skill → `ops-verify`
|
|
46
|
+
- `review-qa` → evidence-first review → QA → controller
|
|
47
|
+
- `atlas-wiki` → `sdtk-spec atlas` or `sdtk-wiki atlas`
|
|
48
|
+
|
|
49
|
+
## Few-Shot Routing Examples (P3)
|
|
50
|
+
|
|
51
|
+
| User request | Classified route | Handoff |
|
|
52
|
+
|---|---|---|
|
|
53
|
+
| "Analyze why the auth module is slow" | `code-brainstorm` | Route: SDTK-CODE · Reason: investigation before code; Skill: `/code-brainstorm` |
|
|
54
|
+
| "Fix the login validation bug" | `sdtk-code` / `bugfix` | Route: SDTK-CODE · Reason: bounded fix with known scope; Skill: `start -> build -> verify -> ship` |
|
|
55
|
+
| "Design and spec the notification feature" | `sdtk-spec` | Route: SDTK-SPEC · Reason: upstream planning required; Skill: PM → BA → ARCH → DEV |
|
|
56
|
+
| "Deploy the v2 release to production" | `sdtk-ops` | Route: SDTK-OPS · Reason: operational rollout; Skill: `ops-plan -> ops-deploy -> ops-verify` |
|
|
57
|
+
| "What should we work on next?" | `orchestrator-state-review` | Route: Orchestrator review · Reason: state check; Skill: read SHARED_PLANNING + backlog |
|
|
58
|
+
|
|
59
|
+
## Routing Guardrails (P4)
|
|
60
|
+
- **Ambiguous → ask:** if intent classification is unclear, ask one focused question before routing.
|
|
61
|
+
- **Cap re-routes:** do not bounce between products more than twice in one session; escalate to the user on the third re-route attempt.
|
|
62
|
+
- **Escalate:** when intent cannot be classified or the re-route limit is hit, state the problem explicitly and ask the user to clarify.
|
|
63
|
+
- **Role prefix wins:** if the user explicitly uses `/pm`, `/ba`, `/arch`, `/dev`, `/qa`, `sdtk-code`, or `sdtk-ops`, execute that role directly without re-classifying.
|
|
64
|
+
|
|
65
|
+
## Per-Route Handoff Line (P5)
|
|
66
|
+
On each routing decision, emit one explicit handoff line before starting work:
|
|
67
|
+
> Route: `<product>` · Reason: `<one-line rationale>` · Next: `<skill or workflow to invoke>`
|
|
68
|
+
|
|
20
69
|
## Initialize
|
|
21
70
|
- Start as Orchestrator Intake for unprefixed user requests.
|
|
22
71
|
- Classify intent before choosing PM/BA/ARCH/DEV/QA or downstream SDTK-CODE/SDTK-OPS paths.
|
|
@@ -28,7 +77,7 @@ description: "Orchestrate a full 6-phase SDLC multi-agent workflow (PM/BA/ARCH/D
|
|
|
28
77
|
## Execute pipeline (one phase per turn)
|
|
29
78
|
- Default unprefixed role: Orchestrator Intake. Select PM only when the request is ready for formal SDTK-SPEC product initiation.
|
|
30
79
|
- Respect role tags: `/pm`, `/ba`, `/arch`, `/dev`, `/qa`.
|
|
31
|
-
- For each phase:
|
|
80
|
+
- For each SDTK-SPEC phase:
|
|
32
81
|
- Create/update the phase artifact(s) in `docs/`.
|
|
33
82
|
- If phase is ARCH and API contract/flow is in scope, invoke `sdtk-api-doc` to produce/update `docs/api/[FeaturePascal]_API.yaml`, `docs/api/[FEATURE_KEY]_ENDPOINTS.md`, and `docs/api/[feature_snake]_api_flow_list.txt`.
|
|
34
83
|
- If phase is ARCH and API detail spec is in scope, invoke `sdtk-api-design-spec` to produce/update `docs/api/[FEATURE_KEY]_API_DESIGN_DETAIL.md`.
|
|
@@ -41,6 +90,12 @@ description: "Orchestrate a full 6-phase SDLC multi-agent workflow (PM/BA/ARCH/D
|
|
|
41
90
|
- Update `QUALITY_CHECKLIST.md` (mark items PASS/Pending).
|
|
42
91
|
- Produce one clear handoff message to the next role only after the current phase evidence supports that handoff.
|
|
43
92
|
|
|
93
|
+
## SDTK-SPEC Feature Bootstrap
|
|
94
|
+
Run from the project root to create skeleton artifacts before phase work begins:
|
|
95
|
+
```
|
|
96
|
+
sdtk-spec generate --feature-key YOUR_FEATURE --feature-name "Your Feature"
|
|
97
|
+
```
|
|
98
|
+
|
|
44
99
|
## API design detail mode (Hybrid)
|
|
45
100
|
- Read `sdtk-spec.config.json` key: `orchestration.apiDesignDetailMode`.
|
|
46
101
|
- Supported values:
|
|
@@ -67,15 +122,27 @@ description: "Orchestrate a full 6-phase SDLC multi-agent workflow (PM/BA/ARCH/D
|
|
|
67
122
|
```dot
|
|
68
123
|
digraph sdtk_orchestrator_flow {
|
|
69
124
|
rankdir=LR;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
125
|
+
Intake [label="Orchestrator\nIntake"];
|
|
126
|
+
Classify [label="Classify\nIntent"];
|
|
127
|
+
Brainstorm [label="code-brainstorm /\nDiscovery"];
|
|
128
|
+
CODE [label="SDTK-CODE\nstart→plan→build→verify→ship"];
|
|
129
|
+
SPEC [label="SDTK-SPEC\nPM→BA→ARCH→DEV"];
|
|
130
|
+
OPS [label="SDTK-OPS"];
|
|
131
|
+
QA [label="QA"];
|
|
132
|
+
Intake -> Classify;
|
|
133
|
+
Classify -> Brainstorm [label="ambiguous"];
|
|
134
|
+
Classify -> CODE [label="build/fix/refactor"];
|
|
135
|
+
Classify -> SPEC [label="spec/feature delivery"];
|
|
136
|
+
Classify -> OPS [label="deploy/infra/ops"];
|
|
137
|
+
SPEC -> DEV_CODE [label="CODE_HANDOFF"];
|
|
138
|
+
DEV_CODE [label="SDTK-CODE"];
|
|
139
|
+
DEV_CODE -> QA [label="implementation evidence"];
|
|
140
|
+
QA -> SPEC;
|
|
76
141
|
}
|
|
77
142
|
```
|
|
78
143
|
|
|
144
|
+
Default bridge is `/dev -> SDTK-CODE -> /qa`.
|
|
145
|
+
|
|
79
146
|
## Verification Before Completion
|
|
80
147
|
Apply `governance/ai/core/SDTK_VERIFICATION_BEFORE_COMPLETION_POLICY.md` whenever you mark a phase complete, mark a gate PASS, or hand off to the next role. Require fresh verification evidence before you state that the phase is done.
|
|
81
148
|
|
|
@@ -99,6 +166,7 @@ If the evidence is incomplete, keep the phase open or mark it blocked instead of
|
|
|
99
166
|
|
|
100
167
|
| Mistake | Why it is wrong | Do instead |
|
|
101
168
|
|---|---|---|
|
|
169
|
+
| Default to PM for every unprefixed request | Breaks routing for CODE/OPS work and forces SPEC overhead on implementation tasks | Classify intent first; route to the smallest sufficient product workflow |
|
|
102
170
|
| Skip directly from PM to DEV because the request seems small | Breaks traceability and removes BA and ARCH controls | Keep phase order unless the user explicitly narrows scope with acceptable evidence |
|
|
103
171
|
| Hand off a phase based on planned checks instead of executed evidence | Creates false PASS status and weakens downstream gates | Require fresh evidence before marking the phase complete |
|
|
104
172
|
| Mix generation, review, and release decisions in one uncontrolled turn | Makes status tracking ambiguous | Complete one phase handoff at a time and update shared state before moving on |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: orchestrator
|
|
3
|
-
description:
|
|
3
|
+
description: Classify intent and route to the correct SDTK product workflow — SDTK-CODE start→plan→build→verify→ship, SDTK-SPEC PM→BA→ARCH→DEV→QA, or SDTK-OPS — using two-stage classify→registry routing with coarse-to-fine product selection.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## Critical Constraints
|
|
@@ -15,10 +15,56 @@ description: Orchestrate the SDTK-SPEC 6-phase workflow in Claude Code using SHA
|
|
|
15
15
|
- Until a Claude-specific direct syntax is validated, the supported controller path remains the repo-local orchestrator contract in the current session.
|
|
16
16
|
- Run `sdtk-spec generate --feature-key <KEY> --feature-name "<NAME>" --project-path .` to create skeleton artifacts before phase work begins.
|
|
17
17
|
|
|
18
|
+
## Stage 1 — Classify Intent
|
|
19
|
+
Before selecting any role or product lane, classify the incoming request:
|
|
20
|
+
|
|
21
|
+
| Request type | Classification |
|
|
22
|
+
|---|---|
|
|
23
|
+
| Raw / unclear idea | `brainstorm-discovery` |
|
|
24
|
+
| Analyze, clarify, or investigate an issue | `code-brainstorm` or `discovery` |
|
|
25
|
+
| Build a feature, fix a bug, or refactor | `sdtk-code` |
|
|
26
|
+
| Formal project spec or feature delivery pipeline | `sdtk-spec` |
|
|
27
|
+
| Deploy, infra, CI/CD, incident, monitoring | `sdtk-ops` |
|
|
28
|
+
| Code review or release decision | `review-qa` |
|
|
29
|
+
| Atlas / wiki graph or Ask | `atlas-wiki` |
|
|
30
|
+
| "What should we do next?" | `orchestrator-state-review` |
|
|
31
|
+
|
|
32
|
+
If the classification is ambiguous: **ask one focused question**, do not guess.
|
|
33
|
+
Cap re-routes at 2. If a third route would be needed, escalate to the user with an explicit summary.
|
|
34
|
+
|
|
35
|
+
## Stage 2 — Coarse-to-Fine Route
|
|
36
|
+
After classifying intent, pick the **product** first, then the **skill within** that product:
|
|
37
|
+
|
|
38
|
+
- `brainstorm-discovery` → create or update `docs/discovery/REQUIREMENT_[FEATURE_KEY].md`; PM initiation only after `READY_FOR_PM_INITIATION`
|
|
39
|
+
- `code-brainstorm` → `/code-brainstorm` skill before entering the CODE workflow
|
|
40
|
+
- `sdtk-code` → `start -> plan -> build -> verify -> ship` workflow
|
|
41
|
+
- `sdtk-spec` → PM → BA → ARCH → DEV (planning + `CODE_HANDOFF`) → SDTK-CODE → QA
|
|
42
|
+
- `sdtk-ops` → the relevant journey start skill → `ops-verify`
|
|
43
|
+
- `review-qa` → evidence-first review → QA → controller
|
|
44
|
+
|
|
45
|
+
## Few-Shot Routing Examples
|
|
46
|
+
|
|
47
|
+
| User request | Chosen route |
|
|
48
|
+
|---|---|
|
|
49
|
+
| "Analyze why the auth module is slow" | SDTK-CODE · `/code-brainstorm` |
|
|
50
|
+
| "Fix the login validation bug" | SDTK-CODE · `start -> build -> verify -> ship` |
|
|
51
|
+
| "Design and spec the notification feature" | SDTK-SPEC · PM → BA → ARCH → DEV |
|
|
52
|
+
| "Deploy the v2 release to production" | SDTK-OPS · `ops-plan -> ops-deploy -> ops-verify` |
|
|
53
|
+
|
|
54
|
+
## Per-Route Handoff Line (P5)
|
|
55
|
+
On each routing decision, emit one explicit handoff line before starting work:
|
|
56
|
+
> Route: `<product>` · Reason: `<one-line rationale>` · Next: `<skill or workflow to invoke>`
|
|
57
|
+
|
|
58
|
+
## SDTK-SPEC Feature Bootstrap
|
|
59
|
+
Run from the project root to initialize skeleton artifacts:
|
|
60
|
+
```
|
|
61
|
+
sdtk-spec generate --feature-key YOUR_FEATURE --feature-name "Your Feature"
|
|
62
|
+
```
|
|
63
|
+
|
|
18
64
|
## Execute pipeline (one phase per turn)
|
|
19
|
-
- Default role:
|
|
65
|
+
- Default role: Orchestrator Intake. Select PM only when the request is ready for formal SDTK-SPEC product initiation.
|
|
20
66
|
- Respect role tags: `PM`, `BA`, `ARCH`, `DEV`, `QA`.
|
|
21
|
-
- For each phase:
|
|
67
|
+
- For each SDTK-SPEC phase:
|
|
22
68
|
- Create or update the current-phase artifact in `docs/`.
|
|
23
69
|
- If phase is `ARCH` and API contract or flow is in scope, invoke `sdtk-api-doc`.
|
|
24
70
|
- If phase is `ARCH` and API detail spec is in scope, invoke `sdtk-api-design-spec`.
|