@colin4k1024/tsp 2.4.0 → 2.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.
Files changed (230) hide show
  1. package/README.md +87 -4
  2. package/bin/lib/post-install-bridge.js +2 -2
  3. package/bin/tsp-create.js +11 -11
  4. package/commands/team-help.md +2 -2
  5. package/commands/team-plan.md +1 -1
  6. package/commands/update-codemaps.md +3 -2
  7. package/docs/.vitepress/config.mts +199 -0
  8. package/docs/adr/ADR-001-doc-architecture-integration.md +33 -0
  9. package/docs/guides/README.md +5 -0
  10. package/docs/guides/installation.md +33 -0
  11. package/docs/guides/user-guide.md +36 -0
  12. package/docs/index.md +65 -0
  13. package/docs/memory/backlog.md +10 -0
  14. package/docs/memory/decisions.md +43 -0
  15. package/docs/memory/lessons-learned.md +87 -0
  16. package/docs/plans/2026-04-03-python-remnants-audit.md +265 -0
  17. package/docs/plans/2026-04-03-scripts-python-to-js-migration.md +372 -0
  18. package/docs/plans/2026-04-03-solo-delivery-execution-checklist.md +413 -0
  19. package/docs/plans/2026-04-03-solo-delivery-gap-plan.md +377 -0
  20. package/docs/plans/2026-04-03-team-skills-workflow-gates.md +548 -0
  21. package/docs/plans/2026-04-21-open-source-readiness-gap-plan.md +217 -0
  22. package/docs/plans/llm-surface-reduction-audit.md +147 -0
  23. package/docs/plans/llm-surface-reduction-execution-checklist.md +217 -0
  24. package/docs/plans/llm-surface-reduction-execution-history.md +124 -0
  25. package/docs/plans/team-skills-platform-migration.md +54 -0
  26. package/docs/presentation/README.md +42 -0
  27. package/docs/presentation/audience-presentation-route-map.md +84 -0
  28. package/docs/presentation/executive-briefing-talk-track.md +50 -0
  29. package/docs/presentation/generate_capability_matrix.py +396 -0
  30. package/docs/presentation/generate_ppt.py +354 -0
  31. package/docs/presentation/implementation-onboarding-brief.md +38 -0
  32. package/docs/presentation/presentation-talk-track.md +97 -0
  33. package/docs/presentation/vertical-scenario-route-map.md +99 -0
  34. package/docs/presentation/workshop-facilitator-guide.md +47 -0
  35. package/docs/runbooks/actionlint-workflow-gates.md +80 -0
  36. package/docs/runbooks/agent-governance.md +131 -0
  37. package/docs/runbooks/ai-eval-platform-demo-execution-log.md +147 -0
  38. package/docs/runbooks/ai-eval-platform-demo-script.md +136 -0
  39. package/docs/runbooks/ai-eval-platform-walkthrough.md +113 -0
  40. package/docs/runbooks/ai-pr-review-automation.md +56 -0
  41. package/docs/runbooks/api-breaking-change-gates.md +58 -0
  42. package/docs/runbooks/api-design-evolution-walkthrough.md +42 -0
  43. package/docs/runbooks/api-lint-gates.md +57 -0
  44. package/docs/runbooks/api-mocking-strategy-and-lifecycle-guide.md +47 -0
  45. package/docs/runbooks/architect-daily-operations.md +63 -0
  46. package/docs/runbooks/architect-design-conversation-example.md +83 -0
  47. package/docs/runbooks/artifact-attestation-gates.md +75 -0
  48. package/docs/runbooks/artifact-persistence.md +257 -0
  49. package/docs/runbooks/backend-engineer-daily-operations.md +63 -0
  50. package/docs/runbooks/batch-optimization-completion-checklist.md +104 -0
  51. package/docs/runbooks/biz-service-designer-end-to-end-conversation-example.md +5 -0
  52. package/docs/runbooks/biz-service-designer-toolkit.md +5 -0
  53. package/docs/runbooks/bug-fix-complete-walkthrough.md +60 -0
  54. package/docs/runbooks/build-failure-recovery-walkthrough.md +40 -0
  55. package/docs/runbooks/canary-decision-matrix.md +41 -0
  56. package/docs/runbooks/canary-staging-release-walkthrough.md +46 -0
  57. package/docs/runbooks/checkov-iac-gates.md +104 -0
  58. package/docs/runbooks/claude-code-review-workflow.md +72 -0
  59. package/docs/runbooks/claude-conversation-prompt-recipes.md +132 -0
  60. package/docs/runbooks/claude-end-to-end-conversation-example.md +198 -0
  61. package/docs/runbooks/claude-feature-development-guide.md +112 -0
  62. package/docs/runbooks/claude-quick-start.md +227 -0
  63. package/docs/runbooks/claude-usage-scenarios.md +176 -0
  64. package/docs/runbooks/code-review-collaboration-walkthrough.md +65 -0
  65. package/docs/runbooks/codeql-pr-security-gates.md +64 -0
  66. package/docs/runbooks/codex-end-to-end-conversation-example.md +166 -0
  67. package/docs/runbooks/codex-multi-agent-orchestration.md +65 -0
  68. package/docs/runbooks/codex-parallel-prompt-recipes.md +131 -0
  69. package/docs/runbooks/codex-quick-start.md +223 -0
  70. package/docs/runbooks/codex-usage-scenarios.md +168 -0
  71. package/docs/runbooks/codex-workflow-essentials.md +88 -0
  72. package/docs/runbooks/command-and-capability-matrix.md +162 -0
  73. package/docs/runbooks/conftest-policy-gates.md +84 -0
  74. package/docs/runbooks/consumer-driven-contract-testing-with-mock-alignment.md +45 -0
  75. package/docs/runbooks/contract-testing-playbook.md +78 -0
  76. package/docs/runbooks/cosign-signing-gates.md +71 -0
  77. package/docs/runbooks/cross-role-issue-triage-walkthrough.md +47 -0
  78. package/docs/runbooks/cursor-quick-start.md +123 -0
  79. package/docs/runbooks/custom-overlay.md +115 -0
  80. package/docs/runbooks/data-ml-pipeline-demo-execution-log.md +141 -0
  81. package/docs/runbooks/data-ml-pipeline-demo-script.md +102 -0
  82. package/docs/runbooks/data-ml-pipeline-walkthrough.md +119 -0
  83. package/docs/runbooks/data-observability-quality-demo-execution-log.md +36 -0
  84. package/docs/runbooks/data-observability-quality-demo-script.md +42 -0
  85. package/docs/runbooks/data-observability-quality-walkthrough.md +86 -0
  86. package/docs/runbooks/demo-deliverables-overview.md +278 -0
  87. package/docs/runbooks/demo-execution-log.md +530 -0
  88. package/docs/runbooks/demo-scenario.md +129 -0
  89. package/docs/runbooks/dependency-review-gates.md +63 -0
  90. package/docs/runbooks/dependency-update-automation.md +83 -0
  91. package/docs/runbooks/design-md-workflow.md +185 -0
  92. package/docs/runbooks/devops-engineer-daily-operations.md +60 -0
  93. package/docs/runbooks/devops-release-conversation-example.md +88 -0
  94. package/docs/runbooks/doc-architecture-integration.md +59 -0
  95. package/docs/runbooks/doc-architecture-quick-start.md +122 -0
  96. package/docs/runbooks/document-execution-audit.md +32 -0
  97. package/docs/runbooks/documentation-update-walkthrough.md +37 -0
  98. package/docs/runbooks/ecc-harness-usage.md +93 -0
  99. package/docs/runbooks/error-experience-usage.md +116 -0
  100. package/docs/runbooks/evolution-usage.md +162 -0
  101. package/docs/runbooks/executive-value-one-page.md +55 -0
  102. package/docs/runbooks/external-capability-approval-and-enablement-workflow.md +39 -0
  103. package/docs/runbooks/external-capability-intake.md +160 -0
  104. package/docs/runbooks/first-team-command-60-seconds.md +96 -0
  105. package/docs/runbooks/first-team-workflow-walkthrough.md +245 -0
  106. package/docs/runbooks/frontend-backend-integration-acceptance-checklist.md +46 -0
  107. package/docs/runbooks/frontend-backend-parallel-integration-walkthrough.md +48 -0
  108. package/docs/runbooks/frontend-bugfix-one-page.md +82 -0
  109. package/docs/runbooks/frontend-engineer-daily-operations.md +60 -0
  110. package/docs/runbooks/frontend-enterprise-style-profile.md +5 -0
  111. package/docs/runbooks/frontend-governance.md +47 -0
  112. package/docs/runbooks/frontend-refactor-walkthrough.md +42 -0
  113. package/docs/runbooks/git-pr-workflow.md +63 -0
  114. package/docs/runbooks/github-actions-supply-chain-demo-execution-log.md +158 -0
  115. package/docs/runbooks/github-actions-supply-chain-demo-script.md +150 -0
  116. package/docs/runbooks/github-actions-supply-chain-walkthrough.md +117 -0
  117. package/docs/runbooks/github-token-permissions-baseline.md +92 -0
  118. package/docs/runbooks/gitlab-manual-pipeline-release.md +5 -0
  119. package/docs/runbooks/gitlab-release-integration-playbook.md +5 -0
  120. package/docs/runbooks/gitnexus-code-intelligence-usage.md +133 -0
  121. package/docs/runbooks/graphify-knowledge-graph-usage.md +88 -0
  122. package/docs/runbooks/handoff-filling-guide-with-examples.md +70 -0
  123. package/docs/runbooks/handoff-governance.md +250 -0
  124. package/docs/runbooks/helm-unittest-playbook.md +101 -0
  125. package/docs/runbooks/hotfix-emergency-release-walkthrough.md +60 -0
  126. package/docs/runbooks/iac-kubernetes-platform-demo-execution-log.md +144 -0
  127. package/docs/runbooks/iac-kubernetes-platform-demo-script.md +130 -0
  128. package/docs/runbooks/iac-kubernetes-platform-walkthrough.md +120 -0
  129. package/docs/runbooks/implementation-onboarding-reading-path.md +67 -0
  130. package/docs/runbooks/in-toto-attestation-framework.md +94 -0
  131. package/docs/runbooks/incident-severity-triage-tree.md +43 -0
  132. package/docs/runbooks/incident-triage-one-page.md +65 -0
  133. package/docs/runbooks/internal-developer-platform-demo-execution-log.md +36 -0
  134. package/docs/runbooks/internal-developer-platform-demo-script.md +42 -0
  135. package/docs/runbooks/internal-developer-platform-walkthrough.md +91 -0
  136. package/docs/runbooks/karpathy-guidelines-usage.md +27 -0
  137. package/docs/runbooks/kubeconform-schema-gates.md +100 -0
  138. package/docs/runbooks/kubectl-server-dry-run-gates.md +103 -0
  139. package/docs/runbooks/kyverno-policy-gates.md +90 -0
  140. package/docs/runbooks/langfuse-and-observability-integration-guide.md +43 -0
  141. package/docs/runbooks/langfuse-coding-trace.md +44 -0
  142. package/docs/runbooks/mobile-miniapp-delivery-walkthrough.md +112 -0
  143. package/docs/runbooks/mobile-miniapp-demo-execution-log.md +139 -0
  144. package/docs/runbooks/mobile-miniapp-demo-script.md +129 -0
  145. package/docs/runbooks/multi-service-backend-integration-walkthrough.md +61 -0
  146. package/docs/runbooks/open-design-integration.md +163 -0
  147. package/docs/runbooks/open-source-release-checklist.md +90 -0
  148. package/docs/runbooks/opencode-quick-start.md +128 -0
  149. package/docs/runbooks/parallel-development-coordination-walkthrough.md +47 -0
  150. package/docs/runbooks/parallel-execution-usage.md +179 -0
  151. package/docs/runbooks/platform-capability-demo-execution-log.md +184 -0
  152. package/docs/runbooks/platform-capability-demo-script.md +192 -0
  153. package/docs/runbooks/plugin-extension-platform-demo-execution-log.md +136 -0
  154. package/docs/runbooks/plugin-extension-platform-demo-script.md +102 -0
  155. package/docs/runbooks/plugin-extension-platform-walkthrough.md +111 -0
  156. package/docs/runbooks/policy-controller-gates.md +75 -0
  157. package/docs/runbooks/post-rollback-verification-checklist.md +37 -0
  158. package/docs/runbooks/pre-release-checklist.md +50 -0
  159. package/docs/runbooks/product-manager-clarification-conversation-example.md +90 -0
  160. package/docs/runbooks/product-manager-daily-operations.md +60 -0
  161. package/docs/runbooks/production-incident-response-walkthrough.md +50 -0
  162. package/docs/runbooks/project-claude-design-rationale.md +188 -0
  163. package/docs/runbooks/project-manager-daily-operations.md +61 -0
  164. package/docs/runbooks/project-manager-planning-conversation-example.md +82 -0
  165. package/docs/runbooks/project-onboarding.md +452 -0
  166. package/docs/runbooks/qa-engineer-daily-operations.md +63 -0
  167. package/docs/runbooks/qa-review-conversation-example.md +87 -0
  168. package/docs/runbooks/release-closure-one-page.md +65 -0
  169. package/docs/runbooks/release-governance-reading-path.md +56 -0
  170. package/docs/runbooks/release-notes-automation.md +48 -0
  171. package/docs/runbooks/release-rollback-recovery-walkthrough.md +47 -0
  172. package/docs/runbooks/requirement-clarity-and-scope-walkthrough.md +46 -0
  173. package/docs/runbooks/reviewdog-pr-gates.md +49 -0
  174. package/docs/runbooks/role-prompt-recipes.md +130 -0
  175. package/docs/runbooks/rtk-integration-intake.md +45 -0
  176. package/docs/runbooks/rtk-token-optimization-usage.md +107 -0
  177. package/docs/runbooks/runner-egress-hardening.md +81 -0
  178. package/docs/runbooks/runtime-capabilities-overview.md +113 -0
  179. package/docs/runbooks/sbom-generation-gates.md +71 -0
  180. package/docs/runbooks/scorecard-supply-chain-gates.md +82 -0
  181. package/docs/runbooks/secret-scanning-gates.md +85 -0
  182. package/docs/runbooks/security-compliance-platform-demo-execution-log.md +36 -0
  183. package/docs/runbooks/security-compliance-platform-demo-script.md +49 -0
  184. package/docs/runbooks/security-compliance-platform-walkthrough.md +98 -0
  185. package/docs/runbooks/slsa-generator-patterns.md +73 -0
  186. package/docs/runbooks/slsa-verification-gates.md +75 -0
  187. package/docs/runbooks/solo-delivery-mode.md +142 -0
  188. package/docs/runbooks/solo-delivery-one-page.md +111 -0
  189. package/docs/runbooks/specialist-commands-playbook.md +85 -0
  190. package/docs/runbooks/sub-agent-invocation-map.md +144 -0
  191. package/docs/runbooks/system-architecture-design-walkthrough.md +49 -0
  192. package/docs/runbooks/team-closeout-example.md +73 -0
  193. package/docs/runbooks/team-command-output-contracts.md +358 -0
  194. package/docs/runbooks/team-commands-quick-prompts.md +125 -0
  195. package/docs/runbooks/team-execute-example.md +63 -0
  196. package/docs/runbooks/team-handoff-example.md +49 -0
  197. package/docs/runbooks/team-intake-example.md +70 -0
  198. package/docs/runbooks/team-plan-example.md +62 -0
  199. package/docs/runbooks/team-release-example.md +63 -0
  200. package/docs/runbooks/team-review-example.md +61 -0
  201. package/docs/runbooks/team-skills-test-run.md +184 -0
  202. package/docs/runbooks/team-skills-usage.md +336 -0
  203. package/docs/runbooks/team-training-reading-path.md +64 -0
  204. package/docs/runbooks/tech-lead-closure-conversation-example.md +78 -0
  205. package/docs/runbooks/tech-lead-daily-operations.md +67 -0
  206. package/docs/runbooks/trivy-security-gates.md +79 -0
  207. package/docs/runbooks/troubleshooting.md +234 -0
  208. package/docs/runbooks/vertical-scenario-capability-matrix.md +107 -0
  209. package/docs/runbooks/witness-policy-gates.md +78 -0
  210. package/docs/runbooks/zizmor-workflow-audits.md +81 -0
  211. package/manifests/install-components.json +9 -1
  212. package/manifests/install-modules.json +38 -2
  213. package/manifests/install-profiles.json +2 -0
  214. package/package.json +4 -1
  215. package/scripts/gitnexus-preflight.js +187 -0
  216. package/scripts/install-apply.js +9 -0
  217. package/scripts/install-open-design.js +206 -0
  218. package/scripts/install-plan.js +17 -0
  219. package/scripts/lib/install/apply.js +31 -0
  220. package/scripts/lib/install-executor.js +56 -0
  221. package/scripts/lib/team-skills-data.json +7 -6
  222. package/scripts/project-progress.js +852 -0
  223. package/scripts/release-health-summary.js +49 -7
  224. package/scripts/release.sh +1 -1
  225. package/scripts/validate-packed-tarball.js +25 -0
  226. package/scripts/workflow-help.js +3 -3
  227. package/skills/gitnexus/SKILL.md +60 -0
  228. package/skills/gitnexus/agents/openai.yaml +4 -0
  229. package/skills/open-design/SKILL.md +87 -0
  230. package/skills/open-design/agents/openai.yaml +4 -0
@@ -0,0 +1,372 @@
1
+ # Scripts Python-to-JS Migration Plan
2
+
3
+ > **For Claude:** REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task.
4
+
5
+ **Goal:** Migrate the Team Skills Platform's core `scripts/` execution path from Python to JavaScript so that build, generation, and validation workflows run natively in the repository's existing Node.js toolchain.
6
+
7
+ **Architecture:** Replace the current Python-centered platform pipeline with a JS-first pipeline in layers. First migrate shared runtime utilities, then the artifact generator, then the validation chain, while keeping generated output and workflow-gate behavior equivalent to the current implementation.
8
+
9
+ **Tech Stack:** Node.js 18+, existing `package.json` scripts, repository markdown/templates/roles/commands, filesystem-based code generation, audit logging, validation fixtures.
10
+
11
+ ---
12
+
13
+ ## 1. Background
14
+
15
+ The repository already uses Node.js as its primary package/tooling surface, but the platform core still depends on Python for:
16
+
17
+ - artifact generation
18
+ - library validation
19
+ - workflow-gate validation
20
+ - local audit logging
21
+
22
+ This creates three problems:
23
+
24
+ 1. The build and validation path is split across two runtimes.
25
+ 2. The platform's most critical governance logic now lives in Python, while the surrounding repo tooling is JS-first.
26
+ 3. Every future platform change risks duplicating utility logic across Python and JS.
27
+
28
+ This migration formalizes a JS-first platform core.
29
+
30
+ ## 2. Migration Scope
31
+
32
+ ### 2.1 In Scope
33
+
34
+ This migration covers the core platform path only:
35
+
36
+ - [scripts/lib/team-skills-platform.js](../../scripts/lib/team-skills-platform.js)
37
+ - [scripts/build-platform-artifacts.js](../../scripts/build-platform-artifacts.js)
38
+ - [scripts/validate-library.js](../../scripts/validate-library.js)
39
+ - [scripts/validate-workflow-state.js](../../scripts/validate-workflow-state.js)
40
+ - [scripts/lib/audit-logger.js](../../scripts/lib/audit-logger.js)
41
+
42
+ ### 2.2 Out of Scope
43
+
44
+ These Python scripts are not part of the first migration wave:
45
+
46
+ - [scripts/install-platform.js](../../scripts/install-platform.js)
47
+ - [scripts/query-audit-logs.js](../../scripts/query-audit-logs.js)
48
+ - [scripts/scan-leaked-keys.js](../../scripts/scan-leaked-keys.js)
49
+ - [scripts/langfuse-trace.js](../../scripts/langfuse-trace.js)
50
+ - [scripts/trigger-gitlab-pipeline.js](../../scripts/trigger-gitlab-pipeline.js)
51
+ - `scripts/run-e2e-test.js` (已废弃,无 JS 等价物)
52
+
53
+ These can be migrated later after the platform core is stable.
54
+
55
+ ## 3. Target End State
56
+
57
+ After this migration:
58
+
59
+ - `npm run build` uses JS only
60
+ - `npm run validate` uses JS only
61
+ - core platform generation no longer depends on Python
62
+ - workflow-gate validation no longer depends on Python
63
+ - generated artifacts remain equivalent to the current implementation
64
+ - Python entrypoints for the migrated path can be removed or retained only as thin compatibility shims during transition
65
+
66
+ ## 4. Success Criteria
67
+
68
+ The migration is complete only when all of the following are true:
69
+
70
+ 1. A JS artifact generator can compute and write all expected generated files.
71
+ 2. A JS validation entrypoint can replace the current Python validation path.
72
+ 3. Workflow-state validation behaves the same as the current fixture-based Python validator.
73
+ 4. `package.json` no longer routes core build/validate through Python.
74
+ 5. Repository docs no longer instruct users to run Python for the migrated scripts.
75
+ 6. Generated output diff is either identical or intentionally reviewed and accepted.
76
+
77
+ ## 5. Proposed File Layout
78
+
79
+ Recommended JS replacements:
80
+
81
+ - `scripts/lib/audit-logger.js`
82
+ - `scripts/lib/team-skills-platform.js`
83
+ - `scripts/build-platform-artifacts.js`
84
+ - `scripts/validate-library.js`
85
+ - `scripts/validate-workflow-state.js`
86
+
87
+ Optional compatibility wrappers during transition:
88
+
89
+ - keep Python files temporarily, but reduce them to delegating wrappers
90
+ - or update shell/PowerShell wrappers directly to JS and retire Python immediately
91
+
92
+ ## 6. Execution Strategy
93
+
94
+ Use an incremental migration instead of a big-bang rewrite.
95
+
96
+ ### Phase 1: Shared Utility Layer
97
+
98
+ Build the common JS foundation first.
99
+
100
+ Deliverables:
101
+
102
+ - JS audit logger with writable-root fallback behavior
103
+ - reusable file IO helpers
104
+ - reusable frontmatter parsing helpers
105
+ - reusable markdown/link/path validation helpers
106
+
107
+ Primary outputs:
108
+
109
+ - `scripts/lib/audit-logger.js`
110
+ - utility helpers colocated under `scripts/lib/`
111
+
112
+ Acceptance:
113
+
114
+ - audit events can be emitted from JS scripts
115
+ - local fallback behavior matches the current Python behavior
116
+
117
+ ### Phase 2: Core Generator Migration
118
+
119
+ Migrate the platform generator logic from Python into JS.
120
+
121
+ Deliverables:
122
+
123
+ - JS implementation of role loading
124
+ - JS rendering of generated role prompts
125
+ - JS rendering of generated commands
126
+ - JS expected-artifacts computation
127
+ - JS write/check mode equivalent to the current generator
128
+
129
+ Primary outputs:
130
+
131
+ - `scripts/lib/team-skills-platform.js`
132
+ - `scripts/build-platform-artifacts.js`
133
+
134
+ Acceptance:
135
+
136
+ - generated artifact check passes
137
+ - regenerated output matches current expected output
138
+
139
+ ### Phase 3: Workflow Validator Migration
140
+
141
+ Migrate workflow-state validation into JS without changing behavior.
142
+
143
+ Deliverables:
144
+
145
+ - JS validation for:
146
+ - required artifact presence
147
+ - delivery-plan gate markers
148
+ - arch-design presence when applicable
149
+ - handoff readiness fields
150
+ - legal phase transition rules
151
+
152
+ Primary outputs:
153
+
154
+ - `scripts/validate-workflow-state.js`
155
+
156
+ Acceptance:
157
+
158
+ - current valid fixture passes
159
+ - current invalid fixtures fail with clear errors
160
+
161
+ ### Phase 4: Library Validator Migration
162
+
163
+ Migrate the repo-wide library validator to JS and wire in the workflow validator.
164
+
165
+ Deliverables:
166
+
167
+ - required file checks
168
+ - generated artifact consistency checks
169
+ - skill catalog checks
170
+ - markdown link checks
171
+ - workflow fixture checks
172
+
173
+ Primary outputs:
174
+
175
+ - `scripts/validate-library.js`
176
+
177
+ Acceptance:
178
+
179
+ - the JS validator covers the same effective validation surface as the Python path for migrated components
180
+
181
+ ### Phase 5: Entry Point and Documentation Cutover
182
+
183
+ Switch repository entrypoints and docs to JS.
184
+
185
+ Deliverables:
186
+
187
+ - update [package.json](../../package.json)
188
+ - update:
189
+ - [scripts/build-platform-artifacts.sh](../../scripts/build-platform-artifacts.sh)
190
+ - [scripts/build-platform-artifacts.ps1](../../scripts/build-platform-artifacts.ps1)
191
+ - [scripts/validate-library.sh](../../scripts/validate-library.sh)
192
+ - [scripts/validate-library.ps1](../../scripts/validate-library.ps1)
193
+ - update all operational docs that still instruct Python use for the migrated scripts
194
+
195
+ Acceptance:
196
+
197
+ - build and validate commands shown to users are JS-native
198
+
199
+ ### Phase 6: Python Retirement
200
+
201
+ Once the JS path is stable:
202
+
203
+ - remove migrated Python implementations
204
+ - or keep only temporary compatibility stubs with a clear removal deadline
205
+
206
+ Acceptance:
207
+
208
+ - there is a single authoritative implementation for core platform generation/validation
209
+
210
+ ## 7. Recommended Task Breakdown
211
+
212
+ ### Workstream A: Generator Path
213
+
214
+ Files:
215
+
216
+ - `scripts/lib/team-skills-platform.js`
217
+ - `scripts/build-platform-artifacts.js`
218
+ - `scripts/lib/audit-logger.js`
219
+
220
+ JS targets:
221
+
222
+ - `scripts/lib/team-skills-platform.js`
223
+ - `scripts/build-platform-artifacts.js`
224
+ - `scripts/lib/audit-logger.js`
225
+
226
+ Why first:
227
+
228
+ - highest leverage
229
+ - unblocks JS-native generation
230
+ - reduces future platform change cost the most
231
+
232
+ ### Workstream B: Validation Path
233
+
234
+ Files:
235
+
236
+ - `scripts/validate-workflow-state.js`
237
+ - `scripts/validate-library.js`
238
+
239
+ JS targets:
240
+
241
+ - `scripts/validate-workflow-state.js`
242
+ - `scripts/validate-library.js`
243
+
244
+ Why second:
245
+
246
+ - depends on generator outputs
247
+ - easier to validate after generation parity exists
248
+
249
+ ### Workstream C: Entry Point Cutover
250
+
251
+ Files:
252
+
253
+ - `package.json`
254
+ - shell wrappers
255
+ - PowerShell wrappers
256
+ - docs references
257
+
258
+ Why third:
259
+
260
+ - should happen only after JS scripts are already stable
261
+
262
+ ## 8. Risks and Controls
263
+
264
+ ### Risk 1: Output drift during generator migration
265
+
266
+ Problem:
267
+ - generated markdown/manifests may change subtly
268
+
269
+ Mitigation:
270
+ - keep snapshot/equivalence checks
271
+ - compare expected outputs before cutover
272
+ - treat any output delta as reviewable, not accidental
273
+
274
+ ### Risk 2: Validation parity gaps
275
+
276
+ Problem:
277
+ - JS validator may miss checks the Python version had
278
+
279
+ Mitigation:
280
+ - port by category, not file-by-file intuition
281
+ - keep fixture-based tests
282
+ - verify each validation concern explicitly
283
+
284
+ ### Risk 3: Mixed-runtime confusion during transition
285
+
286
+ Problem:
287
+ - contributors may keep using Python commands while JS becomes canonical
288
+
289
+ Mitigation:
290
+ - switch `package.json` early once stable
291
+ - update AGENTS/README/runbooks in the same cutover
292
+ - optionally leave deprecation shims with explicit warnings
293
+
294
+ ### Risk 4: Regressions in workflow-gate enforcement
295
+
296
+ Problem:
297
+ - new gate logic was just introduced and must not be weakened
298
+
299
+ Mitigation:
300
+ - treat workflow fixtures as blocking regression tests
301
+ - do not rewrite gate semantics during migration
302
+ - migrate behavior first, refactor second
303
+
304
+ ## 9. Testing and Verification Plan
305
+
306
+ The migration must include these checks:
307
+
308
+ 1. Generator parity check
309
+ 2. Workflow fixture validation
310
+ 3. Library validation check
311
+ 4. Targeted unit tests for parser/renderer helpers
312
+ 5. Manual spot-check of generated:
313
+ - role prompts
314
+ - team commands
315
+ - plugin manifests
316
+
317
+ Suggested verification commands after JS cutover:
318
+
319
+ ```bash
320
+ npm run build
321
+ npm run validate
322
+ npm test
323
+ ```
324
+
325
+ ## 10. Rollout Recommendation
326
+
327
+ Do this as two PRs or two tightly scoped implementation waves.
328
+
329
+ ### Recommended Wave 1
330
+
331
+ Migrate:
332
+
333
+ - audit logger
334
+ - team skills generator core
335
+ - build entrypoint
336
+
337
+ Reason:
338
+ - smallest high-value slice
339
+ - immediately removes Python from the generation path
340
+
341
+ ### Recommended Wave 2
342
+
343
+ Migrate:
344
+
345
+ - workflow validator
346
+ - library validator
347
+ - package/documentation cutover
348
+
349
+ Reason:
350
+ - depends on wave 1 parity
351
+ - lets validation migration build on the stable JS generator
352
+
353
+ ## 11. Final Recommendation
354
+
355
+ The best first implementation slice is:
356
+
357
+ 1. migrate [team-skills-platform.js](../../scripts/lib/team-skills-platform.js)
358
+ 2. migrate [build-platform-artifacts.js](../../scripts/build-platform-artifacts.js)
359
+ 3. migrate [audit-logger.js](../../scripts/lib/audit-logger.js)
360
+
361
+ This gives the repository a JS-native generation core with the least coordination risk. After that, migrate the validators and switch the user-facing commands.
362
+
363
+ ## 12. Deliverable Checklist
364
+
365
+ - [ ] JS audit logger exists and is wired into JS entrypoints
366
+ - [ ] JS generator exists and produces equivalent outputs
367
+ - [ ] JS build entrypoint replaces Python build entrypoint
368
+ - [ ] JS workflow validator exists and passes current fixtures
369
+ - [ ] JS library validator exists and replaces Python validate entrypoint
370
+ - [ ] `package.json` scripts are JS-native for build/validate
371
+ - [ ] Docs no longer direct users to Python for migrated scripts
372
+ - [ ] Deprecated Python entrypoints are removed or explicitly marked temporary