sdtk-spec-kit 0.4.0 → 0.4.2
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 +2 -0
- package/assets/atlas/build_atlas.py +11 -3
- package/assets/atlas/doc_atlas_viewer_template.html +22 -6
- package/assets/manifest/toolkit-bundle.manifest.json +23 -13
- package/assets/manifest/toolkit-bundle.sha256.txt +7 -5
- package/assets/toolkit/toolkit/AGENTS.md +41 -2
- package/assets/toolkit/toolkit/SDTK_TOOLKIT.md +2 -0
- package/assets/toolkit/toolkit/install.ps1 +21 -16
- package/assets/toolkit/toolkit/runtimes/claude/CLAUDE_TEMPLATE.md +26 -4
- package/assets/toolkit/toolkit/runtimes/codex/CODEX_TEMPLATE.md +26 -4
- package/assets/toolkit/toolkit/session/SDTK_ACTIVE_BOOTSTRAP.md +30 -0
- package/assets/toolkit/toolkit/session/SDTK_AGENT_WORKING_RULES.md +25 -0
- package/package.json +1 -1
- package/src/commands/init.js +15 -6
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
|
|
@@ -36,6 +36,14 @@ MERMAID_VENDOR_PATH = Path(__file__).parent / "vendor" / "mermaid.min.js"
|
|
|
36
36
|
MERMAID_ASSET_NAME = "mermaid.min.js"
|
|
37
37
|
_VIEWER_TEMPLATE_PATH = Path(__file__).parent / "doc_atlas_viewer_template.html"
|
|
38
38
|
|
|
39
|
+
|
|
40
|
+
def _json_for_inline_script(value: Any) -> str:
|
|
41
|
+
return (
|
|
42
|
+
json.dumps(value, ensure_ascii=True, separators=(",", ":"))
|
|
43
|
+
.replace("</", "<\\/")
|
|
44
|
+
.replace("<!--", "<\\!--")
|
|
45
|
+
)
|
|
46
|
+
|
|
39
47
|
# ---------------------------------------------------------------------------
|
|
40
48
|
# Default consumer project exclude fragments
|
|
41
49
|
# ---------------------------------------------------------------------------
|
|
@@ -678,9 +686,9 @@ _FAMILY_COLORS = {
|
|
|
678
686
|
def build_viewer(index: dict, graph: dict, generated: str) -> str:
|
|
679
687
|
if not _VIEWER_TEMPLATE_PATH.exists():
|
|
680
688
|
raise FileNotFoundError(f"Viewer template not found: {_VIEWER_TEMPLATE_PATH}")
|
|
681
|
-
index_json =
|
|
682
|
-
graph_json =
|
|
683
|
-
family_colors_json =
|
|
689
|
+
index_json = _json_for_inline_script(index)
|
|
690
|
+
graph_json = _json_for_inline_script(graph)
|
|
691
|
+
family_colors_json = _json_for_inline_script(_FAMILY_COLORS)
|
|
684
692
|
template = _VIEWER_TEMPLATE_PATH.read_text(encoding="utf-8")
|
|
685
693
|
return (
|
|
686
694
|
template
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
6
|
<title>Atlas Dashboard</title>
|
|
7
|
+
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='16' fill='%235f89ff'/%3E%3Ctext x='32' y='42' text-anchor='middle' font-family='Segoe UI,Arial,sans-serif' font-size='28' font-weight='700' fill='white'%3EA%3C/text%3E%3C/svg%3E">
|
|
7
8
|
<style>
|
|
8
9
|
*{margin:0;padding:0;box-sizing:border-box}
|
|
9
10
|
:root{
|
|
@@ -1019,12 +1020,27 @@ function scheduleMermaidRender(root) {
|
|
|
1019
1020
|
renderMermaidDiagrams(root);
|
|
1020
1021
|
});
|
|
1021
1022
|
}
|
|
1022
|
-
function
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
}
|
|
1023
|
+
function normalizeEmbeddedAssetPath(rawPath) {
|
|
1024
|
+
let value = String(rawPath || '').trim();
|
|
1025
|
+
if (!value) return '';
|
|
1026
|
+
if ((value.startsWith('"') && value.endsWith('"')) || (value.startsWith("'") && value.endsWith("'"))) {
|
|
1027
|
+
value = value.slice(1, -1).trim();
|
|
1028
|
+
}
|
|
1029
|
+
if (value.startsWith('<') && value.endsWith('>')) {
|
|
1030
|
+
value = value.slice(1, -1).trim();
|
|
1031
|
+
}
|
|
1032
|
+
const titleMatch = value.match(/^(\S+)\s+(?:"[^"]*"|'[^']*')$/);
|
|
1033
|
+
if (titleMatch) {
|
|
1034
|
+
value = titleMatch[1].trim();
|
|
1035
|
+
}
|
|
1036
|
+
return value;
|
|
1037
|
+
}
|
|
1038
|
+
function resolveEmbeddedAssetPath(rawPath) {
|
|
1039
|
+
const value = normalizeEmbeddedAssetPath(rawPath);
|
|
1040
|
+
if (!value) return '';
|
|
1041
|
+
if (/^(https?:|data:|file:|#)/i.test(value)) return value;
|
|
1042
|
+
return `../../../../${value.replace(/^\.\//, '').replace(/\\/g, '/')}`;
|
|
1043
|
+
}
|
|
1028
1044
|
function extractHtmlAttribute(rawHtml, name) {
|
|
1029
1045
|
const match = String(rawHtml || '').match(new RegExp(`${name}\s*=\s*["']([^"']+)["']`, 'i'));
|
|
1030
1046
|
return match ? match[1] : '';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.4.
|
|
3
|
-
"sourceCommit": "
|
|
4
|
-
"fileCount":
|
|
2
|
+
"version": "0.4.2",
|
|
3
|
+
"sourceCommit": "unknown",
|
|
4
|
+
"fileCount": 96,
|
|
5
5
|
"files": [
|
|
6
6
|
{
|
|
7
7
|
"path": "toolkit/AGENTS.md",
|
|
8
|
-
"sha256": "
|
|
9
|
-
"size":
|
|
8
|
+
"sha256": "2d9f89d03c84c4546e6430df2c26e5f53824bd4dd3b3793c215869d79e59ba67",
|
|
9
|
+
"size": 9255
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
"path": "toolkit/install.ps1",
|
|
13
|
-
"sha256": "
|
|
14
|
-
"size":
|
|
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": "
|
|
24
|
-
"size":
|
|
23
|
+
"sha256": "dbcc620e3f58e84279f44bdd7831926ce46cfb2cba20d5617e97f87f8e0b1ba6",
|
|
24
|
+
"size": 3033
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
"path": "toolkit/runtimes/codex/CODEX_TEMPLATE.md",
|
|
28
|
-
"sha256": "
|
|
29
|
-
"size":
|
|
28
|
+
"sha256": "def01a26ebc965897d9b3c9679a1b06cd1418fae637f127160254c3d8c121d65",
|
|
29
|
+
"size": 1873
|
|
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": "
|
|
79
|
-
"size":
|
|
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": "5a052c758a4f1a4565194b25914716541ce35513bea986bd1a6b6e2c2b84ebba",
|
|
94
|
+
"size": 957
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"path": "toolkit/session/SDTK_AGENT_WORKING_RULES.md",
|
|
98
|
+
"sha256": "93feff9eca69466f4707432a119ead134d72a84f0de8dbfd2820cfa744516e4d",
|
|
99
|
+
"size": 867
|
|
100
|
+
},
|
|
91
101
|
{
|
|
92
102
|
"path": "toolkit/skills/sdtk-api-design-spec/scripts/generate_api_design_detail.py",
|
|
93
103
|
"sha256": "d6190662345da009ce8c5c235bc2cda9ef44e7e96802d103666055e26d393551",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
2d9f89d03c84c4546e6430df2c26e5f53824bd4dd3b3793c215869d79e59ba67 toolkit/AGENTS.md
|
|
2
|
+
f10d562d12532750ec7125d8925b7f56f1d4382c71be5c90e6b35c261b50c1bb toolkit/install.ps1
|
|
3
3
|
1cb0643111e385a1ba606458998a977dc0c066cfdefc4e7069dd485ab2843c4e toolkit/README.md
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
dbcc620e3f58e84279f44bdd7831926ce46cfb2cba20d5617e97f87f8e0b1ba6 toolkit/runtimes/claude/CLAUDE_TEMPLATE.md
|
|
5
|
+
def01a26ebc965897d9b3c9679a1b06cd1418fae637f127160254c3d8c121d65 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
|
-
|
|
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
|
+
5a052c758a4f1a4565194b25914716541ce35513bea986bd1a6b6e2c2b84ebba toolkit/session/SDTK_ACTIVE_BOOTSTRAP.md
|
|
19
|
+
93feff9eca69466f4707432a119ead134d72a84f0de8dbfd2820cfa744516e4d 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
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
# SDTK
|
|
1
|
+
# SDTK Suite Multi-Agent Software Development Toolkit
|
|
2
2
|
|
|
3
|
-
Goal: use SDTK
|
|
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
11
|
- If role is not specified, default to PM (entry point) and start at Phase 1.
|
|
@@ -15,6 +20,16 @@ Goal: use SDTK-SPEC as a virtual PM/BA/ARCH/DEV/QA operating model to deliver on
|
|
|
15
20
|
- 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
21
|
- `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
22
|
|
|
23
|
+
## 0.2) Session Bootstrap Protocol
|
|
24
|
+
When starting a new session, read context in this order when the files exist:
|
|
25
|
+
1. `AGENTS.md`
|
|
26
|
+
2. `governance/ai/session/SDTK_ACTIVE_BOOTSTRAP.md`
|
|
27
|
+
3. `governance/ai/session/SDTK_AGENT_WORKING_RULES.md`
|
|
28
|
+
4. `governance/ai/core/IMPROVEMENT_BACKLOG.md`
|
|
29
|
+
5. issue-specific controller spec and implementation plan
|
|
30
|
+
|
|
31
|
+
Do not read the entire historical session archive by default. Use `SDTK_SESSION_MEMORY_*.md` only when chronology or past acceptance details are required.
|
|
32
|
+
|
|
18
33
|
## 0.1) Clarification Protocol
|
|
19
34
|
Apply for all roles (`/pm`, `/ba`, `/arch`, `/dev`, `/qa`):
|
|
20
35
|
1. If there is ambiguity or missing data, log `Open Questions` as `OQ-xx` in the current phase artifact.
|
|
@@ -59,6 +74,30 @@ DEV output is planning + readiness gating, not final code delivery:
|
|
|
59
74
|
|
|
60
75
|
`/dev` does not auto-run SDTK-CODE.
|
|
61
76
|
|
|
77
|
+
## 2.2) Suite Product Routing
|
|
78
|
+
Use the suite products according to task intent:
|
|
79
|
+
|
|
80
|
+
- `SDTK-SPEC`
|
|
81
|
+
- feature discovery
|
|
82
|
+
- requirements, BA, PRD, backlog, architecture, QA artifacts
|
|
83
|
+
- handoff generation and release-gate traceability
|
|
84
|
+
- `SDTK-CODE`
|
|
85
|
+
- build a feature
|
|
86
|
+
- fix a bug
|
|
87
|
+
- refactor implementation
|
|
88
|
+
- run implementation verification
|
|
89
|
+
- ship code changes
|
|
90
|
+
- `SDTK-OPS`
|
|
91
|
+
- deploy or release
|
|
92
|
+
- infrastructure and environment setup
|
|
93
|
+
- CI/CD changes
|
|
94
|
+
- monitoring, incident response, security-infra, backup, compliance
|
|
95
|
+
|
|
96
|
+
If the current project only has `SDTK-SPEC` runtime assets installed:
|
|
97
|
+
- keep `/dev` bounded to planning and `CODE_HANDOFF`
|
|
98
|
+
- do not overclaim that SDTK-CODE or SDTK-OPS runtime assets are already installed
|
|
99
|
+
- still describe the correct downstream suite path in guidance and handoffs
|
|
100
|
+
|
|
62
101
|
## 3) Shared State And Quality Gates
|
|
63
102
|
- `SHARED_PLANNING.md`: phase status, owners, artifacts, blockers, handoff notes.
|
|
64
103
|
- `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
|
-
|
|
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
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
Write-Host "
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
|
|
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.
|
|
4
|
-
Last Updated: 2026-
|
|
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
|
|
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,7 +14,11 @@ 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
|
-
-
|
|
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
|
+
- `SDTK-SPEC` phase workflow remains: PM -> BA -> ARCH -> DEV -> QA
|
|
18
22
|
- Entry point: `/orchestrator` (recommended) or `/pm`
|
|
19
23
|
- Role commands: `/pm`, `/ba`, `/arch`, `/dev`, `/qa`
|
|
20
24
|
- Sub-skill commands: `/api-doc`, `/api-design-spec`, `/screen-design-spec`, `/design-layout`, `/test-case-spec`, `/dev-backend`, `/dev-frontend`
|
|
@@ -22,6 +26,22 @@ This file defines runtime guidance for Claude Code sessions in projects using SD
|
|
|
22
26
|
- `SHARED_PLANNING.md`
|
|
23
27
|
- `QUALITY_CHECKLIST.md`
|
|
24
28
|
|
|
29
|
+
## 2.1) Claude 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
|
+
- requirements/spec/planning/architecture/test artifacts -> `SDTK-SPEC`
|
|
38
|
+
- build feature or fix code -> `SDTK-CODE` when available
|
|
39
|
+
- deploy/release/infra/ops -> `SDTK-OPS` when available
|
|
40
|
+
|
|
41
|
+
If only SPEC runtime assets are installed:
|
|
42
|
+
- keep `/dev` bounded to planning and `CODE_HANDOFF`
|
|
43
|
+
- do not claim that SDTK-CODE or SDTK-OPS runtime assets are already installed
|
|
44
|
+
|
|
25
45
|
## 3) Minimal Session Flow
|
|
26
46
|
1. Start with `/orchestrator` or `/pm` to define feature scope.
|
|
27
47
|
2. Move phase-by-phase without skipping gates.
|
|
@@ -51,4 +71,6 @@ Specialist rule reference files are installed inside each skill directory when t
|
|
|
51
71
|
|
|
52
72
|
## 5) References
|
|
53
73
|
- `sdtk-spec.config.json`
|
|
74
|
+
- `governance/ai/session/SDTK_ACTIVE_BOOTSTRAP.md`
|
|
75
|
+
- `governance/ai/session/SDTK_AGENT_WORKING_RULES.md`
|
|
54
76
|
- `.claude/skills/<skill>/references/` (skill-local rule files when required)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# CODEX.md
|
|
2
2
|
|
|
3
|
-
Version: 1.
|
|
4
|
-
Last Updated: 2026-
|
|
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
|
|
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,12 +14,32 @@ 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
|
-
-
|
|
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
|
+
- `SDTK-SPEC` phase workflow remains: PM -> BA -> ARCH -> DEV -> QA
|
|
18
22
|
- Role tags: `/pm`, `/ba`, `/arch`, `/dev`, `/qa`
|
|
19
23
|
- Shared state files:
|
|
20
24
|
- `SHARED_PLANNING.md`
|
|
21
25
|
- `QUALITY_CHECKLIST.md`
|
|
22
26
|
|
|
27
|
+
## 2.1) Codex Session Start Checklist
|
|
28
|
+
Read these in order when they exist:
|
|
29
|
+
1. `AGENTS.md`
|
|
30
|
+
2. `governance/ai/session/SDTK_ACTIVE_BOOTSTRAP.md`
|
|
31
|
+
3. `governance/ai/session/SDTK_AGENT_WORKING_RULES.md`
|
|
32
|
+
4. issue-specific controller spec and implementation plan
|
|
33
|
+
|
|
34
|
+
Routing rules:
|
|
35
|
+
- requirements/spec/planning/architecture/test artifacts -> `SDTK-SPEC`
|
|
36
|
+
- build feature or fix code -> `SDTK-CODE` when available
|
|
37
|
+
- deploy/release/infra/ops -> `SDTK-OPS` when available
|
|
38
|
+
|
|
39
|
+
If only SPEC runtime assets are installed:
|
|
40
|
+
- keep `/dev` bounded to planning and `CODE_HANDOFF`
|
|
41
|
+
- do not claim that SDTK-CODE or SDTK-OPS runtime assets are already installed
|
|
42
|
+
|
|
23
43
|
## 3) Minimal Session Flow
|
|
24
44
|
1. Start with `/pm` to define feature scope.
|
|
25
45
|
2. Move phase-by-phase without skipping gates.
|
|
@@ -29,4 +49,6 @@ This file defines runtime guidance for Codex sessions in projects using SDTK-SPE
|
|
|
29
49
|
## 4) References
|
|
30
50
|
- `toolkit/SDTK_TOOLKIT.md`
|
|
31
51
|
- `toolkit/AGENTS.md`
|
|
52
|
+
- `governance/ai/session/SDTK_ACTIVE_BOOTSTRAP.md`
|
|
53
|
+
- `governance/ai/session/SDTK_AGENT_WORKING_RULES.md`
|
|
32
54
|
- `sdtk-spec.config.json`
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
- `SDTK-SPEC`
|
|
11
|
+
- orchestration, discovery, specs, planning, architecture, QA artifacts
|
|
12
|
+
- `SDTK-CODE`
|
|
13
|
+
- implementation, bug fixing, refactoring, verification, ship flow
|
|
14
|
+
- `SDTK-OPS`
|
|
15
|
+
- deploy, infra, release, CI/CD, monitoring, incident, ops verification
|
|
16
|
+
|
|
17
|
+
## 2) Session Start Order
|
|
18
|
+
Read these in order:
|
|
19
|
+
1. `AGENTS.md`
|
|
20
|
+
2. this file
|
|
21
|
+
3. `governance/ai/session/SDTK_AGENT_WORKING_RULES.md`
|
|
22
|
+
4. backlog and issue-specific spec/plan files
|
|
23
|
+
|
|
24
|
+
## 3) Consumer Project Notes
|
|
25
|
+
- This file is a bootstrap layer, not a complete historical memory archive.
|
|
26
|
+
- Update project-specific truths here after install if the repo has:
|
|
27
|
+
- a private/public repo split
|
|
28
|
+
- published package versions
|
|
29
|
+
- active product lane priorities
|
|
30
|
+
- a production domain or support address
|
|
@@ -0,0 +1,25 @@
|
|
|
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. Clear spec before implementation for non-trivial work.
|
|
11
|
+
2. Do not widen issue scope without approval.
|
|
12
|
+
3. Verify before claiming done.
|
|
13
|
+
4. Keep changes bounded and auditable.
|
|
14
|
+
5. Do not commit secrets or `.env` files.
|
|
15
|
+
|
|
16
|
+
## 2) Product Routing
|
|
17
|
+
- `SDTK-SPEC` for specs, planning, architecture, QA artifacts, release gates
|
|
18
|
+
- `SDTK-CODE` for implementation, bug fixing, refactor, verify, ship
|
|
19
|
+
- `SDTK-OPS` for deploy, infra, CI/CD, monitoring, incident, ops work
|
|
20
|
+
|
|
21
|
+
If a task is code or ops work, do not keep it framed as SPEC-only.
|
|
22
|
+
|
|
23
|
+
## 3) Verification Contract
|
|
24
|
+
- No `done`, `pass`, or `ready` claim without fresh command evidence.
|
|
25
|
+
- If verification is blocked, state the blocker and keep the task open.
|
package/package.json
CHANGED
package/src/commands/init.js
CHANGED
|
@@ -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(
|
|
103
|
-
|
|
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,
|