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