eai-cli 0.0.0-bootstrap.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 (690) hide show
  1. package/LICENSE +183 -0
  2. package/NOTICE +4 -0
  3. package/README.md +14 -0
  4. package/dist/commands/agent.d.ts +3 -0
  5. package/dist/commands/agent.d.ts.map +1 -0
  6. package/dist/commands/agent.js +69 -0
  7. package/dist/commands/agent.js.map +1 -0
  8. package/dist/commands/blocks.d.ts +3 -0
  9. package/dist/commands/blocks.d.ts.map +1 -0
  10. package/dist/commands/blocks.js +249 -0
  11. package/dist/commands/blocks.js.map +1 -0
  12. package/dist/commands/chat.d.ts +6 -0
  13. package/dist/commands/chat.d.ts.map +1 -0
  14. package/dist/commands/chat.js +105 -0
  15. package/dist/commands/chat.js.map +1 -0
  16. package/dist/commands/deploy.d.ts +36 -0
  17. package/dist/commands/deploy.d.ts.map +1 -0
  18. package/dist/commands/deploy.js +712 -0
  19. package/dist/commands/deploy.js.map +1 -0
  20. package/dist/commands/dev.d.ts +15 -0
  21. package/dist/commands/dev.d.ts.map +1 -0
  22. package/dist/commands/dev.js +133 -0
  23. package/dist/commands/dev.js.map +1 -0
  24. package/dist/commands/docs.d.ts +6 -0
  25. package/dist/commands/docs.d.ts.map +1 -0
  26. package/dist/commands/docs.js +118 -0
  27. package/dist/commands/docs.js.map +1 -0
  28. package/dist/commands/env.d.ts +10 -0
  29. package/dist/commands/env.d.ts.map +1 -0
  30. package/dist/commands/env.js +200 -0
  31. package/dist/commands/env.js.map +1 -0
  32. package/dist/commands/errors.d.ts +3 -0
  33. package/dist/commands/errors.d.ts.map +1 -0
  34. package/dist/commands/errors.js +72 -0
  35. package/dist/commands/errors.js.map +1 -0
  36. package/dist/commands/gofer.d.ts +3 -0
  37. package/dist/commands/gofer.d.ts.map +1 -0
  38. package/dist/commands/gofer.js +134 -0
  39. package/dist/commands/gofer.js.map +1 -0
  40. package/dist/commands/init.d.ts +14 -0
  41. package/dist/commands/init.d.ts.map +1 -0
  42. package/dist/commands/init.js +1437 -0
  43. package/dist/commands/init.js.map +1 -0
  44. package/dist/commands/login.d.ts +7 -0
  45. package/dist/commands/login.d.ts.map +1 -0
  46. package/dist/commands/login.js +117 -0
  47. package/dist/commands/login.js.map +1 -0
  48. package/dist/commands/provision.d.ts +6 -0
  49. package/dist/commands/provision.d.ts.map +1 -0
  50. package/dist/commands/provision.js +855 -0
  51. package/dist/commands/provision.js.map +1 -0
  52. package/dist/commands/publicapi.d.ts +6 -0
  53. package/dist/commands/publicapi.d.ts.map +1 -0
  54. package/dist/commands/publicapi.js +184 -0
  55. package/dist/commands/publicapi.js.map +1 -0
  56. package/dist/commands/resources.d.ts +38 -0
  57. package/dist/commands/resources.d.ts.map +1 -0
  58. package/dist/commands/resources.js +1010 -0
  59. package/dist/commands/resources.js.map +1 -0
  60. package/dist/commands/runtime.d.ts +3 -0
  61. package/dist/commands/runtime.d.ts.map +1 -0
  62. package/dist/commands/runtime.js +78 -0
  63. package/dist/commands/runtime.js.map +1 -0
  64. package/dist/commands/template.d.ts +3 -0
  65. package/dist/commands/template.d.ts.map +1 -0
  66. package/dist/commands/template.js +365 -0
  67. package/dist/commands/template.js.map +1 -0
  68. package/dist/commands/tenant.d.ts +45 -0
  69. package/dist/commands/tenant.d.ts.map +1 -0
  70. package/dist/commands/tenant.js +1036 -0
  71. package/dist/commands/tenant.js.map +1 -0
  72. package/dist/commands/types.d.ts +130 -0
  73. package/dist/commands/types.d.ts.map +1 -0
  74. package/dist/commands/types.js +1636 -0
  75. package/dist/commands/types.js.map +1 -0
  76. package/dist/commands/update.d.ts +13 -0
  77. package/dist/commands/update.d.ts.map +1 -0
  78. package/dist/commands/update.js +163 -0
  79. package/dist/commands/update.js.map +1 -0
  80. package/dist/commands/user.d.ts +6 -0
  81. package/dist/commands/user.d.ts.map +1 -0
  82. package/dist/commands/user.js +359 -0
  83. package/dist/commands/user.js.map +1 -0
  84. package/dist/commands/verify.d.ts +40 -0
  85. package/dist/commands/verify.d.ts.map +1 -0
  86. package/dist/commands/verify.js +1442 -0
  87. package/dist/commands/verify.js.map +1 -0
  88. package/dist/commands/vertical.d.ts +24 -0
  89. package/dist/commands/vertical.d.ts.map +1 -0
  90. package/dist/commands/vertical.js +301 -0
  91. package/dist/commands/vertical.js.map +1 -0
  92. package/dist/commands/whoami.d.ts +6 -0
  93. package/dist/commands/whoami.d.ts.map +1 -0
  94. package/dist/commands/whoami.js +73 -0
  95. package/dist/commands/whoami.js.map +1 -0
  96. package/dist/commands/workflow.d.ts +6 -0
  97. package/dist/commands/workflow.d.ts.map +1 -0
  98. package/dist/commands/workflow.js +400 -0
  99. package/dist/commands/workflow.js.map +1 -0
  100. package/dist/index.d.ts +10 -0
  101. package/dist/index.d.ts.map +1 -0
  102. package/dist/index.js +272 -0
  103. package/dist/index.js.map +1 -0
  104. package/dist/lib/agent-guide.d.ts +24 -0
  105. package/dist/lib/agent-guide.d.ts.map +1 -0
  106. package/dist/lib/agent-guide.js +155 -0
  107. package/dist/lib/agent-guide.js.map +1 -0
  108. package/dist/lib/api.d.ts +338 -0
  109. package/dist/lib/api.d.ts.map +1 -0
  110. package/dist/lib/api.js +991 -0
  111. package/dist/lib/api.js.map +1 -0
  112. package/dist/lib/auth.d.ts +65 -0
  113. package/dist/lib/auth.d.ts.map +1 -0
  114. package/dist/lib/auth.js +592 -0
  115. package/dist/lib/auth.js.map +1 -0
  116. package/dist/lib/azure-cli.d.ts +6 -0
  117. package/dist/lib/azure-cli.d.ts.map +1 -0
  118. package/dist/lib/azure-cli.js +13 -0
  119. package/dist/lib/azure-cli.js.map +1 -0
  120. package/dist/lib/block-catalog-normalize.d.ts +47 -0
  121. package/dist/lib/block-catalog-normalize.d.ts.map +1 -0
  122. package/dist/lib/block-catalog-normalize.js +355 -0
  123. package/dist/lib/block-catalog-normalize.js.map +1 -0
  124. package/dist/lib/block-catalog-types.d.ts +111 -0
  125. package/dist/lib/block-catalog-types.d.ts.map +1 -0
  126. package/dist/lib/block-catalog-types.js +41 -0
  127. package/dist/lib/block-catalog-types.js.map +1 -0
  128. package/dist/lib/block-catalog-utils.d.ts +7 -0
  129. package/dist/lib/block-catalog-utils.d.ts.map +1 -0
  130. package/dist/lib/block-catalog-utils.js +47 -0
  131. package/dist/lib/block-catalog-utils.js.map +1 -0
  132. package/dist/lib/block-catalog-validation.d.ts +5 -0
  133. package/dist/lib/block-catalog-validation.d.ts.map +1 -0
  134. package/dist/lib/block-catalog-validation.js +112 -0
  135. package/dist/lib/block-catalog-validation.js.map +1 -0
  136. package/dist/lib/block-catalog.d.ts +3 -0
  137. package/dist/lib/block-catalog.d.ts.map +1 -0
  138. package/dist/lib/block-catalog.js +284 -0
  139. package/dist/lib/block-catalog.js.map +1 -0
  140. package/dist/lib/cloud-env.d.ts +25 -0
  141. package/dist/lib/cloud-env.d.ts.map +1 -0
  142. package/dist/lib/cloud-env.js +79 -0
  143. package/dist/lib/cloud-env.js.map +1 -0
  144. package/dist/lib/config.d.ts +116 -0
  145. package/dist/lib/config.d.ts.map +1 -0
  146. package/dist/lib/config.js +195 -0
  147. package/dist/lib/config.js.map +1 -0
  148. package/dist/lib/context.d.ts +43 -0
  149. package/dist/lib/context.d.ts.map +1 -0
  150. package/dist/lib/context.js +68 -0
  151. package/dist/lib/context.js.map +1 -0
  152. package/dist/lib/error-codes.d.ts +56 -0
  153. package/dist/lib/error-codes.d.ts.map +1 -0
  154. package/dist/lib/error-codes.js +211 -0
  155. package/dist/lib/error-codes.js.map +1 -0
  156. package/dist/lib/error-guidance/catalog.d.ts +648 -0
  157. package/dist/lib/error-guidance/catalog.d.ts.map +1 -0
  158. package/dist/lib/error-guidance/catalog.js +940 -0
  159. package/dist/lib/error-guidance/catalog.js.map +1 -0
  160. package/dist/lib/error-guidance/match.d.ts +3 -0
  161. package/dist/lib/error-guidance/match.d.ts.map +1 -0
  162. package/dist/lib/error-guidance/match.js +46 -0
  163. package/dist/lib/error-guidance/match.js.map +1 -0
  164. package/dist/lib/error-guidance/render.d.ts +5 -0
  165. package/dist/lib/error-guidance/render.d.ts.map +1 -0
  166. package/dist/lib/error-guidance/render.js +92 -0
  167. package/dist/lib/error-guidance/render.js.map +1 -0
  168. package/dist/lib/error-guidance/types.d.ts +76 -0
  169. package/dist/lib/error-guidance/types.d.ts.map +1 -0
  170. package/dist/lib/error-guidance/types.js +2 -0
  171. package/dist/lib/error-guidance/types.js.map +1 -0
  172. package/dist/lib/error-guidance/validate.d.ts +3 -0
  173. package/dist/lib/error-guidance/validate.d.ts.map +1 -0
  174. package/dist/lib/error-guidance/validate.js +59 -0
  175. package/dist/lib/error-guidance/validate.js.map +1 -0
  176. package/dist/lib/gofer-installer.d.ts +32 -0
  177. package/dist/lib/gofer-installer.d.ts.map +1 -0
  178. package/dist/lib/gofer-installer.js +589 -0
  179. package/dist/lib/gofer-installer.js.map +1 -0
  180. package/dist/lib/gofer-refresh.d.ts +46 -0
  181. package/dist/lib/gofer-refresh.d.ts.map +1 -0
  182. package/dist/lib/gofer-refresh.js +536 -0
  183. package/dist/lib/gofer-refresh.js.map +1 -0
  184. package/dist/lib/next-route-exports.d.ts +6 -0
  185. package/dist/lib/next-route-exports.d.ts.map +1 -0
  186. package/dist/lib/next-route-exports.js +127 -0
  187. package/dist/lib/next-route-exports.js.map +1 -0
  188. package/dist/lib/npm.d.ts +2 -0
  189. package/dist/lib/npm.d.ts.map +1 -0
  190. package/dist/lib/npm.js +4 -0
  191. package/dist/lib/npm.js.map +1 -0
  192. package/dist/lib/object-type-defaults.d.ts +4 -0
  193. package/dist/lib/object-type-defaults.d.ts.map +1 -0
  194. package/dist/lib/object-type-defaults.js +72 -0
  195. package/dist/lib/object-type-defaults.js.map +1 -0
  196. package/dist/lib/output.d.ts +35 -0
  197. package/dist/lib/output.d.ts.map +1 -0
  198. package/dist/lib/output.js +166 -0
  199. package/dist/lib/output.js.map +1 -0
  200. package/dist/lib/profile.d.ts +52 -0
  201. package/dist/lib/profile.d.ts.map +1 -0
  202. package/dist/lib/profile.js +116 -0
  203. package/dist/lib/profile.js.map +1 -0
  204. package/dist/lib/project-manifest.d.ts +42 -0
  205. package/dist/lib/project-manifest.d.ts.map +1 -0
  206. package/dist/lib/project-manifest.js +191 -0
  207. package/dist/lib/project-manifest.js.map +1 -0
  208. package/dist/lib/resourceapi-bundle.d.ts +33 -0
  209. package/dist/lib/resourceapi-bundle.d.ts.map +1 -0
  210. package/dist/lib/resourceapi-bundle.js +79 -0
  211. package/dist/lib/resourceapi-bundle.js.map +1 -0
  212. package/dist/lib/runtime-contract.d.ts +84 -0
  213. package/dist/lib/runtime-contract.d.ts.map +1 -0
  214. package/dist/lib/runtime-contract.js +318 -0
  215. package/dist/lib/runtime-contract.js.map +1 -0
  216. package/dist/lib/schema-builder.d.ts +28 -0
  217. package/dist/lib/schema-builder.d.ts.map +1 -0
  218. package/dist/lib/schema-builder.js +69 -0
  219. package/dist/lib/schema-builder.js.map +1 -0
  220. package/dist/lib/tenant-context.d.ts +127 -0
  221. package/dist/lib/tenant-context.d.ts.map +1 -0
  222. package/dist/lib/tenant-context.js +573 -0
  223. package/dist/lib/tenant-context.js.map +1 -0
  224. package/dist/lib/update-check.d.ts +52 -0
  225. package/dist/lib/update-check.d.ts.map +1 -0
  226. package/dist/lib/update-check.js +271 -0
  227. package/dist/lib/update-check.js.map +1 -0
  228. package/dist/lib/update-maintenance.d.ts +15 -0
  229. package/dist/lib/update-maintenance.d.ts.map +1 -0
  230. package/dist/lib/update-maintenance.js +187 -0
  231. package/dist/lib/update-maintenance.js.map +1 -0
  232. package/dist/lib/utils.d.ts +23 -0
  233. package/dist/lib/utils.d.ts.map +1 -0
  234. package/dist/lib/utils.js +48 -0
  235. package/dist/lib/utils.js.map +1 -0
  236. package/dist/lib/workflow-provisioning.d.ts +54 -0
  237. package/dist/lib/workflow-provisioning.d.ts.map +1 -0
  238. package/dist/lib/workflow-provisioning.js +281 -0
  239. package/dist/lib/workflow-provisioning.js.map +1 -0
  240. package/package.json +51 -0
  241. package/resources/gofer/.gofer-version +7 -0
  242. package/resources/gofer/agents-skills/0_gofer_start/SKILL.md +1287 -0
  243. package/resources/gofer/agents-skills/0a_problem_validation/SKILL.md +429 -0
  244. package/resources/gofer/agents-skills/10_gofer_cloud/SKILL.md +635 -0
  245. package/resources/gofer/agents-skills/1_gofer_research/SKILL.md +1159 -0
  246. package/resources/gofer/agents-skills/2_gofer_specify/SKILL.md +860 -0
  247. package/resources/gofer/agents-skills/3_gofer_plan/SKILL.md +886 -0
  248. package/resources/gofer/agents-skills/4_gofer_tasks/SKILL.md +748 -0
  249. package/resources/gofer/agents-skills/5_gofer_implement/SKILL.md +924 -0
  250. package/resources/gofer/agents-skills/6_gofer_validate/SKILL.md +2269 -0
  251. package/resources/gofer/agents-skills/7_gofer_save/SKILL.md +423 -0
  252. package/resources/gofer/agents-skills/7a_stakeholder_comms/SKILL.md +508 -0
  253. package/resources/gofer/agents-skills/8_gofer_branding/SKILL.md +315 -0
  254. package/resources/gofer/agents-skills/9_gofer_tests/SKILL.md +558 -0
  255. package/resources/gofer/agents-skills/gofer_bootstrap_workspace/SKILL.md +148 -0
  256. package/resources/gofer/agents-skills/gofer_check_workspace/SKILL.md +119 -0
  257. package/resources/gofer/agents-skills/gofer_constitution/SKILL.md +612 -0
  258. package/resources/gofer/agents-skills/gofer_diagnose/SKILL.md +114 -0
  259. package/resources/gofer/agents-skills/gofer_eai_first_run/SKILL.md +397 -0
  260. package/resources/gofer/agents-skills/gofer_hydrate/SKILL.md +561 -0
  261. package/resources/gofer/agents-skills/gofer_personality/SKILL.md +44 -0
  262. package/resources/gofer/agents-skills/gofer_plan/SKILL.md +40 -0
  263. package/resources/gofer/agents-skills/gofer_side/SKILL.md +45 -0
  264. package/resources/gofer/agents-skills/gofer_spec_summary/SKILL.md +112 -0
  265. package/resources/gofer/agents-skills/gofer_tdd/SKILL.md +112 -0
  266. package/resources/gofer/agents-skills/gofer_vocabulary/SKILL.md +112 -0
  267. package/resources/gofer/agents-skills/gofer_zoom_out/SKILL.md +112 -0
  268. package/resources/gofer/bash-scripts/check-context-health.sh +365 -0
  269. package/resources/gofer/bash-scripts/check-persona-pack.sh +81 -0
  270. package/resources/gofer/bash-scripts/check-prerequisites.sh +168 -0
  271. package/resources/gofer/bash-scripts/common.sh +192 -0
  272. package/resources/gofer/bash-scripts/create-new-feature.sh +260 -0
  273. package/resources/gofer/bash-scripts/install-optional-tools.sh +270 -0
  274. package/resources/gofer/bash-scripts/log-stage.sh +224 -0
  275. package/resources/gofer/bash-scripts/mark-task-complete.sh +74 -0
  276. package/resources/gofer/bash-scripts/pipeline-state.sh +306 -0
  277. package/resources/gofer/bash-scripts/read-failed-approaches.sh +114 -0
  278. package/resources/gofer/bash-scripts/read-session-memories.sh +96 -0
  279. package/resources/gofer/bash-scripts/save-checkpoint.sh +407 -0
  280. package/resources/gofer/bash-scripts/setup-plan.sh +62 -0
  281. package/resources/gofer/bash-scripts/sync-implementation-status.sh +47 -0
  282. package/resources/gofer/bash-scripts/update-agent-context.sh +772 -0
  283. package/resources/gofer/bash-scripts/validate-artifact.sh +335 -0
  284. package/resources/gofer/bash-scripts/verify-task.sh +384 -0
  285. package/resources/gofer/bash-scripts/write-failed-approach.sh +110 -0
  286. package/resources/gofer/bash-scripts/write-periodic-checkpoint.sh +128 -0
  287. package/resources/gofer/bash-scripts/write-session-memory.sh +118 -0
  288. package/resources/gofer/claude-agents/assumption-tracker.md +168 -0
  289. package/resources/gofer/claude-agents/business-metrics-analyzer.md +169 -0
  290. package/resources/gofer/claude-agents/business-problem-validator.md +168 -0
  291. package/resources/gofer/claude-agents/codebase-analyzer.md +124 -0
  292. package/resources/gofer/claude-agents/codebase-locator.md +95 -0
  293. package/resources/gofer/claude-agents/codebase-pattern-finder.md +180 -0
  294. package/resources/gofer/claude-agents/comms-writer.md +158 -0
  295. package/resources/gofer/claude-agents/engineer-review.md +169 -0
  296. package/resources/gofer/claude-agents/implement-bug-triangulator.md +94 -0
  297. package/resources/gofer/claude-agents/implement-code-review-council.md +89 -0
  298. package/resources/gofer/claude-agents/implement-doc-writer.md +89 -0
  299. package/resources/gofer/claude-agents/implement-error-hardener.md +84 -0
  300. package/resources/gofer/claude-agents/implement-performance-explorer.md +95 -0
  301. package/resources/gofer/claude-agents/implement-test-diversifier.md +82 -0
  302. package/resources/gofer/claude-agents/implement-variant-generator.md +80 -0
  303. package/resources/gofer/claude-agents/multi-perspective-judge.md +114 -0
  304. package/resources/gofer/claude-agents/plan-api-comparator.md +90 -0
  305. package/resources/gofer/claude-agents/plan-architecture-diverger.md +100 -0
  306. package/resources/gofer/claude-agents/plan-data-model-stress-tester.md +95 -0
  307. package/resources/gofer/claude-agents/plan-migration-path-finder.md +95 -0
  308. package/resources/gofer/claude-agents/plan-refactor-rewrite-advisor.md +97 -0
  309. package/resources/gofer/claude-agents/research-dependency-evaluator.md +106 -0
  310. package/resources/gofer/claude-agents/research-horizon-scanner.md +100 -0
  311. package/resources/gofer/claude-agents/research-market-scanner.md +137 -0
  312. package/resources/gofer/claude-agents/research-perspective-multiplier.md +102 -0
  313. package/resources/gofer/claude-agents/scope-creep-detector.md +152 -0
  314. package/resources/gofer/claude-agents/specify-ambiguity-detector.md +95 -0
  315. package/resources/gofer/claude-agents/specify-journey-stress-tester.md +92 -0
  316. package/resources/gofer/claude-agents/tasks-cross-cutting-scanner.md +91 -0
  317. package/resources/gofer/claude-agents/tasks-rollback-planner.md +89 -0
  318. package/resources/gofer/claude-agents/validate-security-red-team.md +102 -0
  319. package/resources/gofer/claude-agents/validation-correctness.md +103 -0
  320. package/resources/gofer/claude-agents/validation-integration.md +129 -0
  321. package/resources/gofer/claude-agents/validation-performance.md +120 -0
  322. package/resources/gofer/claude-agents/validation-security.md +115 -0
  323. package/resources/gofer/claude-agents/validation-standards.md +151 -0
  324. package/resources/gofer/claude-agents/validation-test-quality.md +146 -0
  325. package/resources/gofer/claude-agents/visual-bounded-context-writer.md +40 -0
  326. package/resources/gofer/claude-agents/visual-c4-writer.md +45 -0
  327. package/resources/gofer/claude-agents/visual-erd-writer.md +34 -0
  328. package/resources/gofer/claude-agents/visual-heatmap-writer.md +63 -0
  329. package/resources/gofer/claude-agents/visual-risk-writer.md +64 -0
  330. package/resources/gofer/claude-commands/0_gofer_start.md +1282 -0
  331. package/resources/gofer/claude-commands/0a_problem_validation.md +424 -0
  332. package/resources/gofer/claude-commands/10_gofer_cloud.md +630 -0
  333. package/resources/gofer/claude-commands/1_gofer_research.md +1154 -0
  334. package/resources/gofer/claude-commands/2_gofer_specify.md +855 -0
  335. package/resources/gofer/claude-commands/3_gofer_plan.md +881 -0
  336. package/resources/gofer/claude-commands/4_gofer_tasks.md +743 -0
  337. package/resources/gofer/claude-commands/5_gofer_implement.md +919 -0
  338. package/resources/gofer/claude-commands/6_gofer_validate.md +2264 -0
  339. package/resources/gofer/claude-commands/7_gofer_save.md +418 -0
  340. package/resources/gofer/claude-commands/7a_stakeholder_comms.md +503 -0
  341. package/resources/gofer/claude-commands/8_gofer_branding.md +310 -0
  342. package/resources/gofer/claude-commands/9_gofer_tests.md +553 -0
  343. package/resources/gofer/claude-commands/gofer_bootstrap_workspace.md +143 -0
  344. package/resources/gofer/claude-commands/gofer_check_workspace.md +114 -0
  345. package/resources/gofer/claude-commands/gofer_constitution.md +607 -0
  346. package/resources/gofer/claude-commands/gofer_diagnose.md +109 -0
  347. package/resources/gofer/claude-commands/gofer_eai_first_run.md +392 -0
  348. package/resources/gofer/claude-commands/gofer_hydrate.md +556 -0
  349. package/resources/gofer/claude-commands/gofer_personality.md +39 -0
  350. package/resources/gofer/claude-commands/gofer_plan.md +35 -0
  351. package/resources/gofer/claude-commands/gofer_side.md +40 -0
  352. package/resources/gofer/claude-commands/gofer_spec_summary.md +107 -0
  353. package/resources/gofer/claude-commands/gofer_tdd.md +107 -0
  354. package/resources/gofer/claude-commands/gofer_vocabulary.md +107 -0
  355. package/resources/gofer/claude-commands/gofer_zoom_out.md +107 -0
  356. package/resources/gofer/claude-skills/eai-gofer/SKILL.md +56 -0
  357. package/resources/gofer/commands/.gitkeep +0 -0
  358. package/resources/gofer/commands/0_gofer_start.md +1299 -0
  359. package/resources/gofer/commands/0a_problem_validation.md +405 -0
  360. package/resources/gofer/commands/10_gofer_cloud.md +611 -0
  361. package/resources/gofer/commands/1_gofer_research.md +1135 -0
  362. package/resources/gofer/commands/2_gofer_specify.md +836 -0
  363. package/resources/gofer/commands/3_gofer_plan.md +862 -0
  364. package/resources/gofer/commands/4_gofer_tasks.md +724 -0
  365. package/resources/gofer/commands/5_gofer_implement.md +900 -0
  366. package/resources/gofer/commands/6_gofer_validate.md +2245 -0
  367. package/resources/gofer/commands/7_gofer_save.md +399 -0
  368. package/resources/gofer/commands/7a_stakeholder_comms.md +484 -0
  369. package/resources/gofer/commands/8_gofer_branding.md +291 -0
  370. package/resources/gofer/commands/9_gofer_tests.md +534 -0
  371. package/resources/gofer/commands/gofer_bootstrap_workspace.md +159 -0
  372. package/resources/gofer/commands/gofer_check_workspace.md +130 -0
  373. package/resources/gofer/commands/gofer_constitution.md +588 -0
  374. package/resources/gofer/commands/gofer_diagnose.md +89 -0
  375. package/resources/gofer/commands/gofer_eai_first_run.md +392 -0
  376. package/resources/gofer/commands/gofer_hydrate.md +537 -0
  377. package/resources/gofer/commands/gofer_personality.md +61 -0
  378. package/resources/gofer/commands/gofer_plan.md +51 -0
  379. package/resources/gofer/commands/gofer_side.md +56 -0
  380. package/resources/gofer/commands/gofer_spec_summary.md +87 -0
  381. package/resources/gofer/commands/gofer_tdd.md +87 -0
  382. package/resources/gofer/commands/gofer_vocabulary.md +87 -0
  383. package/resources/gofer/commands/gofer_zoom_out.md +87 -0
  384. package/resources/gofer/copilot-instructions/gofer-cost.instructions.md +13 -0
  385. package/resources/gofer/copilot-instructions/language-server.instructions.md +49 -0
  386. package/resources/gofer/copilot-instructions/typescript.instructions.md +47 -0
  387. package/resources/gofer/copilot-instructions/vscode-extension.instructions.md +46 -0
  388. package/resources/gofer/copilot-prompts/0_gofer_start.prompt.md +1308 -0
  389. package/resources/gofer/copilot-prompts/0a_problem_validation.prompt.md +429 -0
  390. package/resources/gofer/copilot-prompts/10_gofer_cloud.prompt.md +644 -0
  391. package/resources/gofer/copilot-prompts/1_gofer_research.prompt.md +1177 -0
  392. package/resources/gofer/copilot-prompts/2_gofer_specify.prompt.md +878 -0
  393. package/resources/gofer/copilot-prompts/3_gofer_plan.prompt.md +904 -0
  394. package/resources/gofer/copilot-prompts/4_gofer_tasks.prompt.md +766 -0
  395. package/resources/gofer/copilot-prompts/5_gofer_implement.prompt.md +942 -0
  396. package/resources/gofer/copilot-prompts/6_gofer_validate.prompt.md +2277 -0
  397. package/resources/gofer/copilot-prompts/7_gofer_save.prompt.md +433 -0
  398. package/resources/gofer/copilot-prompts/7a_stakeholder_comms.prompt.md +516 -0
  399. package/resources/gofer/copilot-prompts/8_gofer_branding.prompt.md +323 -0
  400. package/resources/gofer/copilot-prompts/9_gofer_tests.prompt.md +566 -0
  401. package/resources/gofer/copilot-prompts/gofer_bootstrap_workspace.prompt.md +161 -0
  402. package/resources/gofer/copilot-prompts/gofer_check_workspace.prompt.md +132 -0
  403. package/resources/gofer/copilot-prompts/gofer_constitution.prompt.md +621 -0
  404. package/resources/gofer/copilot-prompts/gofer_diagnose.prompt.md +127 -0
  405. package/resources/gofer/copilot-prompts/gofer_eai_first_run.prompt.md +410 -0
  406. package/resources/gofer/copilot-prompts/gofer_hydrate.prompt.md +571 -0
  407. package/resources/gofer/copilot-prompts/gofer_personality.prompt.md +57 -0
  408. package/resources/gofer/copilot-prompts/gofer_plan.prompt.md +53 -0
  409. package/resources/gofer/copilot-prompts/gofer_side.prompt.md +58 -0
  410. package/resources/gofer/copilot-prompts/gofer_spec_summary.prompt.md +125 -0
  411. package/resources/gofer/copilot-prompts/gofer_tdd.prompt.md +125 -0
  412. package/resources/gofer/copilot-prompts/gofer_vocabulary.prompt.md +125 -0
  413. package/resources/gofer/copilot-prompts/gofer_zoom_out.prompt.md +125 -0
  414. package/resources/gofer/gemini/agents/assumption-tracker.md +171 -0
  415. package/resources/gofer/gemini/agents/business-metrics-analyzer.md +172 -0
  416. package/resources/gofer/gemini/agents/business-problem-validator.md +171 -0
  417. package/resources/gofer/gemini/agents/codebase-analyzer.md +127 -0
  418. package/resources/gofer/gemini/agents/codebase-locator.md +98 -0
  419. package/resources/gofer/gemini/agents/codebase-pattern-finder.md +183 -0
  420. package/resources/gofer/gemini/agents/comms-writer.md +161 -0
  421. package/resources/gofer/gemini/agents/engineer-review.md +172 -0
  422. package/resources/gofer/gemini/agents/implement-bug-triangulator.md +97 -0
  423. package/resources/gofer/gemini/agents/implement-code-review-council.md +92 -0
  424. package/resources/gofer/gemini/agents/implement-doc-writer.md +92 -0
  425. package/resources/gofer/gemini/agents/implement-error-hardener.md +87 -0
  426. package/resources/gofer/gemini/agents/implement-performance-explorer.md +98 -0
  427. package/resources/gofer/gemini/agents/implement-test-diversifier.md +85 -0
  428. package/resources/gofer/gemini/agents/implement-variant-generator.md +83 -0
  429. package/resources/gofer/gemini/agents/multi-perspective-judge.md +117 -0
  430. package/resources/gofer/gemini/agents/plan-api-comparator.md +93 -0
  431. package/resources/gofer/gemini/agents/plan-architecture-diverger.md +103 -0
  432. package/resources/gofer/gemini/agents/plan-data-model-stress-tester.md +98 -0
  433. package/resources/gofer/gemini/agents/plan-migration-path-finder.md +98 -0
  434. package/resources/gofer/gemini/agents/plan-refactor-rewrite-advisor.md +100 -0
  435. package/resources/gofer/gemini/agents/research-dependency-evaluator.md +109 -0
  436. package/resources/gofer/gemini/agents/research-horizon-scanner.md +103 -0
  437. package/resources/gofer/gemini/agents/research-market-scanner.md +140 -0
  438. package/resources/gofer/gemini/agents/research-perspective-multiplier.md +105 -0
  439. package/resources/gofer/gemini/agents/scope-creep-detector.md +155 -0
  440. package/resources/gofer/gemini/agents/specify-ambiguity-detector.md +98 -0
  441. package/resources/gofer/gemini/agents/specify-journey-stress-tester.md +95 -0
  442. package/resources/gofer/gemini/agents/tasks-cross-cutting-scanner.md +94 -0
  443. package/resources/gofer/gemini/agents/tasks-rollback-planner.md +92 -0
  444. package/resources/gofer/gemini/agents/validate-security-red-team.md +105 -0
  445. package/resources/gofer/gemini/agents/validation-correctness.md +106 -0
  446. package/resources/gofer/gemini/agents/validation-integration.md +132 -0
  447. package/resources/gofer/gemini/agents/validation-performance.md +123 -0
  448. package/resources/gofer/gemini/agents/validation-security.md +118 -0
  449. package/resources/gofer/gemini/agents/validation-standards.md +154 -0
  450. package/resources/gofer/gemini/agents/validation-test-quality.md +149 -0
  451. package/resources/gofer/gemini/agents/visual-bounded-context-writer.md +40 -0
  452. package/resources/gofer/gemini/agents/visual-c4-writer.md +44 -0
  453. package/resources/gofer/gemini/agents/visual-erd-writer.md +36 -0
  454. package/resources/gofer/gemini/agents/visual-heatmap-writer.md +63 -0
  455. package/resources/gofer/gemini/agents/visual-risk-writer.md +64 -0
  456. package/resources/gofer/gemini/commands/gofer/.gitkeep +0 -0
  457. package/resources/gofer/gemini/commands/gofer/0_gofer_start.md +1282 -0
  458. package/resources/gofer/gemini/commands/gofer/0_gofer_start.toml +2 -0
  459. package/resources/gofer/gemini/commands/gofer/0a_problem_validation.md +424 -0
  460. package/resources/gofer/gemini/commands/gofer/0a_problem_validation.toml +2 -0
  461. package/resources/gofer/gemini/commands/gofer/10_gofer_cloud.md +630 -0
  462. package/resources/gofer/gemini/commands/gofer/10_gofer_cloud.toml +2 -0
  463. package/resources/gofer/gemini/commands/gofer/1_gofer_research.md +1154 -0
  464. package/resources/gofer/gemini/commands/gofer/1_gofer_research.toml +2 -0
  465. package/resources/gofer/gemini/commands/gofer/2_gofer_specify.md +855 -0
  466. package/resources/gofer/gemini/commands/gofer/2_gofer_specify.toml +2 -0
  467. package/resources/gofer/gemini/commands/gofer/3_gofer_plan.md +881 -0
  468. package/resources/gofer/gemini/commands/gofer/3_gofer_plan.toml +2 -0
  469. package/resources/gofer/gemini/commands/gofer/4_gofer_tasks.md +743 -0
  470. package/resources/gofer/gemini/commands/gofer/4_gofer_tasks.toml +2 -0
  471. package/resources/gofer/gemini/commands/gofer/5_gofer_implement.md +919 -0
  472. package/resources/gofer/gemini/commands/gofer/5_gofer_implement.toml +2 -0
  473. package/resources/gofer/gemini/commands/gofer/6_gofer_validate.md +2264 -0
  474. package/resources/gofer/gemini/commands/gofer/6_gofer_validate.toml +2 -0
  475. package/resources/gofer/gemini/commands/gofer/7_gofer_save.md +418 -0
  476. package/resources/gofer/gemini/commands/gofer/7_gofer_save.toml +2 -0
  477. package/resources/gofer/gemini/commands/gofer/7a_stakeholder_comms.md +503 -0
  478. package/resources/gofer/gemini/commands/gofer/7a_stakeholder_comms.toml +2 -0
  479. package/resources/gofer/gemini/commands/gofer/8_gofer_branding.md +310 -0
  480. package/resources/gofer/gemini/commands/gofer/8_gofer_branding.toml +2 -0
  481. package/resources/gofer/gemini/commands/gofer/9_gofer_tests.md +553 -0
  482. package/resources/gofer/gemini/commands/gofer/9_gofer_tests.toml +2 -0
  483. package/resources/gofer/gemini/commands/gofer/gofer_bootstrap_workspace.md +143 -0
  484. package/resources/gofer/gemini/commands/gofer/gofer_bootstrap_workspace.toml +2 -0
  485. package/resources/gofer/gemini/commands/gofer/gofer_check_workspace.md +114 -0
  486. package/resources/gofer/gemini/commands/gofer/gofer_check_workspace.toml +2 -0
  487. package/resources/gofer/gemini/commands/gofer/gofer_constitution.md +607 -0
  488. package/resources/gofer/gemini/commands/gofer/gofer_constitution.toml +2 -0
  489. package/resources/gofer/gemini/commands/gofer/gofer_diagnose.md +109 -0
  490. package/resources/gofer/gemini/commands/gofer/gofer_diagnose.toml +2 -0
  491. package/resources/gofer/gemini/commands/gofer/gofer_eai_first_run.md +392 -0
  492. package/resources/gofer/gemini/commands/gofer/gofer_eai_first_run.toml +2 -0
  493. package/resources/gofer/gemini/commands/gofer/gofer_hydrate.md +556 -0
  494. package/resources/gofer/gemini/commands/gofer/gofer_hydrate.toml +2 -0
  495. package/resources/gofer/gemini/commands/gofer/gofer_personality.md +39 -0
  496. package/resources/gofer/gemini/commands/gofer/gofer_personality.toml +2 -0
  497. package/resources/gofer/gemini/commands/gofer/gofer_plan.md +35 -0
  498. package/resources/gofer/gemini/commands/gofer/gofer_plan.toml +2 -0
  499. package/resources/gofer/gemini/commands/gofer/gofer_side.md +40 -0
  500. package/resources/gofer/gemini/commands/gofer/gofer_side.toml +2 -0
  501. package/resources/gofer/gemini/commands/gofer/gofer_spec_summary.md +107 -0
  502. package/resources/gofer/gemini/commands/gofer/gofer_spec_summary.toml +2 -0
  503. package/resources/gofer/gemini/commands/gofer/gofer_tdd.md +107 -0
  504. package/resources/gofer/gemini/commands/gofer/gofer_tdd.toml +2 -0
  505. package/resources/gofer/gemini/commands/gofer/gofer_vocabulary.md +107 -0
  506. package/resources/gofer/gemini/commands/gofer/gofer_vocabulary.toml +2 -0
  507. package/resources/gofer/gemini/commands/gofer/gofer_zoom_out.md +107 -0
  508. package/resources/gofer/gemini/commands/gofer/gofer_zoom_out.toml +2 -0
  509. package/resources/gofer/gemini/commands/gofer/manifest.json +32 -0
  510. package/resources/gofer/gemini/extension.json +16 -0
  511. package/resources/gofer/github-agents/gofer-business.agent.md +20 -0
  512. package/resources/gofer/github-agents/gofer-implement.agent.md +15 -0
  513. package/resources/gofer/github-agents/gofer-plan.agent.md +15 -0
  514. package/resources/gofer/github-agents/gofer-research.agent.md +15 -0
  515. package/resources/gofer/github-agents/gofer-validate.agent.md +10 -0
  516. package/resources/gofer/github-skills/eai-gofer/SKILL.md +56 -0
  517. package/resources/gofer/hook-scripts/agent-stop.mjs +655 -0
  518. package/resources/gofer/hook-scripts/log-stage-launch-time.mjs +77 -0
  519. package/resources/gofer/hook-scripts/post-tool-use.mjs +333 -0
  520. package/resources/gofer/hook-scripts/queued-input.mjs +188 -0
  521. package/resources/gofer/hook-scripts/session-lifecycle.mjs +93 -0
  522. package/resources/gofer/hook-scripts/user-prompt-submit.mjs +228 -0
  523. package/resources/gofer/instruction-templates/base/agents-base.md +37 -0
  524. package/resources/gofer/instruction-templates/base/claude-base.md +7 -0
  525. package/resources/gofer/instruction-templates/base/copilot-base.md +26 -0
  526. package/resources/gofer/instruction-templates/gofer/gofer-claude.md +5 -0
  527. package/resources/gofer/instruction-templates/gofer/gofer-copilot.md +9 -0
  528. package/resources/gofer/instruction-templates/languages/generic.md +7 -0
  529. package/resources/gofer/instruction-templates/languages/go.md +8 -0
  530. package/resources/gofer/instruction-templates/languages/java.md +8 -0
  531. package/resources/gofer/instruction-templates/languages/python.md +9 -0
  532. package/resources/gofer/instruction-templates/languages/rust.md +9 -0
  533. package/resources/gofer/instruction-templates/languages/typescript.md +19 -0
  534. package/resources/gofer/instruction-templates/workflow/principles.md +52 -0
  535. package/resources/gofer/memory/constitution.md +391 -0
  536. package/resources/gofer/memory/context-profiles.yaml +74 -0
  537. package/resources/gofer/memory/decisions/000-use-adr-for-decisions.md +67 -0
  538. package/resources/gofer/memory/decisions/001-di-framework.md +190 -0
  539. package/resources/gofer/memory/decisions/002-module-extraction.md +305 -0
  540. package/resources/gofer/memory/decisions/003-error-handling.md +368 -0
  541. package/resources/gofer/memory/decisions/004-cache-eviction.md +436 -0
  542. package/resources/gofer/memory/decisions/005-constants-management.md +520 -0
  543. package/resources/gofer/memory/decisions/README.md +129 -0
  544. package/resources/gofer/memory/diagrams/di-container.mmd +321 -0
  545. package/resources/gofer/memory/diagrams/extension-activation.mmd +184 -0
  546. package/resources/gofer/memory/diagrams/module-dependencies.mmd +264 -0
  547. package/resources/gofer/memory/gofer-model-policy.yaml +97 -0
  548. package/resources/gofer/memory/lessons.md +46 -0
  549. package/resources/gofer/node-scripts/canonical-descriptions.mjs +86 -0
  550. package/resources/gofer/node-scripts/check-version-alignment.mjs +131 -0
  551. package/resources/gofer/node-scripts/codex-doctor.mjs +425 -0
  552. package/resources/gofer/node-scripts/generate-commands.mjs +1366 -0
  553. package/resources/gofer/node-scripts/generate-issues.js +563 -0
  554. package/resources/gofer/node-scripts/gofer-closed-loop-audit.mjs +893 -0
  555. package/resources/gofer/node-scripts/gofer-loop-audit.mjs +541 -0
  556. package/resources/gofer/node-scripts/gofer-performance-report.mjs +306 -0
  557. package/resources/gofer/node-scripts/gofer-workspace-bootstrap.mjs +56 -0
  558. package/resources/gofer/node-scripts/gofer-workspace-check.mjs +56 -0
  559. package/resources/gofer/node-scripts/lib/ai-leverage-tagger.mjs +103 -0
  560. package/resources/gofer/node-scripts/lib/assemble-stakeholder-pack.mjs +114 -0
  561. package/resources/gofer/node-scripts/lib/marp-deck.mjs +87 -0
  562. package/resources/gofer/node-scripts/lib/mermaid-tabular-fallback.mjs +264 -0
  563. package/resources/gofer/node-scripts/lib/render-visual.mjs +54 -0
  564. package/resources/gofer/node-scripts/lib/validate-aliases.mjs +85 -0
  565. package/resources/gofer/node-scripts/lib/visual-counts.mjs +44 -0
  566. package/resources/gofer/node-scripts/lib/visual-pass-pipeline.mjs +134 -0
  567. package/resources/gofer/node-scripts/mermaid-export.mjs +72 -0
  568. package/resources/gofer/node-scripts/package-agent-plugin.mjs +940 -0
  569. package/resources/gofer/node-scripts/parse-stage-command.mjs +211 -0
  570. package/resources/gofer/node-scripts/schemas/.gitkeep +0 -0
  571. package/resources/gofer/node-scripts/schemas/stage-command.schema.json +72 -0
  572. package/resources/gofer/node-scripts/sync-extension-resources.mjs +110 -0
  573. package/resources/gofer/node-scripts/workspace-bootstrap-lib.mjs +1166 -0
  574. package/resources/gofer/powershell-scripts/install-optional-tools.ps1 +214 -0
  575. package/resources/gofer/references/platform/README.md +17 -0
  576. package/resources/gofer/references/platform/deployment-repo.md +9 -0
  577. package/resources/gofer/references/platform/eai-app-template.md +45 -0
  578. package/resources/gofer/references/platform/eai-config-driven-ui.md +156 -0
  579. package/resources/gofer/references/platform/eai-error-catalog.yaml +197 -0
  580. package/resources/gofer/references/platform/eai-repo-contract.md +134 -0
  581. package/resources/gofer/references/platform/eai-service-patterns.md +56 -0
  582. package/resources/gofer/references/platform/eai.md +85 -0
  583. package/resources/gofer/references/platform/vertical-template.md +49 -0
  584. package/resources/gofer/specify-commands/.gitkeep +0 -0
  585. package/resources/gofer/specify-commands/0_gofer_start.md +1299 -0
  586. package/resources/gofer/specify-commands/0a_problem_validation.md +405 -0
  587. package/resources/gofer/specify-commands/10_gofer_cloud.md +611 -0
  588. package/resources/gofer/specify-commands/1_gofer_research.md +1135 -0
  589. package/resources/gofer/specify-commands/2_gofer_specify.md +836 -0
  590. package/resources/gofer/specify-commands/3_gofer_plan.md +862 -0
  591. package/resources/gofer/specify-commands/4_gofer_tasks.md +724 -0
  592. package/resources/gofer/specify-commands/5_gofer_implement.md +900 -0
  593. package/resources/gofer/specify-commands/6_gofer_validate.md +2245 -0
  594. package/resources/gofer/specify-commands/7_gofer_save.md +399 -0
  595. package/resources/gofer/specify-commands/7a_stakeholder_comms.md +484 -0
  596. package/resources/gofer/specify-commands/8_gofer_branding.md +291 -0
  597. package/resources/gofer/specify-commands/9_gofer_tests.md +534 -0
  598. package/resources/gofer/specify-commands/gofer_bootstrap_workspace.md +159 -0
  599. package/resources/gofer/specify-commands/gofer_check_workspace.md +130 -0
  600. package/resources/gofer/specify-commands/gofer_constitution.md +588 -0
  601. package/resources/gofer/specify-commands/gofer_diagnose.md +89 -0
  602. package/resources/gofer/specify-commands/gofer_eai_first_run.md +392 -0
  603. package/resources/gofer/specify-commands/gofer_hydrate.md +537 -0
  604. package/resources/gofer/specify-commands/gofer_personality.md +61 -0
  605. package/resources/gofer/specify-commands/gofer_plan.md +51 -0
  606. package/resources/gofer/specify-commands/gofer_side.md +56 -0
  607. package/resources/gofer/specify-commands/gofer_spec_summary.md +87 -0
  608. package/resources/gofer/specify-commands/gofer_tdd.md +87 -0
  609. package/resources/gofer/specify-commands/gofer_vocabulary.md +87 -0
  610. package/resources/gofer/specify-commands/gofer_zoom_out.md +87 -0
  611. package/resources/gofer/system-skills/0_gofer_start/SKILL.md +1287 -0
  612. package/resources/gofer/system-skills/0a_problem_validation/SKILL.md +429 -0
  613. package/resources/gofer/system-skills/10_gofer_cloud/SKILL.md +635 -0
  614. package/resources/gofer/system-skills/1_gofer_research/SKILL.md +1159 -0
  615. package/resources/gofer/system-skills/2_gofer_specify/SKILL.md +860 -0
  616. package/resources/gofer/system-skills/3_gofer_plan/SKILL.md +886 -0
  617. package/resources/gofer/system-skills/4_gofer_tasks/SKILL.md +748 -0
  618. package/resources/gofer/system-skills/5_gofer_implement/SKILL.md +924 -0
  619. package/resources/gofer/system-skills/6_gofer_validate/SKILL.md +2269 -0
  620. package/resources/gofer/system-skills/7_gofer_save/SKILL.md +423 -0
  621. package/resources/gofer/system-skills/7a_stakeholder_comms/SKILL.md +508 -0
  622. package/resources/gofer/system-skills/8_gofer_branding/SKILL.md +315 -0
  623. package/resources/gofer/system-skills/9_gofer_tests/SKILL.md +558 -0
  624. package/resources/gofer/system-skills/gofer_bootstrap_workspace/SKILL.md +148 -0
  625. package/resources/gofer/system-skills/gofer_check_workspace/SKILL.md +119 -0
  626. package/resources/gofer/system-skills/gofer_constitution/SKILL.md +612 -0
  627. package/resources/gofer/system-skills/gofer_diagnose/SKILL.md +114 -0
  628. package/resources/gofer/system-skills/gofer_eai_first_run/SKILL.md +397 -0
  629. package/resources/gofer/system-skills/gofer_hydrate/SKILL.md +561 -0
  630. package/resources/gofer/system-skills/gofer_personality/SKILL.md +44 -0
  631. package/resources/gofer/system-skills/gofer_plan/SKILL.md +40 -0
  632. package/resources/gofer/system-skills/gofer_side/SKILL.md +45 -0
  633. package/resources/gofer/system-skills/gofer_spec_summary/SKILL.md +112 -0
  634. package/resources/gofer/system-skills/gofer_tdd/SKILL.md +112 -0
  635. package/resources/gofer/system-skills/gofer_vocabulary/SKILL.md +112 -0
  636. package/resources/gofer/system-skills/gofer_zoom_out/SKILL.md +112 -0
  637. package/resources/gofer/templates/agent-file-template.md +28 -0
  638. package/resources/gofer/templates/assumptions-template.md +94 -0
  639. package/resources/gofer/templates/audit-history-template.md +35 -0
  640. package/resources/gofer/templates/brand/brand-profile-template.json +45 -0
  641. package/resources/gofer/templates/brand/document-style-template.md +50 -0
  642. package/resources/gofer/templates/brand/marp-theme-template.css +58 -0
  643. package/resources/gofer/templates/brownfield-analysis.md +44 -0
  644. package/resources/gofer/templates/business-metrics-template.md +120 -0
  645. package/resources/gofer/templates/business-owner-summary-template.md +83 -0
  646. package/resources/gofer/templates/checklist-template.md +40 -0
  647. package/resources/gofer/templates/ciso-security-summary-template.md +70 -0
  648. package/resources/gofer/templates/context-bundle-template.md +76 -0
  649. package/resources/gofer/templates/contract-pack-template.md +109 -0
  650. package/resources/gofer/templates/cto-architecture-summary-template.md +83 -0
  651. package/resources/gofer/templates/discovery-template.md +92 -0
  652. package/resources/gofer/templates/eai-preflight-template.md +144 -0
  653. package/resources/gofer/templates/goal-ledger-template.json +69 -0
  654. package/resources/gofer/templates/gofer-model-policy.yaml +97 -0
  655. package/resources/gofer/templates/issues-template.md +106 -0
  656. package/resources/gofer/templates/journey/base-journey.md +95 -0
  657. package/resources/gofer/templates/journey/industry-variants.yaml +277 -0
  658. package/resources/gofer/templates/loop-contract-template.json +68 -0
  659. package/resources/gofer/templates/plan-template.md +215 -0
  660. package/resources/gofer/templates/problem-brief-template.md +85 -0
  661. package/resources/gofer/templates/proposal-review-template.md +79 -0
  662. package/resources/gofer/templates/research-template.md +222 -0
  663. package/resources/gofer/templates/reuse-scan-template.md +43 -0
  664. package/resources/gofer/templates/sequence-diagrams/option-spectrum.yaml +178 -0
  665. package/resources/gofer/templates/service-fit-matrix-template.md +29 -0
  666. package/resources/gofer/templates/session-handoff-template.md +172 -0
  667. package/resources/gofer/templates/spec-summary-template.md +118 -0
  668. package/resources/gofer/templates/spec-template.md +196 -0
  669. package/resources/gofer/templates/stakeholder-comms-template.md +330 -0
  670. package/resources/gofer/templates/stakeholder-review-index-template.md +54 -0
  671. package/resources/gofer/templates/tasks-template.md +323 -0
  672. package/resources/gofer/templates/ui-approval-template.md +32 -0
  673. package/resources/gofer/templates/ui-preview-brief-template.md +65 -0
  674. package/resources/gofer/templates/ui-review-log-template.md +11 -0
  675. package/resources/gofer/templates/visuals/.gitkeep +0 -0
  676. package/resources/gofer/templates/visuals/bounded-context-map.md +19 -0
  677. package/resources/gofer/templates/visuals/bounded-context-template.md +47 -0
  678. package/resources/gofer/templates/visuals/c4-container-template.md +38 -0
  679. package/resources/gofer/templates/visuals/c4-container.md +20 -0
  680. package/resources/gofer/templates/visuals/c4-context-template.md +46 -0
  681. package/resources/gofer/templates/visuals/capability-heatmap-template.md +54 -0
  682. package/resources/gofer/templates/visuals/data-model-erd-template.md +41 -0
  683. package/resources/gofer/templates/visuals/erd.md +19 -0
  684. package/resources/gofer/templates/visuals/impact-canvas.md +40 -0
  685. package/resources/gofer/templates/visuals/risk-heatmap-template.md +51 -0
  686. package/resources/gofer/templates/visuals/roi-projection.md +17 -0
  687. package/resources/gofer/templates/visuals/value-stream-asis.md +16 -0
  688. package/resources/gofer/templates/visuals/value-stream-tobe.md +18 -0
  689. package/resources/gofer/templates/working-backwards-prfaq-template.md +165 -0
  690. package/resources/linked-sources.json +25 -0
@@ -0,0 +1,1282 @@
1
+ ---
2
+ description: Start Gofer, confirm EAI readiness, and orchestrate the unified pipeline
3
+ ---
4
+
5
+ # Gofer Start
6
+
7
+ ## Token And Cost Policy
8
+ <!-- gofer:token-cost-policy:start -->
9
+
10
+ Before spawning agents, calling tools, or loading large files:
11
+
12
+ 1. Treat `.specify/memory/gofer-model-policy.yaml` as the repo-owned source of truth for simple, medium, hard, and arbiter model routing. If it is missing, run `/gofer:bootstrap-workspace` before continuing.
13
+ 2. Use the cheapest capable model first.
14
+ - Claude: Haiku for scouting/extraction; Sonnet for normal implementation, synthesis, validation, and security; Opus for high-risk arbitration or release-critical failures.
15
+ - Codex/OpenAI: GPT mini for simple coding; GPT nano only for locate/classify/summarize/mechanical work; GPT-5.3-Codex or flagship GPT for tool-heavy coding, architecture, and release-critical validation.
16
+ - Gemini: Flash-Lite for cheap large-context scan/summarize; Flash for default research synthesis; Pro for large-context architecture or high-risk arbitration.
17
+ - Copilot: prefer Auto for simple and default work; ask the user before choosing a paid/high-tier picker model for hard security, architecture, or release gates.
18
+ 3. Keep raw tool output out of the main conversation context. Save stable findings to `.specify/specs/{feature}/context-bundle.md`, then work from summaries.
19
+ 4. Use provider prompt/context caching only for stable, non-secret prefixes: Gofer scaffold, AGENTS/CLAUDE/Copilot instructions, constitution, repo map, stage contracts, and validation rubric.
20
+ 5. Before continuing after large research, planning, implementation, or validation bursts, checkpoint the durable artifacts and compact/clear/resume context when the host supports it.
21
+ 6. Escalate model tier only when a cheaper pass is low-confidence, contradictory, security-sensitive, or blocking release quality.
22
+ <!-- gofer:token-cost-policy:end -->
23
+
24
+ ## Workspace Preflight
25
+
26
+ Before doing stage/helper work:
27
+
28
+ 1. Resolve the repository root.
29
+ 2. Check the core Gofer sentinels:
30
+ - `.specify/.gofer-version`
31
+ - `.specify/commands/0_gofer_start.md`
32
+ - `.specify/templates/spec-template.md`
33
+ - `.specify/templates/loop-contract-template.json`
34
+ - `.specify/scripts/bash/create-new-feature.sh`
35
+ - `.specify/scripts/node/parse-stage-command.mjs`
36
+ - `.specify/scripts/node/gofer-loop-audit.mjs`
37
+ - `.specify/scripts/hooks/post-tool-use.mjs`
38
+ - `.specify/scripts/powershell/install-optional-tools.ps1`
39
+ - `.specify/templates/gofer-model-policy.yaml`
40
+ - `.specify/memory/gofer-model-policy.yaml`
41
+ - `.specify/specs/`
42
+ - `.specify/memory/`
43
+ 3. Check host-specific repo-owned files when relevant:
44
+ - Claude: `AGENTS.md`, `CLAUDE.md`, `.claude/settings.json`
45
+ - Codex: `AGENTS.md`
46
+ - Copilot: `.github/copilot-instructions.md`
47
+ - VS Code extension mirrors Claude/Copilot/Gemini resources itself and should still keep the core scaffold healthy
48
+ 4. If the repo already has the workspace checker script, prefer running:
49
+ - `node .specify/scripts/node/gofer-workspace-check.mjs --host gemini --json`
50
+ 5. If the workspace is missing or stale, ask exactly:
51
+ - **"This repo is missing or stale for Gofer. Initialize/update it now?"**
52
+ 6. If the user says yes, run the Gofer workspace bootstrap helper and then resume this command from the top.
53
+ 7. If the user says no, stop and explain that Gofer stage/helper work depends on the repo-owned scaffold.
54
+
55
+ ## EAI Platform Session Preflight
56
+
57
+ Before any Gofer stage/helper command does pipeline work:
58
+
59
+ 1. Treat durable delivery as EAI Platform delivery by default, with Azure second
60
+ and every other stack only by explicit exception.
61
+ 2. Run `eai whoami` and confirm the EAI CLI is installed, the user is logged in,
62
+ and an active tenant is visible.
63
+ 3. If `eai` is missing, `eai whoami` fails, the token is expired, or no active
64
+ tenant is available, stop and run `/gofer:eai-first-run` or ask the user to
65
+ approve login/setup before continuing.
66
+ 4. For EAI app delivery, do not continue into research, specification, planning,
67
+ tasks, implementation, or validation until
68
+ `.specify/specs/{feature}/eai-preflight.md` records login, tenant, template,
69
+ app-readiness, and next-action evidence.
70
+ 5. Do not write tokens, secrets, private tenant IDs, or local `.env` values into
71
+ Gofer artifacts; record only product-safe readiness status and evidence.
72
+
73
+ ## EAI App Delivery Preflight
74
+
75
+ Run this after the Gofer workspace preflight and before application-delivery
76
+ discovery whenever the request is an app build, dashboard, portal, workflow,
77
+ form, chatbot, app, tenant-scoped business experience, or any
78
+ durable user-facing product. App delivery in EAI Gofer means EAI Platform
79
+ delivery by default. Do not run this for explicit non-app work. If the user asks
80
+ for a non-EAI app stack, pause and confirm that they are intentionally leaving
81
+ the EAI Gofer app-delivery path before continuing.
82
+
83
+ Use current public EAI documentation as the safe source of truth:
84
+
85
+ - EAI CLI docs: `https://eai-tools.github.io/eai/docs/overview`
86
+ - EAI API reference: `https://eai-tools.github.io/eai/docs/api-reference`
87
+ - EAI static registry: `https://eai-tools.github.io/eai/registry/`
88
+ - EAI scenario library: `https://eai-tools.github.io/eai/scenarios`
89
+ - EAI app template: `https://github.com/eai-tools/eai-app-template`
90
+
91
+ ### EAI Platform And Azure App Stack Policy
92
+
93
+ For application delivery, Gofer MUST use this stack order:
94
+
95
+ 1. **EAI Platform first, including the EAI app template**: EAI app template, EAI
96
+ CLI, PublicAPI, object types, workflows, block catalog, ResourceAPI/resource
97
+ schema, tenant/app enrollment, identity, provisioning, diagnostics, and
98
+ documented EAI platform services are one EAI Platform app substrate.
99
+ 2. **Azure second**: Azure services that are already part of, documented for, or
100
+ compatible with the EAI Platform operating model, especially deployment,
101
+ identity, storage, observability, and integration services.
102
+ 3. **Everything else only by explicit exception**: Firebase, Supabase, Vercel as
103
+ the primary runtime, AWS, GCP, bespoke backends, unmanaged databases, or
104
+ unrelated SaaS platforms must not be recommended as the primary app substrate.
105
+ They may appear only as integration targets, migration references, or
106
+ approved exceptions with rationale, owner, expiry, and validation evidence.
107
+
108
+ Application-specific logic, adapters, UI extensions, and tests belong inside the
109
+ EAI Platform/EAI app template scaffold and must obey package-profile,
110
+ public-readiness, tenant, and security constraints. They are implementation
111
+ inside the primary substrate, not a separate stack tier.
112
+
113
+ If a required capability is not accessible in EAI Platform or Azure, record it
114
+ in `{FEATURE_DIR}/service-fit-matrix.md` as `unavailable without new platform
115
+ work`, `operator_required`, or `upgrade_required`. Do not silently replace it
116
+ with an unrelated non-EAI stack.
117
+
118
+ ### EAI Preflight Checks
119
+
120
+ 1. **Classify the build path**
121
+ - Treat the work as EAI app delivery when the user asks to build an app,
122
+ dashboard, portal, workflow, form, chatbot, app,
123
+ tenant-scoped business experience, or durable user-facing product.
124
+ - If the user is only doing research, docs, audit, migration planning, or
125
+ non-EAI application work, record that EAI preflight is not applicable.
126
+ - If the user asks for a non-EAI app stack, ask whether they want to leave the
127
+ EAI Gofer app-delivery path. If yes, record the exception and stop EAI app
128
+ implementation guidance; if no, keep the EAI Platform/Azure stack policy.
129
+ 2. **Run first-run setup when prerequisites are missing**
130
+ - If Git, Node.js, npm, `eai`, login, tenant access, the EAI app template, or
131
+ the Gofer scaffold is missing or stale, run `/gofer:eai-first-run` before
132
+ research, specification, planning, or implementation.
133
+ - `/gofer:eai-first-run` is the cross-platform setup contract for macOS,
134
+ Linux, Windows, GitHub Codespaces, Claude Code, Codex, Copilot, Gemini, and
135
+ VS Code. It checks first, asks only when action is needed, installs the EAI
136
+ CLI when approved, checks `eai update --check`, confirms login and tenant,
137
+ runs `eai init <project-name> --skip-prompts --company-tenant
138
+ <active-tenant-id>` when approved, verifies Gofer files, and then returns
139
+ here.
140
+ - If `/0_gofer_start` is unavailable in a new repo, the user should run
141
+ the plugin-level `/gofer:eai-first-run` command after installing or
142
+ updating the Gofer plugin.
143
+ 3. **Install or update the EAI CLI when needed**
144
+ - Check `git --version`, `node --version`, `npm --version`, `npm config get
145
+ @eai-tools:registry`, and `eai --version`.
146
+ - If `eai` is missing and the user approves, install it:
147
+ ```bash
148
+ npm config set @eai-tools:registry https://eai-tools.github.io/eai/registry/ --location=user
149
+ npm install -g @eai-tools/cli
150
+ eai --version
151
+ ```
152
+ - On Windows, use the same npm commands in PowerShell and avoid shell
153
+ redirection. In GitHub Codespaces, prefer user-level npm and avoid `sudo`
154
+ unless the user explicitly approves. If install fails, stop EAI app
155
+ delivery and give the user the exact commands above plus the EAI
156
+ account/setup link. Continue only if the user explicitly chooses a non-EAI
157
+ path.
158
+ - If `eai` is already installed, run `eai update --check`. If the CLI is
159
+ behind, record `upgrade_required` and ask before running `eai update`.
160
+ 4. **Discover CLI capabilities before assuming syntax**
161
+ - Run `eai --describe` and prefer advertised subcommands/options over stale
162
+ remembered syntax.
163
+ - If advertised, run `eai agent guide --format json` before planning EAI
164
+ platform work so the agent uses current CLI contracts and safe recovery
165
+ patterns.
166
+ - After any `eai` command error, run
167
+ `eai errors explain <code-or-reason> --format json` before proposing a
168
+ fix, and prefer the CLI's public-safe recovery commands over guessed
169
+ platform internals.
170
+ - If the CLI does not advertise `eai errors explain`, match the failure
171
+ against `.specify/references/platform/eai-error-catalog.yaml`, run the
172
+ listed read-only diagnostics before mutating fixes, and stop at the retry
173
+ or escalation condition instead of looping.
174
+ - For tenant member/admin changes, if `eai user invite` fails with
175
+ `EXTERNAL_SERVICE_ERROR`, a 5xx response, or
176
+ `user_invite_external_service_existing_member`, check for an existing
177
+ direct member with `eai user list --tenant <tenant-id> --search <email>
178
+ --format json`; use `eai user role set --tenant <tenant-id> --member-id
179
+ <member-id> --role tenant-admin --format json` only after read-only
180
+ evidence and user approval, verify the read-back, and tell the affected
181
+ app user to sign out and sign back in because Auth.js session or JWT role
182
+ data may be cached.
183
+ - Use JSON only where the CLI advertises it. `eai tenant list --format json`
184
+ is suitable for automation; `eai whoami` may be plain text on current
185
+ versions.
186
+ - Record whether the installed CLI advertises `eai app`, `eai resources
187
+ schema`, `eai workflow readiness`, `eai template check`, `eai gofer
188
+ refresh --check`, `eai provision entra`, `eai blocks`,
189
+ `eai agent guide`, and `eai errors explain`.
190
+ 5. **Check account, login, and tenant readiness**
191
+ - Run `eai whoami` to confirm login, active tenant, profile, token status,
192
+ and PublicAPI context.
193
+ - If not logged in or the token is expired, run `eai login` and then
194
+ `eai tenant select`.
195
+ - Run `eai tenant list --format json` and require at least one usable tenant
196
+ membership for EAI app delivery. Prefer a `tenant-admin` membership because
197
+ app enrollment and provisioning are tenant-admin actions.
198
+ - If no tenant is available, tell the user they need an EAI Platform account
199
+ and tenant access before Gofer can build an EAI app. Do not fabricate
200
+ tenant IDs or continue into implementation.
201
+ 6. **Check EAI template/project readiness**
202
+ - Detect existing template markers before scaffolding:
203
+ - `src/eai.config/object-types.ts`
204
+ - `src/eai.config/register.ts`
205
+ - `.env.example`
206
+ - `.npmrc`
207
+ - `package.json`
208
+ - Run `eai verify` only when the repo appears to be an EAI project. If
209
+ `eai verify` reports `E001` or "Not in an EAI project", treat the repo as
210
+ not initialized from the EAI app template.
211
+ - If the repo appears to be an EAI project and the commands are advertised,
212
+ run `eai template check --format json` and `eai gofer refresh --check
213
+ --format json` to identify EAI template or Gofer scaffold drift before
214
+ planning implementation.
215
+ - For a new or empty app workspace, ask:
216
+ **"This looks like an EAI app build, but this repo has not been initialized from the EAI app template. Initialize it with `eai init <app-name>` now?"**
217
+ - If the repo is non-empty or already contains source files, do not scaffold
218
+ over it silently. Ask whether to initialize a new sibling EAI app directory
219
+ with `eai init <app-name>`, or to stop and let the user prepare the repo.
220
+ 7. **Check app enrollment capability before build planning**
221
+ - Once app name and tenant are confirmed, run `eai app list --format
222
+ json` to confirm the tenant's current app enrollments.
223
+ - Before creating anything remote, ask the user to confirm the app name,
224
+ app key, company tenant, and any child-tenant boundary.
225
+ - If confirmed, use `eai app create <name> --tenant-id <tenant-id>
226
+ --format json` or the currently advertised equivalent from `eai
227
+ --describe`.
228
+ - Record the selected app key with `eai app select <key> --format json`
229
+ when available.
230
+ - Do not claim platform readiness from app creation alone. Later stages must
231
+ keep real EAI app gates separate: `eai app provision <key> --tenant-id <tenant-id> --select --format json`,
232
+ `eai types validate`,
233
+ `eai types seed --tenant-key <key> --tenant-id <tenant-id> --format json`,
234
+ `eai types diff`, `eai resources schema --tenant-id <tenant-id> --format json`,
235
+ `eai resources storage doctor --tenant-id <tenant-id> --format json`,
236
+ `eai verify storage --tenant-id <tenant-id>`, workflow readiness, and
237
+ preview/runtime readiness.
238
+ - Provision storage, Entra app registration, environment sync, object types,
239
+ and deployment only in the later plan/tasks/implement stages after the
240
+ business scenario and UI approval gates are complete.
241
+ 8. **Check template block and platform knowledge for research**
242
+ - Run or plan to run `eai blocks list --format json`, `eai blocks readiness
243
+ --package-profile <external|internal|hybrid> --format json`, and `eai
244
+ blocks describe <id> --format json` for candidate UI blocks.
245
+ - Run or plan to run `eai resources schema --format json` and
246
+ `eai workflow readiness --format json` so later stages can cite actual
247
+ platform resource fields, actions, events, and workflow availability
248
+ instead of guessing.
249
+ - For v4 passive ResourceAPI search requirements, run or plan to run
250
+ `eai resources storage doctor --tenant-id <tenant-id> --format json` and
251
+ treat fulltext, hybrid, and vector as separate readiness states. Prefer
252
+ `eai resources search "<query>" --fulltext` until doctor reports semantic
253
+ search modes ready. Do not apply this fallback to legacy v1/v3 or active
254
+ ResourceAPI behavior.
255
+ - Use the EAI scenario library to map the business problem to the common
256
+ four-step pattern: capture demand/context, prepare the decision, execute
257
+ and collaborate, then resolve/explain/improve.
258
+ - Keep private tenant IDs, tokens, secrets, and `.env.local` contents out of
259
+ Gofer artifacts. Record only product-safe readiness states and evidence.
260
+ - Treat `.specify/references/platform/eai-repo-contract.md` and
261
+ `.specify/references/platform/eai-error-catalog.yaml` as the repo-owned
262
+ fallback contract whenever live docs are unavailable or a command fails.
263
+ - If the user provides a browser or auth log with `AADSTS50011`,
264
+ `redirect_uri`, "reply URL specified in the request does not match", or
265
+ `/api/auth/callback/microsoft-entra-id`, record
266
+ `EAI_ENTRA_REDIRECT_URI_MISMATCH` in `eai-preflight.md` with a redacted
267
+ callback route pattern such as `https://<app-host>/api/auth/callback/...`.
268
+ Keep the exact callback URI and any debug output in the active terminal or
269
+ user-approved local notes only. Recover through EAI login, tenant
270
+ selection, and `eai provision entra --force --redirect-uri
271
+ <confirmed-callback-uri>` before suggesting manual Azure Portal edits. Use
272
+ `--debug` only when the user approves it, and redact private hostnames,
273
+ tenant IDs, client IDs, and tokens before writing artifacts.
274
+
275
+ ### EAI Preflight Artifact
276
+
277
+ For EAI app delivery, create or update
278
+ `.specify/specs/{feature}/eai-preflight.md` with:
279
+
280
+ | Field | Required Content |
281
+ | ----- | ---------------- |
282
+ | CLI install | `eai` path, version, install/update action taken |
283
+ | CLI release status | `eai update --check` result and whether upgrade is required |
284
+ | CLI capability source | `eai --describe` timestamp and relevant commands found |
285
+ | Login status | Logged in / needs login / account required, without tokens or secrets |
286
+ | Tenant readiness | Active tenant status, role category, whether app enrollment is allowed |
287
+ | Template readiness | Already EAI template / needs `eai init` / non-EAI repo decision |
288
+ | Drift readiness | `eai template check` / `eai gofer refresh --check` result or `E001` explanation |
289
+ | App enrollment | Existing app, new app to create, or blocked pending user confirmation |
290
+ | Entra redirect readiness | Redacted callback route pattern, tenant/client alignment state, and `AADSTS50011` recovery status. Never write exact private URLs, tenant IDs, client IDs, tokens, or debug output to committed artifacts. |
291
+ | Block catalog readiness | Available block commands and package profile compatibility evidence |
292
+ | App stack policy | EAI Platform including app template first, Azure second, or approved exception |
293
+ | Next action | Continue discovery, initialize template, request account/tenant access, or stop |
294
+
295
+ You are the Gofer orchestrator. Your job is to understand the user's business
296
+ scenario and route them through the **unified Gofer pipeline**.
297
+
298
+ ## The Unified Gofer Pipeline
299
+
300
+ ```text
301
+ ┌─────────────────────────────────────────────────────────────────┐
302
+ │ UNIFIED GOFER PIPELINE │
303
+ ├─────────────────────────────────────────────────────────────────┤
304
+ │ │
305
+ │ 0. /0_gofer_start → Gofer Start, routing, discovery │
306
+ │ Business scenario intake + optional problem validation │
307
+ │ ↓ AUTO │
308
+ │ 1. /1_gofer_research → research.md │
309
+ │ Deep codebase exploration + supporting review context │
310
+ │ ↓ AUTO │
311
+ │ 2. /2_gofer_specify → spec.md │
312
+ │ Feature specification informed by research │
313
+ │ ↓ AUTO │
314
+ │ 3. /3_gofer_plan → plan.md, data-model.md, contracts/ │
315
+ │ Technical architecture and design │
316
+ │ ↓ AUTO │
317
+ │ 4. /4_gofer_tasks → tasks.md, traceability.md, issues.md │
318
+ │ Dependency-ordered task breakdown │
319
+ │ ↓ AUTO │
320
+ │ 5. /5_gofer_implement → [source code] │
321
+ │ Execute tasks phase by phase │
322
+ │ ↓ AUTO │
323
+ │ 6. /6_gofer_validate → validation artifacts │
324
+ │ Validation, blast radius, and final engineering review │
325
+ │ │
326
+ │ All artifacts go to: .specify/specs/{feature}/ │
327
+ └─────────────────────────────────────────────────────────────────┘
328
+ ```
329
+
330
+ ## Auxiliary Gofer Commands
331
+
332
+ | Command | Purpose |
333
+ | ----------------------------- | ------------------------------------------------------- |
334
+ | `/0a_problem_validation` | Optional deeper problem framing before research |
335
+ | `/7_gofer_save` | Save session checkpoint mid-implementation |
336
+ | `/8_gofer_branding` | Brand templates and stakeholder documents |
337
+ | `/9_gofer_tests` | Define acceptance test cases using DSL |
338
+ | `/10_gofer_cloud` | READ-ONLY cloud infrastructure analysis |
339
+ | `/7a_stakeholder_comms` | Optional post-validation communications package |
340
+ | `/gofer_hydrate` | Reverse-engineer spec from existing code |
341
+ | `/gofer_constitution` | Create/update project constitution |
342
+ | `/gofer:check-workspace` | Check whether the repo scaffold is healthy |
343
+ | `/gofer:bootstrap-workspace` | Create or update the repo-owned Gofer scaffold |
344
+
345
+ ---
346
+
347
+ ## Step 1: Quick Context Scan
348
+
349
+ Before asking questions, scan the workspace for existing state:
350
+
351
+ ```bash
352
+ # Check for Gofer artifacts
353
+ ls -la .specify/specs/ 2>/dev/null
354
+
355
+ # Check for session checkpoints
356
+ find .specify/specs -name "session-checkpoint.md" -type f 2>/dev/null
357
+
358
+ # Check for constitution
359
+ ls -la .specify/memory/constitution.md 2>/dev/null
360
+ ```
361
+
362
+ ### What to Look For
363
+
364
+ | Artifact | Location | Indicates |
365
+ | ----------------------- | --------------------------- | ---------------------------- |
366
+ | `spec.md` | `.specify/specs/{feature}/` | Feature specified |
367
+ | `research.md` | `.specify/specs/{feature}/` | Research complete |
368
+ | `proposal-review.md` | `.specify/specs/{feature}/` | Optional supporting review context |
369
+ | `plan.md` | `.specify/specs/{feature}/` | Planning complete |
370
+ | `tasks.md` | `.specify/specs/{feature}/` | Ready for implement |
371
+ | `goal-ledger.json` | `.specify/specs/{feature}/` | Active objective ledger and drift triggers |
372
+ | `loop-contract.json` | `.specify/specs/{feature}/` | Bounded check-repair loop objective, commands, and stop rules |
373
+ | `loop-ledger.jsonl` | `.specify/specs/{feature}/` | Implementation/validation iteration evidence |
374
+ | `loop-audit-report.md` | `.specify/specs/{feature}/` | Latest loop contract and ledger audit |
375
+ | `goal-rebaseline-report.md` | `.specify/specs/{feature}/` | Latest closed-loop audit result |
376
+ | `working-backwards-prfaq.md` | `.specify/specs/{feature}/` | Running product release PR/FAQ |
377
+ | `prfaq-history/` | `.specify/specs/{feature}/` | Immutable stage snapshots of the PR/FAQ |
378
+ | `business-owner-summary.md` | `.specify/specs/{feature}/` | Business owner scenario, process, and value summary |
379
+ | `cto-architecture-summary.md` | `.specify/specs/{feature}/` | CTO/EAI Platform architecture summary |
380
+ | `ciso-security-summary.md` | `.specify/specs/{feature}/` | CISO security posture summary |
381
+ | `stakeholder-review-index.md` | `.specify/specs/{feature}/` | Stakeholder review status and approval asks |
382
+ | `session-checkpoint.md` | `.specify/specs/{feature}/` | Work paused (resumable) |
383
+ | `validation-report.md` | `.specify/specs/{feature}/` | Feature validated |
384
+ | `constitution.md` | `.specify/memory/` | Project principles set |
385
+
386
+ Report what you found before proceeding.
387
+
388
+ ---
389
+
390
+ ## Step 2: Determine Scenario
391
+
392
+ **ALWAYS ask the user what they want to do** - even if artifacts exist. Existing
393
+ artifacts might be for OTHER features, not what the user wants to work on now.
394
+
395
+ **"What would you like to accomplish today?"**
396
+
397
+ Present these options using the AskUserQuestion tool:
398
+
399
+ | Option | Description |
400
+ | ----------------------- | -------------------------------------------------------- |
401
+ | **A. New Feature** | Build something new from scratch with clear requirements |
402
+ | **B. Modify Existing** | Change or extend existing functionality in the codebase |
403
+ | **C. Fix a Bug** | Diagnose and fix a specific issue |
404
+ | **D. Explore/Research** | Understand the codebase before making changes |
405
+ | **E. Continue Work** | Continue from where I left off |
406
+ | **F. Setup Project** | Initialize constitution and project guidelines |
407
+
408
+ ### For Existing Codebases
409
+
410
+ If the context scan found existing artifacts, list them and ask:
411
+
412
+ **"I found these existing features/work items:"**
413
+
414
+ - List each spec in `.specify/specs/*/` with its name and status
415
+ - Note any session checkpoints (paused work)
416
+
417
+ Then ask: **"Do you want to continue one of these, or start something new?"**
418
+
419
+ ---
420
+
421
+ ## Step 2.5: Consultative Discovery (For New Features, Modifications, Bug Fixes)
422
+
423
+ When the user selects **A. New Feature**, **B. Modify Existing**, or **C. Fix a
424
+ Bug**, conduct a consultative discovery interview BEFORE routing to the
425
+ pipeline.
426
+
427
+ **First, offer the option to skip:**
428
+
429
+ | Option | Description |
430
+ | --------------------------- | ----------------------------------------------------------------------- |
431
+ | **Continue with Discovery** | Answer a few questions to ensure we build the right thing (Recommended) |
432
+ | **Skip Discovery** | I have clear requirements, go straight to implementation |
433
+
434
+ If user selects "Skip Discovery", proceed directly to Step 3.
435
+
436
+ ### Discovery Question 1: Problem Statement
437
+
438
+ **"What problem are you trying to solve?"**
439
+
440
+ **Recommended:** Based on initial context, suggest the most likely problem type.
441
+
442
+ | Option | Description | Implications |
443
+ | ------ | --------------------------------------- | ------------------------------------- |
444
+ | A | Users can't find what they need quickly | Focus on search/navigation UX |
445
+ | B | Manual processes taking too much time | Focus on automation/efficiency |
446
+ | C | Data is siloed across systems | Focus on integration/consolidation |
447
+ | D | Quality/reliability issues | Focus on testing/monitoring |
448
+ | E | [Context-specific suggestion] | [Based on user's initial description] |
449
+ | Custom | Describe your specific problem | We'll tailor the approach |
450
+
451
+ You can reply with the option letter, accept the recommendation by saying "yes",
452
+ or provide your own answer.
453
+
454
+ **Store response** in discovery context.
455
+
456
+ ### Discovery Question 2: Target Users
457
+
458
+ **"Who are the primary users of this feature?"**
459
+
460
+ **Recommended:** Suggest based on problem type selected.
461
+
462
+ | Option | Description | Implications |
463
+ | ------ | -------------------------- | --------------------------------- |
464
+ | A | End customers (external) | Focus on UX, onboarding, support |
465
+ | B | Internal team members | Focus on efficiency, integrations |
466
+ | C | Developers/technical users | Focus on APIs, documentation |
467
+ | D | Business stakeholders | Focus on reporting, dashboards |
468
+ | Custom | Describe your users | We'll create appropriate personas |
469
+
470
+ **Store response** in discovery context.
471
+
472
+ ### Discovery Question 3: Value Proposition
473
+
474
+ **"What specific value should this deliver?"**
475
+
476
+ **Recommended:** Suggest based on problem and user type.
477
+
478
+ | Option | Description | Implications |
479
+ | ------ | ----------------------------------------- | ------------------------------------ |
480
+ | A | Time savings (reduce X by Y%) | Need baseline metrics, time tracking |
481
+ | B | Cost reduction (save $X/month) | Need cost analysis, ROI tracking |
482
+ | C | Quality improvement (reduce errors by Y%) | Need error tracking, quality metrics |
483
+ | D | User satisfaction (increase NPS by Y) | Need feedback collection, surveys |
484
+ | Custom | Define your value metric | We'll build appropriate tracking |
485
+
486
+ **Store response** in discovery context.
487
+
488
+ ### Discovery Question 4: Success Metrics
489
+
490
+ **"How will you measure success?"**
491
+
492
+ Based on the value type selected, suggest relevant metrics:
493
+
494
+ | Value Type | Suggested Metrics |
495
+ | -------------- | ------------------------------------------------ |
496
+ | Time savings | Task completion time, manual steps eliminated |
497
+ | Cost reduction | Monthly costs before/after, resource utilization |
498
+ | Quality | Error rate, defect count, test coverage |
499
+ | Satisfaction | NPS score, support tickets, feature adoption |
500
+
501
+ Ask user to confirm or customize the metrics.
502
+
503
+ ### Optional: Competitive Research
504
+
505
+ **"Would you like me to research how leading companies solve this problem?"**
506
+
507
+ | Option | Description |
508
+ | ------ | ------------------------------------------ |
509
+ | Yes | Research competitors and document insights |
510
+ | Skip | Continue without competitive analysis |
511
+
512
+ If user selects Yes, note for research phase. If skipped, mark "Competitive
513
+ Analysis: Skipped".
514
+
515
+ ### Adaptive Depth
516
+
517
+ If user responds with uncertainty signals ("I'm not sure", "what would you
518
+ suggest?", "not certain"):
519
+
520
+ - Offer to explore deeper: **"I notice you might want more clarity on this.
521
+ Would you like me to ask a few more questions to help narrow down the
522
+ approach?"**
523
+ - If yes, ask context-appropriate follow-up questions
524
+ - If no, proceed with best recommendation
525
+
526
+ ### Create Discovery Artifact
527
+
528
+ After completing discovery questions, create
529
+ `.specify/specs/{feature}/discovery.md`:
530
+
531
+ ```markdown
532
+ ---
533
+ feature: '[Feature Name]'
534
+ created: '[ISO timestamp]'
535
+ discoveredBy: Gofer + [User]
536
+ status: complete
537
+ ---
538
+
539
+ # Business Discovery: [Feature Name]
540
+
541
+ ## Problem Statement
542
+
543
+ **Pain Point**: [From Question 1] **Current State**: [If mentioned] **Impact**:
544
+ [If mentioned]
545
+
546
+ ## Target Users
547
+
548
+ ### Primary Users
549
+
550
+ - **Persona**: [From Question 2]
551
+ - **Technical Level**: [Inferred or asked]
552
+ - **Key Needs**: [Captured from context]
553
+
554
+ ## Value Proposition
555
+
556
+ **Primary Value**: [From Question 3] **Quantified Goal**: [From Question 4]
557
+
558
+ ## Success Metrics
559
+
560
+ | Metric | Target | Measurement |
561
+ | ---------- | -------- | -------------- |
562
+ | [Metric 1] | [Target] | [How measured] |
563
+
564
+ ## Competitive Analysis
565
+
566
+ **Status**: [Researched / Skipped] [Insights if researched]
567
+
568
+ ## Discovery Decisions
569
+
570
+ | Decision | Choice | Rationale |
571
+ | ------------- | -------- | --------- |
572
+ | Problem Focus | [Choice] | [Why] |
573
+ | User Target | [Choice] | [Why] |
574
+ | Value Metric | [Choice] | [Why] |
575
+
576
+ ## AI-Readable Blocks Bridge
577
+
578
+ | Field | Decision |
579
+ | ----- | -------- |
580
+ | Profile Choice | External / Internal / Hybrid |
581
+ | Package Lane | {{public-package | internal-app | hybrid-adapter | app-local}} |
582
+ | Coupling Status | {{source-platform-coupled | source-platform-decoupled | hybrid-adapter}} |
583
+ | Public-Readiness Target | {{required | deferred | not-applicable}} |
584
+ | Block Porting Need | {{reuse | port | custom-block-exception}} |
585
+ ```
586
+
587
+ ### Store in Memory
588
+
589
+ Create Memory entries for key discovery findings:
590
+
591
+ ```
592
+ Category: 'discovery'
593
+ Tags: ['#problem', '#feature-{id}']
594
+ Content: 'Problem: [pain point]. Impact: [who affected].'
595
+
596
+ Category: 'discovery'
597
+ Tags: ['#users', '#personas', '#feature-{id}']
598
+ Content: 'Primary users: [persona]. Technical level: [level]. Key needs: [needs].'
599
+
600
+ Category: 'discovery'
601
+ Tags: ['#value', '#metrics', '#feature-{id}']
602
+ Content: 'Primary value: [benefit]. Success metric: [metric] target [goal].'
603
+ ```
604
+
605
+ ### Edge Cases
606
+
607
+ - **Mid-flow abandonment**: If user cancels during discovery, save partial
608
+ discovery.md with `status: incomplete`
609
+ - **Re-running discovery**: If discovery.md already exists, ask: "Discovery
610
+ already exists for this feature. Would you like to merge new insights or
611
+ replace it?"
612
+ - **Web search failure**: If competitive research fails, continue without it and
613
+ note the failure
614
+
615
+ ---
616
+
617
+ ## Step 2.6: Application Classification and AI Process Default
618
+
619
+ Before journey mapping, classify the request as **application delivery** or
620
+ **non-application work**.
621
+
622
+ In EnterpriseAI mode, assume the request is application delivery unless the
623
+ user's intent is clearly non-app. Roughly 90% of Gofer business requests should
624
+ be treated this way: the user is trying to improve a customer journey or
625
+ business process by building an app, workflow, portal, dashboard, mobile
626
+ experience, form, assistant, or app.
627
+
628
+ For app delivery in any profile, apply the **EAI Platform And Azure App Stack
629
+ Policy**: EAI Platform is the primary app substrate, Azure is the preferred
630
+ cloud/infrastructure substrate, and unrelated non-EAI stacks are exceptions
631
+ only.
632
+
633
+ ### Application Signals
634
+
635
+ Treat the request as application delivery when it includes any of these signals:
636
+
637
+ - Build an app, tool, dashboard, portal, workflow, form, chatbot, or app.
638
+ - Improve how a customer, employee, advisor, agent, or operator completes work.
639
+ - Replace a manual process with a guided digital process.
640
+ - Use EnterpriseAI data, object types, screens, APIs, or tenant context.
641
+ - Add generative AI to help users complete a business outcome.
642
+
643
+ ### Non-Application Signals
644
+
645
+ Classify as non-app only when the user is asking for work such as:
646
+
647
+ - Strategy, research, market analysis, board papers, or written advice.
648
+ - Documentation, executive summaries, or slide decks without an app to build.
649
+ - Codebase exploration, cloud audit, engineering review, or migration planning.
650
+ - A one-off analysis task where no durable user workflow will be implemented.
651
+
652
+ If non-app, record this explicitly in `discovery.md`:
653
+
654
+ ```markdown
655
+ ## Application Classification
656
+
657
+ | Field | Decision |
658
+ | ----- | -------- |
659
+ | Classification | Non-application work |
660
+ | Reason | {{why-this-is-not-an-app-or-workflow}} |
661
+ | Four-step AI journey required | No |
662
+ ```
663
+
664
+ Then continue through the pipeline without creating a four-step AI-augmented app
665
+ journey.
666
+
667
+ If app delivery is selected or inferred, continue to Step 2.7 and create the
668
+ AI-augmented journey.
669
+
670
+ ### Shared Numbered Stage Contract
671
+
672
+ Gofer MUST keep the same numbered stages for both classifications. The
673
+ classification changes the behavior inside the shared stages; it does **not**
674
+ remove existing non-app functionality or fork Gofer into unrelated products.
675
+
676
+ | Mode | Stage Behavior |
677
+ | ---- | -------------- |
678
+ | Application delivery | Shared stages gain EAI Platform/Azure stack enforcement, a UI-first interview, an EAI App Template constrained preview loop, preview self-review, optional branding intake, an explicit UI approval gate, and a post-approval EnterpriseAI service-fit gate before plan/tasks are finalized |
679
+ | Non-app work | Shared stages preserve the current research, documentation, exploration, bug-fix, migration, audit, and other non-app workflows without app-only preview, branding, or service-fit requirements |
680
+
681
+ ---
682
+
683
+ ## Step 2.7: AI-Augmented Journey Confirmation (For Application Delivery)
684
+
685
+ When the request is classified as **application delivery**, confirm the
686
+ customer journey before routing to the rest of the pipeline. For application
687
+ delivery, the default target is a concise **four-step or fewer AI-augmented
688
+ process**. Even when the current business process has more than four steps,
689
+ Gofer should use generative AI to compress, combine, or simplify the process
690
+ into four business-goal-driven stages unless the user explicitly rejects that
691
+ structure.
692
+
693
+ Before journey mapping for EAI app delivery, complete the **EAI App Delivery
694
+ Preflight** above. If the EAI CLI, login, tenant, template, or app enrollment
695
+ readiness is blocked, pause the EAI build path and explain the smallest next
696
+ step. Do not proceed to plan/tasks/implementation for an EAI app until
697
+ `.specify/specs/{feature}/eai-preflight.md` records a ready or explicitly
698
+ deferred status.
699
+
700
+ ### UI-First App-Delivery Default
701
+
702
+ For app delivery, the default early process is:
703
+
704
+ 1. **Interview and visual brief** — understand the MVP outcome, must-have
705
+ screens, target users, workflow goals, and whether client branding or logos
706
+ must be applied.
707
+ 2. **Constrained MVP preview** — generate the first preview from the EAI App Template
708
+ Template blocks already installed in the project by `eai`, rather than
709
+ from an unconstrained custom UI.
710
+ 3. **Preview self-review and approval** — use screenshot or Playwright-style
711
+ local review before showing the preview, then iterate with the stakeholder
712
+ until the UI is explicitly approved.
713
+ 4. **EnterpriseAI service-fit gate** — after UI approval, review which
714
+ platform services are accessible now, purchasable but unavailable now, or
715
+ unsupported, and lock that decision before plan/tasks are treated as
716
+ complete.
717
+
718
+ ### AI-Readable Blocks Bridge Intake
719
+
720
+ For EnterpriseAI app delivery, the interview must also capture the packaging
721
+ and coupling path before research starts:
722
+
723
+ | Intake Field | Required Decision |
724
+ | ------------ | ----------------- |
725
+ | Profile choice | External, internal, or hybrid package profile |
726
+ | Package lane | Public reusable block package, internal app, hybrid adapter, or app-local implementation |
727
+ | Coupling status | source-platform-coupled, source-platform-decoupled, or hybrid adapter boundary |
728
+ | Public-readiness target | Whether the first delivery must be ready for external package consumers |
729
+ | Block porting need | Reuse existing block, port an EAI App Template block, or request a custom-block exception |
730
+
731
+ External and hybrid profile choices require explicit public-readiness,
732
+ block-porting, source-platform decoupling, Storybook, and theme-override evidence in the
733
+ later Gofer artifacts. Restricted-source choices still record why public readiness
734
+ is not required now.
735
+
736
+ **First, offer the option to skip:**
737
+
738
+ | Option | Description |
739
+ | ---------------------------------------- | --------------------------------------------------------------------------- |
740
+ | **Confirm AI Journey (Recommended)** | Review the four-step AI-augmented process for this app |
741
+ | **Classify as Non-App / Skip AI Journey** | Use only when this is strategy, research, documentation, audit, or analysis |
742
+
743
+ If the user selects "Classify as Non-App / Skip AI Journey", capture the
744
+ non-application rationale in discovery and proceed directly to Step 3. If the
745
+ request is still an app, do not silently skip journey mapping; create a draft
746
+ four-step journey with assumptions and ask the user to confirm or correct it.
747
+
748
+ ### Journey Extraction
749
+
750
+ Based on the discovery answers, extract:
751
+
752
+ 1. **Actors**: Who interacts with this feature?
753
+ - User types (e.g., "End User", "Admin")
754
+ - AI agents (if applicable)
755
+ - Systems (e.g., "Auth Service", "Database")
756
+
757
+ 2. **Steps**: What is the main flow?
758
+ - Compress the flow into four steps or fewer
759
+ - Number each step (1, 2, 3, 4)
760
+ - Identify which actor performs each step
761
+ - State the business goal and completion outcome for each step
762
+ - Note which generative AI assistance improves that step
763
+ - For app delivery, default the steps to: brief -> preview -> approval ->
764
+ service fit unless the user clearly needs a different four-step shape
765
+
766
+ 3. **Touchpoints**: Where do interactions happen?
767
+ - UI touchpoints (screens, buttons)
768
+ - API touchpoints
769
+ - Notifications
770
+ - Local preview touchpoints such as browser views, screenshots, or
771
+ Playwright/self-review outputs when the feature includes a UI
772
+
773
+ 4. **AI augmentation**: How does generative AI help?
774
+ - Conversational help: chatbot, voice, accessibility, translations, or
775
+ guided explanation
776
+ - Contextual prefill: populate fields from screen context, known data,
777
+ user profile, customer record, document, or prior workflow state
778
+ - Step-goal assistance: understand the goal of the step, recommend next
779
+ actions, validate completeness, and drive the user to successful
780
+ completion
781
+ - Human control: show confidence, evidence, edit controls, escalation path,
782
+ and audit trail
783
+ - Preview critique: review the generated MVP before presentation and suggest
784
+ concrete fixes when the first pass is visually weak or off-brief
785
+
786
+ ### Journey Confirmation Questions
787
+
788
+ Use AskUserQuestion to present the extracted journey:
789
+
790
+ **Question 1: Confirm Actors**
791
+
792
+ "Based on your description, I've identified these actors in the journey:"
793
+
794
+ | Option | Description |
795
+ | ------ | ---------------------------------- |
796
+ | A | **[Actor 1]** - [role description] |
797
+ | B | **[Actor 2]** - [role description] |
798
+ | C | **[System]** - [role description] |
799
+ | Custom | Add or modify actors |
800
+
801
+ **Question 2: Confirm Journey Steps**
802
+
803
+ "Here's the main flow I've identified:"
804
+
805
+ | Option | Description |
806
+ | ------ | --------------------------------------------------------------------------------------------------- |
807
+ | A | Step 1: [goal] → Step 2: [goal] → Step 3: [goal] → Step 4: [goal] (Confirm this AI-augmented flow) |
808
+ | B | I need to modify some steps |
809
+ | C | Show me all steps, AI assistance, and completion criteria in detail first |
810
+
811
+ **Question 2a: Confirm AI Assistance**
812
+
813
+ "For each step, how should generative AI help the user complete the goal?"
814
+
815
+ | Option | Description |
816
+ | ------ | ----------------------------------------------------------------------------------- |
817
+ | A | Chat/voice/accessibility/translations help the user understand and complete the step |
818
+ | B | Prefill or recommend data using screen context, user context, and EnterpriseAI data |
819
+ | C | Validate completion, explain missing information, and guide the user to success |
820
+ | D | Mix all of the above, with human review and audit trail controls |
821
+ | Custom | Describe the AI assistance for each step |
822
+
823
+ **Question 3: Identify Key Touchpoints**
824
+
825
+ "What are the main interaction points for this feature?"
826
+
827
+ | Option | Description |
828
+ | ------ | ---------------------------------------------- |
829
+ | A | UI-heavy: Multiple screens and forms |
830
+ | B | API-driven: Primarily backend/integration work |
831
+ | C | Mixed: Both UI and API touchpoints |
832
+ | Custom | Describe your touchpoints |
833
+
834
+ ### Save Confirmed Journey
835
+
836
+ After confirmation, save to `.specify/specs/{feature}/journeys/base-journey.md`:
837
+
838
+ ````markdown
839
+ ---
840
+ id: {{feature-id}}-journey
841
+ name: {{journey-name}}
842
+ featureId: {{feature-id}}
843
+ status: confirmed
844
+ created: {{ISO-timestamp}}
845
+ modified: {{ISO-timestamp}}
846
+ applicationClassification: app
847
+ aiAugmentedJourney: true
848
+ maxSteps: 4
849
+ ---
850
+
851
+ # AI-Augmented Customer Journey: {{feature-name}}
852
+
853
+ ## Overview
854
+
855
+ {{discovery-problem-statement}}
856
+
857
+ ## Actors
858
+
859
+ | ID | Name | Type | Role |
860
+ | ------ | ----------- | ------ | --------------------------- |
861
+ | user | End User | user | Primary user of the feature |
862
+ | system | Backend API | system | Handles business logic |
863
+
864
+ ## Journey Steps
865
+
866
+ ### Step 1: {{business-goal}}
867
+
868
+ **Actor**: {{actor-id}}
869
+ **User action**: {{action-description}}
870
+ **AI assistance**:
871
+ {{chatbot-or-voice-or-accessibility-or-translation-or-prefill-or-guidance}}
872
+ **Context used**: {{screen-context-user-data-enterpriseai-data-documents}}
873
+ **Completion criteria**: {{how-we-know-this-step-is-successful}}
874
+ **Controls**: {{human-review-confidence-evidence-audit-escalation}}
875
+
876
+ ### Step 2: {{business-goal}}
877
+
878
+ ...
879
+
880
+ ### Step 4: {{business-goal}}
881
+
882
+ ...
883
+
884
+ ## Journey Diagram
885
+
886
+ ```mermaid
887
+ sequenceDiagram
888
+ participant user as End User
889
+ participant system as Backend API
890
+
891
+ user->>system: Step 1 action
892
+ system-->>user: AI-guided response, prefill, or validation
893
+ user->>system: Step 2 action
894
+ ```
895
+
896
+ ## AI Augmentation Matrix
897
+
898
+ | Step | Business Goal | AI Assistance | Data / Context Used | Completion Signal |
899
+ | ---- | ------------- | ------------- | ------------------- | ----------------- |
900
+ | 1 | {{goal}} | {{assist}} | {{context}} | {{signal}} |
901
+ | 2 | {{goal}} | {{assist}} | {{context}} | {{signal}} |
902
+ | 3 | {{goal}} | {{assist}} | {{context}} | {{signal}} |
903
+ | 4 | {{goal}} | {{assist}} | {{context}} | {{signal}} |
904
+
905
+ ## Touchpoints
906
+
907
+ | ID | Type | Description | Actors | Steps |
908
+ | ---------- | ---- | ----------------------- | ------ | ----- |
909
+ | login-form | ui | Login screen | user | 1 |
910
+ | auth-api | api | Authentication endpoint | system | 1, 2 |
911
+
912
+ ## Confirmation
913
+
914
+ - [x] Actors confirmed
915
+ - [x] Steps confirmed
916
+ - [x] Touchpoints identified
917
+
918
+ ````
919
+
920
+ ### Store Journey in Memory
921
+
922
+ ```
923
+ Category: 'journey' Tags: ['#journey', '#feature-{id}', '#confirmed'] Content:
924
+ 'Journey for {feature}: {actor-count} actors, {step-count} steps. Main flow:
925
+ {step-summary}.'
926
+ ```
927
+
928
+ ---
929
+
930
+ ## Step 3: Route to Gofer Command
931
+
932
+ Based on user selection and detected state:
933
+
934
+ ### Route A/B/C: New Feature, Modify Existing, or Fix Bug
935
+
936
+ All three scenarios use the same pipeline - the difference is in the research
937
+ focus:
938
+
939
+ | Scenario | Research Focus |
940
+ | --------------- | ---------------------------------------------------------- |
941
+ | New Feature | Technology research + codebase patterns |
942
+ | Modify Existing | Understanding existing implementation + integration points |
943
+ | Fix Bug | Root cause analysis + affected code paths |
944
+
945
+ #### Determine Starting Point
946
+
947
+ **Closed-Loop Audit (Highest Priority when feature artifacts exist)**:
948
+
949
+ Before pipeline-state routing, run the closed-loop audit when the selected
950
+ feature directory already exists:
951
+
952
+ ```bash
953
+ node .specify/scripts/node/gofer-closed-loop-audit.mjs --feature-dir {FEATURE_DIR} --json
954
+ ```
955
+
956
+ If `{FEATURE_DIR}/loop-contract.json` is missing, initialize it before routing
957
+ past discovery:
958
+
959
+ ```bash
960
+ node .specify/scripts/node/gofer-loop-audit.mjs --feature-dir {FEATURE_DIR} --stage 0_gofer_start --init --json
961
+ ```
962
+
963
+ Do not ask the user about loop initialization unless the command fails or would
964
+ overwrite an existing contract. The loop contract is standard Gofer feature
965
+ scaffold, not an optional extra.
966
+
967
+ If the audit recommends a `recommendedStartStage`, resume from that stage even
968
+ when later artifacts exist. This is how Gofer behaves like a goal-seeking loop:
969
+ goal drift, expired assumptions, contract drift, UX scope changes, or
970
+ post-validation code/test movement reopen the smallest valid mini-loop instead
971
+ of pretending the pipeline is still complete.
972
+
973
+ **Pipeline State Check (Priority)**:
974
+
975
+ Before file-existence checks, read `pipeline-state.json` for authoritative
976
+ resume information:
977
+
978
+ ```bash
979
+ .specify/scripts/bash/pipeline-state.sh read --json
980
+ ````
981
+
982
+ If `pipeline-state.json` exists and `status` is `in_progress`, resume from
983
+ `currentStage`. This takes priority over file-existence heuristics because
984
+ pipeline-state.json is updated atomically by each stage on completion.
985
+
986
+ If the closed-loop audit recommends an earlier stage than `currentStage`, the
987
+ audit wins. Pipeline state tracks progress; the audit tracks whether progress is
988
+ still valid.
989
+
990
+ **Spec Artifact Guard (Mandatory)**:
991
+
992
+ Before routing to `/3_gofer_plan`, `/4_gofer_tasks`, `/5_gofer_implement`, or
993
+ `/6_gofer_validate`, confirm that `.specify/specs/{feature}/spec.md` exists and
994
+ is not the unfilled `spec-template.md` copy created by feature bootstrap. A
995
+ missing, empty, or placeholder-filled spec always routes back to
996
+ `/2_gofer_specify`, even when `pipeline-state.json`, `plan.md`, `tasks.md`, or
997
+ validation artifacts imply later progress. Gofer must never plan, task,
998
+ implement, or validate a feature from research or plan artifacts alone.
999
+
1000
+ **Fallback — File-existence heuristics** (used when no pipeline-state.json
1001
+ exists):
1002
+
1003
+ | Has This | Missing This | Start At |
1004
+ | ----------------------------------------- | --------------------------- | -------------------- |
1005
+ | tasks.md (unchecked) | - | `/5_gofer_implement` |
1006
+ | plan.md | tasks.md | `/4_gofer_tasks` |
1007
+ | spec.md | plan.md | `/3_gofer_plan` |
1008
+ | research.md | spec.md | `/2_gofer_specify` |
1009
+ | Nothing | research.md | `/1_gofer_research` |
1010
+ | Nothing | Everything | `/1_gofer_research` |
1011
+
1012
+ #### For New Features
1013
+
1014
+ 1. Ask: **"What would you like to call this feature?"** (use AskUserQuestion)
1015
+ 2. Create the spec directory: `.specify/specs/{feature-name}/`
1016
+ 3. Seed stakeholder review scaffolding from templates:
1017
+ - `{FEATURE_DIR}/working-backwards-prfaq.md` from
1018
+ `.specify/templates/working-backwards-prfaq-template.md`
1019
+ - `{FEATURE_DIR}/stakeholder-review-index.md` from
1020
+ `.specify/templates/stakeholder-review-index-template.md`
1021
+ - `{FEATURE_DIR}/prfaq-history/00-business-scenario.md` as the initial
1022
+ product release PR/FAQ snapshot
1023
+ - Draft persona files only when enough context exists; otherwise let stages
1024
+ 1, 3, and 6 create the Business Owner, CTO, and CISO summaries with
1025
+ evidence.
1026
+ 4. Invoke `/1_gofer_research` to start the pipeline
1027
+
1028
+ Output:
1029
+
1030
+ ```
1031
+ ROUTING: GOFER PIPELINE
1032
+ FEATURE: {feature-name}
1033
+ STARTING: /1_gofer_research
1034
+ AUTO-CHAIN: research → specify → plan → tasks → implement → validate
1035
+ NOTE: research may also create optional supporting review artifacts
1036
+ NOTE: create/update the running product release PR/FAQ and stakeholder review index from the first stage
1037
+ REASON: [explanation]
1038
+ ```
1039
+
1040
+ #### For Existing Features
1041
+
1042
+ If user chose to continue an existing feature:
1043
+
1044
+ 1. Detect most advanced artifact
1045
+ 2. Route to appropriate command
1046
+ 3. Pipeline auto-chains from there
1047
+
1048
+ Output:
1049
+
1050
+ ```
1051
+ ROUTING: GOFER PIPELINE
1052
+ FEATURE: {feature-name}
1053
+ STARTING: /[N]_gofer_[stage]
1054
+ REMAINING: [remaining stages]
1055
+ REASON: Continuing from existing artifacts
1056
+ ```
1057
+
1058
+ ### Route D: Explore/Research
1059
+
1060
+ Start with `/1_gofer_research` without auto-chaining:
1061
+
1062
+ ```
1063
+ ROUTING: GOFER RESEARCH (STANDALONE)
1064
+ COMMAND: /1_gofer_research
1065
+ AUTO-CHAIN: disabled after research until the user asks to continue
1066
+ REASON: User wants to explore the codebase first
1067
+ ```
1068
+
1069
+ ### Route E: Continue Work
1070
+
1071
+ Check for session checkpoints:
1072
+
1073
+ ```bash
1074
+ find .specify/specs -name "session-checkpoint.md" -type f 2>/dev/null
1075
+ ```
1076
+
1077
+ If checkpoint found, read the most recent checkpoint and continue from the
1078
+ stage it names. Do not invoke a separate resume command.
1079
+
1080
+ If no checkpoint but unchecked tasks exist:
1081
+
1082
+ 1. Find features with `- [ ]` in tasks.md
1083
+ 2. Present options to user
1084
+ 3. Resume with `/5_gofer_implement`
1085
+
1086
+ Output:
1087
+
1088
+ ```
1089
+ ROUTING: GOFER CONTINUE
1090
+ FEATURE: {feature-name}
1091
+ COMMAND: /5_gofer_implement or /6_gofer_validate
1092
+ CHECKPOINT: {path to checkpoint}
1093
+ REASON: Resuming from saved session
1094
+ ```
1095
+
1096
+ ### Route F: Setup Project
1097
+
1098
+ For new projects or establishing guidelines:
1099
+
1100
+ ```
1101
+ ROUTING: GOFER CONSTITUTION
1102
+ COMMAND: /gofer_constitution
1103
+ REASON: User wants to establish project principles
1104
+ ```
1105
+
1106
+ ---
1107
+
1108
+ ## Step 4: Invoke the Routed Command
1109
+
1110
+ After determining the route:
1111
+
1112
+ 1. Output the routing decision clearly
1113
+ 2. Invoke the target command using the Skill tool
1114
+ 3. Let that command take over the workflow
1115
+
1116
+ ### Auto-Chaining Behavior
1117
+
1118
+ The unified Gofer pipeline automatically chains commands:
1119
+
1120
+ ```text
1121
+ /1_gofer_research completes → auto-invokes /2_gofer_specify unless user pauses
1122
+ /2_gofer_specify completes → auto-invokes /3_gofer_plan
1123
+ /3_gofer_plan completes → auto-invokes /4_gofer_tasks
1124
+ /4_gofer_tasks completes → auto-invokes /5_gofer_implement
1125
+ /5_gofer_implement completes→ auto-invokes /6_gofer_validate
1126
+ /6_gofer_validate completes → pipeline complete
1127
+ ```
1128
+
1129
+ **The user only needs to run `/0_gofer_start` once** - the orchestrator
1130
+ handles everything else automatically.
1131
+
1132
+ ---
1133
+
1134
+ ## Step 5: Handle Interruptions
1135
+
1136
+ If the user needs to pause:
1137
+
1138
+ 1. Invoke `/7_gofer_save` to create checkpoint
1139
+ 2. Document current state
1140
+ 3. User can start a fresh session, read the checkpoint, and continue from the
1141
+ named stage
1142
+
1143
+ If context window is filling up:
1144
+
1145
+ 1. Save progress with `/7_gofer_save`
1146
+ 2. Recommend user start new conversation
1147
+ 3. User opens the checkpoint and continues from the appropriate stage
1148
+
1149
+ ---
1150
+
1151
+ ## Important Notes
1152
+
1153
+ - Keep the interview SHORT - max 2-3 questions
1154
+ - **ALWAYS ask what the user wants to do** - don't assume existing artifacts are
1155
+ relevant
1156
+ - Show existing features and let user choose to continue OR start new
1157
+ - Technology architecture decisions must be asked **one-by-one** with a
1158
+ discussion loop so users can ask clarifying questions before finalizing each
1159
+ answer
1160
+ - Document the routing decision for debugging
1161
+ - If user seems confused, default to research first
1162
+
1163
+ ---
1164
+
1165
+ ## Quick Reference: Core Pipeline And Helpers
1166
+
1167
+ ### Core Pipeline
1168
+
1169
+ | Stage | Command | Main output | Description |
1170
+ | ----- | --------------------- | ---------------------------------- | ----------------------------------------- |
1171
+ | 0 | `/0_gofer_start`| Full pipeline kickoff | Business scenario intake and routing |
1172
+ | 1 | `/1_gofer_research` | research.md | Research and supporting review prep |
1173
+ | 2 | `/2_gofer_specify` | spec.md | Feature specification |
1174
+ | 3 | `/3_gofer_plan` | plan.md, data-model.md, contracts/ | Technical architecture and contracts |
1175
+ | 4 | `/4_gofer_tasks` | tasks.md, traceability.md, issues.md | Dependency-ordered task breakdown |
1176
+ | 5 | `/5_gofer_implement` | Code, docs, loop-ledger.jsonl | Execute bounded check-repair loops |
1177
+ | 6 | `/6_gofer_validate` | Validation artifacts, loop-audit-report.md | Terminal quality gate, including review |
1178
+
1179
+ Every stage also updates the running product release PR/FAQ:
1180
+ `working-backwards-prfaq.md`, writes an immutable snapshot in
1181
+ `prfaq-history/`, and refreshes `stakeholder-review-index.md` so the user sees
1182
+ which Business Owner, CTO/Architecture, CISO/Risk, or Delivery review is needed.
1183
+
1184
+ ### Helper Commands
1185
+
1186
+ | Command | Purpose |
1187
+ | ----------------------------- | ------------------------------------------------ |
1188
+ | `/0a_problem_validation` | Optional deeper problem framing before research |
1189
+ | `/7_gofer_save` | Save session checkpoint |
1190
+ | `/7a_stakeholder_comms` | Post-validation communications |
1191
+ | `/8_gofer_branding` | Brand templates and stakeholder documents |
1192
+ | `/9_gofer_tests` | Define test cases (DSL approach) |
1193
+ | `/10_gofer_cloud` | Cloud infrastructure analysis (READ-ONLY) |
1194
+ | `/gofer_hydrate` | Reverse-engineer spec from code |
1195
+ | `/gofer_constitution` | Project principles and standards |
1196
+ | `/gofer:check-workspace` | Check whether the repo scaffold is healthy |
1197
+ | `/gofer:bootstrap-workspace` | Create or update the repo-owned scaffold |
1198
+
1199
+ ---
1200
+
1201
+ ## EnterpriseAI Profile Extensions
1202
+
1203
+ The standard Gofer workflow is the public default. EnterpriseAI guidance is a
1204
+ legacy compatibility profile and must be used only when `workflowProfile` is
1205
+ explicitly set to `enterpriseai` or the user asks for that migration path. The
1206
+ sections below add EnterpriseAI guardrails on top of the standard orchestrator;
1207
+ standard-profile outputs remain unchanged.
1208
+
1209
+ ### EnterpriseAI-First Discovery Framing (MANDATORY)
1210
+
1211
+ When the workflow profile is explicitly `enterpriseai`:
1212
+
1213
+ - Frame every discovery option as an EnterpriseAI platform delivery outcome.
1214
+ - Do **not** present non-EAI platforms as primary recommendations.
1215
+ - Non-EAI platforms must never be presented as primary recommendations during
1216
+ discovery. They may only appear as optional reference material in the research
1217
+ stage, clearly labelled as non-primary.
1218
+ - All recommended scenarios must map to an EnterpriseAI app
1219
+ (business analysis → EAI services → deployment target).
1220
+ - Maintain a running domain model using the user's vocabulary. Ask adaptive
1221
+ follow-up questions that clarify actors, object types, workflows, tenant
1222
+ boundaries, decision owners, and measurable value.
1223
+ - Before recommending a new object type, API, workflow, module, or spec concept,
1224
+ require a reuse-before-create scan: reuse existing, extend existing, or create
1225
+ new with rationale.
1226
+
1227
+ ### EnterpriseAI Contract and Context Guardrails (MANDATORY)
1228
+
1229
+ Every EnterpriseAI discovery must preserve enough information for downstream
1230
+ stages to create these artifacts without re-interviewing the user:
1231
+
1232
+ | Artifact | Required Content |
1233
+ | -------- | ---------------- |
1234
+ | `journeys/base-journey.md` | Application classification, four-step-or-fewer AI-augmented customer journey, step goals, AI assistance, context used, controls, completion criteria |
1235
+ | `ui-preview-brief.md` | App-delivery-only preview brief: target screens, EAI App Template component constraints, branding inputs, preview validation expectations |
1236
+ | `ui-review-log.md` | App-delivery-only iteration log: preview evidence, requested changes, accepted changes, unresolved issues |
1237
+ | `ui-approval.md` | App-delivery-only approval gate: approved preview, approved branding, approved component exceptions, approver and timestamp |
1238
+ | `service-fit-matrix.md` | App-delivery-only service selection evidence: desired platform capability, evidence source, accessible now vs purchasable vs unavailable, selected direction |
1239
+ | `eai-preflight.md` | App-delivery-only EAI readiness evidence: CLI install/version, login status, tenant role, template initialization state, app enrollment readiness, block catalog readiness, and next action |
1240
+ | `context-bundle.md` | Compact feature context, selected scenario, app/non-app decision, AI-augmented journey summary, EnterpriseAI object types, tenant assumptions, API surfaces, deployment assumptions, validation criteria |
1241
+ | `contract-pack.md` | Actors, object types, workflows/journeys, four-step AI assistance contract, permissions, tenant boundaries, APIs/events, runtime assumptions, acceptance tests |
1242
+ | `reuse-scan.md` | Existing specs, platform references, object types, APIs, workflows, modules, and the reuse/extend/create decision |
1243
+ | `audit-history.md` | Stable finding IDs, recurring-finding history, accepted exceptions, owner, expiry, and review cadence |
1244
+ | `working-backwards-prfaq.md` | Product release PR/FAQ: headline, customer problem, launch description, external FAQ, internal FAQ, evidence links, and review asks |
1245
+ | `prfaq-history/` | Stage-by-stage immutable PR/FAQ snapshots: `00-business-scenario.md` through `06-validate.md` |
1246
+ | `business-owner-summary.md` | Business scenario, process change, business case, metrics, assumptions, and Business Owner review ask |
1247
+ | `cto-architecture-summary.md` | EAI Platform/Azure architecture, auth, tenancy, data, contracts, diagrams, and CTO review ask |
1248
+ | `ciso-security-summary.md` | Security posture, identity/tenant controls, secrets/data handling, residual risk, validation evidence, and CISO review ask |
1249
+ | `stakeholder-review-index.md` | One-page index of review-ready artifacts, current status, reviewer, and approve/revise/defer response contract |
1250
+
1251
+ Use these artifacts as decision evidence for executive, architecture, CISO,
1252
+ data, delivery, CIO, CFO, COO, and risk/compliance stakeholders.
1253
+
1254
+ For application delivery, downstream stages must preserve the four-step
1255
+ AI-augmented journey as the default scope spine. If a later stage expands beyond
1256
+ four user-facing steps, it must explain why the extra complexity is necessary
1257
+ and whether generative AI could combine or automate the additional steps.
1258
+ Non-app work keeps the same numbered stages without requiring the app-delivery
1259
+ preview, branding, approval, or service-fit artifacts.
1260
+
1261
+ ### Novice Walkthrough Guardrail (MANDATORY)
1262
+
1263
+ Assume the user is a first-time student or business learner with no prior
1264
+ platform experience.
1265
+
1266
+ - Do not require external documentation to complete discovery.
1267
+ - Provide recommended options and plain-language implications for every
1268
+ question. Each recommendation must explain, in one sentence, what choosing it
1269
+ means for the next stage.
1270
+ - Pipeline auto-chains from there: once discovery inputs are confirmed, the
1271
+ orchestrator progresses through research → specify → plan → tasks → implement
1272
+ → validate without requiring the user to invoke each stage by hand.
1273
+
1274
+ ---
1275
+
1276
+ ## Observability
1277
+
1278
+ Log orchestrator routing:
1279
+
1280
+ ```bash
1281
+ .specify/scripts/bash/log-stage.sh 0_orchestrator --route [command] --feature [name]
1282
+ ```