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,942 @@
1
+ ---
2
+ name: 5_gofer_implement
3
+ description: Execute tasks from tasks.md to implement the feature
4
+ agent: copilot-workspace
5
+ tools:
6
+ - Read
7
+ - Grep
8
+ - Glob
9
+ - Bash
10
+ - WebSearch
11
+ argument-hint: feature-name-or-description
12
+ gofer:
13
+ workflowProfile: standard
14
+ canonicalSource: .specify/commands/5_gofer_implement.md
15
+ canonicalChecksum: d1731d3b2a54e165aab4226e2d3a3f428581385128fa9c3971faf185f8b5fb88
16
+ metadataSource: scripts/generate-commands.ts
17
+ ---
18
+
19
+ ## Workspace Preflight
20
+
21
+ Before doing stage/helper work:
22
+
23
+ 1. Resolve the repository root.
24
+ 2. Check the core Gofer sentinels:
25
+ - `.specify/.gofer-version`
26
+ - `.specify/commands/0_gofer_start.md`
27
+ - `.specify/templates/spec-template.md`
28
+ - `.specify/templates/loop-contract-template.json`
29
+ - `.specify/templates/working-backwards-prfaq-template.md`
30
+ - `.specify/templates/business-owner-summary-template.md`
31
+ - `.specify/templates/cto-architecture-summary-template.md`
32
+ - `.specify/templates/ciso-security-summary-template.md`
33
+ - `.specify/templates/stakeholder-review-index-template.md`
34
+ - `.specify/scripts/bash/create-new-feature.sh`
35
+ - `.specify/scripts/node/parse-stage-command.mjs`
36
+ - `.specify/scripts/node/gofer-loop-audit.mjs`
37
+ - `.specify/scripts/hooks/post-tool-use.mjs`
38
+ - `.specify/scripts/powershell/install-optional-tools.ps1`
39
+ - `.specify/templates/gofer-model-policy.yaml`
40
+ - `.specify/memory/gofer-model-policy.yaml`
41
+ - `.specify/specs/`
42
+ - `.specify/memory/`
43
+ 3. Check host-specific repo-owned files when relevant:
44
+ - Claude: `AGENTS.md`, `CLAUDE.md`, `.claude/settings.json`
45
+ - Codex: `AGENTS.md`
46
+ - Copilot: `.github/copilot-instructions.md`
47
+ - VS Code extension mirrors Claude/Copilot/Gemini resources itself and should still keep the core scaffold healthy
48
+ 4. If the repo already has the workspace checker script, prefer running:
49
+ - `node .specify/scripts/node/gofer-workspace-check.mjs --host copilot --json`
50
+ 5. If the workspace is missing or stale, ask exactly:
51
+ - **"This repo is missing or stale for Gofer. Initialize/update it now?"**
52
+ 6. If the user says yes, run the Gofer workspace bootstrap helper and then resume this command from the top.
53
+ 7. If the user says no, stop and explain that Gofer stage/helper work depends on the repo-owned scaffold.
54
+
55
+
56
+ # Gofer Implement
57
+
58
+ ## EAI Platform Session Preflight
59
+
60
+ Before any Gofer stage/helper command does pipeline work:
61
+
62
+ 1. Treat durable delivery as EAI Platform delivery by default, with Azure second
63
+ and every other stack only by explicit exception.
64
+ 2. Run `eai whoami` and confirm the EAI CLI is installed, the user is logged in,
65
+ and an active tenant is visible.
66
+ 3. If `eai` is missing, `eai whoami` fails, the token is expired, or no active
67
+ tenant is available, stop and run `/gofer:eai-first-run` or ask the user to
68
+ approve login/setup before continuing.
69
+ 4. For EAI app delivery, do not continue into research, specification, planning,
70
+ tasks, implementation, or validation until
71
+ `.specify/specs/{feature}/eai-preflight.md` records login, tenant, template,
72
+ app-readiness, and next-action evidence.
73
+ 5. Do not write tokens, secrets, private tenant IDs, or local `.env` values into
74
+ Gofer artifacts; record only product-safe readiness status and evidence.
75
+
76
+ ## Token And Cost Policy
77
+ <!-- gofer:token-cost-policy:start -->
78
+
79
+ Before spawning agents, calling tools, or loading large files:
80
+
81
+ 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.
82
+ 2. Use the cheapest capable model first.
83
+ - Claude: Haiku for scouting/extraction; Sonnet for normal implementation, synthesis, validation, and security; Opus for high-risk arbitration or release-critical failures.
84
+ - 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.
85
+ - Gemini: Flash-Lite for cheap large-context scan/summarize; Flash for default research synthesis; Pro for large-context architecture or high-risk arbitration.
86
+ - 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.
87
+ 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.
88
+ 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.
89
+ 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.
90
+ 6. Escalate model tier only when a cheaper pass is low-confidence, contradictory, security-sensitive, or blocking release quality.
91
+ <!-- gofer:token-cost-policy:end -->
92
+
93
+ ## User Input
94
+
95
+ ```text
96
+ $ARGUMENTS
97
+ ```
98
+
99
+ You **MUST** consider the user input before proceeding (if not empty).
100
+
101
+ ## Execution Profile During Implementation
102
+
103
+ Before editing, re-check the planned depth and generic risk labels from
104
+ `tasks.md` / `plan.md`:
105
+
106
+ - **fast**: for `docs-only` or very small low-risk changes, make the smallest
107
+ scoped edit, run focused checks, and avoid regenerating optional artifacts
108
+ unless they are directly affected.
109
+ - **standard**: implement phase by phase with normal focused test evidence.
110
+ - **full**: open the relevant contracts, security, data, infra, release, and
111
+ rollback artifacts before code changes; update tests before or alongside the
112
+ fix.
113
+ - **dynamic**: confirm `workflow-dag.md` exists and `requiresConfirmation` is
114
+ false before executing shard-oriented work. Run each shard against its declared
115
+ inputs/outputs, then run the reducer and verifier/refuter pass before marking
116
+ tasks complete.
117
+
118
+ If the implementation reveals a higher-risk surface than planned, stop and
119
+ upgrade the depth before continuing. Do not silently broaden scope.
120
+
121
+ ## Prerequisites
122
+
123
+ This command expects in `.specify/specs/{feature}/`:
124
+
125
+ - `research.md` - Codebase analysis (from #1_gofer_research)
126
+ - `spec.md` - Feature specification (from #2_gofer_specify)
127
+ - `plan.md` - Implementation plan (from #3_gofer_plan)
128
+ - `tasks.md` - Task breakdown (from #4_gofer_tasks)
129
+ - `loop-contract.json` - Bounded eval commands and stop rules (from /1 through /4)
130
+
131
+ If missing, prompt user to run the prerequisite stage.
132
+
133
+ ---
134
+
135
+ ## Spec Artifact Guard
136
+
137
+ Before implementation, `.specify/scripts/bash/check-prerequisites.sh --json
138
+ --require-tasks --include-tasks` must confirm that `{FEATURE_DIR}/spec.md`
139
+ exists, is non-empty, and is not the unfilled spec template. If the helper
140
+ reports `spec.md` as missing, empty, or `template`, stop and run
141
+ `#2_gofer_specify` before editing code. Implementation must never proceed from
142
+ `tasks.md` or `plan.md` without an authoritative spec for acceptance criteria
143
+ and protected boundaries.
144
+
145
+ ## Outline
146
+
147
+ 1. Context health check
148
+ 2. Load implementation context
149
+ 3. Load scope boundaries
150
+ 4. Check checklists status
151
+ 5. Verify project setup
152
+ 6. Execute tasks phase by phase (with feedback loops)
153
+ 7. Track progress and handle errors
154
+ 8. Output: Implemented feature code
155
+
156
+ ---
157
+
158
+ ## Step 1: Context Health Check
159
+
160
+ Before starting implementation, assess context window health:
161
+
162
+ ```bash
163
+ .specify/scripts/bash/check-context-health.sh
164
+ ```
165
+
166
+ **Evaluate thresholds (2025-2026 research-based)**:
167
+
168
+ | Status | Token Usage | Action |
169
+ | -------- | ----------- | ---------------------------------------- |
170
+ | Healthy | < 50% | Proceed normally |
171
+ | Warning | 50-70% | Use sub-agents, checkpoint every 5 tasks |
172
+ | Critical | > 70% | Run `#7_gofer_save`, start new session |
173
+
174
+ ### Context Management Techniques
175
+
176
+ During implementation, use these techniques to preserve context quality:
177
+
178
+ 1. **Sub-Agent Architecture** (Recommended)
179
+ - Use Task tool with specialized agents for exploration
180
+ - Each agent returns condensed results (1-2k tokens)
181
+ - Keeps main context focused on implementation
182
+
183
+ 2. **Observation Masking**
184
+ - Old file reads become stale quickly
185
+ - Re-read files only when actively editing
186
+ - Avoid keeping full file contents in context
187
+
188
+ 3. **Periodic Checkpoints**
189
+ - Every 5 completed tasks, check context health
190
+ - If Warning status: Run `#7_gofer_save`
191
+ - This enables resumption with fresh context
192
+
193
+ **If compaction needed**:
194
+
195
+ ```bash
196
+ #7_gofer_save # Creates comprehensive checkpoint
197
+ # Start a fresh supported AI coding app session
198
+ # Read .specify/specs/{feature}/session-checkpoint.md
199
+ # Continue with #5_gofer_implement or the stage named in the checkpoint
200
+ ```
201
+
202
+ ---
203
+
204
+ ## Step 2: Load Context
205
+
206
+ 1. **Run setup script**:
207
+
208
+ ```bash
209
+ .specify/scripts/bash/check-prerequisites.sh --json --require-tasks --include-tasks
210
+ ```
211
+
212
+ Parse JSON for FEATURE_DIR and task list
213
+
214
+ 2. **Load implementation documents**:
215
+ - **Required**: tasks.md (task list and execution plan)
216
+ - **Required**: plan.md (tech stack, architecture, file structure)
217
+ - **Required**: spec.md (scope boundaries and protected files)
218
+ - **Required**: loop-contract.json (bounded loop objective, eval commands,
219
+ maximum iterations, stop conditions, and escalation rules)
220
+ - **Optional**: data-model.md (entities and relationships)
221
+ - **Optional**: contracts/ (API specifications)
222
+ - **Optional**: research.md (technical decisions)
223
+ - **Optional**: quickstart.md (integration scenarios)
224
+
225
+ ---
226
+
227
+ ## Step 3: Load Scope Boundaries
228
+
229
+ Extract protected boundaries from spec.md and tasks.md:
230
+
231
+ 1. **Read "Protected Boundaries" section from spec.md**
232
+ 2. **Read "Protected Files" section from tasks.md**
233
+ 3. **Build exclusion list**:
234
+
235
+ ```
236
+ PROTECTED_FILES:
237
+ - path/to/file1.ts (reason: backward compatibility)
238
+ - path/to/directory/ (reason: out of scope)
239
+ ```
240
+
241
+ 4. **Display to confirm**:
242
+
243
+ ```
244
+ ⚠️ SCOPE BOUNDARIES LOADED
245
+ The following files/patterns are PROTECTED and must NOT be modified:
246
+ - [list files]
247
+
248
+ If you need to modify these, STOP and ask for approval.
249
+ ```
250
+
251
+ ---
252
+
253
+ ## Step 4: Check Checklists Status
254
+
255
+ If `{FEATURE_DIR}/checklists/` exists:
256
+
257
+ 1. **Scan all checklist files**
258
+ 2. **Count completion status** for each:
259
+ - Total items: `- [ ]` or `- [X]` or `- [x]`
260
+ - Completed: `- [X]` or `- [x]`
261
+ - Incomplete: `- [ ]`
262
+
263
+ 3. **Display status table**:
264
+
265
+ ```
266
+ | Checklist | Total | Completed | Incomplete | Status |
267
+ |----------------|-------|-----------|------------|--------|
268
+ | requirements.md| 12 | 12 | 0 | ✓ PASS |
269
+ | ux.md | 8 | 5 | 3 | ✗ FAIL |
270
+ ```
271
+
272
+ 4. **If any incomplete**:
273
+ - Display the table
274
+ - **STOP** and ask: "Some checklists are incomplete. Proceed anyway?
275
+ (yes/no)"
276
+ - Wait for user response
277
+
278
+ 5. **If all complete**: Proceed automatically
279
+
280
+ ---
281
+
282
+ ## Step 5: Project Setup Verification
283
+
284
+ Create/verify ignore files based on project setup:
285
+
286
+ ### Detection Logic
287
+
288
+ - Git repo? → verify `.gitignore`
289
+ - Dockerfile exists? → verify `.dockerignore`
290
+ - ESLint config? → verify `.eslintignore`
291
+ - Prettier config? → verify `.prettierignore`
292
+
293
+ ### Common Patterns by Tech Stack
294
+
295
+ Read tech stack from plan.md and ensure appropriate patterns:
296
+
297
+ - **Node.js**: `node_modules/`, `dist/`, `build/`, `*.log`, `.env*`
298
+ - **Python**: `__pycache__/`, `*.pyc`, `.venv/`, `dist/`
299
+ - **TypeScript**: `node_modules/`, `dist/`, `*.js.map`, `.tsbuildinfo`
300
+ - **Universal**: `.DS_Store`, `*.tmp`, `*.swp`, `.vscode/`, `.idea/`
301
+
302
+ ---
303
+
304
+ ## Step 6: Parse Tasks Structure
305
+
306
+ Extract from tasks.md:
307
+
308
+ 1. **Task phases**: Setup, Foundational, User Stories, Polish
309
+ 2. **Dependencies**: Sequential vs parallel execution
310
+ 3. **Task details**: ID, description, file paths, [P] markers
311
+ 4. **Current progress**: Which tasks are already `[X]` completed
312
+ 5. **Protected files**: List from "Protected Files" section
313
+ 6. **Loop evidence tasks**: eval command tasks, ledger append tasks, and
314
+ stop/escalation rules
315
+
316
+ ---
317
+
318
+ ## Step 7: Execute Implementation
319
+
320
+ ### Loop Contract Preflight
321
+
322
+ Before editing code, run:
323
+
324
+ ```bash
325
+ node .specify/scripts/node/gofer-loop-audit.mjs --feature-dir {FEATURE_DIR} --stage 4_tasks --init --json
326
+ ```
327
+
328
+ If this reports contract blocking findings, repair `loop-contract.json` before
329
+ editing code. If `loop-contract.json` was initialized for an older feature, keep
330
+ going but make sure task execution appends real `loop-ledger.jsonl` evidence
331
+ before this stage completes.
332
+
333
+ ### Checkpoint Strategy
334
+
335
+ Create checkpoints (git commits) at strategic points:
336
+
337
+ | Checkpoint Point | Command |
338
+ | -------------------------------- | ------------------------------------------------------------------ |
339
+ | Before starting each phase | `git add -A && git commit -m "WIP: checkpoint before Phase N"` |
340
+ | After completing each user story | `git add -A && git commit -m "feat: complete US1 - [description]"` |
341
+ | Before any risky operation | `git add -A && git commit -m "WIP: checkpoint before [operation]"` |
342
+
343
+ **Risky operations requiring checkpoint**:
344
+
345
+ - Modifying database schemas or migrations
346
+ - Changing authentication/authorization logic
347
+ - Modifying core infrastructure or shared utilities
348
+ - Large refactoring (> 5 files)
349
+ - Deleting or renaming significant code
350
+
351
+ ### Scope Enforcement
352
+
353
+ **Before EACH file modification**:
354
+
355
+ 1. ✓ Check file path is in planned scope (listed in tasks.md)
356
+ 2. ✓ Check file is NOT in Protected Files list (from Step 3)
357
+ 3. If file is protected:
358
+
359
+ ```
360
+ ⚠️ SCOPE BOUNDARY VIOLATION
361
+ File: [path/to/file]
362
+ Reason: [from Protected Files list]
363
+
364
+ This file is marked as protected and must NOT be modified.
365
+ Options:
366
+ 1. Find alternative approach that doesn't touch this file
367
+ 2. STOP and ask user for explicit approval to cross boundary
368
+ ```
369
+
370
+ ### Execution Rules
371
+
372
+ 1. **Phase-by-phase**: Complete each phase before next
373
+ 2. **Respect dependencies**: Sequential tasks in order
374
+ 3. **Parallel tasks**: [P] marked tasks can run together
375
+ 4. **File coordination**: Same-file tasks run sequentially
376
+ 5. **Scope check**: Verify every file against protected list
377
+ 6. **Loop evidence**: After each focused implementation/check-repair loop,
378
+ append a ledger record:
379
+
380
+ ```bash
381
+ node .specify/scripts/node/gofer-loop-audit.mjs --feature-dir {FEATURE_DIR} --stage 5_implement --record '{"iteration":1,"action":"<command-or-review>","result":"pass","summary":"<evidence summary>"}' --json
382
+ ```
383
+
384
+ Use `result: "fail"` or `"blocked"` when a check fails and include a
385
+ material `nextAction`. Stop and escalate instead of continuing silently when
386
+ the same action reaches `humanEscalation.maxFailedIterations`.
387
+
388
+ ### Execution Order
389
+
390
+ 1. **Setup first**: Project structure, dependencies, config
391
+ 2. **Foundational next**: Shared components blocking user stories
392
+ 3. **User stories**: In priority order (P1, P2, P3...)
393
+ 4. **Polish last**: Documentation, optimization, final tests
394
+
395
+ ### Minimal Changes Only
396
+
397
+ **Before EVERY file modification**, verify against Constitution Principle VIII:
398
+
399
+ 1. Is this change directly required by the current task? If not, **do not make
400
+ it**.
401
+ 2. Am I modifying only the files listed in the task scope? If touching other
402
+ files, **stop and justify**.
403
+ 3. Am I refactoring surrounding code? If yes, **revert** — only change what the
404
+ task specifies.
405
+ 4. Am I adding features, documentation, or tests beyond what's specified? If
406
+ yes, **remove them**.
407
+ 5. Am I adding error handling for scenarios that cannot occur? If yes, **remove
408
+ it**.
409
+ 6. Am I creating an abstraction for a one-time operation? If yes, **inline it**.
410
+ 7. Am I gold-plating (better variable names, extra comments, type annotations on
411
+ unchanged code)? If yes, **revert**.
412
+
413
+ **This is a per-modification check, not a per-task check.** Apply it to every
414
+ line you write.
415
+
416
+ ### For Each Task
417
+
418
+ 1. Read the task description and file path
419
+ 2. **SCOPE CHECK**: Verify file is not protected
420
+ 3. Load relevant context (data-model, contracts, research)
421
+ 4. Implement according to plan.md architecture
422
+ 5. Follow existing codebase patterns (from research.md)
423
+ 6. **MINIMAL CHANGE CHECK**: Verify every modification against the 7-point
424
+ checklist above
425
+ 7. Mark the task `in_progress` before editing:
426
+
427
+ ```bash
428
+ # Use the Gofer task status tool if available
429
+ gofer_update_task_status <spec-id> <task-id> in_progress
430
+ ```
431
+
432
+ 8. **RUN FEEDBACK LOOP** (see below)
433
+ 9. After the task passes its feedback loop, immediately mark it complete in
434
+ `tasks.md` using `gofer_update_task_status <spec-id> <task-id> completed` or
435
+ `.specify/scripts/bash/mark-task-complete.sh <feature-dir> <task-id>`
436
+ 10. Report progress
437
+
438
+ ### Feedback Loop (After EACH Task)
439
+
440
+ **Immediately after completing each task, run verification**:
441
+
442
+ ```bash
443
+ # 1. Run relevant tests (if test file exists for this component)
444
+ npm test -- --grep "[component pattern]" # or pytest -k "pattern"
445
+
446
+ # 2. Run linter on modified files
447
+ npm run lint -- [modified files] # or ruff check [files]
448
+
449
+ # 3. Run type check (TypeScript projects)
450
+ npm run typecheck # or tsc --noEmit
451
+ ```
452
+
453
+ **Feedback Loop Rules**:
454
+
455
+ - If tests fail → **FIX BEFORE** proceeding to next task
456
+ - If lint errors → **FIX BEFORE** proceeding
457
+ - If type errors → **FIX BEFORE** proceeding
458
+ - **DO NOT** mark a task complete until the feedback loop passes
459
+ - **DO NOT** accumulate failures across tasks
460
+
461
+ ### After Each Phase
462
+
463
+ Run full verification before proceeding:
464
+
465
+ ```bash
466
+ # Full test suite
467
+ npm test
468
+
469
+ # Full build
470
+ npm run build
471
+
472
+ # Full lint
473
+ npm run lint
474
+ ```
475
+
476
+ **Phase Gate**: Do NOT proceed to next phase if build is broken.
477
+
478
+ ### Multi-Perspective Implementation Options (Optional)
479
+
480
+ When facing complex implementation decisions during task execution, invoke one
481
+ or more of the following strategies. Each spawns multiple sub-agents that
482
+ explore different approaches, then a judge synthesizes the best result.
483
+
484
+ **Trigger conditions** — use these when:
485
+
486
+ | Strategy | Agent | When to Trigger | Converge Model |
487
+ | ------------------------ | -------------------------------- | -------------------------------------------------------------------------- | -------------- |
488
+ | #1 Variant Generator | `implement-variant-generator` | Multiple valid coding paradigms exist for a task (e.g., functional vs OOP) | sonnet |
489
+ | #3 Bug Triangulator | `implement-bug-triangulator` | Debugging a defect with unclear root cause | sonnet |
490
+ | #4 Test Diversifier | `implement-test-diversifier` | Writing tests for critical or complex logic | sonnet |
491
+ | #8 Error Hardener | `implement-error-hardener` | Implementing error-prone code (I/O, external APIs, resource mgmt) | sonnet |
492
+ | #11 Performance Explorer | `implement-performance-explorer` | Optimizing a hot path or resource-intensive operation | sonnet |
493
+ | #15 Code Review Council | `implement-code-review-council` | After completing a complex task, before marking done | sonnet |
494
+ | #17 Doc Writer | `implement-doc-writer` | Writing documentation for a user-facing feature | sonnet |
495
+
496
+ **Invocation pattern** (example for #1 Variant Generator):
497
+
498
+ ```
499
+ # Diverge: Launch 3-5 agents with different approaches
500
+ Task: subagent_type="implement-variant-generator", model="sonnet"
501
+ prompt="Perspective 1: Implement [task] using functional approach. Files: [list]"
502
+
503
+ Task: subagent_type="implement-variant-generator", model="sonnet"
504
+ prompt="Perspective 2: Implement [task] using OOP approach. Files: [list]"
505
+
506
+ Task: subagent_type="implement-variant-generator", model="sonnet"
507
+ prompt="Perspective 3: Implement [task] using event-driven approach. Files: [list]"
508
+
509
+ # Converge: Judge synthesizes best approach
510
+ Task: subagent_type="multi-perspective-judge", model="opus"
511
+ prompt="Synthesize 3 implementation variants for [task]. Select best approach.
512
+ Variant 1: [result]. Variant 2: [result]. Variant 3: [result]."
513
+ ```
514
+
515
+ **Rules**:
516
+
517
+ - These are OPTIONAL — only invoke when trigger conditions are met
518
+ - Each diverge agent returns <2000 tokens; judge returns <4000 tokens
519
+ - Do NOT use for trivial tasks (config changes, simple getters, boilerplate)
520
+ - Prefer strategies that match the task type (debugging → #3, testing → #4)
521
+
522
+ ---
523
+
524
+ ## Step 8: Progress Tracking
525
+
526
+ ### After Each Task
527
+
528
+ ```
529
+ ✓ T001 Create directory structure - DONE
530
+ → T002 [P] Set up configuration files - IN PROGRESS
531
+ ```
532
+
533
+ ### After Each Phase
534
+
535
+ ```
536
+ ═══════════════════════════════════════
537
+ Phase 1: Setup - COMPLETE
538
+ ═══════════════════════════════════════
539
+ Tasks completed: 4/4
540
+ Files created:
541
+ - src/index.ts
542
+ - src/config.ts
543
+ - package.json
544
+ - tsconfig.json
545
+
546
+ → Starting Phase 2: Foundational
547
+ ═══════════════════════════════════════
548
+ ```
549
+
550
+ ---
551
+
552
+ ## Step 9: Error Handling
553
+
554
+ ### If Task Fails
555
+
556
+ 1. Report the error with context
557
+ 2. **For sequential tasks**: Halt execution
558
+ 3. **For parallel [P] tasks**: Continue others, report failed
559
+ 4. Provide debugging suggestions
560
+ 5. Ask user how to proceed:
561
+ - Retry the task
562
+ - Skip and continue
563
+ - Stop implementation
564
+
565
+ ### If Blocked
566
+
567
+ 1. Identify the blocker
568
+ 2. Check if it's a missing prerequisite
569
+ 3. Suggest running earlier stage if needed
570
+ 4. Document the issue in tasks.md
571
+
572
+ ### If Something Goes Wrong (Rollback)
573
+
574
+ 1. **STOP immediately** - don't make more changes
575
+ 2. **Assess damage**:
576
+ ```bash
577
+ git status
578
+ git diff
579
+ ```
580
+ 3. **Rollback options**:
581
+ - Single file: `git checkout HEAD -- <file>`
582
+ - All uncommitted: `git reset --hard HEAD`
583
+ - To last checkpoint: `git reset --hard <checkpoint-commit>`
584
+ 4. **Document** what went wrong in tasks.md
585
+ 5. **Retry** with modified approach
586
+
587
+ ---
588
+
589
+ ## Step 10: Completion Validation
590
+
591
+ After all tasks complete:
592
+
593
+ 1. **Verify all tasks marked [X]**
594
+ 2. **Check implementation matches spec**
595
+ 3. **Run automated tests** if they exist
596
+ 4. **Validate against plan.md architecture**
597
+ 5. **Run loop audit in strict mode**:
598
+
599
+ ```bash
600
+ node .specify/scripts/node/gofer-loop-audit.mjs --feature-dir {FEATURE_DIR} --stage 5_implement --json --strict
601
+ ```
602
+
603
+ If the audit fails, implementation is not complete. Repair the contract,
604
+ append missing ledger evidence, run the failing eval command, or escalate
605
+ according to the stop condition.
606
+
607
+ ---
608
+
609
+ ## Step 11: Engineering Review Gate (Up to 5 cycles)
610
+
611
+ Before proceeding to validation, run an iterative engineering review to catch
612
+ implementation issues early.
613
+
614
+ ### Review Cycle (repeat up to 5 times)
615
+
616
+ **CRITICAL**: You **MUST** dispatch 3 review agents in parallel using the Task
617
+ tool. Do NOT perform this review work inline in the main context.
618
+
619
+ **Agent 1**: engineer-review (sonnet) — cross-check spec↔plan↔implementation
620
+ alignment
621
+
622
+ ```
623
+ Task: subagent_type="engineer-review", model="sonnet"
624
+ Prompt: "Review alignment between spec.md, plan.md, tasks.md, and the
625
+ implemented code in {FEATURE_DIR}. Check that all acceptance criteria are
626
+ implemented. Report Red/Yellow/Gray findings."
627
+ ```
628
+
629
+ **Agent 2**: codebase-analyzer (sonnet) — verify implementation patterns
630
+
631
+ ```
632
+ Task: subagent_type="codebase-analyzer", model="sonnet"
633
+ Prompt: "Verify that the implemented code follows existing codebase patterns
634
+ from {FEATURE_DIR}/research.md and matches the architecture in
635
+ {FEATURE_DIR}/plan.md. Report Red/Yellow/Gray findings."
636
+ ```
637
+
638
+ **Agent 3**: validation-correctness (sonnet) — verify acceptance criteria
639
+ coverage
640
+
641
+ ```
642
+ Task: subagent_type="validation-correctness", model="sonnet"
643
+ Prompt: "Verify that every acceptance criterion in {FEATURE_DIR}/spec.md
644
+ has been implemented and has corresponding test coverage.
645
+ Report Red/Yellow/Gray findings with coverage gaps."
646
+ ```
647
+
648
+ **After agents return:**
649
+
650
+ 1. Classify findings: Red (blocking) / Yellow (should fix) / Gray
651
+ (informational)
652
+ 2. If NO Red or Yellow findings → PASS → proceed to auto-chain
653
+ 3. If Red or Yellow findings exist: a. Fix findings directly in implementation
654
+ code (Red first, then Yellow) b. Re-run build/test/lint to verify fixes c.
655
+ Increment cycle counter d. If cycle <= 5 → re-run review agents e. If cycle >
656
+ 5 → log remaining findings, proceed with warnings
657
+
658
+ ---
659
+
660
+ ## Step 12: Report and Continue
661
+
662
+ After implementation complete, strict loop audit passes, and review gate passes,
663
+ update the stakeholder-facing implementation record:
664
+
665
+ 1. Update `{FEATURE_DIR}/working-backwards-prfaq.md`.
666
+ - In "The Launch" and Delivery / Operations FAQ, describe what is now built.
667
+ - Add "What changed from plan" when implementation differs from `plan.md`,
668
+ `tasks.md`, or stakeholder-approved scope.
669
+ - Link to code/test evidence, `loop-ledger.jsonl`, and any preview evidence.
670
+ 2. Write `{FEATURE_DIR}/prfaq-history/05-implement.md` as an immutable
671
+ implementation snapshot.
672
+ 3. Update `{FEATURE_DIR}/business-owner-summary.md` if implementation changed
673
+ process, scope, user-facing behavior, assumptions, or success metrics.
674
+ 4. Update `{FEATURE_DIR}/cto-architecture-summary.md` if implementation changed
675
+ architecture, EAI Platform/Azure usage, auth, tenancy, data, contracts, or
676
+ integration boundaries.
677
+ 5. Update `{FEATURE_DIR}/stakeholder-review-index.md` with:
678
+ - Business Owner review ask for implemented behavior and demo readiness.
679
+ - CTO review ask for implementation deltas against the architecture summary.
680
+ - Delivery review ask for completed scope, outstanding risks, and rollback
681
+ evidence.
682
+ 6. Do not mark implementation complete unless the existing feedback loops,
683
+ `loop-ledger.jsonl`, and strict loop audit requirements remain satisfied.
684
+
685
+ After the stakeholder PR/FAQ artifacts are updated:
686
+
687
+ ```
688
+ ════════════════════════════════════════════════════════════════
689
+ ✓ IMPLEMENTATION COMPLETE: [Feature Name]
690
+ ════════════════════════════════════════════════════════════════
691
+
692
+ Tasks: [N]/[N] completed
693
+ Loop evidence: {FEATURE_DIR}/loop-ledger.jsonl
694
+ Working Backwards PR/FAQ: {FEATURE_DIR}/working-backwards-prfaq.md
695
+ PR/FAQ implementation snapshot: {FEATURE_DIR}/prfaq-history/05-implement.md
696
+ Stakeholder review index: {FEATURE_DIR}/stakeholder-review-index.md
697
+
698
+ Phases completed:
699
+ - Phase 1: Setup ✓
700
+ - Phase 2: Foundational ✓
701
+ - Phase 3: US1 ✓
702
+ - Phase 4: US2 ✓
703
+ - Phase 5: Polish ✓
704
+
705
+ Engineering Review: PASSED (cycle [N] of 5)
706
+
707
+ Files created/modified:
708
+ - src/models/user.ts (new)
709
+ - src/services/userService.ts (new)
710
+ - src/routes/users.ts (new)
711
+ - src/index.ts (modified)
712
+
713
+ ════════════════════════════════════════════════════════════════
714
+ ```
715
+
716
+
717
+ ---
718
+
719
+ ## Resumption Support
720
+
721
+ If implementation was interrupted:
722
+
723
+ 1. Parse tasks.md for `- [X]` completed tasks
724
+ 2. Find first incomplete task `- [ ]`
725
+ 3. Resume from that task
726
+ 4. Report what was already done
727
+
728
+ **Note**: Implementation is stateful - it resumes from the last completed task.
729
+
730
+ ---
731
+
732
+ ## EnterpriseAI Runtime Deployment Preflight Gate
733
+
734
+ The standard Gofer workflow is the public default. EnterpriseAI deployment
735
+ preflight is migration-only and runs only when `workflowProfile` is explicitly
736
+ `enterpriseai`.
737
+
738
+ Before any deployment task emitted by `#4_gofer_tasks` completes, this stage
739
+ MUST execute deployment preflight checks for the runtime contract and deploy
740
+ doctor gate. A task that invokes `eai deploy` is not marked complete until all
741
+ of the following files are present at the workspace root and pass their
742
+ readiness checks:
743
+
744
+ | Required File | Purpose |
745
+ | ------------------------- | -------------------------------------------------------------- |
746
+ | `eai.runtime.json` | Provider-neutral runtime contract from the EAI app template |
747
+ | `.eai/deploy-doctor.json` | Black-box deploy doctor evidence from the deployed app runtime |
748
+
749
+ Required commands:
750
+
751
+ ```bash
752
+ eai runtime validate
753
+ mkdir -p .eai
754
+ eai deploy doctor --url <deployed-url> --format json > .eai/deploy-doctor.json
755
+ ```
756
+
757
+ `/health` alone is not enough. Auth.js, runtime config, tenant/workflow config,
758
+ PublicAPI/BFF reachability, service-identity requirements, and declared smoke
759
+ tests must pass before deployment is complete.
760
+
761
+ ### Gate behaviour
762
+
763
+ - If any required file is missing, the stage emits `EVT-012` via the
764
+ deployment-readiness event bus and blocks task completion.
765
+ - Paths are resolved relative to the workspace root. Any attempt to resolve a
766
+ required file outside the workspace (for example `/etc/passwd`) throws
767
+ `IMPL_DEPLOYMENT_PATH_INVALID`.
768
+ - When the gate passes, `readinessPassed=true` is recorded in the emitted event
769
+ and the deployment task is allowed to continue.
770
+
771
+ ### EnterpriseAI Red/Green Implementation Discipline
772
+
773
+ For EnterpriseAI runs, implementation MUST preserve the test/implementation
774
+ separation from `tasks.md`:
775
+
776
+ - Run the spec-derived tests before implementation and record the expected
777
+ failure when the implementation is missing or incomplete.
778
+ - Implement only against the approved `contract-pack.md`, `context-bundle.md`,
779
+ `reuse-scan.md`, `journeys/base-journey.md`, `plan.md`, and `goal-ledger.json`.
780
+ - For application delivery, stop and return to the preview loop if
781
+ `{FEATURE_DIR}/ui-approval.md` is missing or not approved. App-delivery runs
782
+ MUST NOT continue as though the UI is settled when approval has not been
783
+ recorded.
784
+ - For application delivery, use the EAI App Template already installed in the
785
+ workspace as the default UI lego-block source. Any create-new UI concept must
786
+ be justified in the approved plan and approval artifacts.
787
+ - For application delivery, implement on EAI Platform first, including the EAI
788
+ app template, and Azure second: use the EAI scaffold, PublicAPI/object
789
+ types/workflows/block catalog, ResourceAPI/`eai resources schema`, tenant/app
790
+ enrollment, provisioning, diagnostics, and Azure-compatible
791
+ deployment/supporting services before any non-EAI exception. Do not introduce a
792
+ non-EAI primary runtime, database, hosting platform, or app stack unless
793
+ `plan.md`, `service-fit-matrix.md`, and approval artifacts record it as an
794
+ explicit exception.
795
+ - Before implementing UI, run or inspect `eai --describe`, `eai blocks list`,
796
+ `eai blocks describe <id>` for every selected block, and
797
+ `eai resources schema --format json`. Implementation notes must cite the block IDs,
798
+ required resources, bindings, package lane, coupling status, Storybook story
799
+ IDs, theme override points, and any approved custom-block exception.
800
+ - Reject unknown component names during implementation unless `tasks.md` and
801
+ `ui-approval.md` explicitly authorize a custom extension block and manifest.
802
+ - Treat package-profile, block-porting, source-platform decoupling, and public-readiness
803
+ tasks as first-class implementation tasks, not polish. Update
804
+ `{FEATURE_DIR}/goal-ledger.json` whenever a task changes an owner, target
805
+ metric, delivery state, promotion criterion, or re-loop trigger. External and
806
+ hybrid profile work is incomplete until package exports, Storybook stories,
807
+ theme overrides, consumer smoke checks, and unsupported custom-block
808
+ exceptions are resolved or explicitly deferred by approval artifacts.
809
+ - Do not let public or hybrid package lanes import source-platform internals directly.
810
+ Use `eai resources schema`, an adapter boundary, or an approved
811
+ restricted-source exception; record the coupling status in implementation
812
+ notes and `ui-review-log.md`.
813
+ - For EAI app delivery, read `.specify/references/platform/eai-repo-contract.md`,
814
+ `.specify/references/platform/eai-error-catalog.yaml`, and
815
+ `.specify/specs/{feature}/eai-preflight.md` before remote platform changes.
816
+ - Carry forward the last completed gate, blocked gate, and next recovery
817
+ command from `eai-preflight.md` whenever provisioning, object-type publish,
818
+ schema/storage health, workflow readiness, or preview readiness changes.
819
+ - After any failed `eai` command, run `eai errors explain <code-or-reason>
820
+ --format json` when advertised before proposing a fix. If the command is not
821
+ advertised, match `.specify/references/platform/eai-error-catalog.yaml`. Run
822
+ read-only diagnostics before mutating fixes, ask for approval before tenant
823
+ membership or admin changes, and stop at the guidance retry/escalation
824
+ condition instead of repeatedly rerunning the same command.
825
+ - Treat resource provisioning, object-type publish, schema/storage health, and preview readiness as separate gates even when the CLI reports progress in a single run.
826
+ - Track workflow readiness alongside those gates; do not collapse it into
827
+ provisioning, schema/storage health, or preview status.
828
+ - Use `eai app provision <key> --tenant-id <tenant-id> --select --format json`,
829
+ `eai provision entra --force --redirect-uri <confirmed-callback-uri>`,
830
+ `eai types seed --tenant-key <key> --tenant-id <tenant-id> --format json`,
831
+ `eai resources schema --tenant-id <tenant-id> --format json`,
832
+ `eai resources storage doctor --tenant-id <tenant-id> --format json`, and
833
+ `eai verify storage --tenant-id <tenant-id>` in the recovery order recorded
834
+ by the preflight artifact instead of improvising a new sequence. Use EAI
835
+ `--debug` flags only with explicit user approval, and never write private
836
+ hostnames, tenant IDs, client IDs, tokens, or raw debug output to committed
837
+ artifacts.
838
+ - For v4 passive ResourceAPI search, treat `capabilities.search.fulltext`,
839
+ `capabilities.search.hybrid`, and `capabilities.search.vector` from
840
+ `eai resources storage doctor --tenant-id <tenant-id> --format json` as
841
+ separate readiness states. If hybrid/vector are unavailable but fulltext is
842
+ ready, use `eai resources search "<query>" --fulltext --tenant-id <tenant-id>`
843
+ and record semantic search as a deferred platform capability only when the
844
+ business scenario genuinely requires it. Do not apply this fallback to legacy
845
+ v1/v3 or active ResourceAPI behavior.
846
+ - If a browser or runtime auth log reports `AADSTS50011`, `redirect_uri`,
847
+ "reply URL specified in the request does not match", or
848
+ `/api/auth/callback/microsoft-entra-id`, match
849
+ `EAI_ENTRA_REDIRECT_URI_MISMATCH` in the error catalog. Confirm `eai whoami`
850
+ and tenant selection first, then use EAI Entra provisioning to register the
851
+ confirmed callback URI before asking the user to edit Azure manually. Record
852
+ only a redacted callback route pattern and recovery status in implementation
853
+ notes or validation artifacts.
854
+ - If `eai user invite` fails with `EXTERNAL_SERVICE_ERROR`, a 5xx response, or
855
+ `user_invite_external_service_existing_member`, treat it as a tenant-member
856
+ recovery flow: run `eai user list --tenant <tenant-id> --search <email>
857
+ --format json`, use `eai user role set --tenant <tenant-id> --member-id
858
+ <member-id> --role tenant-admin --format json` only when an existing direct
859
+ member is verified and the user approves, verify the read-back, and tell the
860
+ affected app user to sign out and sign back in because Auth.js session or JWT
861
+ role data may be cached. Do not edit databases or cloud portals directly
862
+ unless EAI guidance reports an operator-only block.
863
+ - For application delivery, implement the four-step-or-fewer AI-augmented
864
+ process as the user-facing spine. Each step must preserve its business goal,
865
+ AI assistance mode, contextual prefill or conversational support, completion
866
+ criteria, human controls, audit trail, and fallback/escalation path.
867
+ - Preserve dual-state delivery discipline: when a capability stays in `mock` or
868
+ `hybrid`, record why, what promotion criteria remain, and what validation
869
+ evidence is still required before it can move to `live`.
870
+ - For application delivery, before showing any new MVP preview to the
871
+ stakeholder, collect screenshot, local render proof, or Playwright-style
872
+ self-review evidence and append it to `{FEATURE_DIR}/ui-review-log.md`.
873
+ - For application delivery, after UI approval and before treating platform
874
+ selection as complete, update `{FEATURE_DIR}/service-fit-matrix.md` with
875
+ tenant-aware evidence from `eai --describe`, `eai whoami`, `eai tenant
876
+ select`, `eai resources schema --format json`, `eai workflow readiness
877
+ --format json`, `eai verify calls --format json`, or equivalent approved
878
+ platform evidence. The matrix must distinguish
879
+ accessible now, purchasable but unavailable now, and unavailable without new
880
+ platform work.
881
+ - For non-app work, skip the preview, approval, branding, and service-fit gates
882
+ while preserving the same numbered stage flow.
883
+ - Do not add extra user-facing app steps unless `plan.md` records why they
884
+ cannot be combined, automated, or handled by generative AI assistance.
885
+ - Re-run the same tests and validation checks after implementation.
886
+ - Update `audit-history.md` with stable finding IDs for every blocking issue,
887
+ recurring issue, accepted exception, owner, expiry, and review cadence.
888
+
889
+ ---
890
+
891
+ ## Observability Logging
892
+
893
+ At stage completion, log metrics:
894
+
895
+ ```bash
896
+ .specify/scripts/bash/log-stage.sh 5_implement --complete --tokens [N] --compactions [N]
897
+ ```
898
+
899
+ Logs to: `.specify/logs/pipeline.jsonl`
900
+
901
+ ---
902
+
903
+
904
+
905
+ ## Pipeline Continuation
906
+
907
+ This completes the 5_gofer_implement stage. To continue the Gofer pipeline:
908
+
909
+ **Next Command:** `#6_gofer_validate`
910
+
911
+ The next stage will read the artifacts from this stage and continue the workflow automatically.
912
+
913
+ **Note:** Copilot Chat supports context preservation. Your conversation history will be maintained as you progress through pipeline stages.
914
+
915
+ ## Key Rules
916
+
917
+ - ALWAYS mark tasks complete in tasks.md as you finish them
918
+ - Use absolute paths for all file operations
919
+ - Follow existing codebase patterns from research.md
920
+ - Follow architecture from plan.md
921
+ - Report progress clearly after each task
922
+ - Stop on errors for sequential tasks
923
+ - Implementation must match specification
924
+ - Log stage completion for observability tracking
925
+
926
+ ---
927
+
928
+ ## Optional Helpers: TDD and Diagnose
929
+
930
+ - If the operator explicitly requests `tdd-assist` and both `spec.md` and
931
+ `tasks.md` are present, run `gofer:tdd` inline and write
932
+ `.specify/specs/{feature}/tdd-session.md` using the same artifact contract as
933
+ the standalone helper.
934
+ - If the operator explicitly requests `diagnose` and `spec.md` is present, run
935
+ `gofer:diagnose` inline; bug context, failing output, or equivalent failure
936
+ evidence may supplement the investigation. Write
937
+ `.specify/specs/{feature}/diagnose-report.md` using the same artifact
938
+ contract as the standalone helper.
939
+ - If the required inputs are missing, continue the stage normally and report
940
+ that the helper was not run.
941
+ - These selectors are optional and do not change stage progress, routing, or
942
+ pipeline state.