sdtk-spec-kit 0.3.9

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.
Files changed (113) hide show
  1. package/README.md +190 -0
  2. package/assets/manifest/toolkit-bundle.manifest.json +483 -0
  3. package/assets/manifest/toolkit-bundle.sha256.txt +95 -0
  4. package/assets/toolkit/toolkit/AGENTS.md +137 -0
  5. package/assets/toolkit/toolkit/install.ps1 +310 -0
  6. package/assets/toolkit/toolkit/runtimes/claude/CLAUDE_TEMPLATE.md +54 -0
  7. package/assets/toolkit/toolkit/runtimes/codex/CODEX_TEMPLATE.md +32 -0
  8. package/assets/toolkit/toolkit/scripts/generate-code-handoff.ps1 +246 -0
  9. package/assets/toolkit/toolkit/scripts/init-feature.ps1 +261 -0
  10. package/assets/toolkit/toolkit/scripts/install-claude-skills.ps1 +169 -0
  11. package/assets/toolkit/toolkit/scripts/install-codex-skills.ps1 +189 -0
  12. package/assets/toolkit/toolkit/scripts/uninstall-claude-skills.ps1 +139 -0
  13. package/assets/toolkit/toolkit/scripts/uninstall-codex-skills.ps1 +116 -0
  14. package/assets/toolkit/toolkit/sdtk-spec.config.json +28 -0
  15. package/assets/toolkit/toolkit/sdtk-spec.config.profiles.example.json +50 -0
  16. package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/SKILL.md +84 -0
  17. package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/references/API_DESIGN_CREATION_RULES.md +22 -0
  18. package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/references/API_DESIGN_FLOWCHART_CREATION_RULES.md +468 -0
  19. package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/references/FLOWCHART_CREATION_RULES.md +20 -0
  20. package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/scripts/generate_api_design_detail.py +732 -0
  21. package/assets/toolkit/toolkit/skills/sdtk-api-doc/SKILL.md +43 -0
  22. package/assets/toolkit/toolkit/skills/sdtk-api-doc/references/API_DESIGN_FLOWCHART_CREATION_RULES.md +468 -0
  23. package/assets/toolkit/toolkit/skills/sdtk-api-doc/references/FLOWCHART_CREATION_RULES.md +20 -0
  24. package/assets/toolkit/toolkit/skills/sdtk-api-doc/references/YAML_CREATION_RULES.md +128 -0
  25. package/assets/toolkit/toolkit/skills/sdtk-arch/SKILL.md +83 -0
  26. package/assets/toolkit/toolkit/skills/sdtk-arch/references/API_DESIGN_CREATION_RULES.md +22 -0
  27. package/assets/toolkit/toolkit/skills/sdtk-arch/references/API_DESIGN_FLOWCHART_CREATION_RULES.md +468 -0
  28. package/assets/toolkit/toolkit/skills/sdtk-arch/references/FLOWCHART_CREATION_RULES.md +20 -0
  29. package/assets/toolkit/toolkit/skills/sdtk-arch/references/FLOW_ACTION_SPEC_CREATION_RULES.md +220 -0
  30. package/assets/toolkit/toolkit/skills/sdtk-arch/references/YAML_CREATION_RULES.md +128 -0
  31. package/assets/toolkit/toolkit/skills/sdtk-ba/SKILL.md +29 -0
  32. package/assets/toolkit/toolkit/skills/sdtk-design-layout/SKILL.md +52 -0
  33. package/assets/toolkit/toolkit/skills/sdtk-design-layout/scripts/render_design_layout_images.py +246 -0
  34. package/assets/toolkit/toolkit/skills/sdtk-dev/SKILL.md +98 -0
  35. package/assets/toolkit/toolkit/skills/sdtk-dev/prompts/code-quality-reviewer.md +35 -0
  36. package/assets/toolkit/toolkit/skills/sdtk-dev/prompts/implementer.md +61 -0
  37. package/assets/toolkit/toolkit/skills/sdtk-dev/prompts/spec-reviewer.md +42 -0
  38. package/assets/toolkit/toolkit/skills/sdtk-dev-backend/SKILL.md +21 -0
  39. package/assets/toolkit/toolkit/skills/sdtk-dev-frontend/SKILL.md +19 -0
  40. package/assets/toolkit/toolkit/skills/sdtk-orchestrator/SKILL.md +81 -0
  41. package/assets/toolkit/toolkit/skills/sdtk-pm/SKILL.md +30 -0
  42. package/assets/toolkit/toolkit/skills/sdtk-qa/SKILL.md +52 -0
  43. package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/SKILL.md +86 -0
  44. package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/references/FLOW_ACTION_SPEC_CREATION_RULES.md +220 -0
  45. package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/references/excel-image-export.md +51 -0
  46. package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/references/figma-mcp.md +54 -0
  47. package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/references/numbering-rules.md +28 -0
  48. package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/scripts/renumber_flow_action_spec_global.py +136 -0
  49. package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/scripts/validate_flow_action_spec_numbering.py +414 -0
  50. package/assets/toolkit/toolkit/skills/sdtk-test-case-spec/SKILL.md +74 -0
  51. package/assets/toolkit/toolkit/skills/sdtk-test-case-spec/references/TEST_CASE_CREATION_RULES.md +129 -0
  52. package/assets/toolkit/toolkit/skills/sdtk-test-case-spec/scripts/validate_test_case_spec.py +97 -0
  53. package/assets/toolkit/toolkit/skills/skills.catalog.yaml +303 -0
  54. package/assets/toolkit/toolkit/skills-claude/api-design-spec/SKILL.md +90 -0
  55. package/assets/toolkit/toolkit/skills-claude/api-doc/SKILL.md +47 -0
  56. package/assets/toolkit/toolkit/skills-claude/arch/SKILL.md +59 -0
  57. package/assets/toolkit/toolkit/skills-claude/ba/SKILL.md +50 -0
  58. package/assets/toolkit/toolkit/skills-claude/design-layout/SKILL.md +57 -0
  59. package/assets/toolkit/toolkit/skills-claude/dev/SKILL.md +54 -0
  60. package/assets/toolkit/toolkit/skills-claude/dev-backend/SKILL.md +20 -0
  61. package/assets/toolkit/toolkit/skills-claude/dev-frontend/SKILL.md +18 -0
  62. package/assets/toolkit/toolkit/skills-claude/orchestrator/SKILL.md +63 -0
  63. package/assets/toolkit/toolkit/skills-claude/pm/SKILL.md +52 -0
  64. package/assets/toolkit/toolkit/skills-claude/qa/SKILL.md +50 -0
  65. package/assets/toolkit/toolkit/skills-claude/screen-design-spec/SKILL.md +90 -0
  66. package/assets/toolkit/toolkit/skills-claude/test-case-spec/SKILL.md +61 -0
  67. package/assets/toolkit/toolkit/templates/QUALITY_CHECKLIST.md +121 -0
  68. package/assets/toolkit/toolkit/templates/README.md +63 -0
  69. package/assets/toolkit/toolkit/templates/SHARED_PLANNING.md +81 -0
  70. package/assets/toolkit/toolkit/templates/docs/api/API_DESIGN_CREATION_RULES.md +22 -0
  71. package/assets/toolkit/toolkit/templates/docs/api/API_DESIGN_DETAIL_TEMPLATE.md +67 -0
  72. package/assets/toolkit/toolkit/templates/docs/api/API_DESIGN_FLOWCHART_CREATION_RULES.md +468 -0
  73. package/assets/toolkit/toolkit/templates/docs/api/API_ENDPOINTS_TEMPLATE.md +229 -0
  74. package/assets/toolkit/toolkit/templates/docs/api/FEATURE_API_TEMPLATE.yaml +20 -0
  75. package/assets/toolkit/toolkit/templates/docs/api/FLOWCHART_CREATION_RULES.md +20 -0
  76. package/assets/toolkit/toolkit/templates/docs/api/YAML_CREATION_RULES.md +128 -0
  77. package/assets/toolkit/toolkit/templates/docs/api/feature_api_flow_list_TEMPLATE.txt +12 -0
  78. package/assets/toolkit/toolkit/templates/docs/architecture/ARCH_DESIGN_TEMPLATE.md +109 -0
  79. package/assets/toolkit/toolkit/templates/docs/database/DATABASE_SPEC_TEMPLATE.md +175 -0
  80. package/assets/toolkit/toolkit/templates/docs/design/DESIGN_LAYOUT_TEMPLATE.md +60 -0
  81. package/assets/toolkit/toolkit/templates/docs/dev/FEATURE_IMPL_PLAN_TEMPLATE.md +93 -0
  82. package/assets/toolkit/toolkit/templates/docs/product/BACKLOG_TEMPLATE.md +50 -0
  83. package/assets/toolkit/toolkit/templates/docs/product/PRD_TEMPLATE.md +66 -0
  84. package/assets/toolkit/toolkit/templates/docs/product/PROJECT_INITIATION_TEMPLATE.md +98 -0
  85. package/assets/toolkit/toolkit/templates/docs/qa/QA_RELEASE_REPORT_TEMPLATE.md +61 -0
  86. package/assets/toolkit/toolkit/templates/docs/qa/TEST_CASE_CREATION_RULES.md +129 -0
  87. package/assets/toolkit/toolkit/templates/docs/qa/TEST_CASE_TEMPLATE.md +104 -0
  88. package/assets/toolkit/toolkit/templates/docs/specs/BA_SPEC_TEMPLATE.md +139 -0
  89. package/assets/toolkit/toolkit/templates/docs/specs/FLOW_ACTION_SPEC_CREATION_RULES.md +220 -0
  90. package/assets/toolkit/toolkit/templates/docs/specs/FLOW_ACTION_SPEC_TEMPLATE.md +197 -0
  91. package/assets/toolkit/toolkit/templates/handoffs/ARCH_TO_DEV.md +31 -0
  92. package/assets/toolkit/toolkit/templates/handoffs/BA_TO_ARCH.md +28 -0
  93. package/assets/toolkit/toolkit/templates/handoffs/DEV_STAGE1_SPEC_REVIEW.md +26 -0
  94. package/assets/toolkit/toolkit/templates/handoffs/DEV_STAGE2_CODE_QUALITY_REVIEW.md +20 -0
  95. package/assets/toolkit/toolkit/templates/handoffs/DEV_TO_QA.md +29 -0
  96. package/assets/toolkit/toolkit/templates/handoffs/DEV_TO_SDTK_CODE.md +29 -0
  97. package/assets/toolkit/toolkit/templates/handoffs/PM_TO_BA.md +26 -0
  98. package/assets/toolkit/toolkit/templates/handoffs/QA_RELEASE_DECISION.md +21 -0
  99. package/bin/sdtk.js +15 -0
  100. package/package.json +48 -0
  101. package/src/commands/auth.js +85 -0
  102. package/src/commands/generate.js +177 -0
  103. package/src/commands/help.js +101 -0
  104. package/src/commands/init.js +97 -0
  105. package/src/commands/runtime.js +217 -0
  106. package/src/index.js +59 -0
  107. package/src/lib/args.js +116 -0
  108. package/src/lib/errors.js +41 -0
  109. package/src/lib/github-access.js +68 -0
  110. package/src/lib/powershell.js +85 -0
  111. package/src/lib/scope.js +68 -0
  112. package/src/lib/state.js +83 -0
  113. package/src/lib/toolkit-payload.js +99 -0
@@ -0,0 +1,95 @@
1
+ c51e32b53712b2be86a3b72ca0a9549544d971da63b0b85beaa3e4bf24dbb1e0 toolkit/AGENTS.md
2
+ 1bc6896b207263b08e3dabb0d62037206bbd9a733cf8d21c4e358f5510aa83fa toolkit/install.ps1
3
+ 5864881f4f59d634b2570b4f1d69c3bb092fd08dab531c9da470f1560e7d004f toolkit/runtimes/claude/CLAUDE_TEMPLATE.md
4
+ 4453f452a6ac99f123d734f66d608e0c3d931262f3b51ea32307ef327911e938 toolkit/runtimes/codex/CODEX_TEMPLATE.md
5
+ dcfae6a5d47b6be5e685c51442bad60f72b67ad7d83080841fbb29a74f982e36 toolkit/scripts/generate-code-handoff.ps1
6
+ af4c67c7858c7d2faa3a223d82c737e08b859a14b30e8c7638750945d8e59e60 toolkit/scripts/init-feature.ps1
7
+ c5f0dc9c9fa6d23bf4af7c01b9cc9f9fcfc37f414b12b6d6fbfd8991c8129874 toolkit/scripts/install-claude-skills.ps1
8
+ ccc547902a81a89c5cf178d9d6f4a573dbeb6d8e550a45d4ac31464d6f09b9bc toolkit/scripts/install-codex-skills.ps1
9
+ f925a58e0cc92addc542762c2bf5f60be2d538dcca88e15de0b628b3a57048b1 toolkit/scripts/uninstall-claude-skills.ps1
10
+ aa69a09cfe9d10032505167b337358fc670218d17275c00c156aabd0cca60b94 toolkit/scripts/uninstall-codex-skills.ps1
11
+ 95a16a213af96c9df959435f0910462f9a740af227c41925221a5a028460edd1 toolkit/sdtk-spec.config.json
12
+ 68f8cf75ebcd1665db10a3a3b8404c90bde857d2832e3d2429b2b473489f9116 toolkit/sdtk-spec.config.profiles.example.json
13
+ 8f20da871de7feb8534fa18628e18d7b6d6c5b465aeefcd36f11fbe44a353909 toolkit/skills/sdtk-api-design-spec/references/API_DESIGN_CREATION_RULES.md
14
+ 9085393de04405db5300aab0c7d1aee1b3ac1bc0b3dc8adf6ef371a732212c67 toolkit/skills/sdtk-api-design-spec/references/API_DESIGN_FLOWCHART_CREATION_RULES.md
15
+ bf2a0adedf796ce0f2302b02edbb452db9e09574b08ce7259a5cebef3f74f72f toolkit/skills/sdtk-api-design-spec/references/FLOWCHART_CREATION_RULES.md
16
+ 787e0fd863f7115644fa89ab619c8ad3b2381fec38e509d3a08892e976c00abd toolkit/skills/sdtk-api-design-spec/scripts/generate_api_design_detail.py
17
+ d2e24170f4c3c74c9a06b0977ff23b9edf7e1827501349b1b9082f69f8194973 toolkit/skills/sdtk-api-design-spec/SKILL.md
18
+ 9085393de04405db5300aab0c7d1aee1b3ac1bc0b3dc8adf6ef371a732212c67 toolkit/skills/sdtk-api-doc/references/API_DESIGN_FLOWCHART_CREATION_RULES.md
19
+ bf2a0adedf796ce0f2302b02edbb452db9e09574b08ce7259a5cebef3f74f72f toolkit/skills/sdtk-api-doc/references/FLOWCHART_CREATION_RULES.md
20
+ f4659f662e0f27bf251d331112b3bd1241809558dccf11ff54c84740a2e61e71 toolkit/skills/sdtk-api-doc/references/YAML_CREATION_RULES.md
21
+ 5becbb68ee1737f0712a1c374063a2aa8f9a413018d0abe8bfeb9f9fba6d69d0 toolkit/skills/sdtk-api-doc/SKILL.md
22
+ 8f20da871de7feb8534fa18628e18d7b6d6c5b465aeefcd36f11fbe44a353909 toolkit/skills/sdtk-arch/references/API_DESIGN_CREATION_RULES.md
23
+ 9085393de04405db5300aab0c7d1aee1b3ac1bc0b3dc8adf6ef371a732212c67 toolkit/skills/sdtk-arch/references/API_DESIGN_FLOWCHART_CREATION_RULES.md
24
+ c22521bdf768572eb3302584959888a4dc9075363df0a0c92468275e6196dc29 toolkit/skills/sdtk-arch/references/FLOW_ACTION_SPEC_CREATION_RULES.md
25
+ bf2a0adedf796ce0f2302b02edbb452db9e09574b08ce7259a5cebef3f74f72f toolkit/skills/sdtk-arch/references/FLOWCHART_CREATION_RULES.md
26
+ f4659f662e0f27bf251d331112b3bd1241809558dccf11ff54c84740a2e61e71 toolkit/skills/sdtk-arch/references/YAML_CREATION_RULES.md
27
+ 84486592847857eb0ae78bf7d015a2f6d1bb2711d9aa963f623fd70e8d8d683b toolkit/skills/sdtk-arch/SKILL.md
28
+ 6531562fd4692c8e818cf10938968b60be2f3f6114b111659cbf1cf16b299598 toolkit/skills/sdtk-ba/SKILL.md
29
+ 736577a6d6ebc6548aef1bade3dce7d9be62c260ac313cc148ab6a10b10d0197 toolkit/skills/sdtk-design-layout/scripts/render_design_layout_images.py
30
+ d9a39f8ab2c563c6ab3958bc85bd8b0f9dad68653be0da66207df72a05afe134 toolkit/skills/sdtk-design-layout/SKILL.md
31
+ 3296fe9416600105c01680c9bc2f0d17f8c5f657e50949f5c49cb67db7aa0ac9 toolkit/skills/sdtk-dev/prompts/code-quality-reviewer.md
32
+ 6c866b7f8dec193a4c26066e8ac43004ff809f6407ead467a3cb72d90425af52 toolkit/skills/sdtk-dev/prompts/implementer.md
33
+ 55dd53b1ccbedd271ad23ca8df01afc317eced27ee17af3b37f31f0b9176ca8b toolkit/skills/sdtk-dev/prompts/spec-reviewer.md
34
+ c1d7cee6849f5396ded8baa51b2bd58c17ac580ace2a2f0f100fd884a96548a2 toolkit/skills/sdtk-dev/SKILL.md
35
+ a13d680763876d08ab3cf6b9cf8f3c4d5e5093daa633f054c2cd19617f930799 toolkit/skills/sdtk-dev-backend/SKILL.md
36
+ 1bb7f793092cb5c29324f37d2c8e06ffd7db1bb82f4490f66fb10ca1911a5d08 toolkit/skills/sdtk-dev-frontend/SKILL.md
37
+ b59e7045a616f45c3b4049fc97cfc477e7d2a9580546a72dc36db6bd3444800b toolkit/skills/sdtk-orchestrator/SKILL.md
38
+ edaa087b05c518d3916ef3f034aa91a6a358bda24d0681b4518cfa5dfe3e414a toolkit/skills/sdtk-pm/SKILL.md
39
+ 76bc9a1802738afacc74329ae830aad1508972ed6951d431bcf31e77722c45e9 toolkit/skills/sdtk-qa/SKILL.md
40
+ 0da05f2f03755b7d1ec77de159ba80d812039be83c73bba5070bafda90e14f6e toolkit/skills/sdtk-screen-design-spec/references/excel-image-export.md
41
+ 4d20a30f2efa2cd9dce4aa32fa0635bd9a0fe9a5290be4676c117141d9f99722 toolkit/skills/sdtk-screen-design-spec/references/figma-mcp.md
42
+ c22521bdf768572eb3302584959888a4dc9075363df0a0c92468275e6196dc29 toolkit/skills/sdtk-screen-design-spec/references/FLOW_ACTION_SPEC_CREATION_RULES.md
43
+ 7e37b48f03a6585d3519beba1c3ca12d8a20f8bbe61eb8585851d19202a424c0 toolkit/skills/sdtk-screen-design-spec/references/numbering-rules.md
44
+ 2916fa8a68854692005cba85beaaae6601c0eb063c6f172463e996f7b93efc62 toolkit/skills/sdtk-screen-design-spec/scripts/renumber_flow_action_spec_global.py
45
+ 83c5fd673f3588d683379e1f6046ebea22fb37a020313e799eb3f4b41f65fb9a toolkit/skills/sdtk-screen-design-spec/scripts/validate_flow_action_spec_numbering.py
46
+ d8bc4a1029fbefba0aec105d7963d9ed33204e032bf8ca42a88075c662f20df4 toolkit/skills/sdtk-screen-design-spec/SKILL.md
47
+ c0ef7fcc652e591cdd719fbcb05f45e4e2f4337993e6533c056e058e787a7fab toolkit/skills/sdtk-test-case-spec/references/TEST_CASE_CREATION_RULES.md
48
+ cd8e2801cdd7d5f931af4fa29e1a854cddf158629a06201f34ba19d4747dcb2f toolkit/skills/sdtk-test-case-spec/scripts/validate_test_case_spec.py
49
+ fa794c4ee72b6ca8ba3ed93c02beab5aed600b6464f0b41a89f3bf1505552b29 toolkit/skills/sdtk-test-case-spec/SKILL.md
50
+ 990b3be237f064195c3ae627e0d2605f3ddd0c5b64e1d7394fc8873281b87f75 toolkit/skills/skills.catalog.yaml
51
+ 99cabbf92b682fcde56d97b1f912631669994463a98bf026cd991c01201c09c9 toolkit/skills-claude/api-design-spec/SKILL.md
52
+ 9641d3f18979d39936edc7eb7d86904fae85412bdd3fc51df365401f5023b39d toolkit/skills-claude/api-doc/SKILL.md
53
+ dce73f126dd5a7c5b84b67c22b18475cdb0a60a0a958746aa73277ab186c9bfe toolkit/skills-claude/arch/SKILL.md
54
+ d574c95a7272a2652a8dca2a7ab593bf013443f4186d00e2c19b107da9d60c0d toolkit/skills-claude/ba/SKILL.md
55
+ e12e20ec7d2903d2d208aa762ecec88e0f30b999e2486002d41c352d9a01731e toolkit/skills-claude/design-layout/SKILL.md
56
+ dfc942422d2d823fc0a216832024ab5d97670e175d07135094b8ffe7b3b44d57 toolkit/skills-claude/dev/SKILL.md
57
+ f9d46cd0d37a3e500c5dc4927e73282f2006591dc7b9ee0498b1d3b4cf06692a toolkit/skills-claude/dev-backend/SKILL.md
58
+ 2707066e2c2a2b7e4e482eca78eed3680b23eb4400cf1e68626eebe9bd9300f7 toolkit/skills-claude/dev-frontend/SKILL.md
59
+ d13e873a862e1ee5c4d12da28bc84e0547651684d86584437fa5625f9f321ce5 toolkit/skills-claude/orchestrator/SKILL.md
60
+ ee7d22cf3b23582ecc36b81774a20c768e2393090b845f1b1f636948c041fb04 toolkit/skills-claude/pm/SKILL.md
61
+ d9be62fe37a4b6b7c241bd6404e33b40c850baa0564dbc23c57ff2f08e336a8a toolkit/skills-claude/qa/SKILL.md
62
+ 5f13d1aec5cdc37ea56bcc3ce5cdb9cf434f4aaa270639cabec2a651db7933ac toolkit/skills-claude/screen-design-spec/SKILL.md
63
+ 9dd187fa89bd1eac2b92e19663e1b99ae65bce2a63328e471e7df0b51a2e64ac toolkit/skills-claude/test-case-spec/SKILL.md
64
+ 8f20da871de7feb8534fa18628e18d7b6d6c5b465aeefcd36f11fbe44a353909 toolkit/templates/docs/api/API_DESIGN_CREATION_RULES.md
65
+ e34569c7721929c9ca14b5d2a4390fdb69d7ac766dfdb81b52683710fb2953e8 toolkit/templates/docs/api/API_DESIGN_DETAIL_TEMPLATE.md
66
+ 9085393de04405db5300aab0c7d1aee1b3ac1bc0b3dc8adf6ef371a732212c67 toolkit/templates/docs/api/API_DESIGN_FLOWCHART_CREATION_RULES.md
67
+ 936548909dbab8801b1417354262b5235231ed207d092d727e798149b4fb546b toolkit/templates/docs/api/API_ENDPOINTS_TEMPLATE.md
68
+ 58e023d7da4eda2ba15246e8432a84e286b24eb0faaa97ca70475efa2673ec15 toolkit/templates/docs/api/feature_api_flow_list_TEMPLATE.txt
69
+ 67fee5c4e5401e9598c9b42c00f8ac1d34e887e976cc852b6226a5e9dc74cc5e toolkit/templates/docs/api/FEATURE_API_TEMPLATE.yaml
70
+ bf2a0adedf796ce0f2302b02edbb452db9e09574b08ce7259a5cebef3f74f72f toolkit/templates/docs/api/FLOWCHART_CREATION_RULES.md
71
+ f4659f662e0f27bf251d331112b3bd1241809558dccf11ff54c84740a2e61e71 toolkit/templates/docs/api/YAML_CREATION_RULES.md
72
+ c1f02b50ffa3d7038b15bb88777772f1a882b70903620a74d7252385a257b82c toolkit/templates/docs/architecture/ARCH_DESIGN_TEMPLATE.md
73
+ fec8746de8653f3b189a95b51d32ee33c9ed34c7aac15b3aef13850bc7b79bbb toolkit/templates/docs/database/DATABASE_SPEC_TEMPLATE.md
74
+ d7b932d8631297b1ddcb254d516dd69fd2259ffa5c3ff23741cb3cab8bfe0caa toolkit/templates/docs/design/DESIGN_LAYOUT_TEMPLATE.md
75
+ 822f43f53baae86ce987207fe07c6dea35cf8fbe854c34b683b4e93ba4ffed4f toolkit/templates/docs/dev/FEATURE_IMPL_PLAN_TEMPLATE.md
76
+ d7e176b06b2b31c4c1eff18392eabc8f9af9cb67b2f8d0c97fc6315572fd81c3 toolkit/templates/docs/product/BACKLOG_TEMPLATE.md
77
+ 85bb843e0e8dfcd02a5afe6c120f3e79866a8da6081108ebb73addaf8ee4c35c toolkit/templates/docs/product/PRD_TEMPLATE.md
78
+ 3c029d3174e22c9ae151e4b340c6a30d6f8dd2e0bda7b1013d04cd744e6d18c7 toolkit/templates/docs/product/PROJECT_INITIATION_TEMPLATE.md
79
+ 51936c3fedc3c819f9908c5ddb4301af404cda51cff358772b5593b712e0d8ca toolkit/templates/docs/qa/QA_RELEASE_REPORT_TEMPLATE.md
80
+ c0ef7fcc652e591cdd719fbcb05f45e4e2f4337993e6533c056e058e787a7fab toolkit/templates/docs/qa/TEST_CASE_CREATION_RULES.md
81
+ 74720c1fd6b3a9e09490a1779971801ae33ec3635e62d29e98deb6206120dc2f toolkit/templates/docs/qa/TEST_CASE_TEMPLATE.md
82
+ 2decf3977db88e7b27406141097edba5c739d02e123e50d38e3718601c28442f toolkit/templates/docs/specs/BA_SPEC_TEMPLATE.md
83
+ c22521bdf768572eb3302584959888a4dc9075363df0a0c92468275e6196dc29 toolkit/templates/docs/specs/FLOW_ACTION_SPEC_CREATION_RULES.md
84
+ 6c444c076fcec1c528140a73b65751e68a55351ecb376e90ee4d00ba74945f8b toolkit/templates/docs/specs/FLOW_ACTION_SPEC_TEMPLATE.md
85
+ c54d4a178f02e94c00f3b33701eb43315ab2d117af358570d92b93f7b7595730 toolkit/templates/handoffs/ARCH_TO_DEV.md
86
+ 7c44f17b15928691dd125155edc4fc61449cdb7e58f095e08c7039778fc74c97 toolkit/templates/handoffs/BA_TO_ARCH.md
87
+ 067d39f35ba0fcc460999785ef712e79cf09eb6d120aada7b60b37f11175023e toolkit/templates/handoffs/DEV_STAGE1_SPEC_REVIEW.md
88
+ 94f22c0d027e06759c5f390034f7f907eb0e9f447b08a32921b92f0a8f2d8ffa toolkit/templates/handoffs/DEV_STAGE2_CODE_QUALITY_REVIEW.md
89
+ 7a3c20f838f9676ad38cdeab52691e4ef572d033ba30a2565ff537efd90551a6 toolkit/templates/handoffs/DEV_TO_QA.md
90
+ 9cbe0f520ba380edb37030ba5b1b7eeee5cfa988ac8d6526383ef0405d8b9292 toolkit/templates/handoffs/DEV_TO_SDTK_CODE.md
91
+ e192cb8f67c4bb67716fa55b6559cbca3cc527b939e559627c2783a732d47212 toolkit/templates/handoffs/PM_TO_BA.md
92
+ 086d04da52e99fc78742df48d4db1d78e2357f6c79ef1c5be50511444f2d95ef toolkit/templates/handoffs/QA_RELEASE_DECISION.md
93
+ 1a99f68ff96b6cbd362473bfdf33f3607704eea3fc7dc8cc2338d3aeaec2c5ed toolkit/templates/QUALITY_CHECKLIST.md
94
+ 33bd4cd5607bb0e68b7272d0b7880db59c290f9e0740c75c89b58f38b3d4be30 toolkit/templates/README.md
95
+ 0c49334b767c0e6069fe260a3d125b9733859a5c3aff42ff61b1097b25884c30 toolkit/templates/SHARED_PLANNING.md
@@ -0,0 +1,137 @@
1
+ # SDTK-SPEC Multi-Agent Software Development Toolkit
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.
4
+
5
+ ## 0) Default Rules
6
+ - If role is not specified, default to PM (entry point) and start at Phase 1.
7
+ - Do not skip phases. If inputs are missing, ask focused questions before moving on.
8
+ - At the end of every phase, update:
9
+ - `SHARED_PLANNING.md`
10
+ - `QUALITY_CHECKLIST.md`
11
+ - Artifact language under `docs/**` should default to English.
12
+ - Read stack and command configuration from `sdtk-spec.config.json` in the project root.
13
+ - For VI/JP source requirements, keep original text in an appendix and add literal English translation for traceability.
14
+ - `/dev` stops at `FEATURE_IMPL_PLAN + CODE_HANDOFF`; SDTK-CODE is the default downstream coding system.
15
+ - 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
+ - `toolkit/skills/skills.catalog.yaml` is the inventory source of truth for the 13 core SDTK-SPEC skills.
17
+
18
+ ## 0.1) Clarification Protocol
19
+ Apply for all roles (`/pm`, `/ba`, `/arch`, `/dev`, `/qa`):
20
+ 1. If there is ambiguity or missing data, log `Open Questions` as `OQ-xx` in the current phase artifact.
21
+ 2. Do not guess for behavior, API contracts, UI/UX, data model, security, or release criteria.
22
+ 3. Escalate unresolved items to PM with question ID and file reference.
23
+ 4. PM resolves by:
24
+ - using available docs and making a clear decision, or
25
+ - asking the user if source information is still missing.
26
+ 5. Record decisions in PRD (`Decision Log`) and update the originating `OQ-xx` with resolution.
27
+
28
+ ## 1) Role Selection In One Message
29
+ When the user prefixes a message, execute that role:
30
+ - `/pm` (entry point + orchestrator)
31
+ - `/ba`
32
+ - `/arch`
33
+ - `/dev`
34
+ - `/qa`
35
+ - `/engineer` (escalation for technical blockers)
36
+
37
+ Notes:
38
+ - Supported delivery roles are PM/BA/ARCH/DEV/QA.
39
+ - There is no separate `/tester` role. Test-case design belongs to QA with `sdtk-test-case-spec`.
40
+
41
+ ## 2) Standard 6-Phase Pipeline
42
+ 1. PM Initiation -> `docs/product/PROJECT_INITIATION_[FEATURE_KEY].md`
43
+ 2. BA Analysis -> `docs/specs/BA_SPEC_[FEATURE_KEY].md`
44
+ 3. PM Planning -> `docs/product/PRD_[FEATURE_KEY].md` + `docs/product/BACKLOG_[FEATURE_KEY].md`
45
+ 4. ARCH Design -> `docs/architecture/ARCH_DESIGN_[FEATURE_KEY].md` (plus API/layout docs when needed)
46
+ 5. DEV Planning + SDTK-CODE Handoff -> `docs/dev/FEATURE_IMPL_PLAN_[FEATURE_KEY].md` + `docs/dev/CODE_HANDOFF_[FEATURE_KEY].json`
47
+ 6. QA Testing -> `docs/qa/[FEATURE_KEY]_TEST_CASE.md` + `docs/qa/QA_RELEASE_REPORT_[FEATURE_KEY].md`
48
+
49
+ Default bridge after Phase 5 planning output:
50
+ - `/dev` emits the handoff
51
+ - SDTK-CODE performs `start -> plan -> build -> verify -> ship`
52
+ - `/qa` consumes downstream implementation evidence
53
+
54
+ ## 2.1) DEV Handoff Contract
55
+ DEV output is planning + readiness gating, not final code delivery:
56
+ 1. Build or refine `FEATURE_IMPL_PLAN`.
57
+ 2. Generate `CODE_HANDOFF_[FEATURE_KEY].json`.
58
+ 3. Keep blockers explicit when the work is not ready for SDTK-CODE.
59
+
60
+ `/dev` does not auto-run SDTK-CODE.
61
+
62
+ ## 3) Shared State And Quality Gates
63
+ - `SHARED_PLANNING.md`: phase status, owners, artifacts, blockers, handoff notes.
64
+ - `QUALITY_CHECKLIST.md`: gate checklist by phase.
65
+ - No handoff to next phase while current gate is not PASS.
66
+ - QA cannot start until downstream implementation evidence exists, normally from SDTK-CODE.
67
+
68
+ ## 4) Minimum Traceability
69
+ - PM: `REQ-xx` requirements, scope, success metrics.
70
+ - BA: `BR-xx`, `UC-xx`, `AC-xx`, `NFR-xx`, and traceability matrix.
71
+ - ARCH: map UC/BR to API/DB/flows/screens.
72
+ - DEV: map backlog stories to implementation slices, refs, blockers, and test obligations.
73
+ - QA: map downstream implementation evidence and tests back to UC/AC.
74
+
75
+ ## 5) Feature Bootstrap
76
+ Run from project root:
77
+
78
+ ```
79
+ sdtk generate --feature-key YOUR_FEATURE --feature-name "Your Feature"
80
+ ```
81
+
82
+ ## 6) ARCH Deliverables (Extended)
83
+ In addition to `ARCH_DESIGN`, ARCH may generate:
84
+ - `docs/api/[FEATURE_KEY]_ENDPOINTS.md`
85
+ - `docs/api/[FEATURE_KEY]_API_DESIGN_DETAIL.md`
86
+ - `docs/database/DATABASE_SPEC_[FEATURE_KEY].md`
87
+ - `docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md`
88
+
89
+ ## 6.1) ARCH Orchestration Mapping
90
+ - Use `sdtk-api-doc` when API scope exists.
91
+ - Use `sdtk-api-design-spec` when API design detail is required from YAML + flow list.
92
+ - Use `sdtk-screen-design-spec` when UI flow-action specification is needed.
93
+ - Controlled by `sdtk-spec.config.json`:
94
+ - `orchestration.apiDesignDetailMode = auto|on|off`
95
+ - `auto`: generate when API scope and required sources are available.
96
+ - `on`: always generate for API scope.
97
+ - `off`: skip unless explicitly requested.
98
+
99
+ ## 6.2) QA Orchestration Mapping
100
+ - Use `sdtk-test-case-spec` when detailed worksheet-style test-case artifacts are required.
101
+ - Use `sdtk-qa` for execution report and release decision.
102
+ - QA accepts downstream implementation evidence from SDTK-CODE as the default handoff bridge.
103
+ - Controlled by `sdtk-spec.config.json`:
104
+ - `orchestration.testCaseSpecMode = auto|on|off`
105
+ - `auto`: generate when QA requires test-case artifacts.
106
+ - `on`: always generate in QA phase.
107
+ - `off`: skip unless explicitly requested.
108
+
109
+ ## 6.3) Maintainer Assets
110
+ - Skill inventory: `toolkit/skills/skills.catalog.yaml`
111
+ - Handoff templates: `toolkit/templates/handoffs/`
112
+ - Example scenarios: `examples/`
113
+ - Readiness audit: `toolkit/scripts/check-runtime-readiness.ps1`
114
+ - SDTK-CODE handoff generator: `toolkit/scripts/generate-code-handoff.ps1`
115
+
116
+ ## 7) Mandatory Rule References
117
+ Rule files are installed locally by the runtime. Skills resolve these at:
118
+ - Claude Code: `.claude/skills/references/`
119
+ - Codex: `$CODEX_HOME/skills/<skill>/references/`
120
+
121
+ Workflow governance docs:
122
+ - `governance/ai/core/SDTK_VERIFICATION_BEFORE_COMPLETION_POLICY.md` -- verification-before-completion gate
123
+ - `governance/ai/core/SDTK_SKILL_AUTHORING_AND_TESTING.md` -- maintainer authoring/test guide
124
+
125
+ Available rule files:
126
+ - `YAML_CREATION_RULES.md` -- API YAML docs
127
+ - `API_DESIGN_FLOWCHART_CREATION_RULES.md` -- API design detail + flow docs
128
+ - `FLOWCHART_CREATION_RULES.md` -- Flowchart (legacy compat)
129
+ - `API_DESIGN_CREATION_RULES.md` -- API design (legacy compat)
130
+ - `FLOW_ACTION_SPEC_CREATION_RULES.md` -- Screen flow-action specs
131
+ - `TEST_CASE_CREATION_RULES.md` -- QA test-case specs
132
+ - `numbering-rules.md` -- Flow-action numbering policy
133
+ - `figma-mcp.md` -- Figma MCP integration
134
+ - `excel-image-export.md` -- Excel image export
135
+
136
+ Flow-action numbering policy:
137
+ - Use one global numbering mode for the whole document (no per-screen reset).
@@ -0,0 +1,310 @@
1
+ param(
2
+ [string]$ProjectPath,
3
+ [switch]$Force,
4
+ [switch]$SkipSkills,
5
+ [switch]$SkipRuntimeAssets,
6
+ [switch]$Quiet,
7
+ [ValidateSet('codex', 'claude')]
8
+ [string]$Runtime = 'codex',
9
+ [ValidateSet('project', 'user', '')]
10
+ [string]$Scope = ''
11
+ )
12
+
13
+ $ErrorActionPreference = 'Stop'
14
+ Set-StrictMode -Version Latest
15
+
16
+ function Get-FileSha256 {
17
+ param(
18
+ [Parameter(Mandatory = $true)][string]$Path
19
+ )
20
+
21
+ if (-not (Test-Path -LiteralPath $Path)) {
22
+ return $null
23
+ }
24
+
25
+ $stream = [System.IO.File]::OpenRead($Path)
26
+ try {
27
+ $sha = [System.Security.Cryptography.SHA256]::Create()
28
+ $hashBytes = $sha.ComputeHash($stream)
29
+ return [BitConverter]::ToString($hashBytes).Replace('-', '')
30
+ } finally {
31
+ $stream.Close()
32
+ }
33
+ }
34
+
35
+ function Copy-File {
36
+ param(
37
+ [Parameter(Mandatory = $true)][string]$SourcePath,
38
+ [Parameter(Mandatory = $true)][string]$DestinationPath,
39
+ [Parameter(Mandatory = $true)][bool]$Overwrite
40
+ )
41
+
42
+ if (-not (Test-Path -LiteralPath $SourcePath)) {
43
+ throw "Missing source: $SourcePath"
44
+ }
45
+
46
+ if (Test-Path -LiteralPath $DestinationPath) {
47
+ if (-not $Overwrite) {
48
+ Write-Warning "Already exists (skipping). Use -Force to overwrite: $DestinationPath"
49
+ return
50
+ }
51
+ }
52
+
53
+ $parent = Split-Path -Parent $DestinationPath
54
+ if ($parent -and -not (Test-Path -LiteralPath $parent)) {
55
+ New-Item -ItemType Directory -Force -Path $parent | Out-Null
56
+ }
57
+
58
+ Copy-Item -LiteralPath $SourcePath -Destination $DestinationPath -Force
59
+ }
60
+
61
+ function Install-ClaudeSkillDirectory {
62
+ param(
63
+ [Parameter(Mandatory = $true)][System.IO.DirectoryInfo]$SkillDir,
64
+ [Parameter(Mandatory = $true)][string]$SkillsDest,
65
+ [Parameter(Mandatory = $true)][string]$ToolkitRoot,
66
+ [Parameter(Mandatory = $true)][bool]$Overwrite
67
+ )
68
+
69
+ $destDir = Join-Path $SkillsDest $SkillDir.Name
70
+ if (Test-Path -LiteralPath $destDir) {
71
+ if (-not $Overwrite) {
72
+ Write-Warning "Already exists (skipping). Use -Force to overwrite: $destDir"
73
+ return $true
74
+ }
75
+ Remove-Item -LiteralPath $destDir -Recurse -Force
76
+ }
77
+
78
+ $parent = Split-Path -Parent $destDir
79
+ if ($parent -and -not (Test-Path -LiteralPath $parent)) {
80
+ New-Item -ItemType Directory -Force -Path $parent | Out-Null
81
+ }
82
+ Copy-Item -LiteralPath $SkillDir.FullName -Destination $destDir -Recurse -Force
83
+
84
+ $canonicalSkillDir = Join-Path $ToolkitRoot "skills/sdtk-$($SkillDir.Name)"
85
+ foreach ($subDirName in @('scripts', 'prompts')) {
86
+ $srcSubDir = Join-Path $canonicalSkillDir $subDirName
87
+ $destSubDir = Join-Path $destDir $subDirName
88
+ if (-not (Test-Path -LiteralPath $srcSubDir)) {
89
+ continue
90
+ }
91
+
92
+ if (Test-Path -LiteralPath $destSubDir) {
93
+ Remove-Item -LiteralPath $destSubDir -Recurse -Force
94
+ }
95
+ Copy-Item -LiteralPath $srcSubDir -Destination $destSubDir -Recurse -Force
96
+ }
97
+
98
+ return $true
99
+ }
100
+
101
+ function Install-RuntimeAdapter {
102
+ param(
103
+ [Parameter(Mandatory = $true)][string]$ToolkitRoot,
104
+ [Parameter(Mandatory = $true)][string]$ProjectRoot,
105
+ [Parameter(Mandatory = $true)][string]$RuntimeName,
106
+ [Parameter(Mandatory = $true)][bool]$Overwrite
107
+ )
108
+
109
+ if ($RuntimeName -eq 'codex') {
110
+ $source = Join-Path $ToolkitRoot 'runtimes/codex/CODEX_TEMPLATE.md'
111
+ $dest = Join-Path $ProjectRoot 'CODEX.md'
112
+ Copy-File -SourcePath $source -DestinationPath $dest -Overwrite $Overwrite
113
+ return
114
+ }
115
+
116
+ if ($RuntimeName -eq 'claude') {
117
+ $source = Join-Path $ToolkitRoot 'runtimes/claude/CLAUDE_TEMPLATE.md'
118
+ $dest = Join-Path $ProjectRoot 'CLAUDE.md'
119
+ Copy-File -SourcePath $source -DestinationPath $dest -Overwrite $Overwrite
120
+ return
121
+ }
122
+
123
+ throw "Unsupported runtime: $RuntimeName"
124
+ }
125
+
126
+ function Install-ClaudeSkills {
127
+ param(
128
+ [Parameter(Mandatory = $true)][string]$ToolkitRoot,
129
+ [Parameter(Mandatory = $true)][string]$ProjectRoot,
130
+ [Parameter(Mandatory = $true)][bool]$Overwrite
131
+ )
132
+
133
+ $skillsSource = Join-Path $ToolkitRoot 'skills-claude'
134
+ $skillsDest = Join-Path $ProjectRoot '.claude/skills'
135
+
136
+ if (-not (Test-Path -LiteralPath $skillsSource)) {
137
+ throw "Claude skills source not found: $skillsSource"
138
+ }
139
+
140
+ $skillCount = 0
141
+ foreach ($skillDir in (Get-ChildItem -Path $skillsSource -Directory)) {
142
+ $srcFile = Join-Path $skillDir.FullName 'SKILL.md'
143
+ if (-not (Test-Path -LiteralPath $srcFile)) { continue }
144
+
145
+ if (Install-ClaudeSkillDirectory -SkillDir $skillDir -SkillsDest $skillsDest -ToolkitRoot $ToolkitRoot -Overwrite $Overwrite) {
146
+ $skillCount++
147
+ }
148
+ }
149
+
150
+ # Install reference files
151
+ $refDest = Join-Path $skillsDest 'references'
152
+ if (-not (Test-Path -LiteralPath $refDest)) {
153
+ New-Item -ItemType Directory -Force -Path $refDest | Out-Null
154
+ }
155
+
156
+ $refCount = 0
157
+ $missingRefs = @()
158
+
159
+ # 6 files from toolkit/templates/docs/
160
+ $templateRefs = @(
161
+ @{ Src = 'templates/docs/api/YAML_CREATION_RULES.md' },
162
+ @{ Src = 'templates/docs/api/API_DESIGN_FLOWCHART_CREATION_RULES.md' },
163
+ @{ Src = 'templates/docs/api/FLOWCHART_CREATION_RULES.md' },
164
+ @{ Src = 'templates/docs/api/API_DESIGN_CREATION_RULES.md' },
165
+ @{ Src = 'templates/docs/specs/FLOW_ACTION_SPEC_CREATION_RULES.md' },
166
+ @{ Src = 'templates/docs/qa/TEST_CASE_CREATION_RULES.md' }
167
+ )
168
+
169
+ foreach ($ref in $templateRefs) {
170
+ $srcPath = Join-Path $ToolkitRoot $ref.Src
171
+ $fileName = Split-Path -Leaf $srcPath
172
+ $destPath = Join-Path $refDest $fileName
173
+ if (Test-Path -LiteralPath $srcPath) {
174
+ Copy-File -SourcePath $srcPath -DestinationPath $destPath -Overwrite $Overwrite
175
+ $refCount++
176
+ } else {
177
+ $missingRefs += $srcPath
178
+ }
179
+ }
180
+
181
+ # 3 files from toolkit/skills/sdtk-screen-design-spec/references/
182
+ $screenRefs = @('numbering-rules.md', 'figma-mcp.md', 'excel-image-export.md')
183
+ foreach ($fileName in $screenRefs) {
184
+ $srcPath = Join-Path $ToolkitRoot "skills/sdtk-screen-design-spec/references/$fileName"
185
+ $destPath = Join-Path $refDest $fileName
186
+ if (Test-Path -LiteralPath $srcPath) {
187
+ Copy-File -SourcePath $srcPath -DestinationPath $destPath -Overwrite $Overwrite
188
+ $refCount++
189
+ } else {
190
+ $missingRefs += $srcPath
191
+ }
192
+ }
193
+
194
+ # Fail-fast: abort if any reference files are missing
195
+ if ($missingRefs.Count -gt 0) {
196
+ $list = ($missingRefs | ForEach-Object { " - $_" }) -join "`n"
197
+ throw "Claude install failed. Missing reference files:`n$list"
198
+ }
199
+
200
+ # Strict count assertions
201
+ $expectedSkills = 13
202
+ $expectedRefs = 9
203
+ if ($skillCount -ne $expectedSkills) {
204
+ throw "Claude install failed. Expected $expectedSkills skills but installed $skillCount."
205
+ }
206
+ if ($refCount -ne $expectedRefs) {
207
+ throw "Claude install failed. Expected $expectedRefs reference files but installed $refCount."
208
+ }
209
+
210
+ Write-Host " Skills installed: $skillCount"
211
+ Write-Host " Reference files : $refCount"
212
+ }
213
+
214
+ $toolkitRoot = Resolve-Path $PSScriptRoot
215
+ $canonicalRulesPath = Join-Path $toolkitRoot 'templates/docs/api/FLOWCHART_CREATION_RULES.md'
216
+ $canonicalRulesHash = Get-FileSha256 -Path $canonicalRulesPath
217
+ $apiDesignRulesPath = Join-Path $toolkitRoot 'templates/docs/api/API_DESIGN_CREATION_RULES.md'
218
+ $apiDesignRulesHash = Get-FileSha256 -Path $apiDesignRulesPath
219
+ $flowActionRulesPath = Join-Path $toolkitRoot 'templates/docs/specs/FLOW_ACTION_SPEC_CREATION_RULES.md'
220
+ $flowActionRulesHash = Get-FileSha256 -Path $flowActionRulesPath
221
+
222
+ if (-not $ProjectPath) {
223
+ $ProjectPath = (Resolve-Path (Join-Path $toolkitRoot '..')).Path
224
+ }
225
+ $projectRoot = Resolve-Path -LiteralPath $ProjectPath
226
+
227
+ # Merge SkipRuntimeAssets and legacy SkipSkills
228
+ if ($SkipRuntimeAssets) { $SkipSkills = $true }
229
+
230
+ # Default scope: project for Claude, user for Codex
231
+ if (-not $Scope -or $Scope -eq '') {
232
+ if ($Runtime -eq 'claude') { $Scope = 'project' }
233
+ else { $Scope = 'user' }
234
+ }
235
+
236
+ if (-not $Quiet) {
237
+ Write-Host "SDTK toolkit : $toolkitRoot"
238
+ Write-Host "Project root : $projectRoot"
239
+ Write-Host "Runtime : $Runtime"
240
+ if ($canonicalRulesHash) {
241
+ Write-Host "API ruleset : $canonicalRulesPath"
242
+ Write-Host "Ruleset hash : $canonicalRulesHash"
243
+ } else {
244
+ Write-Warning "API ruleset not found: $canonicalRulesPath"
245
+ }
246
+ if ($apiDesignRulesHash) {
247
+ Write-Host "API design ruleset: $apiDesignRulesPath"
248
+ Write-Host "Ruleset hash : $apiDesignRulesHash"
249
+ } else {
250
+ Write-Warning "API design ruleset not found: $apiDesignRulesPath"
251
+ }
252
+ if ($flowActionRulesHash) {
253
+ Write-Host "Flow ruleset : $flowActionRulesPath"
254
+ Write-Host "Ruleset hash : $flowActionRulesHash"
255
+ } else {
256
+ Write-Warning "Flow ruleset not found: $flowActionRulesPath"
257
+ }
258
+ }
259
+
260
+ Copy-File -SourcePath (Join-Path $toolkitRoot 'AGENTS.md') -DestinationPath (Join-Path $projectRoot 'AGENTS.md') -Overwrite ([bool]$Force)
261
+ Copy-File -SourcePath (Join-Path $toolkitRoot 'sdtk-spec.config.json') -DestinationPath (Join-Path $projectRoot 'sdtk-spec.config.json') -Overwrite ([bool]$Force)
262
+ 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)
263
+ Install-RuntimeAdapter -ToolkitRoot $toolkitRoot -ProjectRoot $projectRoot -RuntimeName $Runtime -Overwrite ([bool]$Force)
264
+
265
+ if (($Runtime -eq 'codex') -and (-not $SkipSkills)) {
266
+ $skillInstaller = Join-Path $toolkitRoot 'scripts/install-codex-skills.ps1'
267
+ if (-not (Test-Path -LiteralPath $skillInstaller)) {
268
+ throw "Missing skill installer script: $skillInstaller"
269
+ }
270
+
271
+ Write-Host ""
272
+ Write-Host "Installing Codex skills (scope: $Scope)..."
273
+ if ($Force) {
274
+ & $skillInstaller -Scope $Scope -Force | Out-Host
275
+ } else {
276
+ & $skillInstaller -Scope $Scope | Out-Host
277
+ }
278
+ }
279
+ elseif (($Runtime -eq 'claude') -and (-not $SkipSkills)) {
280
+ $skillInstaller = Join-Path $toolkitRoot 'scripts/install-claude-skills.ps1'
281
+ if (-not (Test-Path -LiteralPath $skillInstaller)) {
282
+ # Fallback to inline Install-ClaudeSkills for backward compatibility
283
+ Write-Host ""
284
+ Write-Host "Installing Claude Code skills..."
285
+ Install-ClaudeSkills -ToolkitRoot $toolkitRoot -ProjectRoot $projectRoot -Overwrite ([bool]$Force)
286
+ } else {
287
+ Write-Host ""
288
+ Write-Host "Installing Claude Code skills (scope: $Scope)..."
289
+ if ($Force) {
290
+ & $skillInstaller -Scope $Scope -ProjectPath $projectRoot.ToString() -Force | Out-Host
291
+ } else {
292
+ & $skillInstaller -Scope $Scope -ProjectPath $projectRoot.ToString() | Out-Host
293
+ }
294
+ }
295
+ }
296
+
297
+ if (-not $Quiet) {
298
+ Write-Host ""
299
+ Write-Host "Install complete."
300
+ Write-Host "Next:"
301
+ Write-Host "1) Edit project config: $((Join-Path $projectRoot 'sdtk-spec.config.json'))"
302
+ if ($Runtime -eq 'codex') {
303
+ Write-Host "2) Restart Codex (to load runtime adapter and skills)"
304
+ } else {
305
+ Write-Host "2) Restart Claude Code (to load CLAUDE.md + skills)"
306
+ Write-Host " Commands: /orchestrator /pm /ba /arch /dev /qa"
307
+ }
308
+ Write-Host '3) Generate feature docs:'
309
+ Write-Host ' sdtk generate --feature-key YOUR_FEATURE --feature-name "Your Feature"'
310
+ }
@@ -0,0 +1,54 @@
1
+ # CLAUDE.md
2
+
3
+ Version: 2.0
4
+ Last Updated: 2026-03-05
5
+ Owner: SDTK-SPEC Core Team
6
+
7
+ This file defines runtime guidance for Claude Code sessions in projects using SDTK-SPEC.
8
+
9
+ ## 1) Rule Priority
10
+ 1. Explicit user request
11
+ 2. `AGENTS.md` (project root)
12
+ 3. Installed skill content (`.claude/skills/*/SKILL.md`)
13
+ 4. This file (`CLAUDE.md`)
14
+ 5. `sdtk-spec.config.json`
15
+
16
+ ## 2) Runtime Model
17
+ - Primary workflow: PM -> BA -> ARCH -> DEV -> QA
18
+ - Entry point: `/orchestrator` (recommended) or `/pm`
19
+ - Role commands: `/pm`, `/ba`, `/arch`, `/dev`, `/qa`
20
+ - Sub-skill commands: `/api-doc`, `/api-design-spec`, `/screen-design-spec`, `/design-layout`, `/test-case-spec`, `/dev-backend`, `/dev-frontend`
21
+ - Shared state files:
22
+ - `SHARED_PLANNING.md`
23
+ - `QUALITY_CHECKLIST.md`
24
+
25
+ ## 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.
30
+
31
+ ## 4) Installed Skills
32
+ Skills are installed at `.claude/skills/` and provide slash commands:
33
+
34
+ | Command | Purpose |
35
+ |---------|---------|
36
+ | `/orchestrator` | Full 6-phase SDLC orchestration |
37
+ | `/pm` | PM initiation + planning |
38
+ | `/ba` | Business analysis |
39
+ | `/arch` | Solution architecture |
40
+ | `/dev` | Development + code review |
41
+ | `/qa` | QA testing + release decision |
42
+ | `/api-doc` | OpenAPI YAML + flow diagrams |
43
+ | `/api-design-spec` | API design detail spec |
44
+ | `/screen-design-spec` | Screen flow-action spec |
45
+ | `/design-layout` | UI screen layout wireframes |
46
+ | `/test-case-spec` | QA test-case spec |
47
+ | `/dev-backend` | Backend code conventions |
48
+ | `/dev-frontend` | Frontend code conventions |
49
+
50
+ Rule reference files are installed at `.claude/skills/references/`.
51
+
52
+ ## 5) References
53
+ - `sdtk-spec.config.json`
54
+ - `.claude/skills/references/` (rule files)
@@ -0,0 +1,32 @@
1
+ # CODEX.md
2
+
3
+ Version: 1.0
4
+ Last Updated: 2026-02-25
5
+ Owner: SDTK-SPEC Core Team
6
+
7
+ This file defines runtime guidance for Codex sessions in projects using SDTK-SPEC.
8
+
9
+ ## 1) Rule Priority
10
+ 1. Explicit user request
11
+ 2. `AGENTS.md` (project root)
12
+ 3. `toolkit/AGENTS.md`
13
+ 4. This file (`CODEX.md`)
14
+ 5. Other supporting docs
15
+
16
+ ## 2) Runtime Model
17
+ - Primary workflow: PM -> BA -> ARCH -> DEV -> QA
18
+ - Role tags: `/pm`, `/ba`, `/arch`, `/dev`, `/qa`
19
+ - Shared state files:
20
+ - `SHARED_PLANNING.md`
21
+ - `QUALITY_CHECKLIST.md`
22
+
23
+ ## 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.
28
+
29
+ ## 4) References
30
+ - `toolkit/SDTK_TOOLKIT.md`
31
+ - `toolkit/AGENTS.md`
32
+ - `sdtk-spec.config.json`