@enterpriseai/cli 3.19.0 → 3.19.1

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 (362) hide show
  1. package/package.json +1 -1
  2. package/resources/gofer/.gofer-version +4 -357
  3. package/resources/gofer/agents-skills/eai/SKILL.md +365 -0
  4. package/resources/gofer/agents-skills/eai-update/SKILL.md +56 -0
  5. package/resources/gofer/agents-skills/gofer-documentation/SKILL.md +93 -0
  6. package/resources/gofer/bash-scripts/create-new-feature.sh +3 -1
  7. package/resources/gofer/bash-scripts/sync-implementation-status.sh +4 -3
  8. package/resources/gofer/bash-scripts/update-agent-context.sh +7 -8
  9. package/resources/gofer/bash-scripts/validate-artifact.sh +10 -6
  10. package/resources/gofer/bash-scripts/verify-object-type-routing-workspace.sh +184 -0
  11. package/resources/gofer/claude-commands/eai-update.md +46 -0
  12. package/resources/gofer/claude-commands/eai.md +355 -0
  13. package/resources/gofer/claude-skills/eai/SKILL.md +365 -0
  14. package/resources/gofer/claude-skills/eai-update/SKILL.md +56 -0
  15. package/resources/gofer/claude-skills/gofer-documentation/SKILL.md +93 -0
  16. package/resources/gofer/commands/0_gofer_start.md +440 -99
  17. package/resources/gofer/commands/0a_problem_validation.md +187 -27
  18. package/resources/gofer/commands/10_gofer_cloud.md +183 -23
  19. package/resources/gofer/commands/1_gofer_research.md +239 -30
  20. package/resources/gofer/commands/2_gofer_specify.md +239 -35
  21. package/resources/gofer/commands/3_gofer_plan.md +259 -43
  22. package/resources/gofer/commands/4_gofer_tasks.md +401 -81
  23. package/resources/gofer/commands/5_gofer_implement.md +375 -84
  24. package/resources/gofer/commands/6_gofer_validate.md +284 -53
  25. package/resources/gofer/commands/7_gofer_save.md +187 -26
  26. package/resources/gofer/commands/7a_stakeholder_comms.md +183 -23
  27. package/resources/gofer/commands/8_gofer_branding.md +183 -23
  28. package/resources/gofer/commands/9_gofer_tests.md +212 -23
  29. package/resources/gofer/commands/gofer_bootstrap_workspace.md +121 -8
  30. package/resources/gofer/commands/gofer_check_workspace.md +123 -8
  31. package/resources/gofer/commands/gofer_constitution.md +183 -23
  32. package/resources/gofer/commands/gofer_diagnose.md +183 -23
  33. package/resources/gofer/commands/gofer_eai_first_run.md +254 -25
  34. package/resources/gofer/commands/gofer_hydrate.md +183 -23
  35. package/resources/gofer/commands/gofer_personality.md +117 -6
  36. package/resources/gofer/commands/gofer_plan.md +117 -6
  37. package/resources/gofer/commands/gofer_side.md +117 -6
  38. package/resources/gofer/commands/gofer_spec_summary.md +183 -23
  39. package/resources/gofer/commands/gofer_tdd.md +183 -23
  40. package/resources/gofer/commands/gofer_vocabulary.md +185 -25
  41. package/resources/gofer/commands/gofer_zoom_out.md +183 -23
  42. package/resources/gofer/config/typesafe-learning-review.json +16 -0
  43. package/resources/gofer/config/typesafe-semantic-review.json +9 -0
  44. package/resources/gofer/copilot-instructions/gofer-cost.instructions.md +15 -6
  45. package/resources/gofer/copilot-instructions/typescript.instructions.md +1 -1
  46. package/resources/gofer/copilot-prompts/eai-update.prompt.md +58 -0
  47. package/resources/gofer/copilot-prompts/eai.prompt.md +367 -0
  48. package/resources/gofer/gemini/commands/gofer/eai-update.md +22 -0
  49. package/resources/gofer/gemini/commands/gofer/eai-update.toml +2 -0
  50. package/resources/gofer/gemini/commands/gofer/eai.md +357 -0
  51. package/resources/gofer/gemini/commands/gofer/eai.toml +2 -0
  52. package/resources/gofer/gemini/commands/gofer/manifest.json +3 -27
  53. package/resources/gofer/gemini/extension.json +4 -4
  54. package/resources/gofer/github-agents/eai.agent.md +83 -0
  55. package/resources/gofer/github-agents/gofer-business.agent.md +73 -4
  56. package/resources/gofer/github-agents/gofer-implement.agent.md +71 -2
  57. package/resources/gofer/github-agents/gofer-plan.agent.md +72 -2
  58. package/resources/gofer/github-agents/gofer-research.agent.md +72 -2
  59. package/resources/gofer/github-agents/gofer-validate.agent.md +72 -2
  60. package/resources/gofer/github-skills/eai/SKILL.md +365 -0
  61. package/resources/gofer/github-skills/eai-update/SKILL.md +56 -0
  62. package/resources/gofer/github-skills/gofer-documentation/SKILL.md +93 -0
  63. package/resources/gofer/grok-skills/eai/SKILL.md +267 -14
  64. package/resources/gofer/grok-skills/eai-update/SKILL.md +56 -0
  65. package/resources/gofer/hook-scripts/user-prompt-submit.mjs +58 -13
  66. package/resources/gofer/instruction-templates/base/agents-base.md +8 -4
  67. package/resources/gofer/instruction-templates/gofer/gofer-claude.md +7 -5
  68. package/resources/gofer/instruction-templates/gofer/gofer-copilot.md +10 -8
  69. package/resources/gofer/memory/constitution.md +9 -7
  70. package/resources/gofer/memory/gofer-model-policy.yaml +23 -1
  71. package/resources/gofer/memory/lessons.md +0 -31
  72. package/resources/gofer/node-scripts/canonical-descriptions.mjs +1 -1
  73. package/resources/gofer/node-scripts/check-version-alignment.mjs +4 -7
  74. package/resources/gofer/node-scripts/delivery-lineage-corpus.mjs +156 -0
  75. package/resources/gofer/node-scripts/generate-commands.mjs +1073 -265
  76. package/resources/gofer/node-scripts/gofer-acceptance-check.mjs +143 -0
  77. package/resources/gofer/node-scripts/gofer-agent-catalog.mjs +271 -0
  78. package/resources/gofer/node-scripts/gofer-benchmark-executor.mjs +123 -0
  79. package/resources/gofer/node-scripts/gofer-benchmark-sign.mjs +62 -0
  80. package/resources/gofer/node-scripts/gofer-benchmark-signer.mjs +89 -0
  81. package/resources/gofer/node-scripts/gofer-benchmark.mjs +76 -0
  82. package/resources/gofer/node-scripts/gofer-blocker-control.mjs +274 -0
  83. package/resources/gofer/node-scripts/gofer-claude-adapter.mjs +154 -0
  84. package/resources/gofer/node-scripts/gofer-closed-loop-audit.mjs +19 -2
  85. package/resources/gofer/node-scripts/gofer-delivery-check.mjs +121 -0
  86. package/resources/gofer/node-scripts/gofer-encrypted-key.mjs +58 -0
  87. package/resources/gofer/node-scripts/gofer-execution-metrics.mjs +477 -0
  88. package/resources/gofer/node-scripts/gofer-execution-recovery.mjs +334 -0
  89. package/resources/gofer/node-scripts/gofer-grok-adapter.mjs +184 -0
  90. package/resources/gofer/node-scripts/gofer-heldout-corpus.mjs +73 -0
  91. package/resources/gofer/node-scripts/gofer-heldout-snapshot.mjs +286 -0
  92. package/resources/gofer/node-scripts/gofer-heldout-verifier.mjs +211 -0
  93. package/resources/gofer/node-scripts/gofer-host-capability.mjs +335 -0
  94. package/resources/gofer/node-scripts/gofer-independent-reviewer.mjs +130 -0
  95. package/resources/gofer/node-scripts/gofer-live-routing.mjs +109 -0
  96. package/resources/gofer/node-scripts/gofer-local-capability-issuer.mjs +71 -0
  97. package/resources/gofer/node-scripts/gofer-local-isolation.mjs +175 -0
  98. package/resources/gofer/node-scripts/gofer-local-settings-cleanup.mjs +388 -0
  99. package/resources/gofer/node-scripts/gofer-loop-audit.mjs +54 -3
  100. package/resources/gofer/node-scripts/gofer-native-adapter.mjs +567 -0
  101. package/resources/gofer/node-scripts/gofer-native-benchmark-dispatch.mjs +145 -0
  102. package/resources/gofer/node-scripts/gofer-native-runtime.mjs +169 -0
  103. package/resources/gofer/node-scripts/gofer-pre-edit-check.mjs +204 -0
  104. package/resources/gofer/node-scripts/gofer-priority-check.mjs +214 -0
  105. package/resources/gofer/node-scripts/gofer-response-check.mjs +56 -0
  106. package/resources/gofer/node-scripts/gofer-reviewed-learning.mjs +1232 -0
  107. package/resources/gofer/node-scripts/gofer-run-verified-task.mjs +330 -0
  108. package/resources/gofer/node-scripts/gofer-runtime-ledger.mjs +289 -0
  109. package/resources/gofer/node-scripts/gofer-semantic-drift.mjs +584 -0
  110. package/resources/gofer/node-scripts/gofer-surface-update.mjs +1178 -0
  111. package/resources/gofer/node-scripts/gofer-trust-bootstrap.mjs +77 -0
  112. package/resources/gofer/node-scripts/gofer-trusted-benchmark.mjs +102 -0
  113. package/resources/gofer/node-scripts/gofer-trusted-evaluator.mjs +274 -0
  114. package/resources/gofer/node-scripts/gofer-tty-prompt.mjs +34 -0
  115. package/resources/gofer/node-scripts/gofer-typesafe-credentials.mjs +435 -0
  116. package/resources/gofer/node-scripts/gofer-ui-preview.mjs +1212 -0
  117. package/resources/gofer/node-scripts/gofer-verified-execution.mjs +484 -0
  118. package/resources/gofer/node-scripts/gofer-verifier-key-ceremony.mjs +101 -0
  119. package/resources/gofer/node-scripts/gofer-worktree-layout.mjs +32 -0
  120. package/resources/gofer/node-scripts/object-type-routing-phase-bundle.mjs +360 -0
  121. package/resources/gofer/node-scripts/package-agent-plugin.mjs +574 -82
  122. package/resources/gofer/node-scripts/parse-stage-command.mjs +1 -1
  123. package/resources/gofer/node-scripts/render-delivery-lineage.mjs +178 -0
  124. package/resources/gofer/node-scripts/sync-extension-resources.mjs +78 -2
  125. package/resources/gofer/node-scripts/validate-object-type-identifiers.mjs +767 -0
  126. package/resources/gofer/node-scripts/validate-object-type-routing-workspace.mjs +1325 -0
  127. package/resources/gofer/node-scripts/validate-v4-resource-contract.d.mts +44 -0
  128. package/resources/gofer/node-scripts/validate-v4-resource-contract.mjs +957 -0
  129. package/resources/gofer/node-scripts/workspace-bootstrap-lib.mjs +685 -116
  130. package/resources/gofer/references/agent-catalog.json +126 -0
  131. package/resources/gofer/references/blocker-mediation.md +156 -0
  132. package/resources/gofer/references/business-updates-and-goal-checks.md +109 -0
  133. package/resources/gofer/references/delivery-lineage.md +48 -0
  134. package/resources/gofer/references/mvp-capability-validation.md +102 -0
  135. package/resources/gofer/references/platform/README.md +1 -1
  136. package/resources/gofer/references/platform/eai-app-template.md +15 -13
  137. package/resources/gofer/references/platform/eai-auth-access.md +104 -0
  138. package/resources/gofer/references/platform/eai-config-driven-ui.md +5 -5
  139. package/resources/gofer/references/platform/eai-error-catalog.yaml +77 -19
  140. package/resources/gofer/references/platform/eai-repo-contract.md +61 -23
  141. package/resources/gofer/references/platform/eai-service-patterns.md +102 -105
  142. package/resources/gofer/references/platform/eai.md +44 -8
  143. package/resources/gofer/references/platform/vertical-template.md +10 -9
  144. package/resources/gofer/references/priority-outcome-protection.md +152 -0
  145. package/resources/gofer/references/verified-agent-execution.md +179 -0
  146. package/resources/gofer/schemas/gofer-learning-trace-v1.json +70 -0
  147. package/resources/gofer/specify-commands/0_gofer_start.md +440 -99
  148. package/resources/gofer/specify-commands/0a_problem_validation.md +187 -27
  149. package/resources/gofer/specify-commands/10_gofer_cloud.md +183 -23
  150. package/resources/gofer/specify-commands/1_gofer_research.md +239 -30
  151. package/resources/gofer/specify-commands/2_gofer_specify.md +239 -35
  152. package/resources/gofer/specify-commands/3_gofer_plan.md +259 -43
  153. package/resources/gofer/specify-commands/4_gofer_tasks.md +401 -81
  154. package/resources/gofer/specify-commands/5_gofer_implement.md +375 -84
  155. package/resources/gofer/specify-commands/6_gofer_validate.md +284 -53
  156. package/resources/gofer/specify-commands/7_gofer_save.md +187 -26
  157. package/resources/gofer/specify-commands/7a_stakeholder_comms.md +183 -23
  158. package/resources/gofer/specify-commands/8_gofer_branding.md +183 -23
  159. package/resources/gofer/specify-commands/9_gofer_tests.md +212 -23
  160. package/resources/gofer/specify-commands/gofer_bootstrap_workspace.md +121 -8
  161. package/resources/gofer/specify-commands/gofer_check_workspace.md +123 -8
  162. package/resources/gofer/specify-commands/gofer_constitution.md +183 -23
  163. package/resources/gofer/specify-commands/gofer_diagnose.md +183 -23
  164. package/resources/gofer/specify-commands/gofer_eai_first_run.md +254 -25
  165. package/resources/gofer/specify-commands/gofer_hydrate.md +183 -23
  166. package/resources/gofer/specify-commands/gofer_personality.md +117 -6
  167. package/resources/gofer/specify-commands/gofer_plan.md +117 -6
  168. package/resources/gofer/specify-commands/gofer_side.md +117 -6
  169. package/resources/gofer/specify-commands/gofer_spec_summary.md +183 -23
  170. package/resources/gofer/specify-commands/gofer_tdd.md +183 -23
  171. package/resources/gofer/specify-commands/gofer_vocabulary.md +185 -25
  172. package/resources/gofer/specify-commands/gofer_zoom_out.md +183 -23
  173. package/resources/gofer/specify-config/object-type-routing.json +24 -0
  174. package/resources/gofer/specify-config/typesafe-learning-review.json +16 -0
  175. package/resources/gofer/specify-config/typesafe-semantic-review.json +9 -0
  176. package/resources/gofer/system-skills/eai/SKILL.md +365 -0
  177. package/resources/gofer/system-skills/eai-update/SKILL.md +56 -0
  178. package/resources/gofer/system-skills/gofer-documentation/SKILL.md +93 -0
  179. package/resources/gofer/templates/build-map-template.md +64 -0
  180. package/resources/gofer/templates/business-scenarios-template.json +14 -0
  181. package/resources/gofer/templates/ciso-security-summary-template.md +3 -3
  182. package/resources/gofer/templates/context-bundle-template.md +4 -3
  183. package/resources/gofer/templates/contract-pack-template.md +8 -8
  184. package/resources/gofer/templates/cto-architecture-summary-template.md +3 -3
  185. package/resources/gofer/templates/delivery-lineage-template.json +8 -0
  186. package/resources/gofer/templates/eai-preflight-template.md +109 -68
  187. package/resources/gofer/templates/goal-ledger-template.json +1 -1
  188. package/resources/gofer/templates/gofer-model-policy.yaml +28 -6
  189. package/resources/gofer/templates/loop-contract-template.json +3 -1
  190. package/resources/gofer/templates/plan-template.md +8 -7
  191. package/resources/gofer/templates/priority-plan-template.json +29 -0
  192. package/resources/gofer/templates/proposal-review-template.md +6 -3
  193. package/resources/gofer/templates/release-capability-ledger-template.md +24 -0
  194. package/resources/gofer/templates/research-template.md +7 -6
  195. package/resources/gofer/templates/spec-summary-template.md +1 -1
  196. package/resources/gofer/templates/spec-template.md +45 -6
  197. package/resources/gofer/templates/tasks-template.md +12 -3
  198. package/resources/gofer/templates/ui-preview-brief-template.md +55 -5
  199. package/resources/gofer/templates/ui-review-log-template.md +21 -3
  200. package/resources/gofer/templates/ui-show-and-tell-template.md +46 -0
  201. package/resources/gofer/templates/visuals/capability-heatmap-template.md +2 -2
  202. package/resources/gofer/templates/working-backwards-prfaq-template.md +9 -8
  203. package/resources/linked-sources.json +2 -2
  204. package/resources/gofer/agents-skills/0_gofer_start/SKILL.md +0 -1287
  205. package/resources/gofer/agents-skills/0a_problem_validation/SKILL.md +0 -429
  206. package/resources/gofer/agents-skills/10_gofer_cloud/SKILL.md +0 -635
  207. package/resources/gofer/agents-skills/1_gofer_research/SKILL.md +0 -1159
  208. package/resources/gofer/agents-skills/2_gofer_specify/SKILL.md +0 -860
  209. package/resources/gofer/agents-skills/3_gofer_plan/SKILL.md +0 -899
  210. package/resources/gofer/agents-skills/4_gofer_tasks/SKILL.md +0 -760
  211. package/resources/gofer/agents-skills/5_gofer_implement/SKILL.md +0 -944
  212. package/resources/gofer/agents-skills/6_gofer_validate/SKILL.md +0 -2302
  213. package/resources/gofer/agents-skills/7_gofer_save/SKILL.md +0 -423
  214. package/resources/gofer/agents-skills/7a_stakeholder_comms/SKILL.md +0 -508
  215. package/resources/gofer/agents-skills/8_gofer_branding/SKILL.md +0 -315
  216. package/resources/gofer/agents-skills/9_gofer_tests/SKILL.md +0 -558
  217. package/resources/gofer/agents-skills/gofer_bootstrap_workspace/SKILL.md +0 -148
  218. package/resources/gofer/agents-skills/gofer_check_workspace/SKILL.md +0 -119
  219. package/resources/gofer/agents-skills/gofer_constitution/SKILL.md +0 -612
  220. package/resources/gofer/agents-skills/gofer_diagnose/SKILL.md +0 -114
  221. package/resources/gofer/agents-skills/gofer_eai_first_run/SKILL.md +0 -397
  222. package/resources/gofer/agents-skills/gofer_hydrate/SKILL.md +0 -561
  223. package/resources/gofer/agents-skills/gofer_personality/SKILL.md +0 -44
  224. package/resources/gofer/agents-skills/gofer_plan/SKILL.md +0 -40
  225. package/resources/gofer/agents-skills/gofer_side/SKILL.md +0 -45
  226. package/resources/gofer/agents-skills/gofer_spec_summary/SKILL.md +0 -112
  227. package/resources/gofer/agents-skills/gofer_tdd/SKILL.md +0 -112
  228. package/resources/gofer/agents-skills/gofer_vocabulary/SKILL.md +0 -112
  229. package/resources/gofer/agents-skills/gofer_zoom_out/SKILL.md +0 -112
  230. package/resources/gofer/claude-commands/0_gofer_start.md +0 -1282
  231. package/resources/gofer/claude-commands/0a_problem_validation.md +0 -424
  232. package/resources/gofer/claude-commands/10_gofer_cloud.md +0 -630
  233. package/resources/gofer/claude-commands/1_gofer_research.md +0 -1154
  234. package/resources/gofer/claude-commands/2_gofer_specify.md +0 -855
  235. package/resources/gofer/claude-commands/3_gofer_plan.md +0 -894
  236. package/resources/gofer/claude-commands/4_gofer_tasks.md +0 -755
  237. package/resources/gofer/claude-commands/5_gofer_implement.md +0 -939
  238. package/resources/gofer/claude-commands/6_gofer_validate.md +0 -2297
  239. package/resources/gofer/claude-commands/7_gofer_save.md +0 -418
  240. package/resources/gofer/claude-commands/7a_stakeholder_comms.md +0 -503
  241. package/resources/gofer/claude-commands/8_gofer_branding.md +0 -310
  242. package/resources/gofer/claude-commands/9_gofer_tests.md +0 -553
  243. package/resources/gofer/claude-commands/gofer_bootstrap_workspace.md +0 -143
  244. package/resources/gofer/claude-commands/gofer_check_workspace.md +0 -114
  245. package/resources/gofer/claude-commands/gofer_constitution.md +0 -607
  246. package/resources/gofer/claude-commands/gofer_diagnose.md +0 -109
  247. package/resources/gofer/claude-commands/gofer_eai_first_run.md +0 -392
  248. package/resources/gofer/claude-commands/gofer_hydrate.md +0 -556
  249. package/resources/gofer/claude-commands/gofer_personality.md +0 -39
  250. package/resources/gofer/claude-commands/gofer_plan.md +0 -35
  251. package/resources/gofer/claude-commands/gofer_side.md +0 -40
  252. package/resources/gofer/claude-commands/gofer_spec_summary.md +0 -107
  253. package/resources/gofer/claude-commands/gofer_tdd.md +0 -107
  254. package/resources/gofer/claude-commands/gofer_vocabulary.md +0 -107
  255. package/resources/gofer/claude-commands/gofer_zoom_out.md +0 -107
  256. package/resources/gofer/claude-skills/eai-gofer/SKILL.md +0 -56
  257. package/resources/gofer/copilot-prompts/0_gofer_start.prompt.md +0 -1308
  258. package/resources/gofer/copilot-prompts/0a_problem_validation.prompt.md +0 -429
  259. package/resources/gofer/copilot-prompts/10_gofer_cloud.prompt.md +0 -644
  260. package/resources/gofer/copilot-prompts/1_gofer_research.prompt.md +0 -1177
  261. package/resources/gofer/copilot-prompts/2_gofer_specify.prompt.md +0 -878
  262. package/resources/gofer/copilot-prompts/3_gofer_plan.prompt.md +0 -917
  263. package/resources/gofer/copilot-prompts/4_gofer_tasks.prompt.md +0 -778
  264. package/resources/gofer/copilot-prompts/5_gofer_implement.prompt.md +0 -962
  265. package/resources/gofer/copilot-prompts/6_gofer_validate.prompt.md +0 -2310
  266. package/resources/gofer/copilot-prompts/7_gofer_save.prompt.md +0 -433
  267. package/resources/gofer/copilot-prompts/7a_stakeholder_comms.prompt.md +0 -516
  268. package/resources/gofer/copilot-prompts/8_gofer_branding.prompt.md +0 -323
  269. package/resources/gofer/copilot-prompts/9_gofer_tests.prompt.md +0 -566
  270. package/resources/gofer/copilot-prompts/gofer_bootstrap_workspace.prompt.md +0 -161
  271. package/resources/gofer/copilot-prompts/gofer_check_workspace.prompt.md +0 -132
  272. package/resources/gofer/copilot-prompts/gofer_constitution.prompt.md +0 -621
  273. package/resources/gofer/copilot-prompts/gofer_diagnose.prompt.md +0 -127
  274. package/resources/gofer/copilot-prompts/gofer_eai_first_run.prompt.md +0 -410
  275. package/resources/gofer/copilot-prompts/gofer_hydrate.prompt.md +0 -571
  276. package/resources/gofer/copilot-prompts/gofer_personality.prompt.md +0 -57
  277. package/resources/gofer/copilot-prompts/gofer_plan.prompt.md +0 -53
  278. package/resources/gofer/copilot-prompts/gofer_side.prompt.md +0 -58
  279. package/resources/gofer/copilot-prompts/gofer_spec_summary.prompt.md +0 -125
  280. package/resources/gofer/copilot-prompts/gofer_tdd.prompt.md +0 -125
  281. package/resources/gofer/copilot-prompts/gofer_vocabulary.prompt.md +0 -125
  282. package/resources/gofer/copilot-prompts/gofer_zoom_out.prompt.md +0 -125
  283. package/resources/gofer/gemini/commands/gofer/0_gofer_start.md +0 -1282
  284. package/resources/gofer/gemini/commands/gofer/0_gofer_start.toml +0 -2
  285. package/resources/gofer/gemini/commands/gofer/0a_problem_validation.md +0 -424
  286. package/resources/gofer/gemini/commands/gofer/0a_problem_validation.toml +0 -2
  287. package/resources/gofer/gemini/commands/gofer/10_gofer_cloud.md +0 -630
  288. package/resources/gofer/gemini/commands/gofer/10_gofer_cloud.toml +0 -2
  289. package/resources/gofer/gemini/commands/gofer/1_gofer_research.md +0 -1154
  290. package/resources/gofer/gemini/commands/gofer/1_gofer_research.toml +0 -2
  291. package/resources/gofer/gemini/commands/gofer/2_gofer_specify.md +0 -855
  292. package/resources/gofer/gemini/commands/gofer/2_gofer_specify.toml +0 -2
  293. package/resources/gofer/gemini/commands/gofer/3_gofer_plan.md +0 -894
  294. package/resources/gofer/gemini/commands/gofer/3_gofer_plan.toml +0 -2
  295. package/resources/gofer/gemini/commands/gofer/4_gofer_tasks.md +0 -755
  296. package/resources/gofer/gemini/commands/gofer/4_gofer_tasks.toml +0 -2
  297. package/resources/gofer/gemini/commands/gofer/5_gofer_implement.md +0 -939
  298. package/resources/gofer/gemini/commands/gofer/5_gofer_implement.toml +0 -2
  299. package/resources/gofer/gemini/commands/gofer/6_gofer_validate.md +0 -2297
  300. package/resources/gofer/gemini/commands/gofer/6_gofer_validate.toml +0 -2
  301. package/resources/gofer/gemini/commands/gofer/7_gofer_save.md +0 -418
  302. package/resources/gofer/gemini/commands/gofer/7_gofer_save.toml +0 -2
  303. package/resources/gofer/gemini/commands/gofer/7a_stakeholder_comms.md +0 -503
  304. package/resources/gofer/gemini/commands/gofer/7a_stakeholder_comms.toml +0 -2
  305. package/resources/gofer/gemini/commands/gofer/8_gofer_branding.md +0 -310
  306. package/resources/gofer/gemini/commands/gofer/8_gofer_branding.toml +0 -2
  307. package/resources/gofer/gemini/commands/gofer/9_gofer_tests.md +0 -553
  308. package/resources/gofer/gemini/commands/gofer/9_gofer_tests.toml +0 -2
  309. package/resources/gofer/gemini/commands/gofer/gofer_bootstrap_workspace.md +0 -143
  310. package/resources/gofer/gemini/commands/gofer/gofer_bootstrap_workspace.toml +0 -2
  311. package/resources/gofer/gemini/commands/gofer/gofer_check_workspace.md +0 -114
  312. package/resources/gofer/gemini/commands/gofer/gofer_check_workspace.toml +0 -2
  313. package/resources/gofer/gemini/commands/gofer/gofer_constitution.md +0 -607
  314. package/resources/gofer/gemini/commands/gofer/gofer_constitution.toml +0 -2
  315. package/resources/gofer/gemini/commands/gofer/gofer_diagnose.md +0 -109
  316. package/resources/gofer/gemini/commands/gofer/gofer_diagnose.toml +0 -2
  317. package/resources/gofer/gemini/commands/gofer/gofer_eai_first_run.md +0 -392
  318. package/resources/gofer/gemini/commands/gofer/gofer_eai_first_run.toml +0 -2
  319. package/resources/gofer/gemini/commands/gofer/gofer_hydrate.md +0 -556
  320. package/resources/gofer/gemini/commands/gofer/gofer_hydrate.toml +0 -2
  321. package/resources/gofer/gemini/commands/gofer/gofer_personality.md +0 -39
  322. package/resources/gofer/gemini/commands/gofer/gofer_personality.toml +0 -2
  323. package/resources/gofer/gemini/commands/gofer/gofer_plan.md +0 -35
  324. package/resources/gofer/gemini/commands/gofer/gofer_plan.toml +0 -2
  325. package/resources/gofer/gemini/commands/gofer/gofer_side.md +0 -40
  326. package/resources/gofer/gemini/commands/gofer/gofer_side.toml +0 -2
  327. package/resources/gofer/gemini/commands/gofer/gofer_spec_summary.md +0 -107
  328. package/resources/gofer/gemini/commands/gofer/gofer_spec_summary.toml +0 -2
  329. package/resources/gofer/gemini/commands/gofer/gofer_tdd.md +0 -107
  330. package/resources/gofer/gemini/commands/gofer/gofer_tdd.toml +0 -2
  331. package/resources/gofer/gemini/commands/gofer/gofer_vocabulary.md +0 -107
  332. package/resources/gofer/gemini/commands/gofer/gofer_vocabulary.toml +0 -2
  333. package/resources/gofer/gemini/commands/gofer/gofer_zoom_out.md +0 -107
  334. package/resources/gofer/gemini/commands/gofer/gofer_zoom_out.toml +0 -2
  335. package/resources/gofer/github-skills/eai-gofer/SKILL.md +0 -56
  336. package/resources/gofer/system-skills/0_gofer_start/SKILL.md +0 -1287
  337. package/resources/gofer/system-skills/0a_problem_validation/SKILL.md +0 -429
  338. package/resources/gofer/system-skills/10_gofer_cloud/SKILL.md +0 -635
  339. package/resources/gofer/system-skills/1_gofer_research/SKILL.md +0 -1159
  340. package/resources/gofer/system-skills/2_gofer_specify/SKILL.md +0 -860
  341. package/resources/gofer/system-skills/3_gofer_plan/SKILL.md +0 -899
  342. package/resources/gofer/system-skills/4_gofer_tasks/SKILL.md +0 -760
  343. package/resources/gofer/system-skills/5_gofer_implement/SKILL.md +0 -944
  344. package/resources/gofer/system-skills/6_gofer_validate/SKILL.md +0 -2302
  345. package/resources/gofer/system-skills/7_gofer_save/SKILL.md +0 -423
  346. package/resources/gofer/system-skills/7a_stakeholder_comms/SKILL.md +0 -508
  347. package/resources/gofer/system-skills/8_gofer_branding/SKILL.md +0 -315
  348. package/resources/gofer/system-skills/9_gofer_tests/SKILL.md +0 -558
  349. package/resources/gofer/system-skills/gofer_bootstrap_workspace/SKILL.md +0 -148
  350. package/resources/gofer/system-skills/gofer_check_workspace/SKILL.md +0 -119
  351. package/resources/gofer/system-skills/gofer_constitution/SKILL.md +0 -612
  352. package/resources/gofer/system-skills/gofer_diagnose/SKILL.md +0 -114
  353. package/resources/gofer/system-skills/gofer_eai_first_run/SKILL.md +0 -397
  354. package/resources/gofer/system-skills/gofer_hydrate/SKILL.md +0 -561
  355. package/resources/gofer/system-skills/gofer_personality/SKILL.md +0 -44
  356. package/resources/gofer/system-skills/gofer_plan/SKILL.md +0 -40
  357. package/resources/gofer/system-skills/gofer_side/SKILL.md +0 -45
  358. package/resources/gofer/system-skills/gofer_spec_summary/SKILL.md +0 -112
  359. package/resources/gofer/system-skills/gofer_tdd/SKILL.md +0 -112
  360. package/resources/gofer/system-skills/gofer_vocabulary/SKILL.md +0 -112
  361. package/resources/gofer/system-skills/gofer_zoom_out/SKILL.md +0 -112
  362. package/resources/gofer/templates/ui-approval-template.md +0 -32
@@ -1,607 +0,0 @@
1
- ## Workspace Preflight
2
-
3
- Before doing stage/helper work:
4
-
5
- 1. Resolve the repository root.
6
- 2. Check the core Gofer sentinels:
7
- - `.specify/.gofer-version`
8
- - `.specify/commands/0_gofer_start.md`
9
- - `.specify/templates/spec-template.md`
10
- - `.specify/templates/loop-contract-template.json`
11
- - `.specify/templates/working-backwards-prfaq-template.md`
12
- - `.specify/templates/business-owner-summary-template.md`
13
- - `.specify/templates/cto-architecture-summary-template.md`
14
- - `.specify/templates/ciso-security-summary-template.md`
15
- - `.specify/templates/stakeholder-review-index-template.md`
16
- - `.specify/scripts/bash/create-new-feature.sh`
17
- - `.specify/scripts/node/parse-stage-command.mjs`
18
- - `.specify/scripts/node/gofer-loop-audit.mjs`
19
- - `.specify/scripts/hooks/post-tool-use.mjs`
20
- - `.specify/scripts/powershell/install-optional-tools.ps1`
21
- - `.specify/templates/gofer-model-policy.yaml`
22
- - `.specify/memory/gofer-model-policy.yaml`
23
- - `.specify/specs/`
24
- - `.specify/memory/`
25
- 3. Check host-specific repo-owned files when relevant:
26
- - Claude: `AGENTS.md`, `CLAUDE.md`, `.claude/settings.json`
27
- - Codex: `AGENTS.md`
28
- - Copilot: `.github/copilot-instructions.md`
29
- - VS Code extension mirrors Claude/Copilot/Gemini resources itself and should still keep the core scaffold healthy
30
- 4. If the repo already has the workspace checker script, prefer running:
31
- - `node .specify/scripts/node/gofer-workspace-check.mjs --host claude --json`
32
- 5. If the workspace is missing or stale, ask exactly:
33
- - **"This repo is missing or stale for Gofer. Initialize/update it now?"**
34
- 6. If the user says yes, run the Gofer workspace bootstrap helper and then resume this command from the top.
35
- 7. If the user says no, stop and explain that Gofer stage/helper work depends on the repo-owned scaffold.
36
-
37
- ---
38
- description:
39
- Create or update project constitution with coding principles and guidelines
40
- ---
41
-
42
- # Gofer Constitution
43
-
44
- ## EAI Platform Session Preflight
45
-
46
- Before any Gofer stage/helper command does pipeline work:
47
-
48
- 1. Treat durable delivery as EAI Platform delivery by default, with Azure second
49
- and every other stack only by explicit exception.
50
- 2. Run `eai whoami` and confirm the EAI CLI is installed, the user is logged in,
51
- and an active workspace is visible.
52
- 3. If `eai` is missing, `eai whoami` fails, the token is expired, or no active
53
- workspace is available, stop and run `/gofer:eai-first-run` or ask the user to
54
- approve login/setup before continuing.
55
- 4. For EAI app delivery, do not continue into research, specification, planning,
56
- tasks, implementation, or validation until
57
- `.specify/specs/{feature}/eai-preflight.md` records login, workspace, template,
58
- app-readiness, and next-action evidence.
59
- 5. Do not write tokens, secrets, private workspace IDs, Entra/CIAM authority tenant IDs, or local `.env` values into
60
- Gofer artifacts; record only product-safe readiness status and evidence.
61
-
62
- ## Token And Cost Policy
63
- <!-- gofer:token-cost-policy:start -->
64
-
65
- Before spawning agents, calling tools, or loading large files:
66
-
67
- 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.
68
- 2. Use the cheapest capable model first.
69
- - Claude: Haiku for scouting/extraction; Sonnet for normal implementation, synthesis, validation, and security; Opus for high-risk arbitration or release-critical failures.
70
- - 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.
71
- - Gemini: Flash-Lite for cheap large-context scan/summarize; Flash for default research synthesis; Pro for large-context architecture or high-risk arbitration.
72
- - 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.
73
- 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.
74
- 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.
75
- 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.
76
- 6. Escalate model tier only when a cheaper pass is low-confidence, contradictory, security-sensitive, or blocking release quality.
77
- <!-- gofer:token-cost-policy:end -->
78
-
79
- ## Source-of-Truth and Codex Distribution (FR-001, FR-010)
80
-
81
- The Gofer constitution lives at `.specify/memory/constitution.md` and is the
82
- authoritative reference for cross-cutting concerns the entire pipeline must
83
- respect.
84
-
85
- Two invariants the constitution MUST document and this command MUST preserve
86
- when updating:
87
-
88
- 1. **Source-of-truth (FR-001)**: All stage commands derive from canonical files
89
- at `.specify/commands/<stage>.md` — YAML frontmatter (name, description ≤140
90
- chars, surfaces, args) plus Markdown body. The generator at
91
- `.specify/scripts/node/generate-commands.mjs` emits to every CLI surface
92
- (`.claude/commands/`, `extension/resources/copilot-prompts/`,
93
- `.github/prompts/`, `.gemini/commands/gofer/`, `.agents/skills/`, and the
94
- legacy compatibility mirror `.system/skills/`). Hand-edits on emitted files
95
- are rejected by the generator without `--force-emit`. **Never bypass the
96
- source-of-truth.**
97
-
98
- 2. **Codex distribution path (FR-010)**: Codex discovers skills at
99
- `.agents/skills/` (one folder per skill:
100
- `.agents/skills/<stage>/SKILL.md`). This is NOT the same as
101
- `.claude/skills/`, and it is the only repo-local path Codex should rely on
102
- for normal Gofer installs. The constitution MUST capture that distinction
103
- explicitly so future authors do not conflate the two paths or recreate
104
- duplicate global Gofer bundles. The official Codex disable knob is a
105
- per-skill `[[skills.config]]` entry with a `path = "/full/path/to/skill"`
106
- plus `enabled = false` in `~/.codex/config.toml`; there is no global
107
- skill-budget percentage key (FR-011).
108
-
109
- When updating the constitution, ensure both sections survive the edit pass.
110
-
111
- ## User Input
112
-
113
- ```text
114
- $ARGUMENTS
115
- ```
116
-
117
- You **MUST** consider the user input before proceeding (if not empty).
118
-
119
- ---
120
-
121
- ## Why Constitution Matters for Agentic Coding
122
-
123
- 1. **Consistency Across Sessions**: Agents follow the same rules every time
124
- 2. **Memory Persistence**: Decisions survive context window limits
125
- 3. **Team Alignment**: All agents (and humans) follow same guidelines
126
- 4. **Quality Gates**: Automatic validation against principles
127
- 5. **Knowledge Capture**: Learnings from past work inform future work
128
-
129
- ---
130
-
131
- ## When to Use This Command
132
-
133
- - **Project Setup**: Initialize constitution for new project
134
- - **Post-Implementation Learning**: Capture decisions from completed features
135
- - **Standards Update**: Add new conventions or patterns
136
- - **Onboarding**: Document expectations for new team members/agents
137
-
138
- ---
139
-
140
- ## Step 1: Check Existing Constitution
141
-
142
- ```bash
143
- # Check if constitution exists
144
- if [ -f ".specify/memory/constitution.md" ]; then
145
- echo "Constitution exists - will update"
146
- else
147
- echo "No constitution - will create"
148
- fi
149
- ```
150
-
151
- Read existing constitution if present.
152
-
153
- ---
154
-
155
- ## Step 2: Gather Principles
156
-
157
- ### If Creating New Constitution
158
-
159
- Ask the user using AskUserQuestion:
160
-
161
- ```
162
- I'll help you create a project constitution. What areas would you like to define?
163
-
164
- 1. Coding Standards (naming, formatting, patterns)
165
- 2. Architecture Principles (structure, dependencies, layering)
166
- 3. Testing Requirements (coverage, types, conventions)
167
- 4. Security Guidelines (auth, data handling, secrets)
168
- 5. Performance Standards (targets, monitoring, optimization)
169
- 6. Documentation Requirements (comments, READMEs, ADRs)
170
- 7. All of the above (I'll ask about each)
171
- ```
172
-
173
- ### If Updating Existing Constitution
174
-
175
- Ask:
176
-
177
- ```
178
- What would you like to update in the constitution?
179
-
180
- 1. Add new principle(s)
181
- 2. Modify existing principle(s)
182
- 3. Remove outdated principle(s)
183
- 4. Add architectural decision record (ADR)
184
- 5. Update coding standards
185
- 6. Review and validate current constitution
186
- ```
187
-
188
- ---
189
-
190
- ## Step 3: Research Codebase Patterns
191
-
192
- Before writing principles, understand current codebase:
193
-
194
- ```
195
- Task: subagent_type="codebase-pattern-finder", model="haiku"
196
- Prompt: "Analyze the codebase for existing patterns and conventions.
197
- Find:
198
- - Naming conventions (files, variables, functions)
199
- - Code organization patterns
200
- - Testing patterns and conventions
201
- - Error handling patterns
202
- - Documentation style
203
- Report patterns that should be formalized as principles."
204
- ```
205
-
206
- ---
207
-
208
- ## Step 4: Generate Constitution
209
-
210
- Write to `.specify/memory/constitution.md`:
211
-
212
- ````markdown
213
- ---
214
- version: 1.0
215
- created: [ISO date]
216
- updated: [ISO date]
217
- status: active
218
- ---
219
-
220
- # Project Constitution
221
-
222
- > This document defines the principles and standards that guide all development
223
- > work in this project. AI agents and human developers MUST follow these
224
- > guidelines.
225
-
226
- ## Core Principles
227
-
228
- ### P1: [Principle Name]
229
-
230
- **Statement**: [Clear, actionable statement]
231
-
232
- **Rationale**: [Why this matters]
233
-
234
- **Examples**:
235
-
236
- - Good: [Example of following this principle]
237
- - Bad: [Example of violating this principle]
238
-
239
- **Enforcement**: [How this is validated]
240
-
241
- ### P2: [Principle Name]
242
-
243
- ...
244
-
245
- ## Coding Standards
246
-
247
- ### Naming Conventions
248
-
249
- | Element | Convention | Example |
250
- | --------- | ----------------- | ----------------- |
251
- | Files | [kebab/camel/etc] | `user-service.ts` |
252
- | Classes | [PascalCase] | `UserService` |
253
- | Functions | [camelCase] | `getUserById` |
254
- | Constants | [UPPER_SNAKE] | `MAX_RETRY_COUNT` |
255
- | Variables | [camelCase] | `userData` |
256
-
257
- ### Code Organization
258
-
259
- ```
260
- src/
261
- ├── [layer]/ # [Description]
262
- │ ├── [sublayer]/ # [Description]
263
- │ └── index.ts # Public exports only
264
- ├── types/ # Shared type definitions
265
- ├── utils/ # Shared utilities
266
- └── index.ts # Main entry point
267
- ```
268
- ````
269
-
270
- ### Import Order
271
-
272
- 1. External packages (node_modules)
273
- 2. Internal absolute imports
274
- 3. Relative imports
275
- 4. Type imports (if separate)
276
-
277
- ### Error Handling
278
-
279
- - MUST: [Error handling requirement]
280
- - MUST NOT: [Anti-pattern to avoid]
281
- - SHOULD: [Best practice]
282
-
283
- ## Architecture Principles
284
-
285
- ### Dependency Direction
286
-
287
- ```
288
- UI → Application → Domain → Infrastructure
289
- ↓
290
- Never depend on layers above
291
- ```
292
-
293
- ### Component Boundaries
294
-
295
- | Component | May Depend On | Must Not Depend On |
296
- | --------- | ------------------ | ------------------ |
297
- | UI | Application, Types | Domain, Infra |
298
- | Domain | Types | Anything else |
299
-
300
- ### State Management
301
-
302
- - [Principle about state]
303
- - [Where state should live]
304
- - [How state should flow]
305
-
306
- ## Testing Requirements
307
-
308
- ### Coverage Targets
309
-
310
- | Type | Target | Current |
311
- | ----------- | --------- | -------- |
312
- | Unit | 80% | [X]% |
313
- | Integration | 60% | [X]% |
314
- | E2E | Key flows | [status] |
315
-
316
- ### Test Patterns
317
-
318
- - Use DSL functions for readability
319
- - Follow Arrange-Act-Assert structure
320
- - One assertion concept per test
321
- - Test behavior, not implementation
322
-
323
- ### Required Tests
324
-
325
- - [ ] All public API functions
326
- - [ ] All error handling paths
327
- - [ ] All edge cases identified in specs
328
-
329
- ## Security Guidelines
330
-
331
- ### Authentication/Authorization
332
-
333
- - [Requirement]
334
- - [Pattern to follow]
335
-
336
- ### Data Handling
337
-
338
- - NEVER: Store secrets in code
339
- - NEVER: Log sensitive data
340
- - ALWAYS: Validate external input
341
- - ALWAYS: Use parameterized queries
342
-
343
- ### Secrets Management
344
-
345
- - Location: [Where secrets go]
346
- - Format: [How to reference]
347
- - Rotation: [Policy]
348
-
349
- ## Performance Standards
350
-
351
- ### Response Time Targets
352
-
353
- | Operation | Target | Critical Path? |
354
- | ---------- | ------- | -------------- |
355
- | API call | < 200ms | Yes |
356
- | Page load | < 2s | Yes |
357
- | Background | < 30s | No |
358
-
359
- ### Resource Limits
360
-
361
- - Memory: [Limit]
362
- - CPU: [Limit]
363
- - Bundle size: [Limit]
364
-
365
- ## Documentation Requirements
366
-
367
- ### Code Comments
368
-
369
- - Document "why", not "what"
370
- - Required for: complex logic, workarounds, non-obvious decisions
371
- - Not required for: self-explanatory code
372
-
373
- ### API Documentation
374
-
375
- - All public functions must have JSDoc/docstrings
376
- - Include: description, parameters, return value, errors
377
-
378
- ### Architecture Decision Records
379
-
380
- When making significant decisions, create ADR in `.specify/memory/decisions/`.
381
-
382
- ## Quality Gates
383
-
384
- These checks MUST pass before code is considered complete:
385
-
386
- ```bash
387
- # Automated checks
388
- npm run lint # Zero errors
389
- npm run typecheck # Zero errors
390
- npm test # All pass
391
- npm run build # Successful
392
-
393
- # Manual checks
394
- - [ ] Code review approved
395
- - [ ] Tests cover new functionality
396
- - [ ] Documentation updated
397
- ```
398
-
399
- ## Violations and Exceptions
400
-
401
- ### How to Handle Violations
402
-
403
- 1. **Accidental**: Fix before committing
404
- 2. **Intentional**: Document exception with ADR
405
- 3. **Systemic**: Propose constitution amendment
406
-
407
- ### Exception Format
408
-
409
- When violating a principle intentionally:
410
-
411
- ```typescript
412
- // CONSTITUTION EXCEPTION: P3 - [Principle Name]
413
- // Reason: [Why violation is necessary]
414
- // ADR: .specify/memory/decisions/NNN-exception.md
415
- // TODO: [Plan to resolve, if any]
416
- ```
417
-
418
- ## Version History
419
-
420
- | Version | Date | Changes | Author |
421
- | ------- | ------ | -------------------- | ------ |
422
- | 1.0 | [date] | Initial constitution | Claude |
423
-
424
- ````
425
-
426
- ---
427
-
428
- ## Step 5: Create Decision Record Template
429
-
430
- Ensure `.specify/memory/decisions/` exists and has template:
431
-
432
- ```markdown
433
- # .specify/memory/decisions/000-template.md
434
-
435
- ---
436
- id: NNN
437
- title: '[Decision Title]'
438
- status: [proposed|accepted|deprecated|superseded]
439
- date: [ISO date]
440
- deciders: [who made this decision]
441
- ---
442
-
443
- # [Decision Title]
444
-
445
- ## Context
446
-
447
- [What is the issue we're addressing?]
448
-
449
- ## Decision
450
-
451
- [What is the change we're making?]
452
-
453
- ## Consequences
454
-
455
- ### Positive
456
-
457
- - [Benefit 1]
458
- - [Benefit 2]
459
-
460
- ### Negative
461
-
462
- - [Drawback 1]
463
- - [Drawback 2]
464
-
465
- ### Neutral
466
-
467
- - [Side effect]
468
-
469
- ## Alternatives Considered
470
-
471
- ### Alternative 1: [Name]
472
-
473
- - Pros: [benefits]
474
- - Cons: [drawbacks]
475
- - Why rejected: [reason]
476
-
477
- ### Alternative 2: [Name]
478
-
479
- ...
480
-
481
- ## Related Decisions
482
-
483
- - [Link to related ADR]
484
- ````
485
-
486
- ---
487
-
488
- ## Step 6: Validate Constitution
489
-
490
- After creating/updating, validate:
491
-
492
- ### Consistency Check
493
-
494
- - [ ] All principles are actionable (not vague)
495
- - [ ] No contradictory principles
496
- - [ ] Examples provided for clarity
497
- - [ ] Enforcement method defined
498
-
499
- ### Codebase Alignment Check
500
-
501
- ```
502
- Task: subagent_type="codebase-analyzer", model="sonnet"
503
- Prompt: "Check if the codebase follows these constitution principles:
504
- [List key principles]
505
- Report any violations or areas needing attention."
506
- ```
507
-
508
- ### Completeness Check
509
-
510
- - [ ] Coding standards defined
511
- - [ ] Architecture principles defined
512
- - [ ] Testing requirements defined
513
- - [ ] Security guidelines defined
514
- - [ ] Quality gates defined
515
-
516
- ---
517
-
518
- ## Step 7: Report Completion
519
-
520
- ```
521
- ================================================================
522
- CONSTITUTION [CREATED/UPDATED]: [Project Name]
523
- ================================================================
524
-
525
- Location: .specify/memory/constitution.md
526
-
527
- Sections:
528
- - Core Principles: [N] defined
529
- - Coding Standards: [Complete/Partial]
530
- - Architecture: [Complete/Partial]
531
- - Testing: [Complete/Partial]
532
- - Security: [Complete/Partial]
533
- - Quality Gates: [N] checks
534
-
535
- Validation:
536
- - Consistency: [Pass/Issues found]
537
- - Codebase alignment: [X]% following principles
538
- - Completeness: [X]/[Total] sections
539
-
540
- Next Steps:
541
- 1. Review with team
542
- 2. Address any violations found
543
- 3. Add to onboarding documentation
544
- 4. Reference in /3_gofer_plan for alignment checks
545
-
546
- ================================================================
547
- ```
548
-
549
- ---
550
-
551
- ## Integration with Pipeline
552
-
553
- ### During Planning (/3_gofer_plan)
554
-
555
- ```markdown
556
- ## Constitution Check
557
-
558
- - [x] P1: [Principle] - Plan aligns
559
- - [x] P2: [Principle] - Plan aligns
560
- - [ ] P3: [Principle] - Exception needed (see ADR-NNN)
561
- ```
562
-
563
- ### During Implementation (/5_gofer_implement)
564
-
565
- Before each task, verify implementation follows constitution.
566
-
567
- ### During Validation (/6_gofer_validate)
568
-
569
- ```markdown
570
- ## Constitution Compliance
571
-
572
- | Principle | Status | Notes |
573
- | --------- | --------- | ----------------- |
574
- | P1 | Pass | - |
575
- | P2 | Pass | - |
576
- | P3 | Exception | ADR-NNN documents |
577
- ```
578
-
579
- ---
580
-
581
- ## Updating Constitution
582
-
583
- When learnings emerge from feature work:
584
-
585
- 1. Run `/gofer_constitution` with update flag
586
- 2. Add new principles or modify existing
587
- 3. Create ADR for significant changes
588
- 4. Update version history
589
- 5. Notify team of changes
590
-
591
- ---
592
-
593
- ## Observability Logging
594
-
595
- ```bash
596
- .specify/scripts/bash/log-stage.sh gofer_constitution --complete --tokens [N] --compactions [N]
597
- ```
598
-
599
- ---
600
-
601
- ## Key Rules
602
-
603
- - Constitution is **authoritative** - all work must align
604
- - Principles must be **actionable** - not vague aspirations
605
- - **Exceptions require ADRs** - no silent violations
606
- - **Version control** constitution changes
607
- - Constitution informs **all pipeline stages**
@@ -1,109 +0,0 @@
1
- ## Workspace Preflight
2
-
3
- Before doing stage/helper work:
4
-
5
- 1. Resolve the repository root.
6
- 2. Check the core Gofer sentinels:
7
- - `.specify/.gofer-version`
8
- - `.specify/commands/0_gofer_start.md`
9
- - `.specify/templates/spec-template.md`
10
- - `.specify/templates/loop-contract-template.json`
11
- - `.specify/templates/working-backwards-prfaq-template.md`
12
- - `.specify/templates/business-owner-summary-template.md`
13
- - `.specify/templates/cto-architecture-summary-template.md`
14
- - `.specify/templates/ciso-security-summary-template.md`
15
- - `.specify/templates/stakeholder-review-index-template.md`
16
- - `.specify/scripts/bash/create-new-feature.sh`
17
- - `.specify/scripts/node/parse-stage-command.mjs`
18
- - `.specify/scripts/node/gofer-loop-audit.mjs`
19
- - `.specify/scripts/hooks/post-tool-use.mjs`
20
- - `.specify/scripts/powershell/install-optional-tools.ps1`
21
- - `.specify/templates/gofer-model-policy.yaml`
22
- - `.specify/memory/gofer-model-policy.yaml`
23
- - `.specify/specs/`
24
- - `.specify/memory/`
25
- 3. Check host-specific repo-owned files when relevant:
26
- - Claude: `AGENTS.md`, `CLAUDE.md`, `.claude/settings.json`
27
- - Codex: `AGENTS.md`
28
- - Copilot: `.github/copilot-instructions.md`
29
- - VS Code extension mirrors Claude/Copilot/Gemini resources itself and should still keep the core scaffold healthy
30
- 4. If the repo already has the workspace checker script, prefer running:
31
- - `node .specify/scripts/node/gofer-workspace-check.mjs --host claude --json`
32
- 5. If the workspace is missing or stale, ask exactly:
33
- - **"This repo is missing or stale for Gofer. Initialize/update it now?"**
34
- 6. If the user says yes, run the Gofer workspace bootstrap helper and then resume this command from the top.
35
- 7. If the user says no, stop and explain that Gofer stage/helper work depends on the repo-owned scaffold.
36
-
37
-
38
- # Gofer Diagnose
39
-
40
- ## EAI Platform Session Preflight
41
-
42
- Before any Gofer stage/helper command does pipeline work:
43
-
44
- 1. Treat durable delivery as EAI Platform delivery by default, with Azure second
45
- and every other stack only by explicit exception.
46
- 2. Run `eai whoami` and confirm the EAI CLI is installed, the user is logged in,
47
- and an active workspace is visible.
48
- 3. If `eai` is missing, `eai whoami` fails, the token is expired, or no active
49
- workspace is available, stop and run `/gofer:eai-first-run` or ask the user to
50
- approve login/setup before continuing.
51
- 4. For EAI app delivery, do not continue into research, specification, planning,
52
- tasks, implementation, or validation until
53
- `.specify/specs/{feature}/eai-preflight.md` records login, workspace, template,
54
- app-readiness, and next-action evidence.
55
- 5. Do not write tokens, secrets, private workspace IDs, Entra/CIAM authority tenant IDs, or local `.env` values into
56
- Gofer artifacts; record only product-safe readiness status and evidence.
57
-
58
- ## Token And Cost Policy
59
- <!-- gofer:token-cost-policy:start -->
60
-
61
- Before spawning agents, calling tools, or loading large files:
62
-
63
- 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.
64
- 2. Use the cheapest capable model first.
65
- - Claude: Haiku for scouting/extraction; Sonnet for normal implementation, synthesis, validation, and security; Opus for high-risk arbitration or release-critical failures.
66
- - 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.
67
- - Gemini: Flash-Lite for cheap large-context scan/summarize; Flash for default research synthesis; Pro for large-context architecture or high-risk arbitration.
68
- - 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.
69
- 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.
70
- 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.
71
- 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.
72
- 6. Escalate model tier only when a cheaper pass is low-confidence, contradictory, security-sensitive, or blocking release quality.
73
- <!-- gofer:token-cost-policy:end -->
74
-
75
- Run a structured reproduce-minimize-instrument-fix investigation and write the
76
- results to `.specify/specs/{feature}/diagnose-report.md`.
77
-
78
- Use this when an implementation, test, or integration is failing and you need a
79
- portable, evidence-backed debugging record that stays inside the feature
80
- directory.
81
-
82
- When you run this helper:
83
-
84
- 1. Start from the actual failure evidence already present in the session:
85
- failing output, stack traces, logs, screenshots, or a concrete bug report.
86
- 2. Reproduce the failure as directly as possible.
87
- 3. Minimize the problem to the smallest reliable failing slice.
88
- 4. Instrument the likely fault boundaries to prove or disprove hypotheses.
89
- 5. Record the recommended fix path without inventing evidence.
90
- 6. Write the artifact only to
91
- `.specify/specs/{feature}/diagnose-report.md`.
92
- 7. If the target file already exists, replace it and prepend a regeneration note
93
- such as `<!-- regenerated at [ISO timestamp] -->`.
94
- 8. Include the minimum provenance schema:
95
- - `GeneratedAt`
96
- - `SourceCommandId`
97
- - `SourceInputs`
98
- - `OverwriteNoticeWhenApplicable`
99
-
100
- The generated diagnose report must contain these sections:
101
-
102
- - `## Provenance`
103
- - `## Reproduce`
104
- - `## Minimize`
105
- - `## Instrument`
106
- - `## Fix`
107
-
108
- Keep the content Gofer-owned. Do not copy upstream Matt Pocock skill text
109
- verbatim.