@harness-forge/cli 0.1.0

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 (1285) hide show
  1. package/.agents/skills/api-contract-review/SKILL.md +23 -0
  2. package/.agents/skills/architecture-decision-records/SKILL.md +23 -0
  3. package/.agents/skills/cloud-architect/SKILL.md +21 -0
  4. package/.agents/skills/cpp-engineering/SKILL.md +21 -0
  5. package/.agents/skills/db-migration-review/SKILL.md +23 -0
  6. package/.agents/skills/documentation-lookup/SKILL.md +8 -0
  7. package/.agents/skills/dotnet-engineering/SKILL.md +29 -0
  8. package/.agents/skills/go-engineering/SKILL.md +21 -0
  9. package/.agents/skills/java-engineering/SKILL.md +24 -0
  10. package/.agents/skills/javascript-engineering/SKILL.md +31 -0
  11. package/.agents/skills/kotlin-engineering/SKILL.md +21 -0
  12. package/.agents/skills/lua-engineering/SKILL.md +28 -0
  13. package/.agents/skills/parallel-worktree-supervisor/SKILL.md +23 -0
  14. package/.agents/skills/perl-engineering/SKILL.md +21 -0
  15. package/.agents/skills/php-engineering/SKILL.md +21 -0
  16. package/.agents/skills/powershell-engineering/SKILL.md +24 -0
  17. package/.agents/skills/python-engineering/SKILL.md +22 -0
  18. package/.agents/skills/release-readiness/SKILL.md +8 -0
  19. package/.agents/skills/repo-modernization/SKILL.md +23 -0
  20. package/.agents/skills/repo-onboarding/SKILL.md +23 -0
  21. package/.agents/skills/rust-engineering/SKILL.md +21 -0
  22. package/.agents/skills/security-scan/SKILL.md +8 -0
  23. package/.agents/skills/shell-engineering/SKILL.md +21 -0
  24. package/.agents/skills/speckit-analyze/SKILL.md +190 -0
  25. package/.agents/skills/speckit-checklist/SKILL.md +301 -0
  26. package/.agents/skills/speckit-clarify/SKILL.md +183 -0
  27. package/.agents/skills/speckit-constitution/SKILL.md +86 -0
  28. package/.agents/skills/speckit-implement/SKILL.md +204 -0
  29. package/.agents/skills/speckit-plan/SKILL.md +151 -0
  30. package/.agents/skills/speckit-specify/SKILL.md +304 -0
  31. package/.agents/skills/speckit-tasks/SKILL.md +197 -0
  32. package/.agents/skills/speckit-taskstoissues/SKILL.md +35 -0
  33. package/.agents/skills/swift-engineering/SKILL.md +21 -0
  34. package/.agents/skills/typescript-engineering/SKILL.md +28 -0
  35. package/.specify/README.md +3 -0
  36. package/.specify/extensions.yml +3 -0
  37. package/.specify/init-options.json +5 -0
  38. package/.specify/memory/constitution.md +5 -0
  39. package/.specify/scripts/powershell/check-prerequisites.ps1 +54 -0
  40. package/.specify/scripts/powershell/common.ps1 +263 -0
  41. package/.specify/scripts/powershell/create-new-feature.ps1 +23 -0
  42. package/.specify/scripts/powershell/setup-plan.ps1 +10 -0
  43. package/.specify/scripts/powershell/update-agent-context.ps1 +6 -0
  44. package/.specify/state/agent-context.md +1 -0
  45. package/.specify/state/flow-state.json +21 -0
  46. package/.specify/templates/agent-file-template.md +40 -0
  47. package/.specify/templates/checklist-template.md +5 -0
  48. package/.specify/templates/commands/plan.md +1 -0
  49. package/.specify/templates/commands/specify.md +1 -0
  50. package/.specify/templates/commands/tasks.md +1 -0
  51. package/.specify/templates/constitution-template.md +5 -0
  52. package/.specify/templates/plan-template.md +9 -0
  53. package/.specify/templates/spec-template.md +9 -0
  54. package/.specify/templates/tasks-template.md +5 -0
  55. package/AGENTS.md +75 -0
  56. package/CHANGELOG.md +15 -0
  57. package/CONTRIBUTING.md +38 -0
  58. package/LICENSE +674 -0
  59. package/README.md +386 -0
  60. package/RESEARCH-SOURCES.md +75 -0
  61. package/VALIDATION.md +32 -0
  62. package/agents/planner.md +49 -0
  63. package/commands/plan.md +41 -0
  64. package/commands/test.md +41 -0
  65. package/contexts/dev.md +25 -0
  66. package/dist/application/flow/load-flow-state.d.ts +17 -0
  67. package/dist/application/flow/load-flow-state.d.ts.map +1 -0
  68. package/dist/application/flow/load-flow-state.js +123 -0
  69. package/dist/application/flow/load-flow-state.js.map +1 -0
  70. package/dist/application/flow/save-flow-state.d.ts +3 -0
  71. package/dist/application/flow/save-flow-state.d.ts.map +1 -0
  72. package/dist/application/flow/save-flow-state.js +13 -0
  73. package/dist/application/flow/save-flow-state.js.map +1 -0
  74. package/dist/application/install/agent-manifest.d.ts +42 -0
  75. package/dist/application/install/agent-manifest.d.ts.map +1 -0
  76. package/dist/application/install/agent-manifest.js +144 -0
  77. package/dist/application/install/agent-manifest.js.map +1 -0
  78. package/dist/application/install/apply-install.d.ts +6 -0
  79. package/dist/application/install/apply-install.d.ts.map +1 -0
  80. package/dist/application/install/apply-install.js +83 -0
  81. package/dist/application/install/apply-install.js.map +1 -0
  82. package/dist/application/install/bootstrap-workspace.d.ts +33 -0
  83. package/dist/application/install/bootstrap-workspace.d.ts.map +1 -0
  84. package/dist/application/install/bootstrap-workspace.js +123 -0
  85. package/dist/application/install/bootstrap-workspace.js.map +1 -0
  86. package/dist/application/install/discover-workspace-targets.d.ts +9 -0
  87. package/dist/application/install/discover-workspace-targets.d.ts.map +1 -0
  88. package/dist/application/install/discover-workspace-targets.js +61 -0
  89. package/dist/application/install/discover-workspace-targets.js.map +1 -0
  90. package/dist/application/install/generate-guidance.d.ts +3 -0
  91. package/dist/application/install/generate-guidance.d.ts.map +1 -0
  92. package/dist/application/install/generate-guidance.js +25 -0
  93. package/dist/application/install/generate-guidance.js.map +1 -0
  94. package/dist/application/install/initialize-workspace.d.ts +16 -0
  95. package/dist/application/install/initialize-workspace.d.ts.map +1 -0
  96. package/dist/application/install/initialize-workspace.js +165 -0
  97. package/dist/application/install/initialize-workspace.js.map +1 -0
  98. package/dist/application/install/plan-install.d.ts +9 -0
  99. package/dist/application/install/plan-install.d.ts.map +1 -0
  100. package/dist/application/install/plan-install.js +123 -0
  101. package/dist/application/install/plan-install.js.map +1 -0
  102. package/dist/application/install/reconcile-state.d.ts +6 -0
  103. package/dist/application/install/reconcile-state.d.ts.map +1 -0
  104. package/dist/application/install/reconcile-state.js +39 -0
  105. package/dist/application/install/reconcile-state.js.map +1 -0
  106. package/dist/application/install/refresh-workspace-runtime.d.ts +9 -0
  107. package/dist/application/install/refresh-workspace-runtime.d.ts.map +1 -0
  108. package/dist/application/install/refresh-workspace-runtime.js +69 -0
  109. package/dist/application/install/refresh-workspace-runtime.js.map +1 -0
  110. package/dist/application/install/rewrite-installed-ai-layer.d.ts +3 -0
  111. package/dist/application/install/rewrite-installed-ai-layer.d.ts.map +1 -0
  112. package/dist/application/install/rewrite-installed-ai-layer.js +72 -0
  113. package/dist/application/install/rewrite-installed-ai-layer.js.map +1 -0
  114. package/dist/application/install/shared-runtime.d.ts +5 -0
  115. package/dist/application/install/shared-runtime.d.ts.map +1 -0
  116. package/dist/application/install/shared-runtime.js +388 -0
  117. package/dist/application/install/shared-runtime.js.map +1 -0
  118. package/dist/application/install/shell-integration.d.ts +40 -0
  119. package/dist/application/install/shell-integration.d.ts.map +1 -0
  120. package/dist/application/install/shell-integration.js +232 -0
  121. package/dist/application/install/shell-integration.js.map +1 -0
  122. package/dist/application/install/validate-environment.d.ts +2 -0
  123. package/dist/application/install/validate-environment.d.ts.map +1 -0
  124. package/dist/application/install/validate-environment.js +19 -0
  125. package/dist/application/install/validate-environment.js.map +1 -0
  126. package/dist/application/install/workspace-launcher.d.ts +7 -0
  127. package/dist/application/install/workspace-launcher.d.ts.map +1 -0
  128. package/dist/application/install/workspace-launcher.js +45 -0
  129. package/dist/application/install/workspace-launcher.js.map +1 -0
  130. package/dist/application/maintenance/audit-install.d.ts +17 -0
  131. package/dist/application/maintenance/audit-install.d.ts.map +1 -0
  132. package/dist/application/maintenance/audit-install.js +31 -0
  133. package/dist/application/maintenance/audit-install.js.map +1 -0
  134. package/dist/application/maintenance/diff-install.d.ts +7 -0
  135. package/dist/application/maintenance/diff-install.d.ts.map +1 -0
  136. package/dist/application/maintenance/diff-install.js +20 -0
  137. package/dist/application/maintenance/diff-install.js.map +1 -0
  138. package/dist/application/maintenance/doctor-workspace.d.ts +6 -0
  139. package/dist/application/maintenance/doctor-workspace.d.ts.map +1 -0
  140. package/dist/application/maintenance/doctor-workspace.js +12 -0
  141. package/dist/application/maintenance/doctor-workspace.js.map +1 -0
  142. package/dist/application/maintenance/prune-install.d.ts +5 -0
  143. package/dist/application/maintenance/prune-install.d.ts.map +1 -0
  144. package/dist/application/maintenance/prune-install.js +30 -0
  145. package/dist/application/maintenance/prune-install.js.map +1 -0
  146. package/dist/application/maintenance/sync-install.d.ts +6 -0
  147. package/dist/application/maintenance/sync-install.d.ts.map +1 -0
  148. package/dist/application/maintenance/sync-install.js +24 -0
  149. package/dist/application/maintenance/sync-install.js.map +1 -0
  150. package/dist/application/maintenance/upgrade-surface.d.ts +7 -0
  151. package/dist/application/maintenance/upgrade-surface.d.ts.map +1 -0
  152. package/dist/application/maintenance/upgrade-surface.js +18 -0
  153. package/dist/application/maintenance/upgrade-surface.js.map +1 -0
  154. package/dist/application/migration/scan-reference-install.d.ts +9 -0
  155. package/dist/application/migration/scan-reference-install.d.ts.map +1 -0
  156. package/dist/application/migration/scan-reference-install.js +17 -0
  157. package/dist/application/migration/scan-reference-install.js.map +1 -0
  158. package/dist/application/planning/resolve-bundles.d.ts +8 -0
  159. package/dist/application/planning/resolve-bundles.d.ts.map +1 -0
  160. package/dist/application/planning/resolve-bundles.js +40 -0
  161. package/dist/application/planning/resolve-bundles.js.map +1 -0
  162. package/dist/application/recommendations/recommend-bundles.d.ts +2 -0
  163. package/dist/application/recommendations/recommend-bundles.d.ts.map +1 -0
  164. package/dist/application/recommendations/recommend-bundles.js +89 -0
  165. package/dist/application/recommendations/recommend-bundles.js.map +1 -0
  166. package/dist/application/recommendations/recommend-from-intelligence.d.ts +3 -0
  167. package/dist/application/recommendations/recommend-from-intelligence.d.ts.map +1 -0
  168. package/dist/application/recommendations/recommend-from-intelligence.js +38 -0
  169. package/dist/application/recommendations/recommend-from-intelligence.js.map +1 -0
  170. package/dist/application/recommendations/recommend-templates.d.ts +2 -0
  171. package/dist/application/recommendations/recommend-templates.d.ts.map +1 -0
  172. package/dist/application/recommendations/recommend-templates.js +11 -0
  173. package/dist/application/recommendations/recommend-templates.js.map +1 -0
  174. package/dist/application/recursive/build-environment.d.ts +12 -0
  175. package/dist/application/recursive/build-environment.d.ts.map +1 -0
  176. package/dist/application/recursive/build-environment.js +91 -0
  177. package/dist/application/recursive/build-environment.js.map +1 -0
  178. package/dist/application/recursive/compact-session.d.ts +6 -0
  179. package/dist/application/recursive/compact-session.d.ts.map +1 -0
  180. package/dist/application/recursive/compact-session.js +10 -0
  181. package/dist/application/recursive/compact-session.js.map +1 -0
  182. package/dist/application/recursive/finalize-session.d.ts +6 -0
  183. package/dist/application/recursive/finalize-session.d.ts.map +1 -0
  184. package/dist/application/recursive/finalize-session.js +10 -0
  185. package/dist/application/recursive/finalize-session.js.map +1 -0
  186. package/dist/application/recursive/plan-task.d.ts +16 -0
  187. package/dist/application/recursive/plan-task.d.ts.map +1 -0
  188. package/dist/application/recursive/plan-task.js +115 -0
  189. package/dist/application/recursive/plan-task.js.map +1 -0
  190. package/dist/application/runtime/assess-architecture-significance.d.ts +13 -0
  191. package/dist/application/runtime/assess-architecture-significance.d.ts.map +1 -0
  192. package/dist/application/runtime/assess-architecture-significance.js +65 -0
  193. package/dist/application/runtime/assess-architecture-significance.js.map +1 -0
  194. package/dist/application/runtime/command-catalog.d.ts +17 -0
  195. package/dist/application/runtime/command-catalog.d.ts.map +1 -0
  196. package/dist/application/runtime/command-catalog.js +99 -0
  197. package/dist/application/runtime/command-catalog.js.map +1 -0
  198. package/dist/application/runtime/create-asr-record.d.ts +18 -0
  199. package/dist/application/runtime/create-asr-record.d.ts.map +1 -0
  200. package/dist/application/runtime/create-asr-record.js +105 -0
  201. package/dist/application/runtime/create-asr-record.js.map +1 -0
  202. package/dist/application/runtime/decision-runtime-store.d.ts +13 -0
  203. package/dist/application/runtime/decision-runtime-store.d.ts.map +1 -0
  204. package/dist/application/runtime/decision-runtime-store.js +60 -0
  205. package/dist/application/runtime/decision-runtime-store.js.map +1 -0
  206. package/dist/application/runtime/derive-impact-analysis.d.ts +5 -0
  207. package/dist/application/runtime/derive-impact-analysis.d.ts.map +1 -0
  208. package/dist/application/runtime/derive-impact-analysis.js +78 -0
  209. package/dist/application/runtime/derive-impact-analysis.js.map +1 -0
  210. package/dist/application/runtime/select-files-of-interest.d.ts +29 -0
  211. package/dist/application/runtime/select-files-of-interest.d.ts.map +1 -0
  212. package/dist/application/runtime/select-files-of-interest.js +162 -0
  213. package/dist/application/runtime/select-files-of-interest.js.map +1 -0
  214. package/dist/application/runtime/task-runtime-store.d.ts +37 -0
  215. package/dist/application/runtime/task-runtime-store.d.ts.map +1 -0
  216. package/dist/application/runtime/task-runtime-store.js +84 -0
  217. package/dist/application/runtime/task-runtime-store.js.map +1 -0
  218. package/dist/application/validation/validate-templates.d.ts +19 -0
  219. package/dist/application/validation/validate-templates.d.ts.map +1 -0
  220. package/dist/application/validation/validate-templates.js +142 -0
  221. package/dist/application/validation/validate-templates.js.map +1 -0
  222. package/dist/cli/commands/audit.d.ts +3 -0
  223. package/dist/cli/commands/audit.d.ts.map +1 -0
  224. package/dist/cli/commands/audit.js +37 -0
  225. package/dist/cli/commands/audit.js.map +1 -0
  226. package/dist/cli/commands/catalog.d.ts +3 -0
  227. package/dist/cli/commands/catalog.d.ts.map +1 -0
  228. package/dist/cli/commands/catalog.js +142 -0
  229. package/dist/cli/commands/catalog.js.map +1 -0
  230. package/dist/cli/commands/commands.d.ts +3 -0
  231. package/dist/cli/commands/commands.d.ts.map +1 -0
  232. package/dist/cli/commands/commands.js +32 -0
  233. package/dist/cli/commands/commands.js.map +1 -0
  234. package/dist/cli/commands/diff-install.d.ts +3 -0
  235. package/dist/cli/commands/diff-install.d.ts.map +1 -0
  236. package/dist/cli/commands/diff-install.js +31 -0
  237. package/dist/cli/commands/diff-install.js.map +1 -0
  238. package/dist/cli/commands/doctor.d.ts +3 -0
  239. package/dist/cli/commands/doctor.d.ts.map +1 -0
  240. package/dist/cli/commands/doctor.js +33 -0
  241. package/dist/cli/commands/doctor.js.map +1 -0
  242. package/dist/cli/commands/export.d.ts +3 -0
  243. package/dist/cli/commands/export.d.ts.map +1 -0
  244. package/dist/cli/commands/export.js +37 -0
  245. package/dist/cli/commands/export.js.map +1 -0
  246. package/dist/cli/commands/flow.d.ts +3 -0
  247. package/dist/cli/commands/flow.d.ts.map +1 -0
  248. package/dist/cli/commands/flow.js +27 -0
  249. package/dist/cli/commands/flow.js.map +1 -0
  250. package/dist/cli/commands/init.d.ts +3 -0
  251. package/dist/cli/commands/init.d.ts.map +1 -0
  252. package/dist/cli/commands/init.js +91 -0
  253. package/dist/cli/commands/init.js.map +1 -0
  254. package/dist/cli/commands/install.d.ts +3 -0
  255. package/dist/cli/commands/install.d.ts.map +1 -0
  256. package/dist/cli/commands/install.js +119 -0
  257. package/dist/cli/commands/install.js.map +1 -0
  258. package/dist/cli/commands/intelligence.d.ts +3 -0
  259. package/dist/cli/commands/intelligence.d.ts.map +1 -0
  260. package/dist/cli/commands/intelligence.js +63 -0
  261. package/dist/cli/commands/intelligence.js.map +1 -0
  262. package/dist/cli/commands/maintenance.d.ts +3 -0
  263. package/dist/cli/commands/maintenance.d.ts.map +1 -0
  264. package/dist/cli/commands/maintenance.js +81 -0
  265. package/dist/cli/commands/maintenance.js.map +1 -0
  266. package/dist/cli/commands/observability.d.ts +3 -0
  267. package/dist/cli/commands/observability.d.ts.map +1 -0
  268. package/dist/cli/commands/observability.js +33 -0
  269. package/dist/cli/commands/observability.js.map +1 -0
  270. package/dist/cli/commands/pack.d.ts +3 -0
  271. package/dist/cli/commands/pack.d.ts.map +1 -0
  272. package/dist/cli/commands/pack.js +25 -0
  273. package/dist/cli/commands/pack.js.map +1 -0
  274. package/dist/cli/commands/parallel.d.ts +3 -0
  275. package/dist/cli/commands/parallel.d.ts.map +1 -0
  276. package/dist/cli/commands/parallel.js +45 -0
  277. package/dist/cli/commands/parallel.js.map +1 -0
  278. package/dist/cli/commands/prune.d.ts +3 -0
  279. package/dist/cli/commands/prune.d.ts.map +1 -0
  280. package/dist/cli/commands/prune.js +25 -0
  281. package/dist/cli/commands/prune.js.map +1 -0
  282. package/dist/cli/commands/recommend.d.ts +3 -0
  283. package/dist/cli/commands/recommend.d.ts.map +1 -0
  284. package/dist/cli/commands/recommend.js +25 -0
  285. package/dist/cli/commands/recommend.js.map +1 -0
  286. package/dist/cli/commands/recursive.d.ts +3 -0
  287. package/dist/cli/commands/recursive.d.ts.map +1 -0
  288. package/dist/cli/commands/recursive.js +138 -0
  289. package/dist/cli/commands/recursive.js.map +1 -0
  290. package/dist/cli/commands/refresh.d.ts +3 -0
  291. package/dist/cli/commands/refresh.d.ts.map +1 -0
  292. package/dist/cli/commands/refresh.js +33 -0
  293. package/dist/cli/commands/refresh.js.map +1 -0
  294. package/dist/cli/commands/review.d.ts +3 -0
  295. package/dist/cli/commands/review.d.ts.map +1 -0
  296. package/dist/cli/commands/review.js +53 -0
  297. package/dist/cli/commands/review.js.map +1 -0
  298. package/dist/cli/commands/script-runner.d.ts +2 -0
  299. package/dist/cli/commands/script-runner.d.ts.map +1 -0
  300. package/dist/cli/commands/script-runner.js +21 -0
  301. package/dist/cli/commands/script-runner.js.map +1 -0
  302. package/dist/cli/commands/shell.d.ts +3 -0
  303. package/dist/cli/commands/shell.d.ts.map +1 -0
  304. package/dist/cli/commands/shell.js +91 -0
  305. package/dist/cli/commands/shell.js.map +1 -0
  306. package/dist/cli/commands/status.d.ts +3 -0
  307. package/dist/cli/commands/status.d.ts.map +1 -0
  308. package/dist/cli/commands/status.js +31 -0
  309. package/dist/cli/commands/status.js.map +1 -0
  310. package/dist/cli/commands/sync.d.ts +3 -0
  311. package/dist/cli/commands/sync.d.ts.map +1 -0
  312. package/dist/cli/commands/sync.js +25 -0
  313. package/dist/cli/commands/sync.js.map +1 -0
  314. package/dist/cli/commands/target.d.ts +3 -0
  315. package/dist/cli/commands/target.d.ts.map +1 -0
  316. package/dist/cli/commands/target.js +78 -0
  317. package/dist/cli/commands/target.js.map +1 -0
  318. package/dist/cli/commands/task.d.ts +3 -0
  319. package/dist/cli/commands/task.d.ts.map +1 -0
  320. package/dist/cli/commands/task.js +57 -0
  321. package/dist/cli/commands/task.js.map +1 -0
  322. package/dist/cli/commands/template.d.ts +3 -0
  323. package/dist/cli/commands/template.d.ts.map +1 -0
  324. package/dist/cli/commands/template.js +81 -0
  325. package/dist/cli/commands/template.js.map +1 -0
  326. package/dist/cli/commands/upgrade-surface.d.ts +3 -0
  327. package/dist/cli/commands/upgrade-surface.d.ts.map +1 -0
  328. package/dist/cli/commands/upgrade-surface.js +24 -0
  329. package/dist/cli/commands/upgrade-surface.js.map +1 -0
  330. package/dist/cli/index.d.ts +3 -0
  331. package/dist/cli/index.d.ts.map +1 -0
  332. package/dist/cli/index.js +86 -0
  333. package/dist/cli/index.js.map +1 -0
  334. package/dist/cli/interactive/default-recommendations.d.ts +9 -0
  335. package/dist/cli/interactive/default-recommendations.d.ts.map +1 -0
  336. package/dist/cli/interactive/default-recommendations.js +19 -0
  337. package/dist/cli/interactive/default-recommendations.js.map +1 -0
  338. package/dist/cli/interactive/entry-router.d.ts +5 -0
  339. package/dist/cli/interactive/entry-router.d.ts.map +1 -0
  340. package/dist/cli/interactive/entry-router.js +30 -0
  341. package/dist/cli/interactive/entry-router.js.map +1 -0
  342. package/dist/cli/interactive/invocation-context.d.ts +16 -0
  343. package/dist/cli/interactive/invocation-context.d.ts.map +1 -0
  344. package/dist/cli/interactive/invocation-context.js +33 -0
  345. package/dist/cli/interactive/invocation-context.js.map +1 -0
  346. package/dist/cli/interactive/onboarding-flow.d.ts +3 -0
  347. package/dist/cli/interactive/onboarding-flow.d.ts.map +1 -0
  348. package/dist/cli/interactive/onboarding-flow.js +81 -0
  349. package/dist/cli/interactive/onboarding-flow.js.map +1 -0
  350. package/dist/cli/interactive/project-hub.d.ts +3 -0
  351. package/dist/cli/interactive/project-hub.d.ts.map +1 -0
  352. package/dist/cli/interactive/project-hub.js +159 -0
  353. package/dist/cli/interactive/project-hub.js.map +1 -0
  354. package/dist/cli/interactive/prompt-io.d.ts +23 -0
  355. package/dist/cli/interactive/prompt-io.d.ts.map +1 -0
  356. package/dist/cli/interactive/prompt-io.js +144 -0
  357. package/dist/cli/interactive/prompt-io.js.map +1 -0
  358. package/dist/cli/interactive/prompts/folder-selection.d.ts +3 -0
  359. package/dist/cli/interactive/prompts/folder-selection.d.ts.map +1 -0
  360. package/dist/cli/interactive/prompts/folder-selection.js +25 -0
  361. package/dist/cli/interactive/prompts/folder-selection.js.map +1 -0
  362. package/dist/cli/interactive/prompts/module-selection.d.ts +4 -0
  363. package/dist/cli/interactive/prompts/module-selection.d.ts.map +1 -0
  364. package/dist/cli/interactive/prompts/module-selection.js +21 -0
  365. package/dist/cli/interactive/prompts/module-selection.js.map +1 -0
  366. package/dist/cli/interactive/prompts/setup-profile.d.ts +4 -0
  367. package/dist/cli/interactive/prompts/setup-profile.d.ts.map +1 -0
  368. package/dist/cli/interactive/prompts/setup-profile.js +20 -0
  369. package/dist/cli/interactive/prompts/setup-profile.js.map +1 -0
  370. package/dist/cli/interactive/prompts/target-selection.d.ts +3 -0
  371. package/dist/cli/interactive/prompts/target-selection.d.ts.map +1 -0
  372. package/dist/cli/interactive/prompts/target-selection.js +28 -0
  373. package/dist/cli/interactive/prompts/target-selection.js.map +1 -0
  374. package/dist/cli/interactive/recovery-notices.d.ts +3 -0
  375. package/dist/cli/interactive/recovery-notices.d.ts.map +1 -0
  376. package/dist/cli/interactive/recovery-notices.js +13 -0
  377. package/dist/cli/interactive/recovery-notices.js.map +1 -0
  378. package/dist/cli/interactive/renderers/choice-list.d.ts +2 -0
  379. package/dist/cli/interactive/renderers/choice-list.d.ts.map +1 -0
  380. package/dist/cli/interactive/renderers/choice-list.js +9 -0
  381. package/dist/cli/interactive/renderers/choice-list.js.map +1 -0
  382. package/dist/cli/interactive/renderers/completion-screen.d.ts +4 -0
  383. package/dist/cli/interactive/renderers/completion-screen.d.ts.map +1 -0
  384. package/dist/cli/interactive/renderers/completion-screen.js +16 -0
  385. package/dist/cli/interactive/renderers/completion-screen.js.map +1 -0
  386. package/dist/cli/interactive/renderers/hub-screen.d.ts +3 -0
  387. package/dist/cli/interactive/renderers/hub-screen.d.ts.map +1 -0
  388. package/dist/cli/interactive/renderers/hub-screen.js +12 -0
  389. package/dist/cli/interactive/renderers/hub-screen.js.map +1 -0
  390. package/dist/cli/interactive/renderers/progress.d.ts +3 -0
  391. package/dist/cli/interactive/renderers/progress.d.ts.map +1 -0
  392. package/dist/cli/interactive/renderers/progress.js +5 -0
  393. package/dist/cli/interactive/renderers/progress.js.map +1 -0
  394. package/dist/cli/interactive/renderers/screen-layout.d.ts +9 -0
  395. package/dist/cli/interactive/renderers/screen-layout.d.ts.map +1 -0
  396. package/dist/cli/interactive/renderers/screen-layout.js +27 -0
  397. package/dist/cli/interactive/renderers/screen-layout.js.map +1 -0
  398. package/dist/cli/interactive/renderers/step-frame.d.ts +3 -0
  399. package/dist/cli/interactive/renderers/step-frame.d.ts.map +1 -0
  400. package/dist/cli/interactive/renderers/step-frame.js +7 -0
  401. package/dist/cli/interactive/renderers/step-frame.js.map +1 -0
  402. package/dist/cli/interactive/renderers/text-style.d.ts +10 -0
  403. package/dist/cli/interactive/renderers/text-style.d.ts.map +1 -0
  404. package/dist/cli/interactive/renderers/text-style.js +52 -0
  405. package/dist/cli/interactive/renderers/text-style.js.map +1 -0
  406. package/dist/cli/interactive/renderers/welcome-screen.d.ts +3 -0
  407. package/dist/cli/interactive/renderers/welcome-screen.d.ts.map +1 -0
  408. package/dist/cli/interactive/renderers/welcome-screen.js +22 -0
  409. package/dist/cli/interactive/renderers/welcome-screen.js.map +1 -0
  410. package/dist/cli/interactive/review-plan.d.ts +19 -0
  411. package/dist/cli/interactive/review-plan.d.ts.map +1 -0
  412. package/dist/cli/interactive/review-plan.js +151 -0
  413. package/dist/cli/interactive/review-plan.js.map +1 -0
  414. package/dist/cli/interactive/review-summary.d.ts +4 -0
  415. package/dist/cli/interactive/review-summary.d.ts.map +1 -0
  416. package/dist/cli/interactive/review-summary.js +20 -0
  417. package/dist/cli/interactive/review-summary.js.map +1 -0
  418. package/dist/cli/interactive/session-state.d.ts +35 -0
  419. package/dist/cli/interactive/session-state.d.ts.map +1 -0
  420. package/dist/cli/interactive/session-state.js +11 -0
  421. package/dist/cli/interactive/session-state.js.map +1 -0
  422. package/dist/cli/interactive/setup-intent.d.ts +32 -0
  423. package/dist/cli/interactive/setup-intent.d.ts.map +1 -0
  424. package/dist/cli/interactive/setup-intent.js +54 -0
  425. package/dist/cli/interactive/setup-intent.js.map +1 -0
  426. package/dist/cli/interactive/terminal-capabilities.d.ts +20 -0
  427. package/dist/cli/interactive/terminal-capabilities.d.ts.map +1 -0
  428. package/dist/cli/interactive/terminal-capabilities.js +69 -0
  429. package/dist/cli/interactive/terminal-capabilities.js.map +1 -0
  430. package/dist/domain/capabilities/capability-record.d.ts +25 -0
  431. package/dist/domain/capabilities/capability-record.d.ts.map +1 -0
  432. package/dist/domain/capabilities/capability-record.js +2 -0
  433. package/dist/domain/capabilities/capability-record.js.map +1 -0
  434. package/dist/domain/capabilities/capability-taxonomy.d.ts +11 -0
  435. package/dist/domain/capabilities/capability-taxonomy.d.ts.map +1 -0
  436. package/dist/domain/capabilities/capability-taxonomy.js +2 -0
  437. package/dist/domain/capabilities/capability-taxonomy.js.map +1 -0
  438. package/dist/domain/intelligence/instruction-plan.d.ts +26 -0
  439. package/dist/domain/intelligence/instruction-plan.d.ts.map +1 -0
  440. package/dist/domain/intelligence/instruction-plan.js +2 -0
  441. package/dist/domain/intelligence/instruction-plan.js.map +1 -0
  442. package/dist/domain/intelligence/repo-intelligence.d.ts +1007 -0
  443. package/dist/domain/intelligence/repo-intelligence.d.ts.map +1 -0
  444. package/dist/domain/intelligence/repo-intelligence.js +102 -0
  445. package/dist/domain/intelligence/repo-intelligence.js.map +1 -0
  446. package/dist/domain/intelligence/repo-map.d.ts +30 -0
  447. package/dist/domain/intelligence/repo-map.d.ts.map +1 -0
  448. package/dist/domain/intelligence/repo-map.js +2 -0
  449. package/dist/domain/intelligence/repo-map.js.map +1 -0
  450. package/dist/domain/manifests/index.d.ts +154 -0
  451. package/dist/domain/manifests/index.d.ts.map +1 -0
  452. package/dist/domain/manifests/index.js +37 -0
  453. package/dist/domain/manifests/index.js.map +1 -0
  454. package/dist/domain/observability/benchmark-expectation.d.ts +11 -0
  455. package/dist/domain/observability/benchmark-expectation.d.ts.map +1 -0
  456. package/dist/domain/observability/benchmark-expectation.js +2 -0
  457. package/dist/domain/observability/benchmark-expectation.js.map +1 -0
  458. package/dist/domain/observability/event.d.ts +17 -0
  459. package/dist/domain/observability/event.d.ts.map +1 -0
  460. package/dist/domain/observability/event.js +2 -0
  461. package/dist/domain/observability/event.js.map +1 -0
  462. package/dist/domain/observability/summary.d.ts +10 -0
  463. package/dist/domain/observability/summary.d.ts.map +1 -0
  464. package/dist/domain/observability/summary.js +2 -0
  465. package/dist/domain/observability/summary.js.map +1 -0
  466. package/dist/domain/operations/install-plan.d.ts +85 -0
  467. package/dist/domain/operations/install-plan.d.ts.map +1 -0
  468. package/dist/domain/operations/install-plan.js +2 -0
  469. package/dist/domain/operations/install-plan.js.map +1 -0
  470. package/dist/domain/parallel/merge-readiness.d.ts +10 -0
  471. package/dist/domain/parallel/merge-readiness.d.ts.map +1 -0
  472. package/dist/domain/parallel/merge-readiness.js +2 -0
  473. package/dist/domain/parallel/merge-readiness.js.map +1 -0
  474. package/dist/domain/parallel/parallel-plan.d.ts +24 -0
  475. package/dist/domain/parallel/parallel-plan.d.ts.map +1 -0
  476. package/dist/domain/parallel/parallel-plan.js +2 -0
  477. package/dist/domain/parallel/parallel-plan.js.map +1 -0
  478. package/dist/domain/parallel/shard-state.d.ts +11 -0
  479. package/dist/domain/parallel/shard-state.d.ts.map +1 -0
  480. package/dist/domain/parallel/shard-state.js +2 -0
  481. package/dist/domain/parallel/shard-state.js.map +1 -0
  482. package/dist/domain/recursive/adr-candidate.d.ts +45 -0
  483. package/dist/domain/recursive/adr-candidate.d.ts.map +1 -0
  484. package/dist/domain/recursive/adr-candidate.js +20 -0
  485. package/dist/domain/recursive/adr-candidate.js.map +1 -0
  486. package/dist/domain/recursive/asr.d.ts +41 -0
  487. package/dist/domain/recursive/asr.d.ts.map +1 -0
  488. package/dist/domain/recursive/asr.js +19 -0
  489. package/dist/domain/recursive/asr.js.map +1 -0
  490. package/dist/domain/recursive/budget.d.ts +47 -0
  491. package/dist/domain/recursive/budget.d.ts.map +1 -0
  492. package/dist/domain/recursive/budget.js +41 -0
  493. package/dist/domain/recursive/budget.js.map +1 -0
  494. package/dist/domain/recursive/session-summary.d.ts +56 -0
  495. package/dist/domain/recursive/session-summary.d.ts.map +1 -0
  496. package/dist/domain/recursive/session-summary.js +21 -0
  497. package/dist/domain/recursive/session-summary.js.map +1 -0
  498. package/dist/domain/recursive/session.d.ts +181 -0
  499. package/dist/domain/recursive/session.d.ts.map +1 -0
  500. package/dist/domain/recursive/session.js +41 -0
  501. package/dist/domain/recursive/session.js.map +1 -0
  502. package/dist/domain/recursive/template-registry.d.ts +83 -0
  503. package/dist/domain/recursive/template-registry.d.ts.map +1 -0
  504. package/dist/domain/recursive/template-registry.js +28 -0
  505. package/dist/domain/recursive/template-registry.js.map +1 -0
  506. package/dist/domain/recursive/trace-event.d.ts +61 -0
  507. package/dist/domain/recursive/trace-event.d.ts.map +1 -0
  508. package/dist/domain/recursive/trace-event.js +36 -0
  509. package/dist/domain/recursive/trace-event.js.map +1 -0
  510. package/dist/domain/runtime/architecture-significance.d.ts +35 -0
  511. package/dist/domain/runtime/architecture-significance.d.ts.map +1 -0
  512. package/dist/domain/runtime/architecture-significance.js +20 -0
  513. package/dist/domain/runtime/architecture-significance.js.map +1 -0
  514. package/dist/domain/runtime/decision-coverage-summary.d.ts +29 -0
  515. package/dist/domain/runtime/decision-coverage-summary.d.ts.map +1 -0
  516. package/dist/domain/runtime/decision-coverage-summary.js +14 -0
  517. package/dist/domain/runtime/decision-coverage-summary.js.map +1 -0
  518. package/dist/domain/runtime/decision-record.d.ts +482 -0
  519. package/dist/domain/runtime/decision-record.d.ts.map +1 -0
  520. package/dist/domain/runtime/decision-record.js +78 -0
  521. package/dist/domain/runtime/decision-record.js.map +1 -0
  522. package/dist/domain/runtime/file-interest.d.ts +148 -0
  523. package/dist/domain/runtime/file-interest.d.ts.map +1 -0
  524. package/dist/domain/runtime/file-interest.js +42 -0
  525. package/dist/domain/runtime/file-interest.js.map +1 -0
  526. package/dist/domain/runtime/impact-analysis.d.ts +122 -0
  527. package/dist/domain/runtime/impact-analysis.d.ts.map +1 -0
  528. package/dist/domain/runtime/impact-analysis.js +24 -0
  529. package/dist/domain/runtime/impact-analysis.js.map +1 -0
  530. package/dist/domain/runtime/task-pack.d.ts +278 -0
  531. package/dist/domain/runtime/task-pack.d.ts.map +1 -0
  532. package/dist/domain/runtime/task-pack.js +61 -0
  533. package/dist/domain/runtime/task-pack.js.map +1 -0
  534. package/dist/domain/runtime/template-registry.d.ts +100 -0
  535. package/dist/domain/runtime/template-registry.d.ts.map +1 -0
  536. package/dist/domain/runtime/template-registry.js +35 -0
  537. package/dist/domain/runtime/template-registry.js.map +1 -0
  538. package/dist/domain/runtime/working-memory.d.ts +44 -0
  539. package/dist/domain/runtime/working-memory.d.ts.map +1 -0
  540. package/dist/domain/runtime/working-memory.js +19 -0
  541. package/dist/domain/runtime/working-memory.js.map +1 -0
  542. package/dist/domain/state/install-state.d.ts +28 -0
  543. package/dist/domain/state/install-state.d.ts.map +1 -0
  544. package/dist/domain/state/install-state.js +15 -0
  545. package/dist/domain/state/install-state.js.map +1 -0
  546. package/dist/domain/targets/adapter.d.ts +18 -0
  547. package/dist/domain/targets/adapter.d.ts.map +1 -0
  548. package/dist/domain/targets/adapter.js +16 -0
  549. package/dist/domain/targets/adapter.js.map +1 -0
  550. package/dist/infrastructure/diagnostics/recommendation-reporter.d.ts +3 -0
  551. package/dist/infrastructure/diagnostics/recommendation-reporter.d.ts.map +1 -0
  552. package/dist/infrastructure/diagnostics/recommendation-reporter.js +44 -0
  553. package/dist/infrastructure/diagnostics/recommendation-reporter.js.map +1 -0
  554. package/dist/infrastructure/diagnostics/reporter.d.ts +6 -0
  555. package/dist/infrastructure/diagnostics/reporter.d.ts.map +1 -0
  556. package/dist/infrastructure/diagnostics/reporter.js +35 -0
  557. package/dist/infrastructure/diagnostics/reporter.js.map +1 -0
  558. package/dist/infrastructure/filesystem/apply-operation.d.ts +3 -0
  559. package/dist/infrastructure/filesystem/apply-operation.d.ts.map +1 -0
  560. package/dist/infrastructure/filesystem/apply-operation.js +75 -0
  561. package/dist/infrastructure/filesystem/apply-operation.js.map +1 -0
  562. package/dist/infrastructure/filesystem/normalize-target-path.d.ts +2 -0
  563. package/dist/infrastructure/filesystem/normalize-target-path.d.ts.map +1 -0
  564. package/dist/infrastructure/filesystem/normalize-target-path.js +11 -0
  565. package/dist/infrastructure/filesystem/normalize-target-path.js.map +1 -0
  566. package/dist/infrastructure/observability/local-metrics-store.d.ts +18 -0
  567. package/dist/infrastructure/observability/local-metrics-store.d.ts.map +1 -0
  568. package/dist/infrastructure/observability/local-metrics-store.js +35 -0
  569. package/dist/infrastructure/observability/local-metrics-store.js.map +1 -0
  570. package/dist/infrastructure/recursive/session-store.d.ts +45 -0
  571. package/dist/infrastructure/recursive/session-store.d.ts.map +1 -0
  572. package/dist/infrastructure/recursive/session-store.js +62 -0
  573. package/dist/infrastructure/recursive/session-store.js.map +1 -0
  574. package/dist/infrastructure/recursive/template-loader.d.ts +3 -0
  575. package/dist/infrastructure/recursive/template-loader.d.ts.map +1 -0
  576. package/dist/infrastructure/recursive/template-loader.js +19 -0
  577. package/dist/infrastructure/recursive/template-loader.js.map +1 -0
  578. package/dist/infrastructure/recursive/trace-logger.d.ts +3 -0
  579. package/dist/infrastructure/recursive/trace-logger.d.ts.map +1 -0
  580. package/dist/infrastructure/recursive/trace-logger.js +8 -0
  581. package/dist/infrastructure/recursive/trace-logger.js.map +1 -0
  582. package/dist/shared/constants.d.ts +97 -0
  583. package/dist/shared/constants.d.ts.map +1 -0
  584. package/dist/shared/constants.js +111 -0
  585. package/dist/shared/constants.js.map +1 -0
  586. package/dist/shared/errors.d.ts +8 -0
  587. package/dist/shared/errors.d.ts.map +1 -0
  588. package/dist/shared/errors.js +14 -0
  589. package/dist/shared/errors.js.map +1 -0
  590. package/dist/shared/fs.d.ts +8 -0
  591. package/dist/shared/fs.d.ts.map +1 -0
  592. package/dist/shared/fs.js +35 -0
  593. package/dist/shared/fs.js.map +1 -0
  594. package/dist/shared/index.d.ts +5 -0
  595. package/dist/shared/index.d.ts.map +1 -0
  596. package/dist/shared/index.js +5 -0
  597. package/dist/shared/index.js.map +1 -0
  598. package/dist/shared/seeded-knowledge.d.ts +8 -0
  599. package/dist/shared/seeded-knowledge.d.ts.map +1 -0
  600. package/dist/shared/seeded-knowledge.js +49 -0
  601. package/dist/shared/seeded-knowledge.js.map +1 -0
  602. package/docs/agents.md +45 -0
  603. package/docs/authoring/engineering-assistant-port.md +108 -0
  604. package/docs/authoring/enhanced-skill-import.md +89 -0
  605. package/docs/authoring/skills.md +53 -0
  606. package/docs/benchmark-scenarios.md +29 -0
  607. package/docs/catalog/framework-packs.md +22 -0
  608. package/docs/catalog/frameworks/aspnet-core.md +18 -0
  609. package/docs/catalog/frameworks/django.md +18 -0
  610. package/docs/catalog/frameworks/express.md +18 -0
  611. package/docs/catalog/frameworks/fastapi.md +18 -0
  612. package/docs/catalog/frameworks/gin.md +18 -0
  613. package/docs/catalog/frameworks/ktor.md +18 -0
  614. package/docs/catalog/frameworks/laravel.md +14 -0
  615. package/docs/catalog/frameworks/nextjs.md +14 -0
  616. package/docs/catalog/frameworks/react.md +18 -0
  617. package/docs/catalog/frameworks/spring-boot.md +18 -0
  618. package/docs/catalog/frameworks/symfony.md +18 -0
  619. package/docs/catalog/frameworks/vite.md +18 -0
  620. package/docs/catalog/language-packs.md +39 -0
  621. package/docs/catalog/languages/cpp.md +25 -0
  622. package/docs/catalog/languages/dotnet.md +59 -0
  623. package/docs/catalog/languages/go.md +29 -0
  624. package/docs/catalog/languages/java.md +60 -0
  625. package/docs/catalog/languages/kotlin.md +29 -0
  626. package/docs/catalog/languages/lua.md +59 -0
  627. package/docs/catalog/languages/perl.md +25 -0
  628. package/docs/catalog/languages/php.md +30 -0
  629. package/docs/catalog/languages/powershell.md +59 -0
  630. package/docs/catalog/languages/python.md +30 -0
  631. package/docs/catalog/languages/rust.md +25 -0
  632. package/docs/catalog/languages/shell.md +25 -0
  633. package/docs/catalog/languages/swift.md +25 -0
  634. package/docs/catalog/languages/typescript.md +60 -0
  635. package/docs/commands.md +202 -0
  636. package/docs/content-architecture.md +3 -0
  637. package/docs/flow-orchestration/parallel-execution.md +7 -0
  638. package/docs/flow-orchestration.md +63 -0
  639. package/docs/generated-artifacts.md +129 -0
  640. package/docs/hooks/catalog.md +44 -0
  641. package/docs/install/targets.md +29 -0
  642. package/docs/installation.md +98 -0
  643. package/docs/languages.md +31 -0
  644. package/docs/maintenance-lifecycle.md +62 -0
  645. package/docs/manifests.md +16 -0
  646. package/docs/migration/reference-project.md +18 -0
  647. package/docs/observability/benchmark-authoring.md +6 -0
  648. package/docs/observability/eval-model.md +7 -0
  649. package/docs/observability/event-taxonomy.md +12 -0
  650. package/docs/observability.md +44 -0
  651. package/docs/pack-authoring.md +19 -0
  652. package/docs/parallel-worktrees.md +6 -0
  653. package/docs/profile-guide.md +63 -0
  654. package/docs/quality-gates.md +56 -0
  655. package/docs/quickstart.md +41 -0
  656. package/docs/release-process.md +30 -0
  657. package/docs/repo-cartography.md +12 -0
  658. package/docs/style-guides/agent-style-guide.md +21 -0
  659. package/docs/style-guides/command-style-guide.md +21 -0
  660. package/docs/style-guides/rule-style-guide.md +20 -0
  661. package/docs/target-support-matrix.md +73 -0
  662. package/docs/targets/capability-families.md +13 -0
  663. package/docs/targets/translation-vs-emulation.md +11 -0
  664. package/docs/targets.md +20 -0
  665. package/docs/templates/authoring.md +23 -0
  666. package/docs/troubleshooting.md +53 -0
  667. package/docs/versioning-and-migration.md +25 -0
  668. package/examples/README.md +12 -0
  669. package/examples/knowledge-bases/README.md +12 -0
  670. package/examples/production-readiness-demo/README.md +16 -0
  671. package/hooks/README.md +3 -0
  672. package/hooks/shared/PostChangeSummary.ps1 +1 -0
  673. package/hooks/shared/PreChangeQualityGate.ps1 +1 -0
  674. package/hooks/shared/post-change-summary.sh +3 -0
  675. package/hooks/shared/pre-change-quality-gate.sh +3 -0
  676. package/install.ps1 +28 -0
  677. package/install.sh +24 -0
  678. package/knowledge-bases/operations/observability-and-evals/README.md +7 -0
  679. package/knowledge-bases/seeded/README.md +33 -0
  680. package/knowledge-bases/seeded/dotnet/README.md +18 -0
  681. package/knowledge-bases/seeded/dotnet/docs/examples-guide.md +15 -0
  682. package/knowledge-bases/seeded/dotnet/docs/frameworks.md +11 -0
  683. package/knowledge-bases/seeded/dotnet/docs/overview.md +33 -0
  684. package/knowledge-bases/seeded/dotnet/docs/review-checklist.md +27 -0
  685. package/knowledge-bases/seeded/dotnet/examples/01-aspnet-core-crud-api.md +13 -0
  686. package/knowledge-bases/seeded/dotnet/examples/02-background-worker-with-queue-processing.md +13 -0
  687. package/knowledge-bases/seeded/dotnet/examples/03-shared-domain-library.md +13 -0
  688. package/knowledge-bases/seeded/dotnet/examples/04-cli-automation-tool.md +13 -0
  689. package/knowledge-bases/seeded/dotnet/knowledge-base.json +8 -0
  690. package/knowledge-bases/seeded/dotnet/legacy-seed/csharp/coding-style.md +72 -0
  691. package/knowledge-bases/seeded/dotnet/legacy-seed/csharp/hooks.md +25 -0
  692. package/knowledge-bases/seeded/dotnet/legacy-seed/csharp/patterns.md +50 -0
  693. package/knowledge-bases/seeded/dotnet/legacy-seed/csharp/security.md +58 -0
  694. package/knowledge-bases/seeded/dotnet/legacy-seed/csharp/testing.md +46 -0
  695. package/knowledge-bases/seeded/dotnet/rules/common/agents.md +50 -0
  696. package/knowledge-bases/seeded/dotnet/rules/common/coding-style.md +48 -0
  697. package/knowledge-bases/seeded/dotnet/rules/common/development-workflow.md +38 -0
  698. package/knowledge-bases/seeded/dotnet/rules/common/git-workflow.md +24 -0
  699. package/knowledge-bases/seeded/dotnet/rules/common/hooks.md +30 -0
  700. package/knowledge-bases/seeded/dotnet/rules/common/patterns.md +31 -0
  701. package/knowledge-bases/seeded/dotnet/rules/common/performance.md +55 -0
  702. package/knowledge-bases/seeded/dotnet/rules/common/security.md +29 -0
  703. package/knowledge-bases/seeded/dotnet/rules/common/testing.md +29 -0
  704. package/knowledge-bases/seeded/dotnet/rules/dotnet/coding-style.md +38 -0
  705. package/knowledge-bases/seeded/dotnet/rules/dotnet/hooks.md +24 -0
  706. package/knowledge-bases/seeded/dotnet/rules/dotnet/patterns.md +30 -0
  707. package/knowledge-bases/seeded/dotnet/rules/dotnet/security.md +28 -0
  708. package/knowledge-bases/seeded/dotnet/rules/dotnet/testing.md +31 -0
  709. package/knowledge-bases/seeded/java/README.md +18 -0
  710. package/knowledge-bases/seeded/java/docs/examples-guide.md +15 -0
  711. package/knowledge-bases/seeded/java/docs/frameworks.md +11 -0
  712. package/knowledge-bases/seeded/java/docs/overview.md +34 -0
  713. package/knowledge-bases/seeded/java/docs/review-checklist.md +27 -0
  714. package/knowledge-bases/seeded/java/examples/01-spring-boot-rest-api.md +13 -0
  715. package/knowledge-bases/seeded/java/examples/02-event-consumer-service.md +13 -0
  716. package/knowledge-bases/seeded/java/examples/03-gradle-multi-module-backend.md +13 -0
  717. package/knowledge-bases/seeded/java/examples/04-library-module-with-strong-domain-tests.md +13 -0
  718. package/knowledge-bases/seeded/java/knowledge-base.json +8 -0
  719. package/knowledge-bases/seeded/java/legacy-seed/java/coding-style.md +114 -0
  720. package/knowledge-bases/seeded/java/legacy-seed/java/hooks.md +18 -0
  721. package/knowledge-bases/seeded/java/legacy-seed/java/patterns.md +146 -0
  722. package/knowledge-bases/seeded/java/legacy-seed/java/security.md +100 -0
  723. package/knowledge-bases/seeded/java/legacy-seed/java/testing.md +131 -0
  724. package/knowledge-bases/seeded/java/rules/common/agents.md +50 -0
  725. package/knowledge-bases/seeded/java/rules/common/coding-style.md +48 -0
  726. package/knowledge-bases/seeded/java/rules/common/development-workflow.md +38 -0
  727. package/knowledge-bases/seeded/java/rules/common/git-workflow.md +24 -0
  728. package/knowledge-bases/seeded/java/rules/common/hooks.md +30 -0
  729. package/knowledge-bases/seeded/java/rules/common/patterns.md +31 -0
  730. package/knowledge-bases/seeded/java/rules/common/performance.md +55 -0
  731. package/knowledge-bases/seeded/java/rules/common/security.md +29 -0
  732. package/knowledge-bases/seeded/java/rules/common/testing.md +29 -0
  733. package/knowledge-bases/seeded/java/rules/java/coding-style.md +22 -0
  734. package/knowledge-bases/seeded/java/rules/java/hooks.md +23 -0
  735. package/knowledge-bases/seeded/java/rules/java/patterns.md +22 -0
  736. package/knowledge-bases/seeded/java/rules/java/security.md +21 -0
  737. package/knowledge-bases/seeded/java/rules/java/testing.md +23 -0
  738. package/knowledge-bases/seeded/lua/README.md +18 -0
  739. package/knowledge-bases/seeded/lua/docs/examples-guide.md +15 -0
  740. package/knowledge-bases/seeded/lua/docs/frameworks.md +11 -0
  741. package/knowledge-bases/seeded/lua/docs/overview.md +30 -0
  742. package/knowledge-bases/seeded/lua/docs/review-checklist.md +27 -0
  743. package/knowledge-bases/seeded/lua/examples/01-neovim-plugin.md +13 -0
  744. package/knowledge-bases/seeded/lua/examples/02-openresty-request-handler.md +13 -0
  745. package/knowledge-bases/seeded/lua/examples/03-l/303/266ve-gameplay-module.md +13 -0
  746. package/knowledge-bases/seeded/lua/examples/04-embedded-automation-script.md +13 -0
  747. package/knowledge-bases/seeded/lua/knowledge-base.json +8 -0
  748. package/knowledge-bases/seeded/lua/rules/common/agents.md +50 -0
  749. package/knowledge-bases/seeded/lua/rules/common/coding-style.md +48 -0
  750. package/knowledge-bases/seeded/lua/rules/common/development-workflow.md +38 -0
  751. package/knowledge-bases/seeded/lua/rules/common/git-workflow.md +24 -0
  752. package/knowledge-bases/seeded/lua/rules/common/hooks.md +30 -0
  753. package/knowledge-bases/seeded/lua/rules/common/patterns.md +31 -0
  754. package/knowledge-bases/seeded/lua/rules/common/performance.md +55 -0
  755. package/knowledge-bases/seeded/lua/rules/common/security.md +29 -0
  756. package/knowledge-bases/seeded/lua/rules/common/testing.md +29 -0
  757. package/knowledge-bases/seeded/lua/rules/lua/coding-style.md +27 -0
  758. package/knowledge-bases/seeded/lua/rules/lua/hooks.md +21 -0
  759. package/knowledge-bases/seeded/lua/rules/lua/patterns.md +23 -0
  760. package/knowledge-bases/seeded/lua/rules/lua/security.md +20 -0
  761. package/knowledge-bases/seeded/lua/rules/lua/testing.md +23 -0
  762. package/knowledge-bases/seeded/powershell/README.md +18 -0
  763. package/knowledge-bases/seeded/powershell/docs/examples-guide.md +15 -0
  764. package/knowledge-bases/seeded/powershell/docs/frameworks.md +11 -0
  765. package/knowledge-bases/seeded/powershell/docs/overview.md +30 -0
  766. package/knowledge-bases/seeded/powershell/docs/review-checklist.md +27 -0
  767. package/knowledge-bases/seeded/powershell/examples/01-script-module.md +13 -0
  768. package/knowledge-bases/seeded/powershell/examples/02-ci-admin-automation-script.md +13 -0
  769. package/knowledge-bases/seeded/powershell/examples/03-remote-fleet-maintenance-command.md +13 -0
  770. package/knowledge-bases/seeded/powershell/examples/04-developer-bootstrap-utility.md +13 -0
  771. package/knowledge-bases/seeded/powershell/knowledge-base.json +8 -0
  772. package/knowledge-bases/seeded/powershell/rules/common/agents.md +50 -0
  773. package/knowledge-bases/seeded/powershell/rules/common/coding-style.md +48 -0
  774. package/knowledge-bases/seeded/powershell/rules/common/development-workflow.md +38 -0
  775. package/knowledge-bases/seeded/powershell/rules/common/git-workflow.md +24 -0
  776. package/knowledge-bases/seeded/powershell/rules/common/hooks.md +30 -0
  777. package/knowledge-bases/seeded/powershell/rules/common/patterns.md +31 -0
  778. package/knowledge-bases/seeded/powershell/rules/common/performance.md +55 -0
  779. package/knowledge-bases/seeded/powershell/rules/common/security.md +29 -0
  780. package/knowledge-bases/seeded/powershell/rules/common/testing.md +29 -0
  781. package/knowledge-bases/seeded/powershell/rules/powershell/coding-style.md +25 -0
  782. package/knowledge-bases/seeded/powershell/rules/powershell/hooks.md +24 -0
  783. package/knowledge-bases/seeded/powershell/rules/powershell/patterns.md +23 -0
  784. package/knowledge-bases/seeded/powershell/rules/powershell/security.md +23 -0
  785. package/knowledge-bases/seeded/powershell/rules/powershell/testing.md +24 -0
  786. package/knowledge-bases/seeded/typescript/README.md +18 -0
  787. package/knowledge-bases/seeded/typescript/docs/examples-guide.md +15 -0
  788. package/knowledge-bases/seeded/typescript/docs/frameworks.md +11 -0
  789. package/knowledge-bases/seeded/typescript/docs/overview.md +34 -0
  790. package/knowledge-bases/seeded/typescript/docs/review-checklist.md +27 -0
  791. package/knowledge-bases/seeded/typescript/examples/01-node-api.md +13 -0
  792. package/knowledge-bases/seeded/typescript/examples/02-react-component-library.md +13 -0
  793. package/knowledge-bases/seeded/typescript/examples/03-nextjs-app.md +13 -0
  794. package/knowledge-bases/seeded/typescript/examples/04-monorepo-shared-types-and-validation.md +13 -0
  795. package/knowledge-bases/seeded/typescript/knowledge-base.json +8 -0
  796. package/knowledge-bases/seeded/typescript/legacy-seed/typescript/coding-style.md +199 -0
  797. package/knowledge-bases/seeded/typescript/legacy-seed/typescript/hooks.md +22 -0
  798. package/knowledge-bases/seeded/typescript/legacy-seed/typescript/patterns.md +52 -0
  799. package/knowledge-bases/seeded/typescript/legacy-seed/typescript/security.md +28 -0
  800. package/knowledge-bases/seeded/typescript/legacy-seed/typescript/testing.md +18 -0
  801. package/knowledge-bases/seeded/typescript/rules/common/agents.md +50 -0
  802. package/knowledge-bases/seeded/typescript/rules/common/coding-style.md +48 -0
  803. package/knowledge-bases/seeded/typescript/rules/common/development-workflow.md +38 -0
  804. package/knowledge-bases/seeded/typescript/rules/common/git-workflow.md +24 -0
  805. package/knowledge-bases/seeded/typescript/rules/common/hooks.md +30 -0
  806. package/knowledge-bases/seeded/typescript/rules/common/patterns.md +31 -0
  807. package/knowledge-bases/seeded/typescript/rules/common/performance.md +55 -0
  808. package/knowledge-bases/seeded/typescript/rules/common/security.md +29 -0
  809. package/knowledge-bases/seeded/typescript/rules/common/testing.md +29 -0
  810. package/knowledge-bases/seeded/typescript/rules/typescript/coding-style.md +30 -0
  811. package/knowledge-bases/seeded/typescript/rules/typescript/hooks.md +25 -0
  812. package/knowledge-bases/seeded/typescript/rules/typescript/patterns.md +23 -0
  813. package/knowledge-bases/seeded/typescript/rules/typescript/security.md +23 -0
  814. package/knowledge-bases/seeded/typescript/rules/typescript/testing.md +22 -0
  815. package/knowledge-bases/structured/README.md +3 -0
  816. package/knowledge-bases/structured/cpp/README.md +3 -0
  817. package/knowledge-bases/structured/cpp/docs/frameworks.md +3 -0
  818. package/knowledge-bases/structured/cpp/docs/overview.md +12 -0
  819. package/knowledge-bases/structured/cpp/docs/review-checklist.md +6 -0
  820. package/knowledge-bases/structured/cpp/examples/01-reference-scenario.md +3 -0
  821. package/knowledge-bases/structured/cpp/knowledge-base.json +13 -0
  822. package/knowledge-bases/structured/go/README.md +3 -0
  823. package/knowledge-bases/structured/go/docs/frameworks.md +3 -0
  824. package/knowledge-bases/structured/go/docs/overview.md +12 -0
  825. package/knowledge-bases/structured/go/docs/review-checklist.md +6 -0
  826. package/knowledge-bases/structured/go/examples/01-reference-scenario.md +3 -0
  827. package/knowledge-bases/structured/go/knowledge-base.json +13 -0
  828. package/knowledge-bases/structured/kotlin/README.md +3 -0
  829. package/knowledge-bases/structured/kotlin/docs/frameworks.md +3 -0
  830. package/knowledge-bases/structured/kotlin/docs/overview.md +12 -0
  831. package/knowledge-bases/structured/kotlin/docs/review-checklist.md +6 -0
  832. package/knowledge-bases/structured/kotlin/examples/01-reference-scenario.md +3 -0
  833. package/knowledge-bases/structured/kotlin/knowledge-base.json +13 -0
  834. package/knowledge-bases/structured/perl/README.md +3 -0
  835. package/knowledge-bases/structured/perl/docs/frameworks.md +3 -0
  836. package/knowledge-bases/structured/perl/docs/overview.md +12 -0
  837. package/knowledge-bases/structured/perl/docs/review-checklist.md +6 -0
  838. package/knowledge-bases/structured/perl/examples/01-reference-scenario.md +3 -0
  839. package/knowledge-bases/structured/perl/knowledge-base.json +13 -0
  840. package/knowledge-bases/structured/php/README.md +3 -0
  841. package/knowledge-bases/structured/php/docs/frameworks.md +3 -0
  842. package/knowledge-bases/structured/php/docs/overview.md +12 -0
  843. package/knowledge-bases/structured/php/docs/review-checklist.md +6 -0
  844. package/knowledge-bases/structured/php/examples/01-reference-scenario.md +3 -0
  845. package/knowledge-bases/structured/php/knowledge-base.json +13 -0
  846. package/knowledge-bases/structured/python/README.md +3 -0
  847. package/knowledge-bases/structured/python/docs/frameworks.md +3 -0
  848. package/knowledge-bases/structured/python/docs/overview.md +12 -0
  849. package/knowledge-bases/structured/python/docs/review-checklist.md +6 -0
  850. package/knowledge-bases/structured/python/examples/01-reference-scenario.md +3 -0
  851. package/knowledge-bases/structured/python/knowledge-base.json +13 -0
  852. package/knowledge-bases/structured/rust/README.md +3 -0
  853. package/knowledge-bases/structured/rust/docs/frameworks.md +3 -0
  854. package/knowledge-bases/structured/rust/docs/overview.md +12 -0
  855. package/knowledge-bases/structured/rust/docs/review-checklist.md +6 -0
  856. package/knowledge-bases/structured/rust/examples/01-reference-scenario.md +3 -0
  857. package/knowledge-bases/structured/rust/knowledge-base.json +13 -0
  858. package/knowledge-bases/structured/shell/README.md +3 -0
  859. package/knowledge-bases/structured/shell/docs/frameworks.md +3 -0
  860. package/knowledge-bases/structured/shell/docs/overview.md +12 -0
  861. package/knowledge-bases/structured/shell/docs/review-checklist.md +6 -0
  862. package/knowledge-bases/structured/shell/examples/01-reference-scenario.md +3 -0
  863. package/knowledge-bases/structured/shell/knowledge-base.json +13 -0
  864. package/knowledge-bases/structured/swift/README.md +3 -0
  865. package/knowledge-bases/structured/swift/docs/frameworks.md +3 -0
  866. package/knowledge-bases/structured/swift/docs/overview.md +12 -0
  867. package/knowledge-bases/structured/swift/docs/review-checklist.md +6 -0
  868. package/knowledge-bases/structured/swift/examples/01-reference-scenario.md +3 -0
  869. package/knowledge-bases/structured/swift/knowledge-base.json +13 -0
  870. package/manifests/bundles/core.json +384 -0
  871. package/manifests/bundles/frameworks.json +196 -0
  872. package/manifests/bundles/languages-seeded.json +136 -0
  873. package/manifests/bundles/languages-v1.json +317 -0
  874. package/manifests/catalog/capability-taxonomy.json +47 -0
  875. package/manifests/catalog/compatibility-matrix.json +4259 -0
  876. package/manifests/catalog/engineering-assistant-import-inventory.json +215 -0
  877. package/manifests/catalog/enhanced-skill-import-inventory.json +402 -0
  878. package/manifests/catalog/flow-artifacts.json +324 -0
  879. package/manifests/catalog/framework-assets.json +124 -0
  880. package/manifests/catalog/harness-capability-matrix.json +429 -0
  881. package/manifests/catalog/index.json +56 -0
  882. package/manifests/catalog/language-assets.json +616 -0
  883. package/manifests/catalog/package-surface.json +426 -0
  884. package/manifests/catalog/seeded-knowledge-files.json +1094 -0
  885. package/manifests/hooks/index.json +70 -0
  886. package/manifests/profiles/ai-runtime.json +24 -0
  887. package/manifests/profiles/core.json +24 -0
  888. package/manifests/profiles/developer.json +24 -0
  889. package/manifests/profiles/game-dev-native.json +24 -0
  890. package/manifests/profiles/legacy-modernization.json +24 -0
  891. package/manifests/profiles/rapid-prototyping.json +24 -0
  892. package/manifests/profiles/release-manager.json +24 -0
  893. package/manifests/profiles/research-first.json +24 -0
  894. package/manifests/profiles/reviewer.json +24 -0
  895. package/manifests/profiles/security.json +24 -0
  896. package/manifests/targets/core.json +125 -0
  897. package/mcp/README.md +3 -0
  898. package/mcp/servers/context7.codex.toml +3 -0
  899. package/mcp/servers/context7.md +3 -0
  900. package/mcp/servers/openai-developer-docs.codex.toml +3 -0
  901. package/mcp/servers/openai-developer-docs.md +3 -0
  902. package/mcp/servers/playwright.codex.toml +3 -0
  903. package/mcp/servers/playwright.md +3 -0
  904. package/mcp/servers/semgrep.md +3 -0
  905. package/package.json +126 -0
  906. package/profiles/README.md +3 -0
  907. package/profiles/claude-code.md +3 -0
  908. package/profiles/codex.md +3 -0
  909. package/profiles/core.md +3 -0
  910. package/profiles/developer.md +3 -0
  911. package/profiles/release-manager.md +3 -0
  912. package/rules/README.md +58 -0
  913. package/rules/common/README.md +37 -0
  914. package/rules/common/agents.md +50 -0
  915. package/rules/common/coding-style.md +48 -0
  916. package/rules/common/development-workflow.md +38 -0
  917. package/rules/common/git-workflow.md +24 -0
  918. package/rules/common/hooks.md +30 -0
  919. package/rules/common/patterns.md +31 -0
  920. package/rules/common/performance.md +55 -0
  921. package/rules/common/security.md +29 -0
  922. package/rules/common/testing.md +29 -0
  923. package/rules/cpp/README.md +19 -0
  924. package/rules/cpp/coding-style.md +3 -0
  925. package/rules/cpp/patterns.md +3 -0
  926. package/rules/cpp/security.md +3 -0
  927. package/rules/cpp/testing.md +3 -0
  928. package/rules/cpp/tooling.md +3 -0
  929. package/rules/dotnet/README.md +41 -0
  930. package/rules/dotnet/coding-style.md +38 -0
  931. package/rules/dotnet/hooks.md +24 -0
  932. package/rules/dotnet/patterns.md +30 -0
  933. package/rules/dotnet/security.md +28 -0
  934. package/rules/dotnet/testing.md +31 -0
  935. package/rules/golang/README.md +19 -0
  936. package/rules/golang/coding-style.md +3 -0
  937. package/rules/golang/patterns.md +3 -0
  938. package/rules/golang/security.md +3 -0
  939. package/rules/golang/testing.md +3 -0
  940. package/rules/golang/tooling.md +3 -0
  941. package/rules/java/README.md +41 -0
  942. package/rules/java/coding-style.md +22 -0
  943. package/rules/java/hooks.md +23 -0
  944. package/rules/java/patterns.md +22 -0
  945. package/rules/java/security.md +21 -0
  946. package/rules/java/testing.md +23 -0
  947. package/rules/kotlin/README.md +19 -0
  948. package/rules/kotlin/coding-style.md +3 -0
  949. package/rules/kotlin/patterns.md +3 -0
  950. package/rules/kotlin/security.md +3 -0
  951. package/rules/kotlin/testing.md +3 -0
  952. package/rules/kotlin/tooling.md +3 -0
  953. package/rules/lua/README.md +41 -0
  954. package/rules/lua/coding-style.md +27 -0
  955. package/rules/lua/hooks.md +21 -0
  956. package/rules/lua/patterns.md +23 -0
  957. package/rules/lua/security.md +20 -0
  958. package/rules/lua/testing.md +23 -0
  959. package/rules/perl/README.md +19 -0
  960. package/rules/perl/coding-style.md +3 -0
  961. package/rules/perl/patterns.md +3 -0
  962. package/rules/perl/security.md +3 -0
  963. package/rules/perl/testing.md +3 -0
  964. package/rules/perl/tooling.md +3 -0
  965. package/rules/php/README.md +19 -0
  966. package/rules/php/coding-style.md +3 -0
  967. package/rules/php/patterns.md +3 -0
  968. package/rules/php/security.md +3 -0
  969. package/rules/php/testing.md +3 -0
  970. package/rules/php/tooling.md +3 -0
  971. package/rules/powershell/README.md +41 -0
  972. package/rules/powershell/coding-style.md +25 -0
  973. package/rules/powershell/hooks.md +24 -0
  974. package/rules/powershell/patterns.md +23 -0
  975. package/rules/powershell/security.md +23 -0
  976. package/rules/powershell/testing.md +24 -0
  977. package/rules/python/README.md +19 -0
  978. package/rules/python/coding-style.md +3 -0
  979. package/rules/python/patterns.md +3 -0
  980. package/rules/python/security.md +3 -0
  981. package/rules/python/testing.md +3 -0
  982. package/rules/python/tooling.md +3 -0
  983. package/rules/rust/README.md +19 -0
  984. package/rules/rust/coding-style.md +3 -0
  985. package/rules/rust/patterns.md +3 -0
  986. package/rules/rust/security.md +3 -0
  987. package/rules/rust/testing.md +3 -0
  988. package/rules/rust/tooling.md +3 -0
  989. package/rules/shell/README.md +19 -0
  990. package/rules/shell/coding-style.md +3 -0
  991. package/rules/shell/patterns.md +3 -0
  992. package/rules/shell/security.md +3 -0
  993. package/rules/shell/testing.md +3 -0
  994. package/rules/shell/tooling.md +3 -0
  995. package/rules/swift/README.md +19 -0
  996. package/rules/swift/coding-style.md +3 -0
  997. package/rules/swift/patterns.md +3 -0
  998. package/rules/swift/security.md +3 -0
  999. package/rules/swift/testing.md +3 -0
  1000. package/rules/swift/tooling.md +3 -0
  1001. package/rules/typescript/README.md +41 -0
  1002. package/rules/typescript/coding-style.md +30 -0
  1003. package/rules/typescript/hooks.md +25 -0
  1004. package/rules/typescript/patterns.md +23 -0
  1005. package/rules/typescript/security.md +23 -0
  1006. package/rules/typescript/testing.md +22 -0
  1007. package/schemas/content/content-metadata.schema.json +100 -0
  1008. package/schemas/hooks/hook.schema.json +57 -0
  1009. package/schemas/manifests/catalog.schema.json +22 -0
  1010. package/schemas/manifests/harness-capability-matrix.schema.json +127 -0
  1011. package/schemas/manifests/package-surface.schema.json +63 -0
  1012. package/schemas/manifests/seeded-knowledge-files.schema.json +69 -0
  1013. package/schemas/runtime/architecture-significance.schema.json +45 -0
  1014. package/schemas/runtime/benchmark-expectation.schema.json +33 -0
  1015. package/schemas/runtime/decision-coverage-summary.schema.json +46 -0
  1016. package/schemas/runtime/decision-record.schema.json +266 -0
  1017. package/schemas/runtime/file-interest.schema.json +78 -0
  1018. package/schemas/runtime/flow-state.schema.json +39 -0
  1019. package/schemas/runtime/impact-analysis.schema.json +83 -0
  1020. package/schemas/runtime/instruction-plan.schema.json +63 -0
  1021. package/schemas/runtime/observability-event.schema.json +40 -0
  1022. package/schemas/runtime/observability-summary.schema.json +32 -0
  1023. package/schemas/runtime/recursive-adr-candidate.schema.json +57 -0
  1024. package/schemas/runtime/recursive-budget.schema.json +40 -0
  1025. package/schemas/runtime/recursive-session-summary.schema.json +49 -0
  1026. package/schemas/runtime/recursive-session.schema.json +65 -0
  1027. package/schemas/runtime/recursive-trace-event.schema.json +43 -0
  1028. package/schemas/runtime/repo-map.schema.json +65 -0
  1029. package/schemas/runtime/task-pack.schema.json +172 -0
  1030. package/schemas/runtime/working-memory.schema.json +52 -0
  1031. package/schemas/runtime/worktree-plan.schema.json +72 -0
  1032. package/schemas/runtime/worktree-state.schema.json +41 -0
  1033. package/schemas/templates/recursive-template-registry.schema.json +43 -0
  1034. package/schemas/templates/runtime-template-registry.schema.json +55 -0
  1035. package/schemas/templates/template-catalog.schema.json +38 -0
  1036. package/scripts/ci/capability-matrix-shared.mjs +263 -0
  1037. package/scripts/ci/generate-compatibility-matrix.mjs +189 -0
  1038. package/scripts/ci/generate-target-support-docs.mjs +27 -0
  1039. package/scripts/ci/release-smoke.mjs +121 -0
  1040. package/scripts/ci/smoke-runner.mjs +90 -0
  1041. package/scripts/ci/validate-capability-matrix.mjs +30 -0
  1042. package/scripts/ci/validate-content-metadata.mjs +188 -0
  1043. package/scripts/ci/validate-doc-command-alignment.mjs +146 -0
  1044. package/scripts/ci/validate-framework-coverage.mjs +52 -0
  1045. package/scripts/ci/validate-generated-sync.mjs +122 -0
  1046. package/scripts/ci/validate-manifest-runtime-consistency.mjs +134 -0
  1047. package/scripts/ci/validate-no-placeholders.mjs +86 -0
  1048. package/scripts/ci/validate-pack-dependencies.mjs +78 -0
  1049. package/scripts/ci/validate-packed-install-surface.mjs +77 -0
  1050. package/scripts/ci/validate-seeded-knowledge-coverage.mjs +89 -0
  1051. package/scripts/ci/validate-skill-depth.mjs +88 -0
  1052. package/scripts/codex/apply-home-config.mjs +39 -0
  1053. package/scripts/intelligence/cartograph-repo.mjs +15 -0
  1054. package/scripts/intelligence/classify-boundaries.mjs +15 -0
  1055. package/scripts/intelligence/detect-frameworks.mjs +16 -0
  1056. package/scripts/intelligence/scan-repo.mjs +16 -0
  1057. package/scripts/intelligence/score-recommendations.mjs +16 -0
  1058. package/scripts/intelligence/shared/cartography.mjs +129 -0
  1059. package/scripts/intelligence/shared.mjs +660 -0
  1060. package/scripts/intelligence/synthesize-instructions.mjs +90 -0
  1061. package/scripts/knowledge/import-pack.mjs +56 -0
  1062. package/scripts/knowledge/normalize-pack.mjs +49 -0
  1063. package/scripts/knowledge/report-coverage.mjs +82 -0
  1064. package/scripts/knowledge/report-drift.mjs +67 -0
  1065. package/scripts/runtime/check-merge-readiness.mjs +44 -0
  1066. package/scripts/runtime/check-parallel-status.mjs +39 -0
  1067. package/scripts/runtime/create-parallel-plan.mjs +61 -0
  1068. package/scripts/runtime/flow-status.mjs +114 -0
  1069. package/scripts/runtime/record-event.mjs +44 -0
  1070. package/scripts/runtime/recursive-plan.mjs +25 -0
  1071. package/scripts/runtime/render-observability-report.mjs +50 -0
  1072. package/scripts/runtime/report-effectiveness.mjs +35 -0
  1073. package/scripts/runtime/summarize-observability.mjs +57 -0
  1074. package/scripts/templates/README.md +40 -0
  1075. package/scripts/templates/config/required-sections.json +37 -0
  1076. package/scripts/templates/powershell/Check-TemplateFrontmatter.ps1 +54 -0
  1077. package/scripts/templates/powershell/Check-TemplateLinks.ps1 +22 -0
  1078. package/scripts/templates/powershell/Get-MissingTemplateSections.ps1 +21 -0
  1079. package/scripts/templates/powershell/New-TemplateIndex.ps1 +19 -0
  1080. package/scripts/templates/powershell/Test-WorkflowContracts.ps1 +26 -0
  1081. package/scripts/templates/shell/check-template-frontmatter.sh +39 -0
  1082. package/scripts/templates/shell/check-template-links.sh +25 -0
  1083. package/scripts/templates/shell/generate-template-index.sh +17 -0
  1084. package/scripts/templates/shell/list-missing-template-sections.sh +36 -0
  1085. package/scripts/templates/shell/verify-workflow-contracts.sh +21 -0
  1086. package/skills/README.md +94 -0
  1087. package/skills/api-contract-review/SKILL.md +56 -0
  1088. package/skills/api-contract-review/references/event-and-async-contracts.md +16 -0
  1089. package/skills/api-contract-review/references/examples.md +15 -0
  1090. package/skills/api-contract-review/references/http-contract-checklist.md +24 -0
  1091. package/skills/api-contract-review/references/protobuf-and-buf.md +12 -0
  1092. package/skills/api-contract-review/references/review-template.md +19 -0
  1093. package/skills/api-contract-review/references/schema-compatibility.md +20 -0
  1094. package/skills/api-contract-review/references/style-and-linting.md +15 -0
  1095. package/skills/architecture-decision-records/SKILL.md +53 -0
  1096. package/skills/architecture-decision-records/references/adr-anti-patterns.md +10 -0
  1097. package/skills/architecture-decision-records/references/adr-template.md +31 -0
  1098. package/skills/architecture-decision-records/references/decision-rubric.md +22 -0
  1099. package/skills/architecture-decision-records/references/examples.md +15 -0
  1100. package/skills/architecture-decision-records/references/madr-style-guide.md +17 -0
  1101. package/skills/cloud-architect/SKILL.md +61 -0
  1102. package/skills/cloud-architect/references/agent-patterns.md +23 -0
  1103. package/skills/cloud-architect/references/debugging-playbook.md +24 -0
  1104. package/skills/cloud-architect/references/distributed-systems.md +13 -0
  1105. package/skills/cloud-architect/references/examples.md +19 -0
  1106. package/skills/cloud-architect/references/output-templates.md +35 -0
  1107. package/skills/cloud-architect/references/platform-and-deployment.md +13 -0
  1108. package/skills/cloud-architect/references/reliability-security-cost.md +17 -0
  1109. package/skills/cloud-architect/references/repo-exploration.md +42 -0
  1110. package/skills/cpp-engineering/SKILL.md +43 -0
  1111. package/skills/db-migration-review/SKILL.md +56 -0
  1112. package/skills/db-migration-review/references/engine-specific-hotspots.md +21 -0
  1113. package/skills/db-migration-review/references/examples.md +16 -0
  1114. package/skills/db-migration-review/references/expand-contract.md +19 -0
  1115. package/skills/db-migration-review/references/review-template.md +25 -0
  1116. package/skills/db-migration-review/references/risk-taxonomy.md +30 -0
  1117. package/skills/db-migration-review/references/rollout-and-backfill.md +23 -0
  1118. package/skills/db-migration-review/references/tooling-signals.md +21 -0
  1119. package/skills/dependency-upgrade-safety/SKILL.md +36 -0
  1120. package/skills/documentation-lookup/SKILL.md +45 -0
  1121. package/skills/documentation-lookup/references/source-priority.md +6 -0
  1122. package/skills/dotnet-engineering/SKILL.md +76 -0
  1123. package/skills/dotnet-engineering/references/agent-patterns.md +30 -0
  1124. package/skills/dotnet-engineering/references/architecture-and-di.md +28 -0
  1125. package/skills/dotnet-engineering/references/aspnet-and-efcore.md +22 -0
  1126. package/skills/dotnet-engineering/references/cloud-native-and-aspire.md +21 -0
  1127. package/skills/dotnet-engineering/references/debugging-playbook.md +21 -0
  1128. package/skills/dotnet-engineering/references/examples.md +22 -0
  1129. package/skills/dotnet-engineering/references/output-templates.md +33 -0
  1130. package/skills/dotnet-engineering/references/repo-exploration.md +38 -0
  1131. package/skills/dotnet-engineering/references/testing-and-performance.md +25 -0
  1132. package/skills/engineering-assistant/SKILL.md +59 -0
  1133. package/skills/engineering-assistant/references/architecture.md +47 -0
  1134. package/skills/engineering-assistant/references/change-discipline.md +37 -0
  1135. package/skills/engineering-assistant/references/project-notes.md +36 -0
  1136. package/skills/engineering-assistant/references/skill-composition.md +33 -0
  1137. package/skills/engineering-assistant/references/solid-and-patterns.md +34 -0
  1138. package/skills/go-engineering/SKILL.md +43 -0
  1139. package/skills/incident-triage/SKILL.md +36 -0
  1140. package/skills/java-engineering/SKILL.md +48 -0
  1141. package/skills/java-engineering/references/agent-patterns.md +23 -0
  1142. package/skills/java-engineering/references/build-and-structure.md +14 -0
  1143. package/skills/java-engineering/references/debugging-playbook.md +24 -0
  1144. package/skills/java-engineering/references/examples.md +15 -0
  1145. package/skills/java-engineering/references/output-templates.md +35 -0
  1146. package/skills/java-engineering/references/repo-exploration.md +42 -0
  1147. package/skills/java-engineering/references/spring-patterns.md +12 -0
  1148. package/skills/java-engineering/references/testing-concurrency-performance.md +11 -0
  1149. package/skills/javascript-engineering/SKILL.md +66 -0
  1150. package/skills/javascript-engineering/references/agent-patterns.md +22 -0
  1151. package/skills/javascript-engineering/references/browser-and-bundler-patterns.md +14 -0
  1152. package/skills/javascript-engineering/references/debugging-playbook.md +17 -0
  1153. package/skills/javascript-engineering/references/ecosystem-guide.md +19 -0
  1154. package/skills/javascript-engineering/references/examples.md +15 -0
  1155. package/skills/javascript-engineering/references/node-service-patterns.md +15 -0
  1156. package/skills/javascript-engineering/references/output-templates.md +17 -0
  1157. package/skills/javascript-engineering/references/package-contracts.md +12 -0
  1158. package/skills/javascript-engineering/references/repo-exploration.md +24 -0
  1159. package/skills/javascript-engineering/references/testing-and-debugging.md +13 -0
  1160. package/skills/kotlin-engineering/SKILL.md +43 -0
  1161. package/skills/lua-engineering/SKILL.md +78 -0
  1162. package/skills/lua-engineering/references/agent-patterns.md +22 -0
  1163. package/skills/lua-engineering/references/debugging-and-testing.md +13 -0
  1164. package/skills/lua-engineering/references/debugging-playbook.md +17 -0
  1165. package/skills/lua-engineering/references/examples.md +15 -0
  1166. package/skills/lua-engineering/references/game-and-addon-patterns.md +15 -0
  1167. package/skills/lua-engineering/references/language-idioms.md +16 -0
  1168. package/skills/lua-engineering/references/neovim-and-editor-patterns.md +17 -0
  1169. package/skills/lua-engineering/references/openresty-patterns.md +15 -0
  1170. package/skills/lua-engineering/references/output-templates.md +17 -0
  1171. package/skills/lua-engineering/references/repo-exploration.md +25 -0
  1172. package/skills/lua-engineering/references/runtime-profiles.md +12 -0
  1173. package/skills/lua-engineering/references/tooling-and-quality.md +16 -0
  1174. package/skills/observability-and-eval/SKILL.md +6 -0
  1175. package/skills/observability-setup/SKILL.md +35 -0
  1176. package/skills/parallel-worktree-supervisor/SKILL.md +55 -0
  1177. package/skills/parallel-worktree-supervisor/references/examples.md +14 -0
  1178. package/skills/parallel-worktree-supervisor/references/merge-readiness.md +15 -0
  1179. package/skills/parallel-worktree-supervisor/references/output-template.md +16 -0
  1180. package/skills/parallel-worktree-supervisor/references/stacked-diffs-and-review.md +17 -0
  1181. package/skills/parallel-worktree-supervisor/references/task-sharding-rules.md +22 -0
  1182. package/skills/parallel-worktree-supervisor/references/worktree-operations.md +16 -0
  1183. package/skills/performance-profiling/SKILL.md +36 -0
  1184. package/skills/perl-engineering/SKILL.md +43 -0
  1185. package/skills/php-engineering/SKILL.md +43 -0
  1186. package/skills/powershell-engineering/SKILL.md +48 -0
  1187. package/skills/powershell-engineering/references/agent-patterns.md +23 -0
  1188. package/skills/powershell-engineering/references/debugging-playbook.md +24 -0
  1189. package/skills/powershell-engineering/references/examples.md +17 -0
  1190. package/skills/powershell-engineering/references/output-templates.md +35 -0
  1191. package/skills/powershell-engineering/references/remoting-and-ops.md +12 -0
  1192. package/skills/powershell-engineering/references/repo-exploration.md +42 -0
  1193. package/skills/powershell-engineering/references/scripting-and-modules.md +14 -0
  1194. package/skills/powershell-engineering/references/testing-and-ci.md +11 -0
  1195. package/skills/pr-triage-and-summary/SKILL.md +35 -0
  1196. package/skills/python-engineering/SKILL.md +56 -0
  1197. package/skills/python-engineering/references/agent-patterns.md +23 -0
  1198. package/skills/python-engineering/references/async-and-concurrency.md +19 -0
  1199. package/skills/python-engineering/references/debugging-playbook.md +24 -0
  1200. package/skills/python-engineering/references/ecosystem-guide.md +32 -0
  1201. package/skills/python-engineering/references/examples.md +19 -0
  1202. package/skills/python-engineering/references/output-templates.md +35 -0
  1203. package/skills/python-engineering/references/repo-exploration.md +42 -0
  1204. package/skills/python-engineering/references/testing-and-quality.md +16 -0
  1205. package/skills/release-readiness/SKILL.md +45 -0
  1206. package/skills/release-readiness/references/release-report-template.md +7 -0
  1207. package/skills/repo-cartographer/SKILL.md +10 -0
  1208. package/skills/repo-modernization/SKILL.md +56 -0
  1209. package/skills/repo-modernization/references/automation-candidates.md +19 -0
  1210. package/skills/repo-modernization/references/dependency-and-build-modernization.md +16 -0
  1211. package/skills/repo-modernization/references/examples.md +15 -0
  1212. package/skills/repo-modernization/references/modernization-layers.md +21 -0
  1213. package/skills/repo-modernization/references/roadmap-template.md +25 -0
  1214. package/skills/repo-modernization/references/safety-rails.md +15 -0
  1215. package/skills/repo-modernization/references/strangler-and-seams.md +18 -0
  1216. package/skills/repo-onboarding/SKILL.md +56 -0
  1217. package/skills/repo-onboarding/references/command-discovery.md +13 -0
  1218. package/skills/repo-onboarding/references/discovery-checklist.md +24 -0
  1219. package/skills/repo-onboarding/references/examples.md +13 -0
  1220. package/skills/repo-onboarding/references/monorepo-signals.md +17 -0
  1221. package/skills/repo-onboarding/references/output-template.md +26 -0
  1222. package/skills/repo-onboarding/references/ownership-and-health-signals.md +21 -0
  1223. package/skills/repo-onboarding/references/repo-archetypes.md +13 -0
  1224. package/skills/rust-engineering/SKILL.md +43 -0
  1225. package/skills/security-scan/SKILL.md +45 -0
  1226. package/skills/security-scan/references/review-checklist.md +7 -0
  1227. package/skills/shell-engineering/SKILL.md +43 -0
  1228. package/skills/speckit-analyze/SKILL.md +190 -0
  1229. package/skills/speckit-checklist/SKILL.md +301 -0
  1230. package/skills/speckit-clarify/SKILL.md +183 -0
  1231. package/skills/speckit-constitution/SKILL.md +86 -0
  1232. package/skills/speckit-implement/SKILL.md +204 -0
  1233. package/skills/speckit-plan/SKILL.md +151 -0
  1234. package/skills/speckit-specify/SKILL.md +304 -0
  1235. package/skills/speckit-tasks/SKILL.md +197 -0
  1236. package/skills/speckit-taskstoissues/SKILL.md +35 -0
  1237. package/skills/swift-engineering/SKILL.md +43 -0
  1238. package/skills/test-strategy-and-coverage/SKILL.md +35 -0
  1239. package/skills/typescript-engineering/SKILL.md +77 -0
  1240. package/skills/typescript-engineering/references/agent-patterns.md +23 -0
  1241. package/skills/typescript-engineering/references/debugging-playbook.md +21 -0
  1242. package/skills/typescript-engineering/references/examples.md +22 -0
  1243. package/skills/typescript-engineering/references/frontend-and-backend-patterns.md +19 -0
  1244. package/skills/typescript-engineering/references/output-templates.md +25 -0
  1245. package/skills/typescript-engineering/references/repo-exploration.md +25 -0
  1246. package/skills/typescript-engineering/references/runtime-validation-and-boundaries.md +20 -0
  1247. package/skills/typescript-engineering/references/tsconfig-and-build.md +25 -0
  1248. package/skills/typescript-engineering/references/type-system-patterns.md +20 -0
  1249. package/skills/typescript-engineering/references/workspace-and-monorepo.md +23 -0
  1250. package/targets/claude-code/adapter.json +56 -0
  1251. package/targets/claude-code/runtime/.claude/CLAUDE.md +3 -0
  1252. package/targets/claude-code/runtime/.claude/agents/documentation-lookup.md +3 -0
  1253. package/targets/claude-code/runtime/.claude/agents/release-readiness.md +3 -0
  1254. package/targets/claude-code/runtime/.claude/agents/repo-onboarding.md +3 -0
  1255. package/targets/claude-code/runtime/.claude/agents/security-scan.md +3 -0
  1256. package/targets/claude-code/runtime/.claude/hooks/post-tool-use.sh +4 -0
  1257. package/targets/claude-code/runtime/.claude/hooks/pre-tool-use.sh +4 -0
  1258. package/targets/claude-code/runtime/.claude/settings.json +26 -0
  1259. package/targets/codex/adapter.json +56 -0
  1260. package/targets/codex/runtime/.codex/README.md +3 -0
  1261. package/targets/codex/runtime/.codex/config.toml +15 -0
  1262. package/targets/cursor/adapter.json +56 -0
  1263. package/targets/opencode/adapter.json +56 -0
  1264. package/templates/instructions/cursor-rule-template.mdc +7 -0
  1265. package/templates/instructions/root-agents-template.md +88 -0
  1266. package/templates/instructions/scoped-agents-template.md +90 -0
  1267. package/templates/tasks/fix-bug.md +93 -0
  1268. package/templates/tasks/implement-feature.md +95 -0
  1269. package/templates/workflows/implement-cpp-change.md +175 -0
  1270. package/templates/workflows/implement-dotnet-change.md +175 -0
  1271. package/templates/workflows/implement-go-change.md +175 -0
  1272. package/templates/workflows/implement-java-change.md +175 -0
  1273. package/templates/workflows/implement-kotlin-change.md +175 -0
  1274. package/templates/workflows/implement-lua-change.md +175 -0
  1275. package/templates/workflows/implement-perl-change.md +175 -0
  1276. package/templates/workflows/implement-php-change.md +175 -0
  1277. package/templates/workflows/implement-powershell-change.md +175 -0
  1278. package/templates/workflows/implement-python-change.md +175 -0
  1279. package/templates/workflows/implement-rust-change.md +175 -0
  1280. package/templates/workflows/implement-shell-change.md +175 -0
  1281. package/templates/workflows/implement-swift-change.md +175 -0
  1282. package/templates/workflows/implement-typescript-change.md +176 -0
  1283. package/templates/workflows/parallel-implement-and-merge.md +191 -0
  1284. package/templates/workflows/research-plan-implement-validate.md +187 -0
  1285. package/templates/workflows/triage-reproduce-fix-verify.md +167 -0
@@ -0,0 +1,183 @@
1
+ ---
2
+ name: "speckit-clarify"
3
+ description: "Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec."
4
+ compatibility: "Requires spec-kit project structure with .specify/ directory"
5
+ metadata:
6
+ author: "github-spec-kit"
7
+ source: "templates/commands/clarify.md"
8
+ ---
9
+
10
+
11
+ ## User Input
12
+
13
+ ```text
14
+ $ARGUMENTS
15
+ ```
16
+
17
+ You **MUST** consider the user input before proceeding (if not empty).
18
+
19
+ ## Outline
20
+
21
+ Goal: Detect and reduce ambiguity or missing decision points in the active feature specification and record the clarifications directly in the spec file.
22
+
23
+ Note: This clarification workflow is expected to run (and be completed) BEFORE invoking `/speckit.plan`. If the user explicitly states they are skipping clarification (e.g., exploratory spike), you may proceed, but must warn that downstream rework risk increases.
24
+
25
+ Execution steps:
26
+
27
+ 1. Run `.specify/scripts/powershell/check-prerequisites.ps1 -Json -PathsOnly` from repo root **once** (combined `--json --paths-only` mode / `-Json -PathsOnly`). Parse minimal JSON payload fields:
28
+ - `FEATURE_DIR`
29
+ - `FEATURE_SPEC`
30
+ - (Optionally capture `IMPL_PLAN`, `TASKS` for future chained flows.)
31
+ - If JSON parsing fails, abort and instruct user to re-run `/speckit.specify` or verify feature branch environment.
32
+ - For single quotes in args like "I'm Groot", use escape syntax: e.g 'I'\''m Groot' (or double-quote if possible: "I'm Groot").
33
+
34
+ 2. Load the current spec file. Perform a structured ambiguity & coverage scan using this taxonomy. For each category, mark status: Clear / Partial / Missing. Produce an internal coverage map used for prioritization (do not output raw map unless no questions will be asked).
35
+
36
+ Functional Scope & Behavior:
37
+ - Core user goals & success criteria
38
+ - Explicit out-of-scope declarations
39
+ - User roles / personas differentiation
40
+
41
+ Domain & Data Model:
42
+ - Entities, attributes, relationships
43
+ - Identity & uniqueness rules
44
+ - Lifecycle/state transitions
45
+ - Data volume / scale assumptions
46
+
47
+ Interaction & UX Flow:
48
+ - Critical user journeys / sequences
49
+ - Error/empty/loading states
50
+ - Accessibility or localization notes
51
+
52
+ Non-Functional Quality Attributes:
53
+ - Performance (latency, throughput targets)
54
+ - Scalability (horizontal/vertical, limits)
55
+ - Reliability & availability (uptime, recovery expectations)
56
+ - Observability (logging, metrics, tracing signals)
57
+ - Security & privacy (authN/Z, data protection, threat assumptions)
58
+ - Compliance / regulatory constraints (if any)
59
+
60
+ Integration & External Dependencies:
61
+ - External services/APIs and failure modes
62
+ - Data import/export formats
63
+ - Protocol/versioning assumptions
64
+
65
+ Edge Cases & Failure Handling:
66
+ - Negative scenarios
67
+ - Rate limiting / throttling
68
+ - Conflict resolution (e.g., concurrent edits)
69
+
70
+ Constraints & Tradeoffs:
71
+ - Technical constraints (language, storage, hosting)
72
+ - Explicit tradeoffs or rejected alternatives
73
+
74
+ Terminology & Consistency:
75
+ - Canonical glossary terms
76
+ - Avoided synonyms / deprecated terms
77
+
78
+ Completion Signals:
79
+ - Acceptance criteria testability
80
+ - Measurable Definition of Done style indicators
81
+
82
+ Misc / Placeholders:
83
+ - TODO markers / unresolved decisions
84
+ - Ambiguous adjectives ("robust", "intuitive") lacking quantification
85
+
86
+ For each category with Partial or Missing status, add a candidate question opportunity unless:
87
+ - Clarification would not materially change implementation or validation strategy
88
+ - Information is better deferred to planning phase (note internally)
89
+
90
+ 3. Generate (internally) a prioritized queue of candidate clarification questions (maximum 5). Do NOT output them all at once. Apply these constraints:
91
+ - Maximum of 5 total questions across the whole session.
92
+ - Each question must be answerable with EITHER:
93
+ - A short multiple‑choice selection (2–5 distinct, mutually exclusive options), OR
94
+ - A one-word / short‑phrase answer (explicitly constrain: "Answer in <=5 words").
95
+ - Only include questions whose answers materially impact architecture, data modeling, task decomposition, test design, UX behavior, operational readiness, or compliance validation.
96
+ - Ensure category coverage balance: attempt to cover the highest impact unresolved categories first; avoid asking two low-impact questions when a single high-impact area (e.g., security posture) is unresolved.
97
+ - Exclude questions already answered, trivial stylistic preferences, or plan-level execution details (unless blocking correctness).
98
+ - Favor clarifications that reduce downstream rework risk or prevent misaligned acceptance tests.
99
+ - If more than 5 categories remain unresolved, select the top 5 by (Impact * Uncertainty) heuristic.
100
+
101
+ 4. Sequential questioning loop (interactive):
102
+ - Present EXACTLY ONE question at a time.
103
+ - For multiple‑choice questions:
104
+ - **Analyze all options** and determine the **most suitable option** based on:
105
+ - Best practices for the project type
106
+ - Common patterns in similar implementations
107
+ - Risk reduction (security, performance, maintainability)
108
+ - Alignment with any explicit project goals or constraints visible in the spec
109
+ - Present your **recommended option prominently** at the top with clear reasoning (1-2 sentences explaining why this is the best choice).
110
+ - Format as: `**Recommended:** Option [X] - <reasoning>`
111
+ - Then render all options as a Markdown table:
112
+
113
+ | Option | Description |
114
+ |--------|-------------|
115
+ | A | <Option A description> |
116
+ | B | <Option B description> |
117
+ | C | <Option C description> (add D/E as needed up to 5) |
118
+ | Short | Provide a different short answer (<=5 words) (Include only if free-form alternative is appropriate) |
119
+
120
+ - After the table, add: `You can reply with the option letter (e.g., "A"), accept the recommendation by saying "yes" or "recommended", or provide your own short answer.`
121
+ - For short‑answer style (no meaningful discrete options):
122
+ - Provide your **suggested answer** based on best practices and context.
123
+ - Format as: `**Suggested:** <your proposed answer> - <brief reasoning>`
124
+ - Then output: `Format: Short answer (<=5 words). You can accept the suggestion by saying "yes" or "suggested", or provide your own answer.`
125
+ - After the user answers:
126
+ - If the user replies with "yes", "recommended", or "suggested", use your previously stated recommendation/suggestion as the answer.
127
+ - Otherwise, validate the answer maps to one option or fits the <=5 word constraint.
128
+ - If ambiguous, ask for a quick disambiguation (count still belongs to same question; do not advance).
129
+ - Once satisfactory, record it in working memory (do not yet write to disk) and move to the next queued question.
130
+ - Stop asking further questions when:
131
+ - All critical ambiguities resolved early (remaining queued items become unnecessary), OR
132
+ - User signals completion ("done", "good", "no more"), OR
133
+ - You reach 5 asked questions.
134
+ - Never reveal future queued questions in advance.
135
+ - If no valid questions exist at start, immediately report no critical ambiguities.
136
+
137
+ 5. Integration after EACH accepted answer (incremental update approach):
138
+ - Maintain in-memory representation of the spec (loaded once at start) plus the raw file contents.
139
+ - For the first integrated answer in this session:
140
+ - Ensure a `## Clarifications` section exists (create it just after the highest-level contextual/overview section per the spec template if missing).
141
+ - Under it, create (if not present) a `### Session YYYY-MM-DD` subheading for today.
142
+ - Append a bullet line immediately after acceptance: `- Q: <question> → A: <final answer>`.
143
+ - Then immediately apply the clarification to the most appropriate section(s):
144
+ - Functional ambiguity → Update or add a bullet in Functional Requirements.
145
+ - User interaction / actor distinction → Update User Stories or Actors subsection (if present) with clarified role, constraint, or scenario.
146
+ - Data shape / entities → Update Data Model (add fields, types, relationships) preserving ordering; note added constraints succinctly.
147
+ - Non-functional constraint → Add/modify measurable criteria in Non-Functional / Quality Attributes section (convert vague adjective to metric or explicit target).
148
+ - Edge case / negative flow → Add a new bullet under Edge Cases / Error Handling (or create such subsection if template provides placeholder for it).
149
+ - Terminology conflict → Normalize term across spec; retain original only if necessary by adding `(formerly referred to as "X")` once.
150
+ - If the clarification invalidates an earlier ambiguous statement, replace that statement instead of duplicating; leave no obsolete contradictory text.
151
+ - Save the spec file AFTER each integration to minimize risk of context loss (atomic overwrite).
152
+ - Preserve formatting: do not reorder unrelated sections; keep heading hierarchy intact.
153
+ - Keep each inserted clarification minimal and testable (avoid narrative drift).
154
+
155
+ 6. Validation (performed after EACH write plus final pass):
156
+ - Clarifications session contains exactly one bullet per accepted answer (no duplicates).
157
+ - Total asked (accepted) questions ≤ 5.
158
+ - Updated sections contain no lingering vague placeholders the new answer was meant to resolve.
159
+ - No contradictory earlier statement remains (scan for now-invalid alternative choices removed).
160
+ - Markdown structure valid; only allowed new headings: `## Clarifications`, `### Session YYYY-MM-DD`.
161
+ - Terminology consistency: same canonical term used across all updated sections.
162
+
163
+ 7. Write the updated spec back to `FEATURE_SPEC`.
164
+
165
+ 8. Report completion (after questioning loop ends or early termination):
166
+ - Number of questions asked & answered.
167
+ - Path to updated spec.
168
+ - Sections touched (list names).
169
+ - Coverage summary table listing each taxonomy category with Status: Resolved (was Partial/Missing and addressed), Deferred (exceeds question quota or better suited for planning), Clear (already sufficient), Outstanding (still Partial/Missing but low impact).
170
+ - If any Outstanding or Deferred remain, recommend whether to proceed to `/speckit.plan` or run `/speckit.clarify` again later post-plan.
171
+ - Suggested next command.
172
+
173
+ Behavior rules:
174
+
175
+ - If no meaningful ambiguities found (or all potential questions would be low-impact), respond: "No critical ambiguities detected worth formal clarification." and suggest proceeding.
176
+ - If spec file missing, instruct user to run `/speckit.specify` first (do not create a new spec here).
177
+ - Never exceed 5 total asked questions (clarification retries for a single question do not count as new questions).
178
+ - Avoid speculative tech stack questions unless the absence blocks functional clarity.
179
+ - Respect user early termination signals ("stop", "done", "proceed").
180
+ - If no questions asked due to full coverage, output a compact coverage summary (all categories Clear) then suggest advancing.
181
+ - If quota reached with unresolved high-impact categories remaining, explicitly flag them under Deferred with rationale.
182
+
183
+ Context for prioritization: $ARGUMENTS
@@ -0,0 +1,86 @@
1
+ ---
2
+ name: "speckit-constitution"
3
+ description: "Create or update the project constitution from interactive or provided principle inputs, ensuring all dependent templates stay in sync."
4
+ compatibility: "Requires spec-kit project structure with .specify/ directory"
5
+ metadata:
6
+ author: "github-spec-kit"
7
+ source: "templates/commands/constitution.md"
8
+ ---
9
+
10
+
11
+ ## User Input
12
+
13
+ ```text
14
+ $ARGUMENTS
15
+ ```
16
+
17
+ You **MUST** consider the user input before proceeding (if not empty).
18
+
19
+ ## Outline
20
+
21
+ You are updating the project constitution at `.specify/memory/constitution.md`. This file is a TEMPLATE containing placeholder tokens in square brackets (e.g. `[PROJECT_NAME]`, `[PRINCIPLE_1_NAME]`). Your job is to (a) collect/derive concrete values, (b) fill the template precisely, and (c) propagate any amendments across dependent artifacts.
22
+
23
+ **Note**: If `.specify/memory/constitution.md` does not exist yet, it should have been initialized from `.specify/templates/constitution-template.md` during project setup. If it's missing, copy the template first.
24
+
25
+ Follow this execution flow:
26
+
27
+ 1. Load the existing constitution at `.specify/memory/constitution.md`.
28
+ - Identify every placeholder token of the form `[ALL_CAPS_IDENTIFIER]`.
29
+ **IMPORTANT**: The user might require less or more principles than the ones used in the template. If a number is specified, respect that - follow the general template. You will update the doc accordingly.
30
+
31
+ 2. Collect/derive values for placeholders:
32
+ - If user input (conversation) supplies a value, use it.
33
+ - Otherwise infer from existing repo context (README, docs, prior constitution versions if embedded).
34
+ - For governance dates: `RATIFICATION_DATE` is the original adoption date (if unknown ask or mark TODO), `LAST_AMENDED_DATE` is today if changes are made, otherwise keep previous.
35
+ - `CONSTITUTION_VERSION` must increment according to semantic versioning rules:
36
+ - MAJOR: Backward incompatible governance/principle removals or redefinitions.
37
+ - MINOR: New principle/section added or materially expanded guidance.
38
+ - PATCH: Clarifications, wording, typo fixes, non-semantic refinements.
39
+ - If version bump type ambiguous, propose reasoning before finalizing.
40
+
41
+ 3. Draft the updated constitution content:
42
+ - Replace every placeholder with concrete text (no bracketed tokens left except intentionally retained template slots that the project has chosen not to define yet—explicitly justify any left).
43
+ - Preserve heading hierarchy and comments can be removed once replaced unless they still add clarifying guidance.
44
+ - Ensure each Principle section: succinct name line, paragraph (or bullet list) capturing non‑negotiable rules, explicit rationale if not obvious.
45
+ - Ensure Governance section lists amendment procedure, versioning policy, and compliance review expectations.
46
+
47
+ 4. Consistency propagation checklist (convert prior checklist into active validations):
48
+ - Read `.specify/templates/plan-template.md` and ensure any "Constitution Check" or rules align with updated principles.
49
+ - Read `.specify/templates/spec-template.md` for scope/requirements alignment—update if constitution adds/removes mandatory sections or constraints.
50
+ - Read `.specify/templates/tasks-template.md` and ensure task categorization reflects new or removed principle-driven task types (e.g., observability, versioning, testing discipline).
51
+ - Read each command file in `.specify/templates/commands/*.md` (including this one) to verify no outdated references (agent-specific names like CLAUDE only) remain when generic guidance is required.
52
+ - Read any runtime guidance docs (e.g., `README.md`, `.hforge/library/docs/quickstart.md`, or agent-specific guidance files if present). Update references to principles changed.
53
+
54
+ 5. Produce a Sync Impact Report (prepend as an HTML comment at top of the constitution file after update):
55
+ - Version change: old → new
56
+ - List of modified principles (old title → new title if renamed)
57
+ - Added sections
58
+ - Removed sections
59
+ - Templates requiring updates (✅ updated / ⚠ pending) with file paths
60
+ - Follow-up TODOs if any placeholders intentionally deferred.
61
+
62
+ 6. Validation before final output:
63
+ - No remaining unexplained bracket tokens.
64
+ - Version line matches report.
65
+ - Dates ISO format YYYY-MM-DD.
66
+ - Principles are declarative, testable, and free of vague language ("should" → replace with MUST/SHOULD rationale where appropriate).
67
+
68
+ 7. Write the completed constitution back to `.specify/memory/constitution.md` (overwrite).
69
+
70
+ 8. Output a final summary to the user with:
71
+ - New version and bump rationale.
72
+ - Any files flagged for manual follow-up.
73
+ - Suggested commit message (e.g., `docs: amend constitution to vX.Y.Z (principle additions + governance update)`).
74
+
75
+ Formatting & Style Requirements:
76
+
77
+ - Use Markdown headings exactly as in the template (do not demote/promote levels).
78
+ - Wrap long rationale lines to keep readability (<100 chars ideally) but do not hard enforce with awkward breaks.
79
+ - Keep a single blank line between sections.
80
+ - Avoid trailing whitespace.
81
+
82
+ If the user supplies partial updates (e.g., only one principle revision), still perform validation and version decision steps.
83
+
84
+ If critical info missing (e.g., ratification date truly unknown), insert `TODO(<FIELD_NAME>): explanation` and include in the Sync Impact Report under deferred items.
85
+
86
+ Do not create a new template; always operate on the existing `.specify/memory/constitution.md` file.
@@ -0,0 +1,204 @@
1
+ ---
2
+ name: "speckit-implement"
3
+ description: "Execute the implementation plan by processing and executing all tasks defined in tasks.md"
4
+ compatibility: "Requires spec-kit project structure with .specify/ directory"
5
+ metadata:
6
+ author: "github-spec-kit"
7
+ source: "templates/commands/implement.md"
8
+ ---
9
+
10
+
11
+ ## User Input
12
+
13
+ ```text
14
+ $ARGUMENTS
15
+ ```
16
+
17
+ You **MUST** consider the user input before proceeding (if not empty).
18
+
19
+ ## Pre-Execution Checks
20
+
21
+ **Check for extension hooks (before implementation)**:
22
+ - Check if `.specify/extensions.yml` exists in the project root.
23
+ - If it exists, read it and look for entries under the `hooks.before_implement` key
24
+ - If the YAML cannot be parsed or is invalid, skip hook checking silently and continue normally
25
+ - Filter out hooks where `enabled` is explicitly `false`. Treat hooks without an `enabled` field as enabled by default.
26
+ - For each remaining hook, do **not** attempt to interpret or evaluate hook `condition` expressions:
27
+ - If the hook has no `condition` field, or it is null/empty, treat the hook as executable
28
+ - If the hook defines a non-empty `condition`, skip the hook and leave condition evaluation to the HookExecutor implementation
29
+ - For each executable hook, output the following based on its `optional` flag:
30
+ - **Optional hook** (`optional: true`):
31
+ ```
32
+ ## Extension Hooks
33
+
34
+ **Optional Pre-Hook**: {extension}
35
+ Command: `/{command}`
36
+ Description: {description}
37
+
38
+ Prompt: {prompt}
39
+ To execute: `/{command}`
40
+ ```
41
+ - **Mandatory hook** (`optional: false`):
42
+ ```
43
+ ## Extension Hooks
44
+
45
+ **Automatic Pre-Hook**: {extension}
46
+ Executing: `/{command}`
47
+ EXECUTE_COMMAND: {command}
48
+
49
+ Wait for the result of the hook command before proceeding to the Outline.
50
+ ```
51
+ - If no hooks are registered or `.specify/extensions.yml` does not exist, skip silently
52
+
53
+ ## Outline
54
+
55
+ 1. Run `.specify/scripts/powershell/check-prerequisites.ps1 -Json -RequireTasks -IncludeTasks` from repo root and parse FEATURE_DIR and AVAILABLE_DOCS list. All paths must be absolute. For single quotes in args like "I'm Groot", use escape syntax: e.g 'I'\''m Groot' (or double-quote if possible: "I'm Groot").
56
+
57
+ 2. **Check checklists status** (if FEATURE_DIR/checklists/ exists):
58
+ - Scan all checklist files in the checklists/ directory
59
+ - For each checklist, count:
60
+ - Total items: All lines matching `- [ ]` or `- [X]` or `- [x]`
61
+ - Completed items: Lines matching `- [X]` or `- [x]`
62
+ - Incomplete items: Lines matching `- [ ]`
63
+ - Create a status table:
64
+
65
+ ```text
66
+ | Checklist | Total | Completed | Incomplete | Status |
67
+ |-----------|-------|-----------|------------|--------|
68
+ | ux.md | 12 | 12 | 0 | ✓ PASS |
69
+ | test.md | 8 | 5 | 3 | ✗ FAIL |
70
+ | security.md | 6 | 6 | 0 | ✓ PASS |
71
+ ```
72
+
73
+ - Calculate overall status:
74
+ - **PASS**: All checklists have 0 incomplete items
75
+ - **FAIL**: One or more checklists have incomplete items
76
+
77
+ - **If any checklist is incomplete**:
78
+ - Display the table with incomplete item counts
79
+ - **STOP** and ask: "Some checklists are incomplete. Do you want to proceed with implementation anyway? (yes/no)"
80
+ - Wait for user response before continuing
81
+ - If user says "no" or "wait" or "stop", halt execution
82
+ - If user says "yes" or "proceed" or "continue", proceed to step 3
83
+
84
+ - **If all checklists are complete**:
85
+ - Display the table showing all checklists passed
86
+ - Automatically proceed to step 3
87
+
88
+ 3. Load and analyze the implementation context:
89
+ - **REQUIRED**: Read tasks.md for the complete task list and execution plan
90
+ - **REQUIRED**: Read plan.md for tech stack, architecture, and file structure
91
+ - **IF EXISTS**: Read data-model.md for entities and relationships
92
+ - **IF EXISTS**: Read contracts/ for API specifications and test requirements
93
+ - **IF EXISTS**: Read research.md for technical decisions and constraints
94
+ - **IF EXISTS**: Read quickstart.md for integration scenarios
95
+
96
+ 4. **Project Setup Verification**:
97
+ - **REQUIRED**: Create/verify ignore files based on actual project setup:
98
+
99
+ **Detection & Creation Logic**:
100
+ - Check if the following command succeeds to determine if the repository is a git repo (create/verify .gitignore if so):
101
+
102
+ ```sh
103
+ git rev-parse --git-dir 2>/dev/null
104
+ ```
105
+
106
+ - Check if Dockerfile* exists or Docker in plan.md → create/verify .dockerignore
107
+ - Check if .eslintrc* exists → create/verify .eslintignore
108
+ - Check if eslint.config.* exists → ensure the config's `ignores` entries cover required patterns
109
+ - Check if .prettierrc* exists → create/verify .prettierignore
110
+ - Check if .npmrc or package.json exists → create/verify .npmignore (if publishing)
111
+ - Check if terraform files (*.tf) exist → create/verify .terraformignore
112
+ - Check if .helmignore needed (helm charts present) → create/verify .helmignore
113
+
114
+ **If ignore file already exists**: Verify it contains essential patterns, append missing critical patterns only
115
+ **If ignore file missing**: Create with full pattern set for detected technology
116
+
117
+ **Common Patterns by Technology** (from plan.md tech stack):
118
+ - **Node.js/JavaScript/TypeScript**: `node_modules/`, `dist/`, `build/`, `*.log`, `.env*`
119
+ - **Python**: `__pycache__/`, `*.pyc`, `.venv/`, `venv/`, `dist/`, `*.egg-info/`
120
+ - **Java**: `target/`, `*.class`, `*.jar`, `.gradle/`, `build/`
121
+ - **C#/.NET**: `bin/`, `obj/`, `*.user`, `*.suo`, `packages/`
122
+ - **Go**: `*.exe`, `*.test`, `vendor/`, `*.out`
123
+ - **Ruby**: `.bundle/`, `log/`, `tmp/`, `*.gem`, `vendor/bundle/`
124
+ - **PHP**: `vendor/`, `*.log`, `*.cache`, `*.env`
125
+ - **Rust**: `target/`, `debug/`, `release/`, `*.rs.bk`, `*.rlib`, `*.prof*`, `.idea/`, `*.log`, `.env*`
126
+ - **Kotlin**: `build/`, `out/`, `.gradle/`, `.idea/`, `*.class`, `*.jar`, `*.iml`, `*.log`, `.env*`
127
+ - **C++**: `build/`, `bin/`, `obj/`, `out/`, `*.o`, `*.so`, `*.a`, `*.exe`, `*.dll`, `.idea/`, `*.log`, `.env*`
128
+ - **C**: `build/`, `bin/`, `obj/`, `out/`, `*.o`, `*.a`, `*.so`, `*.exe`, `*.dll`, `autom4te.cache/`, `config.status`, `config.log`, `.idea/`, `*.log`, `.env*`
129
+ - **Swift**: `.build/`, `DerivedData/`, `*.swiftpm/`, `Packages/`
130
+ - **R**: `.Rproj.user/`, `.Rhistory`, `.RData`, `.Ruserdata`, `*.Rproj`, `packrat/`, `renv/`
131
+ - **Universal**: `.DS_Store`, `Thumbs.db`, `*.tmp`, `*.swp`, `.vscode/`, `.idea/`
132
+
133
+ **Tool-Specific Patterns**:
134
+ - **Docker**: `node_modules/`, `.git/`, `Dockerfile*`, `.dockerignore`, `*.log*`, `.env*`, `coverage/`
135
+ - **ESLint**: `node_modules/`, `dist/`, `build/`, `coverage/`, `*.min.js`
136
+ - **Prettier**: `node_modules/`, `dist/`, `build/`, `coverage/`, `package-lock.json`, `yarn.lock`, `pnpm-lock.yaml`
137
+ - **Terraform**: `.terraform/`, `*.tfstate*`, `*.tfvars`, `.terraform.lock.hcl`
138
+ - **Kubernetes/k8s**: `*.secret.yaml`, `secrets/`, `.kube/`, `kubeconfig*`, `*.key`, `*.crt`
139
+
140
+ 5. Parse tasks.md structure and extract:
141
+ - **Task phases**: Setup, Tests, Core, Integration, Polish
142
+ - **Task dependencies**: Sequential vs parallel execution rules
143
+ - **Task details**: ID, description, file paths, parallel markers [P]
144
+ - **Execution flow**: Order and dependency requirements
145
+
146
+ 6. Execute implementation following the task plan:
147
+ - **Phase-by-phase execution**: Complete each phase before moving to the next
148
+ - **Respect dependencies**: Run sequential tasks in order, parallel tasks [P] can run together
149
+ - **Follow TDD approach**: Execute test tasks before their corresponding implementation tasks
150
+ - **File-based coordination**: Tasks affecting the same files must run sequentially
151
+ - **Validation checkpoints**: Verify each phase completion before proceeding
152
+
153
+ 7. Implementation execution rules:
154
+ - **Setup first**: Initialize project structure, dependencies, configuration
155
+ - **Tests before code**: If you need to write tests for contracts, entities, and integration scenarios
156
+ - **Core development**: Implement models, services, CLI commands, endpoints
157
+ - **Integration work**: Database connections, middleware, logging, external services
158
+ - **Polish and validation**: Unit tests, performance optimization, documentation
159
+
160
+ 8. Progress tracking and error handling:
161
+ - Report progress after each completed task
162
+ - Halt execution if any non-parallel task fails
163
+ - For parallel tasks [P], continue with successful tasks, report failed ones
164
+ - Provide clear error messages with context for debugging
165
+ - Suggest next steps if implementation cannot proceed
166
+ - **IMPORTANT** For completed tasks, make sure to mark the task off as [X] in the tasks file.
167
+
168
+ 9. Completion validation:
169
+ - Verify all required tasks are completed
170
+ - Check that implemented features match the original specification
171
+ - Validate that tests pass and coverage meets requirements
172
+ - Confirm the implementation follows the technical plan
173
+ - Report final status with summary of completed work
174
+
175
+ Note: This command assumes a complete task breakdown exists in tasks.md. If tasks are incomplete or missing, suggest running `/speckit.tasks` first to regenerate the task list.
176
+
177
+ 10. **Check for extension hooks**: After completion validation, check if `.specify/extensions.yml` exists in the project root.
178
+ - If it exists, read it and look for entries under the `hooks.after_implement` key
179
+ - If the YAML cannot be parsed or is invalid, skip hook checking silently and continue normally
180
+ - Filter out hooks where `enabled` is explicitly `false`. Treat hooks without an `enabled` field as enabled by default.
181
+ - For each remaining hook, do **not** attempt to interpret or evaluate hook `condition` expressions:
182
+ - If the hook has no `condition` field, or it is null/empty, treat the hook as executable
183
+ - If the hook defines a non-empty `condition`, skip the hook and leave condition evaluation to the HookExecutor implementation
184
+ - For each executable hook, output the following based on its `optional` flag:
185
+ - **Optional hook** (`optional: true`):
186
+ ```
187
+ ## Extension Hooks
188
+
189
+ **Optional Hook**: {extension}
190
+ Command: `/{command}`
191
+ Description: {description}
192
+
193
+ Prompt: {prompt}
194
+ To execute: `/{command}`
195
+ ```
196
+ - **Mandatory hook** (`optional: false`):
197
+ ```
198
+ ## Extension Hooks
199
+
200
+ **Automatic Hook**: {extension}
201
+ Executing: `/{command}`
202
+ EXECUTE_COMMAND: {command}
203
+ ```
204
+ - If no hooks are registered or `.specify/extensions.yml` does not exist, skip silently
@@ -0,0 +1,151 @@
1
+ ---
2
+ name: "speckit-plan"
3
+ description: "Execute the implementation planning workflow using the plan template to generate design artifacts."
4
+ compatibility: "Requires spec-kit project structure with .specify/ directory"
5
+ metadata:
6
+ author: "github-spec-kit"
7
+ source: "templates/commands/plan.md"
8
+ ---
9
+
10
+
11
+ ## User Input
12
+
13
+ ```text
14
+ $ARGUMENTS
15
+ ```
16
+
17
+ You **MUST** consider the user input before proceeding (if not empty).
18
+
19
+ ## Pre-Execution Checks
20
+
21
+ **Check for extension hooks (before planning)**:
22
+ - Check if `.specify/extensions.yml` exists in the project root.
23
+ - If it exists, read it and look for entries under the `hooks.before_plan` key
24
+ - If the YAML cannot be parsed or is invalid, skip hook checking silently and continue normally
25
+ - Filter out hooks where `enabled` is explicitly `false`. Treat hooks without an `enabled` field as enabled by default.
26
+ - For each remaining hook, do **not** attempt to interpret or evaluate hook `condition` expressions:
27
+ - If the hook has no `condition` field, or it is null/empty, treat the hook as executable
28
+ - If the hook defines a non-empty `condition`, skip the hook and leave condition evaluation to the HookExecutor implementation
29
+ - For each executable hook, output the following based on its `optional` flag:
30
+ - **Optional hook** (`optional: true`):
31
+ ```
32
+ ## Extension Hooks
33
+
34
+ **Optional Pre-Hook**: {extension}
35
+ Command: `/{command}`
36
+ Description: {description}
37
+
38
+ Prompt: {prompt}
39
+ To execute: `/{command}`
40
+ ```
41
+ - **Mandatory hook** (`optional: false`):
42
+ ```
43
+ ## Extension Hooks
44
+
45
+ **Automatic Pre-Hook**: {extension}
46
+ Executing: `/{command}`
47
+ EXECUTE_COMMAND: {command}
48
+
49
+ Wait for the result of the hook command before proceeding to the Outline.
50
+ ```
51
+ - If no hooks are registered or `.specify/extensions.yml` does not exist, skip silently
52
+
53
+ ## Outline
54
+
55
+ 1. **Setup**: Run `.specify/scripts/powershell/setup-plan.ps1 -Json` from repo root and parse JSON for FEATURE_SPEC, IMPL_PLAN, SPECS_DIR, BRANCH. For single quotes in args like "I'm Groot", use escape syntax: e.g 'I'\''m Groot' (or double-quote if possible: "I'm Groot").
56
+
57
+ 2. **Load context**: Read FEATURE_SPEC and `.specify/memory/constitution.md`. Load IMPL_PLAN template (already copied).
58
+
59
+ 3. **Execute plan workflow**: Follow the structure in IMPL_PLAN template to:
60
+ - Fill Technical Context (mark unknowns as "NEEDS CLARIFICATION")
61
+ - Fill Constitution Check section from constitution
62
+ - Evaluate gates (ERROR if violations unjustified)
63
+ - Phase 0: Generate research.md (resolve all NEEDS CLARIFICATION)
64
+ - Phase 1: Generate data-model.md, contracts/, quickstart.md
65
+ - Phase 1: Update agent context by running the agent script
66
+ - Re-evaluate Constitution Check post-design
67
+
68
+ 4. **Stop and report**: Command ends after Phase 2 planning. Report branch, IMPL_PLAN path, and generated artifacts.
69
+
70
+ 5. **Check for extension hooks**: After reporting, check if `.specify/extensions.yml` exists in the project root.
71
+ - If it exists, read it and look for entries under the `hooks.after_plan` key
72
+ - If the YAML cannot be parsed or is invalid, skip hook checking silently and continue normally
73
+ - Filter out hooks where `enabled` is explicitly `false`. Treat hooks without an `enabled` field as enabled by default.
74
+ - For each remaining hook, do **not** attempt to interpret or evaluate hook `condition` expressions:
75
+ - If the hook has no `condition` field, or it is null/empty, treat the hook as executable
76
+ - If the hook defines a non-empty `condition`, skip the hook and leave condition evaluation to the HookExecutor implementation
77
+ - For each executable hook, output the following based on its `optional` flag:
78
+ - **Optional hook** (`optional: true`):
79
+ ```
80
+ ## Extension Hooks
81
+
82
+ **Optional Hook**: {extension}
83
+ Command: `/{command}`
84
+ Description: {description}
85
+
86
+ Prompt: {prompt}
87
+ To execute: `/{command}`
88
+ ```
89
+ - **Mandatory hook** (`optional: false`):
90
+ ```
91
+ ## Extension Hooks
92
+
93
+ **Automatic Hook**: {extension}
94
+ Executing: `/{command}`
95
+ EXECUTE_COMMAND: {command}
96
+ ```
97
+ - If no hooks are registered or `.specify/extensions.yml` does not exist, skip silently
98
+
99
+ ## Phases
100
+
101
+ ### Phase 0: Outline & Research
102
+
103
+ 1. **Extract unknowns from Technical Context** above:
104
+ - For each NEEDS CLARIFICATION → research task
105
+ - For each dependency → best practices task
106
+ - For each integration → patterns task
107
+
108
+ 2. **Generate and dispatch research agents**:
109
+
110
+ ```text
111
+ For each unknown in Technical Context:
112
+ Task: "Research {unknown} for {feature context}"
113
+ For each technology choice:
114
+ Task: "Find best practices for {tech} in {domain}"
115
+ ```
116
+
117
+ 3. **Consolidate findings** in `research.md` using format:
118
+ - Decision: [what was chosen]
119
+ - Rationale: [why chosen]
120
+ - Alternatives considered: [what else evaluated]
121
+
122
+ **Output**: research.md with all NEEDS CLARIFICATION resolved
123
+
124
+ ### Phase 1: Design & Contracts
125
+
126
+ **Prerequisites:** `research.md` complete
127
+
128
+ 1. **Extract entities from feature spec** → `data-model.md`:
129
+ - Entity name, fields, relationships
130
+ - Validation rules from requirements
131
+ - State transitions if applicable
132
+
133
+ 2. **Define interface contracts** (if project has external interfaces) → `/contracts/`:
134
+ - Identify what interfaces the project exposes to users or other systems
135
+ - Document the contract format appropriate for the project type
136
+ - Examples: public APIs for libraries, command schemas for CLI tools, endpoints for web services, grammars for parsers, UI contracts for applications
137
+ - Skip if project is purely internal (build scripts, one-off tools, etc.)
138
+
139
+ 3. **Agent context update**:
140
+ - Run `.specify/scripts/powershell/update-agent-context.ps1 -AgentType codex`
141
+ - These scripts detect which AI agent is in use
142
+ - Update the appropriate agent-specific context file
143
+ - Add only new technology from current plan
144
+ - Preserve manual additions between markers
145
+
146
+ **Output**: data-model.md, /contracts/*, quickstart.md, agent-specific file
147
+
148
+ ## Key rules
149
+
150
+ - Use absolute paths
151
+ - ERROR on gate failures or unresolved clarifications