sdtk-spec-kit 0.4.1 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -108,6 +108,8 @@ sdtk-spec init --runtime <codex|claude> [--project-path <path>] [--force] [--run
108
108
 
109
109
  Creates:
110
110
  - `AGENTS.md` -- project-level agent guidance
111
+ - `governance/ai/session/SDTK_ACTIVE_BOOTSTRAP.md` -- compact session bootstrap truth
112
+ - `governance/ai/session/SDTK_AGENT_WORKING_RULES.md` -- stable working-style contract
111
113
  - `sdtk-spec.config.json` -- project configuration
112
114
  - `sdtk-spec.config.profiles.example.json` -- stack profile examples
113
115
  - `CODEX.md` or `CLAUDE.md` -- runtime adapter
@@ -1,17 +1,17 @@
1
1
  {
2
- "version": "0.4.1",
2
+ "version": "0.4.2",
3
3
  "sourceCommit": "unknown",
4
- "fileCount": 94,
4
+ "fileCount": 97,
5
5
  "files": [
6
6
  {
7
7
  "path": "toolkit/AGENTS.md",
8
- "sha256": "f75e0a81845d4f841ed2c03d6a3837f345daf799d5cef18db3366517e8716861",
9
- "size": 7576
8
+ "sha256": "0eb3e48bce332ceed12f73f24fc7265f825ac98229e81f5f979edc5b8be5a91e",
9
+ "size": 14157
10
10
  },
11
11
  {
12
12
  "path": "toolkit/install.ps1",
13
- "sha256": "6a549a05c4e12edae60ddf6a737baf2c9c8e1f7a3654f02ce3f64e2297464644",
14
- "size": 13001
13
+ "sha256": "f10d562d12532750ec7125d8925b7f56f1d4382c71be5c90e6b35c261b50c1bb",
14
+ "size": 13624
15
15
  },
16
16
  {
17
17
  "path": "toolkit/README.md",
@@ -20,13 +20,13 @@
20
20
  },
21
21
  {
22
22
  "path": "toolkit/runtimes/claude/CLAUDE_TEMPLATE.md",
23
- "sha256": "2a037fede7b749841db61aeb06473b9f19a5ac49520b533cb496c375d6054f32",
24
- "size": 2018
23
+ "sha256": "77e5f962c9d45e9f44f8125de385d74520ca7855dfc95f0bf86c24f61de8da3c",
24
+ "size": 4582
25
25
  },
26
26
  {
27
27
  "path": "toolkit/runtimes/codex/CODEX_TEMPLATE.md",
28
- "sha256": "4453f452a6ac99f123d734f66d608e0c3d931262f3b51ea32307ef327911e938",
29
- "size": 859
28
+ "sha256": "6e1e98dc2ef73467abe9fb26a7440a53af2a7513f8cb9b508da267488e480789",
29
+ "size": 3395
30
30
  },
31
31
  {
32
32
  "path": "toolkit/scripts/agents/run-claude-task.ps1",
@@ -75,8 +75,8 @@
75
75
  },
76
76
  {
77
77
  "path": "toolkit/SDTK_TOOLKIT.md",
78
- "sha256": "199cc00adc9307ea000ba96bccbad1f4c7beee09a061a1bf4c1d6f867488d39d",
79
- "size": 9110
78
+ "sha256": "e6f3d937ce81795a41d80c7ed3864c7a315346569e2d4a36f2d6aeb4e1cf4244",
79
+ "size": 9310
80
80
  },
81
81
  {
82
82
  "path": "toolkit/sdtk-spec.config.json",
@@ -88,6 +88,16 @@
88
88
  "sha256": "68f8cf75ebcd1665db10a3a3b8404c90bde857d2832e3d2429b2b473489f9116",
89
89
  "size": 1496
90
90
  },
91
+ {
92
+ "path": "toolkit/session/SDTK_ACTIVE_BOOTSTRAP.md",
93
+ "sha256": "5823d316bd970a304a8353b9e21ec824ded500bbe4b50c31facc279c407fdda6",
94
+ "size": 2523
95
+ },
96
+ {
97
+ "path": "toolkit/session/SDTK_AGENT_WORKING_RULES.md",
98
+ "sha256": "a36693e3b588c2ed4b9b9934b8056e979e05bda6ed66feb021b109eea2e75051",
99
+ "size": 2125
100
+ },
91
101
  {
92
102
  "path": "toolkit/skills/sdtk-api-design-spec/scripts/generate_api_design_detail.py",
93
103
  "sha256": "d6190662345da009ce8c5c235bc2cda9ef44e7e96802d103666055e26d393551",
@@ -160,8 +170,8 @@
160
170
  },
161
171
  {
162
172
  "path": "toolkit/skills/sdtk-orchestrator/SKILL.md",
163
- "sha256": "76a43fd2a9b27cafa91a73c7f294106ad13d12938a413de92a4273b95b8790f1",
164
- "size": 8005
173
+ "sha256": "674ebb6be6adbbe08e0868a052c0965c3b06a4bd663e90cf9664062da695b96a",
174
+ "size": 8314
165
175
  },
166
176
  {
167
177
  "path": "toolkit/skills/sdtk-pm/SKILL.md",
@@ -353,6 +363,11 @@
353
363
  "sha256": "de563da0bc41996540b56a63b6295be5f4810c049f132c472a2a7ee816cd2884",
354
364
  "size": 16986
355
365
  },
366
+ {
367
+ "path": "toolkit/templates/docs/discovery/REQUIREMENT_TEMPLATE.md",
368
+ "sha256": "e383c3364bff63a7c3bd0f72a470341238c7da29027df5afd12120c2207d3052",
369
+ "size": 3449
370
+ },
356
371
  {
357
372
  "path": "toolkit/templates/docs/product/BACKLOG_TEMPLATE.md",
358
373
  "sha256": "d7e176b06b2b31c4c1eff18392eabc8f9af9cb67b2f8d0c97fc6315572fd81c3",
@@ -1,8 +1,8 @@
1
- f75e0a81845d4f841ed2c03d6a3837f345daf799d5cef18db3366517e8716861 toolkit/AGENTS.md
2
- 6a549a05c4e12edae60ddf6a737baf2c9c8e1f7a3654f02ce3f64e2297464644 toolkit/install.ps1
1
+ 0eb3e48bce332ceed12f73f24fc7265f825ac98229e81f5f979edc5b8be5a91e toolkit/AGENTS.md
2
+ f10d562d12532750ec7125d8925b7f56f1d4382c71be5c90e6b35c261b50c1bb toolkit/install.ps1
3
3
  1cb0643111e385a1ba606458998a977dc0c066cfdefc4e7069dd485ab2843c4e toolkit/README.md
4
- 2a037fede7b749841db61aeb06473b9f19a5ac49520b533cb496c375d6054f32 toolkit/runtimes/claude/CLAUDE_TEMPLATE.md
5
- 4453f452a6ac99f123d734f66d608e0c3d931262f3b51ea32307ef327911e938 toolkit/runtimes/codex/CODEX_TEMPLATE.md
4
+ 77e5f962c9d45e9f44f8125de385d74520ca7855dfc95f0bf86c24f61de8da3c toolkit/runtimes/claude/CLAUDE_TEMPLATE.md
5
+ 6e1e98dc2ef73467abe9fb26a7440a53af2a7513f8cb9b508da267488e480789 toolkit/runtimes/codex/CODEX_TEMPLATE.md
6
6
  8616291be4aaa4fb5cb0f1f4c738c108ab79090bf767ee2b4403d6d582c150c7 toolkit/scripts/agents/run-claude-task.ps1
7
7
  5d5ddf37b902fbc8857c64f4b201da9129942c66fa54e9b53984008263862080 toolkit/scripts/agents/run-codex-task.ps1
8
8
  f726aac97132a74d64cfac238a4ad736391a67291219221bb1abb20ecf81940a toolkit/scripts/agents/validate-mailbox-formal-artifact.py
@@ -12,9 +12,11 @@ f726aac97132a74d64cfac238a4ad736391a67291219221bb1abb20ecf81940a toolkit/script
12
12
  3191823ec5a481c34128ef645e8103e3ee526a74dd108ba2206878edd7b50cda toolkit/scripts/install-codex-skills.ps1
13
13
  f925a58e0cc92addc542762c2bf5f60be2d538dcca88e15de0b628b3a57048b1 toolkit/scripts/uninstall-claude-skills.ps1
14
14
  db0e580a20b43bb0af399ff3e4f7f2d826423d67bd2fa9a8121a384337a47de1 toolkit/scripts/uninstall-codex-skills.ps1
15
- 199cc00adc9307ea000ba96bccbad1f4c7beee09a061a1bf4c1d6f867488d39d toolkit/SDTK_TOOLKIT.md
15
+ e6f3d937ce81795a41d80c7ed3864c7a315346569e2d4a36f2d6aeb4e1cf4244 toolkit/SDTK_TOOLKIT.md
16
16
  95a16a213af96c9df959435f0910462f9a740af227c41925221a5a028460edd1 toolkit/sdtk-spec.config.json
17
17
  68f8cf75ebcd1665db10a3a3b8404c90bde857d2832e3d2429b2b473489f9116 toolkit/sdtk-spec.config.profiles.example.json
18
+ 5823d316bd970a304a8353b9e21ec824ded500bbe4b50c31facc279c407fdda6 toolkit/session/SDTK_ACTIVE_BOOTSTRAP.md
19
+ a36693e3b588c2ed4b9b9934b8056e979e05bda6ed66feb021b109eea2e75051 toolkit/session/SDTK_AGENT_WORKING_RULES.md
18
20
  d6190662345da009ce8c5c235bc2cda9ef44e7e96802d103666055e26d393551 toolkit/skills/sdtk-api-design-spec/scripts/generate_api_design_detail.py
19
21
  2fd046a8b229e54ae70d0f1091f10f9dc269f02630f443cffebc0206eac5daaf toolkit/skills/sdtk-api-design-spec/SKILL.md
20
22
  b1e480f8c077927775be5b1b39010c29700c12f2c0eb052d836254bccf0c13ff toolkit/skills/sdtk-api-doc/SKILL.md
@@ -29,7 +31,7 @@ ce5af79e5c4902b9c8ceb7e8dae848a6a5a26d5b845eee94ee8aafff88990256 toolkit/skills
29
31
  099024d3b31b63a20e6a041d4a3f0062bfd4fa5b3960926112fa44a7a20972b5 toolkit/skills/sdtk-dev-backend/SKILL.md
30
32
  419def53f37a10006a54392e642f2e86ac2bfa44c8ed826159ce309f2a9a3d6a toolkit/skills/sdtk-dev-frontend/SKILL.md
31
33
  926840764de83772c12d8e7c0d07a1be28472488dd00f2ec28dc97ba77788a49 toolkit/skills/sdtk-mailbox-dispatch/SKILL.md
32
- 76a43fd2a9b27cafa91a73c7f294106ad13d12938a413de92a4273b95b8790f1 toolkit/skills/sdtk-orchestrator/SKILL.md
34
+ 674ebb6be6adbbe08e0868a052c0965c3b06a4bd663e90cf9664062da695b96a toolkit/skills/sdtk-orchestrator/SKILL.md
33
35
  90d3c9d8bb2bb3b28e81bc10c6b1799236250dfcb2ebed43eb161c78ff00a084 toolkit/skills/sdtk-pm/SKILL.md
34
36
  9e41a944a73c6960c8aa24d8930e64c1ed699ed8b410a587b042186e2d450e6e toolkit/skills/sdtk-qa/SKILL.md
35
37
  083600e458e63c6e514516a6f304440f7ab28e4bde008c5ac11c58637ea2392a toolkit/skills/sdtk-screen-design-spec/references/excel-image-export.md
@@ -68,6 +70,7 @@ dc42e5b55b097844f1c8a525d294bf77767d0b6e5ae649f40165049ab453c7b2 toolkit/templa
68
70
  d7b932d8631297b1ddcb254d516dd69fd2259ffa5c3ff23741cb3cab8bfe0caa toolkit/templates/docs/design/DESIGN_LAYOUT_TEMPLATE.md
69
71
  7730b499e42a8c78806116bea4757a0acf2c10b294f1848385c63ec053ab1719 toolkit/templates/docs/dev/FEATURE_IMPL_PLAN_TEMPLATE.md
70
72
  de563da0bc41996540b56a63b6295be5f4810c049f132c472a2a7ee816cd2884 toolkit/templates/docs/dev/OPS_HANDOFF_CREATION_RULES.md
73
+ e383c3364bff63a7c3bd0f72a470341238c7da29027df5afd12120c2207d3052 toolkit/templates/docs/discovery/REQUIREMENT_TEMPLATE.md
71
74
  d7e176b06b2b31c4c1eff18392eabc8f9af9cb67b2f8d0c97fc6315572fd81c3 toolkit/templates/docs/product/BACKLOG_TEMPLATE.md
72
75
  dcf18f2793218258d76348be38afa1a3616a24d39c43c4ef9e3e7d14cc581338 toolkit/templates/docs/product/CONDENSED_UPSTREAM_INPUT_TEMPLATE.md
73
76
  85bb843e0e8dfcd02a5afe6c120f3e79866a8da6081108ebb73addaf8ee4c35c toolkit/templates/docs/product/PRD_TEMPLATE.md
@@ -1,9 +1,16 @@
1
- # SDTK-SPEC Multi-Agent Software Development Toolkit
1
+ # SDTK Suite Multi-Agent Software Development Toolkit
2
2
 
3
- Goal: use SDTK-SPEC as a virtual PM/BA/ARCH/DEV/QA operating model to deliver one feature through a 6-phase SDLC flow with full traceability and quality gates.
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
+ `SDTK-SPEC` remains the orchestration and documentation entry point, but the suite is not SPEC-only.
4
9
 
5
10
  ## 0) Default Rules
6
- - If role is not specified, default to PM (entry point) and start at Phase 1.
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.
7
14
  - Do not skip phases. If inputs are missing, ask focused questions before moving on.
8
15
  - At the end of every phase, update:
9
16
  - `SHARED_PLANNING.md`
@@ -15,6 +22,66 @@ Goal: use SDTK-SPEC as a virtual PM/BA/ARCH/DEV/QA operating model to deliver on
15
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`.
16
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.
17
24
 
25
+ ## 0.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
+ ## 0.3) Orchestrator-First Intake Protocol
36
+ For every unprefixed user request:
37
+ 1. Classify the request intent before selecting PM/BA/ARCH/DEV/QA or a downstream product lane.
38
+ 2. Route to the smallest sufficient workflow:
39
+ - unclear idea or early concept -> brainstorm / requirement clarification, then create or update `docs/discovery/REQUIREMENT_[FEATURE_KEY].md`
40
+ - formal feature discovery or planning -> SDTK-SPEC pipeline
41
+ - implementation, bug fix, refactor, verification, or ship-ready code -> SDTK-CODE
42
+ - deploy, release, infrastructure, CI/CD, monitoring, incident, backup, security-infra, or ops verification -> SDTK-OPS
43
+ - documentation graph, Atlas viewer, Atlas Ask, project ingest, project refresh, or project audit -> the matching Atlas/project command or workflow
44
+ - review or release decision -> review/QA workflow
45
+ 3. Ask focused questions only when missing information blocks safe routing.
46
+ 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`.
47
+ 5. When routing creates artifacts, record decisions and open questions in the correct SDTK artifact.
48
+
49
+ ## 0.4) Intent-To-Skill Routing Matrix
50
+ Use this compact matrix during intake so the agent picks the smallest sufficient workflow instead of defaulting everything to PM:
51
+
52
+ | User intent | Primary route | Output expectation |
53
+ |---|---|---|
54
+ | Raw idea | Brainstorm / requirement clarification | `docs/discovery/REQUIREMENT_[FEATURE_KEY].md` with clarified problem, scope, assumptions, open questions, and readiness |
55
+ | Approved idea ready for product planning | `SDTK-SPEC` PM initiation | `REQUIREMENT_[FEATURE_KEY]` marked `READY_FOR_PM_INITIATION`, then `PROJECT_INITIATION` kickoff |
56
+ | Formal feature delivery | `SDTK-SPEC` pipeline | PM -> BA -> ARCH -> DEV planning -> CODE handoff -> QA |
57
+ | Build, fix, or refactor implementation | `SDTK-CODE` | Planned, implemented, verified code change |
58
+ | Debug failure or unexpected behavior | `SDTK-CODE` debug | Root cause, bounded fix, regression verification |
59
+ | Deployment, release, infra, or CI/CD work | `SDTK-OPS` | Ops plan or execution plus verification evidence |
60
+ | Code review or spec review | Review / QA workflow | Findings, risks, blockers, acceptance signal |
61
+ | Atlas graph build or viewer work | `sdtk-spec atlas` workflow | Local `.sdtk/atlas` graph or viewer result |
62
+ | Atlas Ask | Gated Atlas Ask workflow | Grounded answer or explicit entitlement/runtime blocker |
63
+ | Existing project scan: project ingest, project refresh, or project audit | Matching premium project workflow | Project-local foundation, refresh, or audit result without overclaiming entitlement |
64
+ | "what should we do next" | Orchestrator state review | Recommended next action with rationale and lane choice |
65
+
66
+ Guardrails:
67
+ - Explicit user role prefix wins unless safety or missing critical inputs block execution.
68
+ - Raw idea clarification should use `docs/discovery/REQUIREMENT_[FEATURE_KEY].md`; do not widen BK-099 into generator automation, package sync, or BK-100 validation work.
69
+ - Do not claim Atlas Ask or project ingest/project refresh/project audit availability unless entitlement/runtime access is actually present.
70
+
71
+ ## 0.5) Proceed-Vs-Ask Decision Rules
72
+ Ask clarification when:
73
+ 1. the requested outcome is ambiguous
74
+ 2. safety, security, or release impact is unclear
75
+ 3. the target repo, project, or path is missing
76
+ 4. implementation is requested without an acceptance boundary
77
+ 5. the next command could mutate external state
78
+
79
+ Proceed when:
80
+ 1. the intent and target are clear
81
+ 2. the task is read-only analysis
82
+ 3. the user already approved the relevant plan or spec
83
+ 4. the requested change is bounded and verifiable
84
+
18
85
  ## 0.1) Clarification Protocol
19
86
  Apply for all roles (`/pm`, `/ba`, `/arch`, `/dev`, `/qa`):
20
87
  1. If there is ambiguity or missing data, log `Open Questions` as `OQ-xx` in the current phase artifact.
@@ -25,9 +92,15 @@ Apply for all roles (`/pm`, `/ba`, `/arch`, `/dev`, `/qa`):
25
92
  - asking the user if source information is still missing.
26
93
  5. Record decisions in PRD (`Decision Log`) and update the originating `OQ-xx` with resolution.
27
94
 
95
+ For raw ideas before PM initiation:
96
+ 1. Use `docs/discovery/REQUIREMENT_[FEATURE_KEY].md` as the canonical clarification artifact.
97
+ 2. Record scope, non-goals, assumptions, constraints, open questions, and readiness there before opening `PROJECT_INITIATION`.
98
+ 3. Treat the discovery artifact as a bridge into PM initiation, not as a PRD replacement.
99
+
28
100
  ## 1) Role Selection In One Message
29
101
  When the user prefixes a message, execute that role:
30
- - `/pm` (entry point + orchestrator)
102
+ - `/orchestrator` (default intake + routing)
103
+ - `/pm` (formal product initiation + planning)
31
104
  - `/ba`
32
105
  - `/arch`
33
106
  - `/dev`
@@ -39,6 +112,9 @@ Notes:
39
112
  - There is no separate `/tester` role. Test-case design belongs to QA with `sdtk-test-case-spec`.
40
113
 
41
114
  ## 2) Standard 6-Phase Pipeline
115
+ Use this formal pipeline after Orchestrator Intake determines that the request is ready for SDTK-SPEC feature delivery.
116
+
117
+ 0. Discovery / Clarification when needed -> `docs/discovery/REQUIREMENT_[FEATURE_KEY].md`
42
118
  1. PM Initiation -> `docs/product/PROJECT_INITIATION_[FEATURE_KEY].md`
43
119
  2. BA Analysis -> `docs/specs/BA_SPEC_[FEATURE_KEY].md`
44
120
  3. PM Planning -> `docs/product/PRD_[FEATURE_KEY].md` + `docs/product/BACKLOG_[FEATURE_KEY].md`
@@ -46,6 +122,11 @@ Notes:
46
122
  5. DEV Planning + SDTK-CODE Handoff -> `docs/dev/FEATURE_IMPL_PLAN_[FEATURE_KEY].md` + `docs/dev/CODE_HANDOFF_[FEATURE_KEY].json`
47
123
  6. QA Testing -> `docs/qa/[FEATURE_KEY]_TEST_CASE.md` + `docs/qa/QA_RELEASE_REPORT_[FEATURE_KEY].md`
48
124
 
125
+ Notes:
126
+ - Phase 0 is only for raw ideas, unclear concepts, and early feature discovery.
127
+ - PM initiation starts only after `docs/discovery/REQUIREMENT_[FEATURE_KEY].md` is marked `READY_FOR_PM_INITIATION`.
128
+ - The discovery artifact does not replace PM, BA, PRD, backlog, or architecture deliverables.
129
+
49
130
  Default bridge after Phase 5 planning output:
50
131
  - `/dev` emits the handoff
51
132
  - SDTK-CODE performs `start -> plan -> build -> verify -> ship`
@@ -59,6 +140,30 @@ DEV output is planning + readiness gating, not final code delivery:
59
140
 
60
141
  `/dev` does not auto-run SDTK-CODE.
61
142
 
143
+ ## 2.2) Suite Product Routing
144
+ Use the suite products according to task intent:
145
+
146
+ - `SDTK-SPEC`
147
+ - feature discovery
148
+ - requirements, BA, PRD, backlog, architecture, QA artifacts
149
+ - handoff generation and release-gate traceability
150
+ - `SDTK-CODE`
151
+ - build a feature
152
+ - fix a bug
153
+ - refactor implementation
154
+ - run implementation verification
155
+ - ship code changes
156
+ - `SDTK-OPS`
157
+ - deploy or release
158
+ - infrastructure and environment setup
159
+ - CI/CD changes
160
+ - monitoring, incident response, security-infra, backup, compliance
161
+
162
+ If the current project only has `SDTK-SPEC` runtime assets installed:
163
+ - keep `/dev` bounded to planning and `CODE_HANDOFF`
164
+ - do not overclaim that SDTK-CODE or SDTK-OPS runtime assets are already installed
165
+ - still describe the correct downstream suite path in guidance and handoffs
166
+
62
167
  ## 3) Shared State And Quality Gates
63
168
  - `SHARED_PLANNING.md`: phase status, owners, artifacts, blockers, handoff notes.
64
169
  - `QUALITY_CHECKLIST.md`: gate checklist by phase.
@@ -71,6 +71,8 @@ Always:
71
71
  - `toolkit/AGENTS.md` -> `AGENTS.md`
72
72
  - `toolkit/sdtk-spec.config.json` -> `sdtk-spec.config.json`
73
73
  - `toolkit/sdtk-spec.config.profiles.example.json` -> `sdtk-spec.config.profiles.example.json`
74
+ - `toolkit/session/SDTK_ACTIVE_BOOTSTRAP.md` -> `governance/ai/session/SDTK_ACTIVE_BOOTSTRAP.md`
75
+ - `toolkit/session/SDTK_AGENT_WORKING_RULES.md` -> `governance/ai/session/SDTK_AGENT_WORKING_RULES.md`
74
76
 
75
77
  By runtime:
76
78
  - `codex` -> `toolkit/runtimes/codex/CODEX_TEMPLATE.md` -> `CODEX.md`
@@ -304,10 +304,12 @@ if (-not $Quiet) {
304
304
  }
305
305
  }
306
306
 
307
- Copy-File -SourcePath (Join-Path $toolkitRoot 'AGENTS.md') -DestinationPath (Join-Path $projectRoot 'AGENTS.md') -Overwrite ([bool]$Force)
308
- Copy-File -SourcePath (Join-Path $toolkitRoot 'sdtk-spec.config.json') -DestinationPath (Join-Path $projectRoot 'sdtk-spec.config.json') -Overwrite ([bool]$Force)
309
- Copy-File -SourcePath (Join-Path $toolkitRoot 'sdtk-spec.config.profiles.example.json') -DestinationPath (Join-Path $projectRoot 'sdtk-spec.config.profiles.example.json') -Overwrite ([bool]$Force)
310
- Install-RuntimeAdapter -ToolkitRoot $toolkitRoot -ProjectRoot $projectRoot -RuntimeName $Runtime -Overwrite ([bool]$Force)
307
+ Copy-File -SourcePath (Join-Path $toolkitRoot 'AGENTS.md') -DestinationPath (Join-Path $projectRoot 'AGENTS.md') -Overwrite ([bool]$Force)
308
+ Copy-File -SourcePath (Join-Path $toolkitRoot 'sdtk-spec.config.json') -DestinationPath (Join-Path $projectRoot 'sdtk-spec.config.json') -Overwrite ([bool]$Force)
309
+ Copy-File -SourcePath (Join-Path $toolkitRoot 'sdtk-spec.config.profiles.example.json') -DestinationPath (Join-Path $projectRoot 'sdtk-spec.config.profiles.example.json') -Overwrite ([bool]$Force)
310
+ Copy-File -SourcePath (Join-Path $toolkitRoot 'session/SDTK_ACTIVE_BOOTSTRAP.md') -DestinationPath (Join-Path $projectRoot 'governance/ai/session/SDTK_ACTIVE_BOOTSTRAP.md') -Overwrite ([bool]$Force)
311
+ Copy-File -SourcePath (Join-Path $toolkitRoot 'session/SDTK_AGENT_WORKING_RULES.md') -DestinationPath (Join-Path $projectRoot 'governance/ai/session/SDTK_AGENT_WORKING_RULES.md') -Overwrite ([bool]$Force)
312
+ Install-RuntimeAdapter -ToolkitRoot $toolkitRoot -ProjectRoot $projectRoot -RuntimeName $Runtime -Overwrite ([bool]$Force)
311
313
 
312
314
  if (($Runtime -eq 'codex') -and (-not $SkipSkills)) {
313
315
  $skillInstaller = Join-Path $toolkitRoot 'scripts/install-codex-skills.ps1'
@@ -343,15 +345,18 @@ elseif (($Runtime -eq 'claude') -and (-not $SkipSkills)) {
343
345
 
344
346
  if (-not $Quiet) {
345
347
  Write-Host ""
346
- Write-Host "Install complete."
347
- Write-Host "Next:"
348
- Write-Host "1) Edit project config: $((Join-Path $projectRoot 'sdtk-spec.config.json'))"
349
- if ($Runtime -eq 'codex') {
350
- Write-Host "2) Restart Codex (to load runtime adapter and skills)"
351
- } else {
352
- Write-Host "2) Restart Claude Code (to load CLAUDE.md + skills)"
353
- Write-Host " Commands: /orchestrator /pm /ba /arch /dev /qa"
354
- }
355
- Write-Host '3) Generate feature docs:'
356
- Write-Host ' sdtk generate --feature-key YOUR_FEATURE --feature-name "Your Feature"'
357
- }
348
+ Write-Host "Install complete."
349
+ Write-Host "Next:"
350
+ Write-Host "1) Edit project config: $((Join-Path $projectRoot 'sdtk-spec.config.json'))"
351
+ Write-Host "2) Review bootstrap files:"
352
+ Write-Host " $((Join-Path $projectRoot 'governance/ai/session/SDTK_ACTIVE_BOOTSTRAP.md'))"
353
+ Write-Host " $((Join-Path $projectRoot 'governance/ai/session/SDTK_AGENT_WORKING_RULES.md'))"
354
+ if ($Runtime -eq 'codex') {
355
+ Write-Host "3) Restart Codex (to load runtime adapter and skills)"
356
+ } else {
357
+ Write-Host "3) Restart Claude Code (to load CLAUDE.md + skills)"
358
+ Write-Host " Commands: /orchestrator /pm /ba /arch /dev /qa"
359
+ }
360
+ Write-Host '4) Generate feature docs:'
361
+ Write-Host ' sdtk generate --feature-key YOUR_FEATURE --feature-name "Your Feature"'
362
+ }
@@ -1,10 +1,10 @@
1
1
  # CLAUDE.md
2
2
 
3
- Version: 2.0
4
- Last Updated: 2026-03-05
3
+ Version: 2.1
4
+ Last Updated: 2026-04-16
5
5
  Owner: SDTK-SPEC Core Team
6
6
 
7
- This file defines runtime guidance for Claude Code sessions in projects using SDTK-SPEC.
7
+ This file defines runtime guidance for Claude Code sessions in projects using the SDTK Suite.
8
8
 
9
9
  ## 1) Rule Priority
10
10
  1. Explicit user request
@@ -14,19 +14,55 @@ This file defines runtime guidance for Claude Code sessions in projects using SD
14
14
  5. `sdtk-spec.config.json`
15
15
 
16
16
  ## 2) Runtime Model
17
- - Primary workflow: PM -> BA -> ARCH -> DEV -> QA
18
- - Entry point: `/orchestrator` (recommended) or `/pm`
17
+ - Suite routing:
18
+ - `SDTK-SPEC`: orchestration, specs, planning, architecture, QA artifacts
19
+ - `SDTK-CODE`: implementation, bug fixing, refactoring, verification, ship flow
20
+ - `SDTK-OPS`: deploy, infra, CI/CD, monitoring, incident, ops verification
21
+ - Default unprefixed entry point: Orchestrator Intake.
22
+ - Orchestrator classifies the user request before selecting a role, product lane, or skill.
23
+ - `SDTK-SPEC` phase workflow remains: PM -> BA -> ARCH -> DEV -> QA after intake decides formal feature delivery is ready.
24
+ - Entry point command: `/orchestrator` (recommended). Use `/pm` only for formal product initiation.
19
25
  - Role commands: `/pm`, `/ba`, `/arch`, `/dev`, `/qa`
20
26
  - Sub-skill commands: `/api-doc`, `/api-design-spec`, `/screen-design-spec`, `/design-layout`, `/test-case-spec`, `/dev-backend`, `/dev-frontend`
21
27
  - Shared state files:
22
28
  - `SHARED_PLANNING.md`
23
29
  - `QUALITY_CHECKLIST.md`
24
30
 
31
+ ## 2.1) Claude Session Start Checklist
32
+ Read these in order when they exist:
33
+ 1. `AGENTS.md`
34
+ 2. `governance/ai/session/SDTK_ACTIVE_BOOTSTRAP.md`
35
+ 3. `governance/ai/session/SDTK_AGENT_WORKING_RULES.md`
36
+ 4. issue-specific controller spec and implementation plan
37
+
38
+ Routing rules:
39
+ - Raw idea -> brainstorm / requirement clarification, then create or update `docs/discovery/REQUIREMENT_[FEATURE_KEY].md` before PM initiation
40
+ - Formal feature delivery and approved planning work -> `SDTK-SPEC`
41
+ - build feature, fix code, refactor, or debug failure -> `SDTK-CODE` when available
42
+ - deploy/release/infra/ops -> `SDTK-OPS` when available
43
+ - Atlas graph/viewer, Atlas Ask, project ingest, project refresh, and project audit -> matching SDTK command or workflow
44
+ - "what should we do next" -> Orchestrator state review using the smallest sufficient workflow
45
+
46
+ Proceed-vs-ask summary:
47
+ - Ask clarification when the outcome is ambiguous, the target path/repo is missing, there is no acceptance boundary for implementation, or the next step could mutate external state.
48
+ - Proceed when intent and target are clear, the task is read-only analysis, the plan/spec is already approved, or the change is bounded and verifiable.
49
+
50
+ If only SPEC runtime assets are installed:
51
+ - keep `/dev` bounded to planning and `CODE_HANDOFF`
52
+ - do not claim that SDTK-CODE or SDTK-OPS runtime assets are already installed
53
+
54
+ Discovery artifact rule:
55
+ - PM initiation starts only after `docs/discovery/REQUIREMENT_[FEATURE_KEY].md` is marked `READY_FOR_PM_INITIATION`.
56
+ - Use `NEEDS_MORE_DISCOVERY` or `NOT_ACTIONABLE_YET` when the request is not ready.
57
+ - The discovery artifact is a pre-PM clarification bridge, not a PRD or BA replacement.
58
+
25
59
  ## 3) Minimal Session Flow
26
- 1. Start with `/orchestrator` or `/pm` to define feature scope.
27
- 2. Move phase-by-phase without skipping gates.
28
- 3. Keep traceability from requirements to design, implementation, and tests.
29
- 4. Require code review completion before QA release decision.
60
+ 1. Start with Orchestrator Intake unless the user explicitly selects a role.
61
+ 2. Classify intent and choose the smallest sufficient SDTK workflow.
62
+ 3. For raw ideas, finish discovery and readiness in `docs/discovery/REQUIREMENT_[FEATURE_KEY].md` before PM initiation.
63
+ 4. For formal feature delivery, move PM -> BA -> ARCH -> DEV -> QA without skipping gates.
64
+ 5. Keep traceability from requirements to design, implementation, and tests.
65
+ 6. Require code review completion before QA release decision.
30
66
 
31
67
  ## 4) Installed Skills
32
68
  Skills are installed at `.claude/skills/` and provide slash commands:
@@ -51,4 +87,6 @@ Specialist rule reference files are installed inside each skill directory when t
51
87
 
52
88
  ## 5) References
53
89
  - `sdtk-spec.config.json`
90
+ - `governance/ai/session/SDTK_ACTIVE_BOOTSTRAP.md`
91
+ - `governance/ai/session/SDTK_AGENT_WORKING_RULES.md`
54
92
  - `.claude/skills/<skill>/references/` (skill-local rule files when required)
@@ -1,10 +1,10 @@
1
1
  # CODEX.md
2
2
 
3
- Version: 1.0
4
- Last Updated: 2026-02-25
3
+ Version: 1.1
4
+ Last Updated: 2026-04-16
5
5
  Owner: SDTK-SPEC Core Team
6
6
 
7
- This file defines runtime guidance for Codex sessions in projects using SDTK-SPEC.
7
+ This file defines runtime guidance for Codex sessions in projects using the SDTK Suite.
8
8
 
9
9
  ## 1) Rule Priority
10
10
  1. Explicit user request
@@ -14,19 +14,57 @@ This file defines runtime guidance for Codex sessions in projects using SDTK-SPE
14
14
  5. Other supporting docs
15
15
 
16
16
  ## 2) Runtime Model
17
- - Primary workflow: PM -> BA -> ARCH -> DEV -> QA
17
+ - Suite routing:
18
+ - `SDTK-SPEC`: orchestration, specs, planning, architecture, QA artifacts
19
+ - `SDTK-CODE`: implementation, bug fixing, refactoring, verification, ship flow
20
+ - `SDTK-OPS`: deploy, infra, CI/CD, monitoring, incident, ops verification
21
+ - Default unprefixed entry point: Orchestrator Intake.
22
+ - Orchestrator classifies the user request before selecting a role, product lane, or skill.
23
+ - `SDTK-SPEC` phase workflow remains: PM -> BA -> ARCH -> DEV -> QA after intake decides formal feature delivery is ready.
18
24
  - Role tags: `/pm`, `/ba`, `/arch`, `/dev`, `/qa`
19
25
  - Shared state files:
20
26
  - `SHARED_PLANNING.md`
21
27
  - `QUALITY_CHECKLIST.md`
22
28
 
29
+ ## 2.1) Codex Session Start Checklist
30
+ Read these in order when they exist:
31
+ 1. `AGENTS.md`
32
+ 2. `governance/ai/session/SDTK_ACTIVE_BOOTSTRAP.md`
33
+ 3. `governance/ai/session/SDTK_AGENT_WORKING_RULES.md`
34
+ 4. issue-specific controller spec and implementation plan
35
+
36
+ Routing rules:
37
+ - Raw idea -> brainstorm / requirement clarification, then create or update `docs/discovery/REQUIREMENT_[FEATURE_KEY].md` before PM initiation
38
+ - Formal feature delivery and approved planning work -> `SDTK-SPEC`
39
+ - build feature, fix code, refactor, or debug failure -> `SDTK-CODE` when available
40
+ - deploy/release/infra/ops -> `SDTK-OPS` when available
41
+ - Atlas graph/viewer, Atlas Ask, project ingest, project refresh, and project audit -> matching SDTK command or workflow
42
+ - "what should we do next" -> Orchestrator state review using the smallest sufficient workflow
43
+
44
+ Proceed-vs-ask summary:
45
+ - Ask clarification when the outcome is ambiguous, the target path/repo is missing, there is no acceptance boundary for implementation, or the next step could mutate external state.
46
+ - Proceed when intent and target are clear, the task is read-only analysis, the plan/spec is already approved, or the change is bounded and verifiable.
47
+
48
+ If only SPEC runtime assets are installed:
49
+ - keep `/dev` bounded to planning and `CODE_HANDOFF`
50
+ - do not claim that SDTK-CODE or SDTK-OPS runtime assets are already installed
51
+
52
+ Discovery artifact rule:
53
+ - PM initiation starts only after `docs/discovery/REQUIREMENT_[FEATURE_KEY].md` is marked `READY_FOR_PM_INITIATION`.
54
+ - Use `NEEDS_MORE_DISCOVERY` or `NOT_ACTIONABLE_YET` when the request is not ready.
55
+ - The discovery artifact is a pre-PM clarification bridge, not a PRD or BA replacement.
56
+
23
57
  ## 3) Minimal Session Flow
24
- 1. Start with `/pm` to define feature scope.
25
- 2. Move phase-by-phase without skipping gates.
26
- 3. Keep traceability from requirements to design, implementation, and tests.
27
- 4. Require code review completion before QA release decision.
58
+ 1. Start with Orchestrator Intake unless the user explicitly selects a role.
59
+ 2. Classify intent and choose the smallest sufficient SDTK workflow.
60
+ 3. For raw ideas, finish discovery and readiness in `docs/discovery/REQUIREMENT_[FEATURE_KEY].md` before PM initiation.
61
+ 4. For formal feature delivery, move PM -> BA -> ARCH -> DEV -> QA without skipping gates.
62
+ 5. Keep traceability from requirements to design, implementation, and tests.
63
+ 6. Require code review completion before QA release decision.
28
64
 
29
65
  ## 4) References
30
66
  - `toolkit/SDTK_TOOLKIT.md`
31
67
  - `toolkit/AGENTS.md`
68
+ - `governance/ai/session/SDTK_ACTIVE_BOOTSTRAP.md`
69
+ - `governance/ai/session/SDTK_AGENT_WORKING_RULES.md`
32
70
  - `sdtk-spec.config.json`
@@ -0,0 +1,47 @@
1
+ # SDTK Active Bootstrap
2
+
3
+ Version: 1.0
4
+ Last Updated: 2026-04-16
5
+ Owner: SDTK Core Team
6
+
7
+ Purpose: give new sessions a compact bootstrap layer without requiring a long manual prompt.
8
+
9
+ ## 1) Suite Routing Truth
10
+ - Default unprefixed user requests start with Orchestrator Intake.
11
+ - Orchestrator classifies intent first, then routes to the smallest sufficient SDTK product, role, and skill.
12
+ - PM starts only when the request is ready for formal SDTK-SPEC product initiation.
13
+ - Compact intent routing:
14
+ - Raw idea -> brainstorm / requirement clarification in `docs/discovery/REQUIREMENT_[FEATURE_KEY].md`
15
+ - Formal feature delivery -> `SDTK-SPEC`
16
+ - build/fix/refactor/debug -> `SDTK-CODE`
17
+ - deploy/release/infra/CI/CD -> `SDTK-OPS`
18
+ - Atlas Ask / Atlas graph / project ingest / project refresh / project audit -> matching SDTK command or workflow
19
+ - "what should we do next" -> Orchestrator state review
20
+ - `SDTK-SPEC`
21
+ - orchestration, discovery, specs, planning, architecture, QA artifacts
22
+ - `SDTK-CODE`
23
+ - implementation, bug fixing, refactoring, verification, ship flow
24
+ - `SDTK-OPS`
25
+ - deploy, infra, release, CI/CD, monitoring, incident, ops verification
26
+
27
+ ## 2) Session Start Order
28
+ Read these in order:
29
+ 1. `AGENTS.md`
30
+ 2. this file
31
+ 3. `governance/ai/session/SDTK_AGENT_WORKING_RULES.md`
32
+ 4. backlog and issue-specific spec/plan files
33
+
34
+ ## 3) Consumer Project Notes
35
+ - This file is a bootstrap layer, not a complete historical memory archive.
36
+ - If the user sends a raw idea, clarify the requirement in `docs/discovery/REQUIREMENT_[FEATURE_KEY].md` before formal PM initiation.
37
+ - Start PM initiation only after the discovery artifact is marked `READY_FOR_PM_INITIATION`.
38
+ - Use `NEEDS_MORE_DISCOVERY` or `NOT_ACTIONABLE_YET` when the request is not ready.
39
+ - Treat the discovery artifact as a lightweight bridge into PM initiation, not a PRD replacement.
40
+ - If the request is implementation or operations work, route to SDTK-CODE or SDTK-OPS when available instead of forcing the task into SPEC-only wording.
41
+ - Ask clarification when the request is ambiguous, the target path/repo is missing, there is no acceptance boundary, or the next step could mutate external state.
42
+ - Proceed when intent and target are clear, the task is read-only analysis, the plan/spec is approved, or the change is bounded and verifiable.
43
+ - Update project-specific truths here after install if the repo has:
44
+ - a private/public repo split
45
+ - published package versions
46
+ - active product lane priorities
47
+ - a production domain or support address
@@ -0,0 +1,49 @@
1
+ # SDTK Agent Working Rules
2
+
3
+ Version: 1.0
4
+ Last Updated: 2026-04-16
5
+ Owner: SDTK Core Team
6
+
7
+ Purpose: keep agent behavior stable across fresh sessions.
8
+
9
+ ## 1) Working Contract
10
+ 1. Start unprefixed requests with Orchestrator Intake.
11
+ 2. Classify intent before choosing PM/BA/ARCH/DEV/QA or a downstream product lane.
12
+ 3. Clear spec before implementation for non-trivial work.
13
+ 4. Do not widen issue scope without approval.
14
+ 5. Verify before claiming done.
15
+ 6. Keep changes bounded and auditable.
16
+ 7. Do not commit secrets or `.env` files.
17
+
18
+ ## 2) Product Routing
19
+ - Raw idea -> brainstorm / requirement clarification in `docs/discovery/REQUIREMENT_[FEATURE_KEY].md` before PM initiation
20
+ - Formal feature delivery -> `SDTK-SPEC`
21
+ - `SDTK-SPEC` for specs, planning, architecture, QA artifacts, release gates
22
+ - `SDTK-CODE` for build, implementation, bug fixing, refactor, debug, verify, ship
23
+ - `SDTK-OPS` for deploy, infra, CI/CD, monitoring, incident, ops work
24
+ - Atlas Ask / Atlas graph / project ingest / project audit / project refresh -> matching SDTK command or workflow
25
+ - "what should we do next" -> Orchestrator state review using the smallest sufficient workflow
26
+
27
+ Ask clarification when:
28
+ - the request is ambiguous
29
+ - the target repo, project, or path is missing
30
+ - implementation is requested without an acceptance boundary
31
+ - the next step could mutate external state
32
+
33
+ Proceed when:
34
+ - intent and target are clear
35
+ - the task is read-only analysis
36
+ - the plan/spec is approved
37
+ - the requested change is bounded and verifiable
38
+
39
+ If a task is code or ops work, do not keep it framed as SPEC-only.
40
+
41
+ Discovery gating:
42
+ - For raw ideas, create or update `docs/discovery/REQUIREMENT_[FEATURE_KEY].md`.
43
+ - Start PM initiation only after the artifact is marked `READY_FOR_PM_INITIATION`.
44
+ - Use `NEEDS_MORE_DISCOVERY` or `NOT_ACTIONABLE_YET` when the request is not ready.
45
+ - Do not treat the discovery artifact as a replacement for `PROJECT_INITIATION`, PRD, BA spec, or backlog.
46
+
47
+ ## 3) Verification Contract
48
+ - No `done`, `pass`, or `ready` claim without fresh command evidence.
49
+ - If verification is blocked, state the blocker and keep the task open.
@@ -17,14 +17,17 @@ 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
- ## Initialize
21
- - Ensure feature key + feature name exist (ask if missing).
22
- - Read `sdtk-spec.config.json` (project stack + commands) if present.
23
- - If `toolkit/scripts/init-feature.ps1` exists: run it to create skeleton artifacts; otherwise create the same files from `toolkit/templates/`.
24
-
25
- ## Execute pipeline (one phase per turn)
26
- - Default role: PM (entry point) if user did not specify.
27
- - Respect role tags: `/pm`, `/ba`, `/arch`, `/dev`, `/qa`.
20
+ ## Initialize
21
+ - Start as Orchestrator Intake for unprefixed user requests.
22
+ - Classify intent before choosing PM/BA/ARCH/DEV/QA or downstream SDTK-CODE/SDTK-OPS paths.
23
+ - Use brainstorm / requirement clarification for unclear ideas before formal PM initiation.
24
+ - Ensure feature key + feature name exist (ask if missing).
25
+ - Read `sdtk-spec.config.json` (project stack + commands) if present.
26
+ - If `toolkit/scripts/init-feature.ps1` exists: run it to create skeleton artifacts; otherwise create the same files from `toolkit/templates/`.
27
+
28
+ ## Execute pipeline (one phase per turn)
29
+ - Default unprefixed role: Orchestrator Intake. Select PM only when the request is ready for formal SDTK-SPEC product initiation.
30
+ - Respect role tags: `/pm`, `/ba`, `/arch`, `/dev`, `/qa`.
28
31
  - For each phase:
29
32
  - Create/update the phase artifact(s) in `docs/`.
30
33
  - 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`.
@@ -0,0 +1,155 @@
1
+ # REQUIREMENT: {{FEATURE_KEY}}
2
+
3
+ **Document ID:** REQUIREMENT_{{FEATURE_KEY}}
4
+ **Version:** 1.0.0
5
+ **Date:** {{DATE}}
6
+ **Author:** Orchestrator / Discovery Agent
7
+ **Status:** DRAFT - Pre-PM Discovery
8
+
9
+ Purpose: lightweight discovery artifact for raw ideas and unclear feature concepts before formal PM initiation.
10
+
11
+ This artifact is:
12
+ - pre-PM initiation
13
+ - the canonical clarification record for `docs/discovery/REQUIREMENT_[FEATURE_KEY].md`
14
+ - not a replacement for `PROJECT_INITIATION`, PRD, BA spec, backlog, or architecture artifacts
15
+
16
+ ---
17
+
18
+ ## 1. Problem / Idea Summary
19
+
20
+ **Idea Name:** {{FEATURE_NAME}}
21
+
22
+ ### 1.1 Summary
23
+
24
+ ### 1.2 Success Signal (optional)
25
+
26
+ ---
27
+
28
+ ## 2. User Goal / Desired Outcome
29
+
30
+ ### 2.1 Desired Outcome
31
+
32
+ ### 2.2 Why This Matters Now
33
+
34
+ ---
35
+
36
+ ## 3. Target Users / Stakeholders
37
+
38
+ | Group | Role / Stakeholder | Need / Expectation |
39
+ |---|---|---|
40
+ | TG-01 | TBD | TBD |
41
+
42
+ ---
43
+
44
+ ## 4. Current Pain / Trigger
45
+
46
+ ### 4.1 Current Situation
47
+
48
+ ### 4.2 Pain, Friction, or Opportunity
49
+
50
+ ### 4.3 Triggering Context
51
+
52
+ ---
53
+
54
+ ## 5. Proposed Scope
55
+
56
+ ### 5.1 In Scope
57
+ - TBD
58
+
59
+ ### 5.2 Candidate Workflows / Lanes Affected (optional)
60
+ - TBD
61
+
62
+ ---
63
+
64
+ ## 6. Out of Scope / Non-Goals
65
+
66
+ - TBD
67
+
68
+ ---
69
+
70
+ ## 7. Assumptions
71
+
72
+ | ID | Assumption | Confidence | Notes |
73
+ |---|---|---|---|
74
+ | A-01 | TBD | TBD | TBD |
75
+
76
+ ---
77
+
78
+ ## 8. Constraints / Dependencies
79
+
80
+ | ID | Constraint / Dependency | Type | Impact | Notes |
81
+ |---|---|---|---|---|
82
+ | C-01 | TBD | TBD | TBD | TBD |
83
+
84
+ ---
85
+
86
+ ## 9. Open Questions
87
+
88
+ | OQ-ID | Question | Why It Matters | Owner | Status |
89
+ |---|---|---|---|---|
90
+ | OQ-01 | TBD | TBD | TBD | OPEN |
91
+
92
+ ---
93
+
94
+ ## 10. Candidate Feature Key
95
+
96
+ **Candidate Feature Key:** `{{FEATURE_KEY}}`
97
+
98
+ Naming note:
99
+ - use a stable candidate key once the idea is distinct enough to track
100
+ - rename only if the scope materially changes before PM initiation
101
+
102
+ ---
103
+
104
+ ## 11. Risks (optional)
105
+
106
+ | Risk ID | Risk | Impact | Mitigation / Note |
107
+ |---|---|---|---|
108
+ | R-01 | TBD | TBD | TBD |
109
+
110
+ ---
111
+
112
+ ## 12. Readiness Decision
113
+
114
+ **Decision:**
115
+ - `READY_FOR_PM_INITIATION`
116
+ - `NEEDS_MORE_DISCOVERY`
117
+ - `NOT_ACTIONABLE_YET`
118
+
119
+ **Current Decision:** `NEEDS_MORE_DISCOVERY`
120
+
121
+ Decision rules:
122
+ - `READY_FOR_PM_INITIATION`
123
+ - problem is clear
124
+ - target users or stakeholders are identified
125
+ - scope and non-goals are bounded enough for PM kickoff
126
+ - open questions do not block PM initiation
127
+ - `NEEDS_MORE_DISCOVERY`
128
+ - direction is promising but key assumptions, constraints, or boundaries remain unresolved
129
+ - `NOT_ACTIONABLE_YET`
130
+ - request is too vague, conflicting, speculative, or unsupported to begin PM initiation safely
131
+
132
+ ---
133
+
134
+ ## 13. Handoff Criteria To PM Initiation
135
+
136
+ Move to `docs/product/PROJECT_INITIATION_[FEATURE_KEY].md` only when:
137
+ 1. this discovery artifact is marked `READY_FOR_PM_INITIATION`
138
+ 2. the problem and desired outcome are understandable without relying on chat history alone
139
+ 3. target users or stakeholders are identified well enough for PM kickoff
140
+ 4. scope and non-scope are bounded enough to avoid a false PM start
141
+ 5. remaining open questions are documented and are not blocking PM initiation
142
+
143
+ PM initiation handoff note:
144
+ - this document is the discovery bridge into formal PM initiation
145
+ - PM still owns `PROJECT_INITIATION`, PRD, backlog, and downstream SPEC artifacts
146
+
147
+ ---
148
+
149
+ ## APPENDIX A: Original Input (optional)
150
+
151
+ Paste source requirement text here when useful for traceability.
152
+
153
+ ## APPENDIX B: Literal English Translation (optional)
154
+
155
+ If Appendix A is VI/JP, add a literal English translation here.
package/package.json CHANGED
@@ -1,48 +1,48 @@
1
1
  {
2
- "name": "sdtk-spec-kit",
3
- "version": "0.4.1",
4
- "description": "SDTK-SPEC CLI toolkit for deterministic software documentation workflows via the sdtk-spec command",
5
- "bin": {
6
- "sdtk-spec": "bin/sdtk.js"
7
- },
8
- "main": "src/index.js",
9
- "type": "commonjs",
10
- "files": [
11
- "bin/",
12
- "src/",
13
- "assets/"
14
- ],
15
- "scripts": {
16
- "test": "npm run verify:payload \u0026\u0026 npm run pack:smoke",
17
- "build:payload": "powershell -ExecutionPolicy Bypass -File scripts/sync-toolkit-assets.ps1 \u0026\u0026 powershell -ExecutionPolicy Bypass -File scripts/build-toolkit-manifest.ps1",
18
- "verify:payload": "node -e \"require(\u0027./src/lib/toolkit-payload\u0027).verify()\"",
19
- "pack:smoke": "npm pack --dry-run",
20
- "pack:release": "npm pack",
21
- "prepublishOnly": "node -e \"require(\u0027./src/lib/toolkit-payload\u0027).verify()\""
22
- },
23
- "engines": {
24
- "node": "\u003e=18.13.0"
25
- },
26
- "keywords": [
27
- "sdtk",
28
- "sdtk-spec",
29
- "sdtk-spec-kit",
30
- "cli",
31
- "documentation",
32
- "toolkit",
33
- "dockkit"
34
- ],
35
- "license": "MIT",
36
- "repository": {
37
- "type": "git",
38
- "url": "git+https://github.com/codexsdtk/sdtk-toolkit.git",
39
- "directory": "products/sdtk-spec/distribution/sdtk-spec-kit"
40
- },
41
- "homepage": "https://sdtk.dev",
42
- "bugs": {
43
- "url": "https://github.com/codexsdtk/sdtk-toolkit/issues"
44
- },
45
- "publishConfig": {
46
- "access": "public"
47
- }
2
+ "name": "sdtk-spec-kit",
3
+ "version": "0.4.3",
4
+ "description": "SDTK-SPEC CLI toolkit for deterministic software documentation workflows via the sdtk-spec command",
5
+ "bin": {
6
+ "sdtk-spec": "bin/sdtk.js"
7
+ },
8
+ "main": "src/index.js",
9
+ "type": "commonjs",
10
+ "files": [
11
+ "bin/",
12
+ "src/",
13
+ "assets/"
14
+ ],
15
+ "scripts": {
16
+ "test": "npm run verify:payload && npm run pack:smoke",
17
+ "build:payload": "powershell -ExecutionPolicy Bypass -File scripts/sync-toolkit-assets.ps1 && powershell -ExecutionPolicy Bypass -File scripts/build-toolkit-manifest.ps1",
18
+ "verify:payload": "node -e \"require('./src/lib/toolkit-payload').verify()\"",
19
+ "pack:smoke": "npm pack --dry-run",
20
+ "pack:release": "npm pack",
21
+ "prepublishOnly": "node -e \"require('./src/lib/toolkit-payload').verify()\""
22
+ },
23
+ "engines": {
24
+ "node": ">=18.13.0"
25
+ },
26
+ "keywords": [
27
+ "sdtk",
28
+ "sdtk-spec",
29
+ "sdtk-spec-kit",
30
+ "cli",
31
+ "documentation",
32
+ "toolkit",
33
+ "dockkit"
34
+ ],
35
+ "license": "MIT",
36
+ "repository": {
37
+ "type": "git",
38
+ "url": "git+https://github.com/codexsdtk/sdtk-toolkit.git",
39
+ "directory": "products/sdtk-spec/distribution/sdtk-spec-kit"
40
+ },
41
+ "homepage": "https://sdtk.dev",
42
+ "bugs": {
43
+ "url": "https://github.com/codexsdtk/sdtk-toolkit/issues"
44
+ },
45
+ "publishConfig": {
46
+ "access": "public"
47
+ }
48
48
  }
@@ -96,12 +96,21 @@ async function cmdInit(args) {
96
96
  console.log(`Project-local Codex skills were installed into ${path.join(projectPath, ".codex", "skills")}.`);
97
97
  console.log("Launch Codex with CODEX_HOME=<project>/.codex to activate that local runtime home.");
98
98
  }
99
- console.log("");
100
- console.log("Next steps:");
101
- console.log(" 1. Review and customize sdtk-spec.config.json for your project stack.");
102
- console.log(' 2. Run "sdtk-spec generate --feature-key <KEY> --feature-name <name>" to scaffold docs.');
103
- return 0;
104
- }
99
+ console.log("");
100
+ console.log("Next steps:");
101
+ console.log(" 1. Review and customize sdtk-spec.config.json for your project stack.");
102
+ console.log(" 2. Review bootstrap guidance:");
103
+ console.log(` ${path.join(projectPath, "AGENTS.md")}`);
104
+ if (runtime === "claude") {
105
+ console.log(` ${path.join(projectPath, "CLAUDE.md")}`);
106
+ } else if (runtime === "codex") {
107
+ console.log(` ${path.join(projectPath, "CODEX.md")}`);
108
+ }
109
+ console.log(` ${path.join(projectPath, "governance", "ai", "session", "SDTK_ACTIVE_BOOTSTRAP.md")}`);
110
+ console.log(` ${path.join(projectPath, "governance", "ai", "session", "SDTK_AGENT_WORKING_RULES.md")}`);
111
+ console.log(' 3. Run "sdtk-spec generate --feature-key <KEY> --feature-name <name>" to scaffold docs.');
112
+ return 0;
113
+ }
105
114
 
106
115
  module.exports = {
107
116
  cmdInit,