hatch3r 1.8.0 → 1.9.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 (276) hide show
  1. package/README.md +36 -55
  2. package/dist/cli/index.js +13073 -14671
  3. package/dist/cli/index.js.map +1 -1
  4. package/{agents → dist/content/agents}/hatch3r-a11y-auditor.md +2 -2
  5. package/{agents → dist/content/agents}/hatch3r-ci-watcher.md +2 -2
  6. package/{agents → dist/content/agents}/hatch3r-context-rules.md +5 -5
  7. package/{agents → dist/content/agents}/hatch3r-creator.md +15 -15
  8. package/{agents → dist/content/agents}/hatch3r-dependency-auditor.md +1 -1
  9. package/{agents → dist/content/agents}/hatch3r-devops.md +3 -3
  10. package/{agents → dist/content/agents}/hatch3r-fixer.md +2 -2
  11. package/{agents → dist/content/agents}/hatch3r-handoff-loader.md +11 -11
  12. package/{agents → dist/content/agents}/hatch3r-handoff-preparer.md +7 -7
  13. package/{agents → dist/content/agents}/hatch3r-implementer.md +2 -2
  14. package/{agents → dist/content/agents}/hatch3r-learnings-loader.md +11 -11
  15. package/{agents → dist/content/agents}/hatch3r-lint-fixer.md +2 -2
  16. package/{agents → dist/content/agents}/hatch3r-researcher.md +3 -3
  17. package/{agents → dist/content/agents}/hatch3r-reviewer.md +4 -4
  18. package/{agents → dist/content/agents}/hatch3r-security-auditor.md +2 -2
  19. package/{agents → dist/content/agents}/hatch3r-test-writer.md +2 -2
  20. package/{agents → dist/content/agents}/shared/external-knowledge.md +1 -1
  21. package/{agents → dist/content/agents}/shared/injection-patterns.md +1 -1
  22. package/{agents → dist/content/agents}/shared/quality-charter.md +31 -3
  23. package/{agents → dist/content/agents}/shared/user-content-templates.md +10 -10
  24. package/{agents → dist/content/agents}/shared/user-question-protocol.md +2 -0
  25. package/{commands → dist/content/commands}/board/pickup-azure-devops.md +1 -1
  26. package/{commands → dist/content/commands}/board/pickup-delegation-multi.md +4 -4
  27. package/{commands → dist/content/commands}/board/pickup-delegation.md +3 -3
  28. package/{commands → dist/content/commands}/board/pickup-github.md +1 -1
  29. package/{commands → dist/content/commands}/board/pickup-gitlab.md +1 -1
  30. package/{commands → dist/content/commands}/board/pickup-post-impl.md +2 -2
  31. package/{commands → dist/content/commands}/board/shared-azure-devops.md +1 -1
  32. package/{commands → dist/content/commands}/board/shared-github.md +2 -2
  33. package/{commands → dist/content/commands}/board/shared-gitlab.md +1 -1
  34. package/{commands → dist/content/commands}/hatch3r-api-spec.md +1 -1
  35. package/{commands → dist/content/commands}/hatch3r-benchmark.md +1 -1
  36. package/{commands → dist/content/commands}/hatch3r-board-fill.md +7 -7
  37. package/{commands → dist/content/commands}/hatch3r-board-pickup.md +6 -6
  38. package/{commands → dist/content/commands}/hatch3r-bug-plan.md +5 -5
  39. package/{commands → dist/content/commands}/hatch3r-codebase-map.md +2 -2
  40. package/{commands → dist/content/commands}/hatch3r-create.md +11 -11
  41. package/{commands → dist/content/commands}/hatch3r-debug.md +11 -11
  42. package/{commands → dist/content/commands}/hatch3r-feature-plan.md +5 -5
  43. package/{commands → dist/content/commands}/hatch3r-handoff.md +9 -9
  44. package/{commands → dist/content/commands}/hatch3r-healthcheck.md +1 -1
  45. package/{commands → dist/content/commands}/hatch3r-hooks.md +12 -12
  46. package/{commands → dist/content/commands}/hatch3r-learn.md +11 -11
  47. package/{commands → dist/content/commands}/hatch3r-migration-plan.md +2 -2
  48. package/{commands → dist/content/commands}/hatch3r-onboard.md +7 -7
  49. package/{commands → dist/content/commands}/hatch3r-pr-resolve.md +8 -8
  50. package/{commands → dist/content/commands}/hatch3r-project-spec.md +3 -3
  51. package/{commands → dist/content/commands}/hatch3r-quick-change.md +7 -7
  52. package/{commands → dist/content/commands}/hatch3r-refactor-plan.md +4 -4
  53. package/{commands → dist/content/commands}/hatch3r-report.md +1 -1
  54. package/{commands → dist/content/commands}/hatch3r-revision.md +7 -7
  55. package/{commands → dist/content/commands}/hatch3r-roadmap.md +2 -2
  56. package/{commands → dist/content/commands}/hatch3r-security-audit.md +2 -2
  57. package/{commands → dist/content/commands}/hatch3r-test-plan.md +5 -5
  58. package/{commands → dist/content/commands}/hatch3r-workflow.md +9 -9
  59. package/{commands → dist/content/commands}/revision/revision-delegation.md +2 -2
  60. package/{commands → dist/content/commands}/revision/revision-quality.md +2 -2
  61. package/{github-agents → dist/content/github-agents}/hatch3r-docs-agent.md +1 -1
  62. package/{github-agents → dist/content/github-agents}/hatch3r-lint-agent.md +1 -1
  63. package/{github-agents → dist/content/github-agents}/hatch3r-security-agent.md +1 -1
  64. package/{github-agents → dist/content/github-agents}/hatch3r-test-agent.md +1 -1
  65. package/{hooks → dist/content/hooks}/hatch3r-ci-failure.md +3 -3
  66. package/{hooks → dist/content/hooks}/hatch3r-file-save.md +3 -3
  67. package/{hooks → dist/content/hooks}/hatch3r-post-merge.md +1 -1
  68. package/{hooks → dist/content/hooks}/hatch3r-pre-commit.md +1 -1
  69. package/{hooks → dist/content/hooks}/hatch3r-pre-push.md +3 -3
  70. package/{hooks → dist/content/hooks}/hatch3r-session-start.md +3 -3
  71. package/{rules → dist/content/rules}/hatch3r-accessibility-standards.md +2 -1
  72. package/{rules → dist/content/rules}/hatch3r-accessibility-standards.mdc +1 -0
  73. package/{rules → dist/content/rules}/hatch3r-agent-orchestration-detail.md +2 -2
  74. package/{rules → dist/content/rules}/hatch3r-agent-orchestration-detail.mdc +1 -1
  75. package/{rules → dist/content/rules}/hatch3r-agent-orchestration.md +2 -2
  76. package/{rules → dist/content/rules}/hatch3r-agent-orchestration.mdc +1 -1
  77. package/{rules → dist/content/rules}/hatch3r-ai-evals.md +2 -1
  78. package/{rules → dist/content/rules}/hatch3r-ai-evals.mdc +2 -1
  79. package/{rules → dist/content/rules}/hatch3r-ai-ux-patterns.md +1 -1
  80. package/{rules → dist/content/rules}/hatch3r-api-versioning.md +1 -0
  81. package/{rules → dist/content/rules}/hatch3r-api-versioning.mdc +1 -0
  82. package/{rules → dist/content/rules}/hatch3r-auth-patterns.md +2 -1
  83. package/{rules → dist/content/rules}/hatch3r-auth-patterns.mdc +1 -0
  84. package/{rules → dist/content/rules}/hatch3r-browser-verification.md +6 -10
  85. package/{rules → dist/content/rules}/hatch3r-browser-verification.mdc +6 -10
  86. package/{rules → dist/content/rules}/hatch3r-ci-cd.md +1 -0
  87. package/{rules → dist/content/rules}/hatch3r-ci-cd.mdc +1 -0
  88. package/{rules → dist/content/rules}/hatch3r-code-standards.md +1 -1
  89. package/{rules → dist/content/rules}/hatch3r-component-conventions.md +1 -1
  90. package/{rules → dist/content/rules}/hatch3r-container-hardening.md +2 -1
  91. package/{rules → dist/content/rules}/hatch3r-container-hardening.mdc +1 -0
  92. package/{rules → dist/content/rules}/hatch3r-contract-testing.md +1 -0
  93. package/{rules → dist/content/rules}/hatch3r-contract-testing.mdc +1 -0
  94. package/{rules → dist/content/rules}/hatch3r-data-classification.md +2 -1
  95. package/{rules → dist/content/rules}/hatch3r-data-classification.mdc +1 -0
  96. package/{rules → dist/content/rules}/hatch3r-deep-context.md +1 -1
  97. package/{rules → dist/content/rules}/hatch3r-dependency-management.md +2 -1
  98. package/{rules → dist/content/rules}/hatch3r-dependency-management.mdc +1 -0
  99. package/{rules → dist/content/rules}/hatch3r-design-system-detection.md +2 -1
  100. package/{rules → dist/content/rules}/hatch3r-design-system-detection.mdc +1 -0
  101. package/{rules → dist/content/rules}/hatch3r-event-schema-evolution.md +1 -0
  102. package/{rules → dist/content/rules}/hatch3r-event-schema-evolution.mdc +1 -0
  103. package/{rules → dist/content/rules}/hatch3r-git-conventions.md +1 -1
  104. package/{rules → dist/content/rules}/hatch3r-handoff-readiness.md +4 -4
  105. package/{rules → dist/content/rules}/hatch3r-handoff-readiness.mdc +3 -3
  106. package/{rules → dist/content/rules}/hatch3r-i18n.md +1 -1
  107. package/{rules → dist/content/rules}/hatch3r-iteration-summary.md +1 -1
  108. package/{rules → dist/content/rules}/hatch3r-learning-consult.md +7 -7
  109. package/{rules → dist/content/rules}/hatch3r-learning-consult.mdc +6 -6
  110. package/{rules → dist/content/rules}/hatch3r-migrations.md +2 -1
  111. package/{rules → dist/content/rules}/hatch3r-migrations.mdc +1 -0
  112. package/{rules → dist/content/rules}/hatch3r-observability-logging.md +1 -0
  113. package/{rules → dist/content/rules}/hatch3r-observability-logging.mdc +1 -0
  114. package/{rules → dist/content/rules}/hatch3r-observability-metrics.md +1 -0
  115. package/{rules → dist/content/rules}/hatch3r-observability-metrics.mdc +1 -0
  116. package/{rules → dist/content/rules}/hatch3r-observability-tracing.md +1 -0
  117. package/{rules → dist/content/rules}/hatch3r-observability-tracing.mdc +1 -0
  118. package/{rules → dist/content/rules}/hatch3r-operability.md +1 -0
  119. package/{rules → dist/content/rules}/hatch3r-operability.mdc +1 -0
  120. package/{rules → dist/content/rules}/hatch3r-passkey-server.md +2 -1
  121. package/{rules → dist/content/rules}/hatch3r-passkey-server.mdc +1 -0
  122. package/{rules → dist/content/rules}/hatch3r-performance-budgets.md +1 -1
  123. package/{rules → dist/content/rules}/hatch3r-performance-budgets.mdc +1 -1
  124. package/{rules → dist/content/rules}/hatch3r-resilience-patterns.md +1 -0
  125. package/{rules → dist/content/rules}/hatch3r-resilience-patterns.mdc +1 -0
  126. package/{rules → dist/content/rules}/hatch3r-secrets-management.md +2 -1
  127. package/{rules → dist/content/rules}/hatch3r-secrets-management.mdc +1 -0
  128. package/{rules → dist/content/rules}/hatch3r-security-patterns.md +2 -1
  129. package/{rules → dist/content/rules}/hatch3r-security-patterns.mdc +1 -0
  130. package/{rules → dist/content/rules}/hatch3r-testing.md +2 -1
  131. package/{rules → dist/content/rules}/hatch3r-testing.mdc +1 -0
  132. package/{rules → dist/content/rules}/hatch3r-theming.md +1 -1
  133. package/{rules → dist/content/rules}/hatch3r-tooling-hierarchy.md +4 -4
  134. package/{rules → dist/content/rules}/hatch3r-tooling-hierarchy.mdc +3 -3
  135. package/{rules → dist/content/rules}/hatch3r-ux-states-and-flows.md +2 -1
  136. package/{rules → dist/content/rules}/hatch3r-ux-states-and-flows.mdc +1 -0
  137. package/{skills → dist/content/skills}/hatch3r-a11y-audit/SKILL.md +1 -1
  138. package/{skills → dist/content/skills}/hatch3r-architecture-review/SKILL.md +1 -1
  139. package/{commands/hatch3r-board-groom.md → dist/content/skills/hatch3r-board-groom/SKILL.md} +5 -18
  140. package/{commands/hatch3r-board-init.md → dist/content/skills/hatch3r-board-init/SKILL.md} +17 -30
  141. package/{commands/hatch3r-board-refresh.md → dist/content/skills/hatch3r-board-refresh/SKILL.md} +5 -18
  142. package/{commands/hatch3r-board-shared.md → dist/content/skills/hatch3r-board-shared/SKILL.md} +7 -14
  143. package/{skills → dist/content/skills}/hatch3r-bug-fix/SKILL.md +1 -1
  144. package/{skills → dist/content/skills}/hatch3r-cli-fd/SKILL.md +1 -1
  145. package/{skills → dist/content/skills}/hatch3r-cli-fzf/SKILL.md +1 -1
  146. package/{skills → dist/content/skills}/hatch3r-cli-gh/SKILL.md +4 -4
  147. package/{skills → dist/content/skills}/hatch3r-cli-jq/SKILL.md +3 -3
  148. package/{skills → dist/content/skills}/hatch3r-cli-ripgrep/SKILL.md +3 -3
  149. package/dist/content/skills/hatch3r-cli-toolbox/SKILL.md +269 -0
  150. package/{skills → dist/content/skills}/hatch3r-context-health/SKILL.md +18 -2
  151. package/{skills → dist/content/skills}/hatch3r-cost-tracking/SKILL.md +59 -7
  152. package/{skills → dist/content/skills}/hatch3r-customize/SKILL.md +5 -6
  153. package/{skills → dist/content/skills}/hatch3r-dep-audit/SKILL.md +6 -2
  154. package/{skills → dist/content/skills}/hatch3r-design-system-detect/SKILL.md +1 -1
  155. package/{skills → dist/content/skills}/hatch3r-feature/SKILL.md +1 -1
  156. package/{skills → dist/content/skills}/hatch3r-gh-agentic-workflows/SKILL.md +4 -4
  157. package/{skills → dist/content/skills}/hatch3r-gh-agentic-workflows/references/azure-devops.md +2 -2
  158. package/{skills → dist/content/skills}/hatch3r-gh-agentic-workflows/references/gitlab-ci.md +1 -1
  159. package/{skills → dist/content/skills}/hatch3r-handoff-prepare/SKILL.md +9 -9
  160. package/{skills → dist/content/skills}/hatch3r-handoff-resume/SKILL.md +2 -2
  161. package/{skills → dist/content/skills}/hatch3r-incident-response/SKILL.md +2 -2
  162. package/{skills → dist/content/skills}/hatch3r-issue-workflow/SKILL.md +4 -4
  163. package/{skills → dist/content/skills}/hatch3r-migration/SKILL.md +1 -1
  164. package/{skills → dist/content/skills}/hatch3r-observability-verify/SKILL.md +0 -1
  165. package/{skills → dist/content/skills}/hatch3r-perf-audit/SKILL.md +1 -1
  166. package/{skills → dist/content/skills}/hatch3r-pr-creation/SKILL.md +4 -4
  167. package/{skills → dist/content/skills}/hatch3r-qa-validation/SKILL.md +2 -2
  168. package/{skills → dist/content/skills}/hatch3r-recipe/SKILL.md +82 -2
  169. package/{skills → dist/content/skills}/hatch3r-refactor/SKILL.md +1 -1
  170. package/{skills → dist/content/skills}/hatch3r-release/SKILL.md +35 -2
  171. package/{skills → dist/content/skills}/hatch3r-ui-ux-verify/SKILL.md +1 -1
  172. package/{skills → dist/content/skills}/hatch3r-visual-refactor/SKILL.md +1 -1
  173. package/package.json +6 -18
  174. package/commands/hatch3r-agent-customize.md +0 -201
  175. package/commands/hatch3r-command-customize.md +0 -113
  176. package/commands/hatch3r-context-health.md +0 -147
  177. package/commands/hatch3r-cost-tracking.md +0 -163
  178. package/commands/hatch3r-dep-audit.md +0 -188
  179. package/commands/hatch3r-recipe.md +0 -194
  180. package/commands/hatch3r-release.md +0 -350
  181. package/commands/hatch3r-rule-customize.md +0 -133
  182. package/commands/hatch3r-skill-customize.md +0 -112
  183. package/prompts/hatch3r-bug-triage.md +0 -158
  184. package/prompts/hatch3r-code-review.md +0 -134
  185. package/prompts/hatch3r-pr-description.md +0 -176
  186. package/rules/hatch3r-observability-tracing-detail.md +0 -20
  187. package/rules/hatch3r-observability-tracing-detail.mdc +0 -14
  188. package/rules/hatch3r-observability.md +0 -20
  189. package/rules/hatch3r-observability.mdc +0 -14
  190. package/skills/hatch3r-agent-customize/SKILL.md +0 -23
  191. package/skills/hatch3r-cli-aichat/SKILL.md +0 -84
  192. package/skills/hatch3r-cli-ast-grep/SKILL.md +0 -85
  193. package/skills/hatch3r-cli-az-devops/SKILL.md +0 -89
  194. package/skills/hatch3r-cli-bat/SKILL.md +0 -85
  195. package/skills/hatch3r-cli-comby/SKILL.md +0 -85
  196. package/skills/hatch3r-cli-csvkit/SKILL.md +0 -84
  197. package/skills/hatch3r-cli-delta/SKILL.md +0 -86
  198. package/skills/hatch3r-cli-difftastic/SKILL.md +0 -84
  199. package/skills/hatch3r-cli-docker/SKILL.md +0 -89
  200. package/skills/hatch3r-cli-duckdb/SKILL.md +0 -84
  201. package/skills/hatch3r-cli-glab/SKILL.md +0 -89
  202. package/skills/hatch3r-cli-lazygit/SKILL.md +0 -78
  203. package/skills/hatch3r-cli-llm/SKILL.md +0 -84
  204. package/skills/hatch3r-cli-miller/SKILL.md +0 -84
  205. package/skills/hatch3r-cli-mods/SKILL.md +0 -84
  206. package/skills/hatch3r-cli-overview/SKILL.md +0 -60
  207. package/skills/hatch3r-cli-playwright/SKILL.md +0 -89
  208. package/skills/hatch3r-cli-podman/SKILL.md +0 -84
  209. package/skills/hatch3r-cli-qsv/SKILL.md +0 -91
  210. package/skills/hatch3r-cli-rtk/SKILL.md +0 -91
  211. package/skills/hatch3r-cli-sd/SKILL.md +0 -85
  212. package/skills/hatch3r-cli-stagehand/SKILL.md +0 -111
  213. package/skills/hatch3r-cli-taplo/SKILL.md +0 -84
  214. package/skills/hatch3r-cli-yq/SKILL.md +0 -85
  215. package/skills/hatch3r-cli-zstd/SKILL.md +0 -85
  216. package/skills/hatch3r-command-customize/SKILL.md +0 -23
  217. package/skills/hatch3r-rule-customize/SKILL.md +0 -23
  218. package/skills/hatch3r-skill-customize/SKILL.md +0 -23
  219. /package/{agents → dist/content/agents}/hatch3r-architect.md +0 -0
  220. /package/{agents → dist/content/agents}/hatch3r-docs-writer.md +0 -0
  221. /package/{agents → dist/content/agents}/hatch3r-perf-profiler.md +0 -0
  222. /package/{agents → dist/content/agents}/modes/architecture.md +0 -0
  223. /package/{agents → dist/content/agents}/modes/boundary-analysis.md +0 -0
  224. /package/{agents → dist/content/agents}/modes/codebase-impact.md +0 -0
  225. /package/{agents → dist/content/agents}/modes/complexity-risk.md +0 -0
  226. /package/{agents → dist/content/agents}/modes/coverage-analysis.md +0 -0
  227. /package/{agents → dist/content/agents}/modes/current-state.md +0 -0
  228. /package/{agents → dist/content/agents}/modes/feature-design.md +0 -0
  229. /package/{agents → dist/content/agents}/modes/impact-analysis.md +0 -0
  230. /package/{agents → dist/content/agents}/modes/library-docs.md +0 -0
  231. /package/{agents → dist/content/agents}/modes/migration-path.md +0 -0
  232. /package/{agents → dist/content/agents}/modes/prior-art.md +0 -0
  233. /package/{agents → dist/content/agents}/modes/refactoring-strategy.md +0 -0
  234. /package/{agents → dist/content/agents}/modes/regression.md +0 -0
  235. /package/{agents → dist/content/agents}/modes/requirements-elicitation.md +0 -0
  236. /package/{agents → dist/content/agents}/modes/risk-assessment.md +0 -0
  237. /package/{agents → dist/content/agents}/modes/risk-prioritization.md +0 -0
  238. /package/{agents → dist/content/agents}/modes/root-cause.md +0 -0
  239. /package/{agents → dist/content/agents}/modes/similar-implementation.md +0 -0
  240. /package/{agents → dist/content/agents}/modes/symptom-trace.md +0 -0
  241. /package/{agents → dist/content/agents}/modes/test-pattern.md +0 -0
  242. /package/{agents → dist/content/agents}/modes/user-flows.md +0 -0
  243. /package/{agents → dist/content/agents}/shared/efficiency-patterns.md +0 -0
  244. /package/{agents → dist/content/agents}/shared/prompt-structure.md +0 -0
  245. /package/{checks → dist/content/checks}/README.md +0 -0
  246. /package/{checks → dist/content/checks}/accessibility.md +0 -0
  247. /package/{checks → dist/content/checks}/code-quality.md +0 -0
  248. /package/{checks → dist/content/checks}/performance.md +0 -0
  249. /package/{checks → dist/content/checks}/security.md +0 -0
  250. /package/{checks → dist/content/checks}/testing.md +0 -0
  251. /package/{commands → dist/content/commands}/board/pickup-modes.md +0 -0
  252. /package/{commands → dist/content/commands}/board/shared-board-overview.md +0 -0
  253. /package/{commands → dist/content/commands}/revision/revision-board-integration.md +0 -0
  254. /package/{commands → dist/content/commands}/revision/revision-modes.md +0 -0
  255. /package/{mcp → dist/content/mcp}/mcp.json +0 -0
  256. /package/{rules → dist/content/rules}/hatch3r-ai-ux-patterns.mdc +0 -0
  257. /package/{rules → dist/content/rules}/hatch3r-api-design.md +0 -0
  258. /package/{rules → dist/content/rules}/hatch3r-api-design.mdc +0 -0
  259. /package/{rules → dist/content/rules}/hatch3r-code-standards.mdc +0 -0
  260. /package/{rules → dist/content/rules}/hatch3r-component-conventions.mdc +0 -0
  261. /package/{rules → dist/content/rules}/hatch3r-deep-context.mdc +0 -0
  262. /package/{rules → dist/content/rules}/hatch3r-feature-flags.md +0 -0
  263. /package/{rules → dist/content/rules}/hatch3r-feature-flags.mdc +0 -0
  264. /package/{rules → dist/content/rules}/hatch3r-git-conventions.mdc +0 -0
  265. /package/{rules → dist/content/rules}/hatch3r-i18n.mdc +0 -0
  266. /package/{rules → dist/content/rules}/hatch3r-iteration-summary.mdc +0 -0
  267. /package/{rules → dist/content/rules}/hatch3r-progressive-delivery.md +0 -0
  268. /package/{rules → dist/content/rules}/hatch3r-progressive-delivery.mdc +0 -0
  269. /package/{rules → dist/content/rules}/hatch3r-theming.mdc +0 -0
  270. /package/{skills → dist/content/skills}/hatch3r-a11y-audit/references/manual-audit-checklist.md +0 -0
  271. /package/{skills → dist/content/skills}/hatch3r-ai-feature/SKILL.md +0 -0
  272. /package/{skills → dist/content/skills}/hatch3r-api-spec/SKILL.md +0 -0
  273. /package/{skills → dist/content/skills}/hatch3r-ci-pipeline/SKILL.md +0 -0
  274. /package/{skills → dist/content/skills}/hatch3r-issue-workflow/references/delegation-patterns.md +0 -0
  275. /package/{skills → dist/content/skills}/hatch3r-logical-refactor/SKILL.md +0 -0
  276. /package/{skills → dist/content/skills}/hatch3r-reliability-verify/SKILL.md +0 -0
@@ -1,147 +0,0 @@
1
- ---
2
- id: hatch3r-context-health
3
- type: command
4
- orchestrator: false
5
- description: Monitor conversation context health, detect degradation, and auto-suggest fresh context or sub-agent delegation
6
- tags: [maintenance]
7
- quality_charter: agents/shared/quality-charter.md
8
- efficiency_patterns: agents/shared/efficiency-patterns.md
9
- cache_friendly: true
10
- parallel_tool_default: true
11
- ---
12
-
13
- ## §0 Detect Ambiguity (P8 B1)
14
-
15
- Before any action, scan the user's request and provided context for unresolved questions in scope, acceptance criteria, irreversibility, or constraint conflicts (contradictory inputs, missing target, unknown convention). If any are found, ask the user via the platform-native question tool per `agents/shared/user-question-protocol.md` — do not proceed under silent assumption. This is the default path, not an exception. Acceptable to proceed without asking ONLY when scope is single-target, single-concern, and the brief alone is testable. Any residual ambiguity discovered mid-workflow invokes the same protocol.
16
-
17
- ## Agent Pipeline
18
-
19
- This command monitors context health and recommends delegation. It does not spawn sub-agents directly — it recommends when the orchestrator should delegate to sub-agents due to context degradation.
20
-
21
- # Context Health — Conversation Context Monitoring
22
-
23
- Monitor and maintain healthy conversation context during long-running agent sessions. Detects context degradation before it impacts output quality and recommends corrective actions.
24
-
25
- ---
26
-
27
- ## Context Health Indicators
28
-
29
- ### Degradation Signals
30
-
31
- | Signal | Detection Method | Default Threshold |
32
- |--------|-----------------|-------------------|
33
- | Conversation depth | Count user/assistant turns | > 30 turns |
34
- | Token accumulation | Estimate total context tokens | > 80% of model context window |
35
- | Topic drift | Compare current task to original issue scope | Cosine similarity < 0.6 |
36
- | Repeated errors | Track consecutive failed attempts | > 2 failures on same task |
37
- | File staleness | Track time since last file re-read | > 20 turns since last read |
38
- | Tool failure rate | Track tool call success/failure ratio | > 30% failure rate |
39
-
40
- ### Model-Aware Threshold Profiles
41
-
42
- Different models have different context window sizes and degradation characteristics. The default thresholds above assume a large-context model. When the active model is known, apply the matching profile to adjust thresholds dynamically.
43
-
44
- | Model Tier | Context Window | Token Warning | Turn Limit | File Staleness |
45
- |-----------|---------------|---------------|------------|----------------|
46
- | Small (< 32K) | ~32K tokens | > 60% of window | > 15 turns | > 10 turns |
47
- | Medium (32K--128K) | ~128K tokens | > 70% of window | > 25 turns | > 15 turns |
48
- | Large (128K--200K) | ~200K tokens | > 80% of window | > 30 turns | > 20 turns |
49
- | Extended (> 200K) | 200K+ tokens | > 85% of window | > 40 turns | > 25 turns |
50
-
51
- **Profile resolution:**
52
-
53
- 1. Check `models` in `hatch.json` for the configured model. If a model name or tier is specified, use the matching profile.
54
- 2. If no model is configured, default to the **Large** profile (backward-compatible with existing thresholds).
55
- 3. When the runtime reports the model name (e.g., via API response headers or tool metadata), map it to the appropriate tier using known model context sizes.
56
- 4. Log the active profile at the start of each health check: `"Context health using <tier> profile (<window_size> tokens)"`.
57
-
58
- **Custom thresholds:** If `hatch.json` includes a `contextHealth` section with explicit thresholds, those values override the model-aware profile. This allows teams to tune thresholds for their specific workflow patterns.
59
-
60
- ### Health Levels
61
-
62
- | Level | Status | Action |
63
- |-------|--------|--------|
64
- | Green | Healthy (< 50% indicators triggered) | Continue normally |
65
- | Yellow | Degrading (50-70% indicators triggered) | Refresh key context, summarize progress |
66
- | Orange | At risk (70-90% indicators triggered) | Delegate remaining work to sub-agent |
67
- | Red | Degraded (> 90% indicators triggered) | Stop, create checkpoint, spawn fresh agent |
68
-
69
- ## Monitoring Protocol
70
-
71
- ### Passive Monitoring (Always Active)
72
-
73
- Agents should self-assess context health at natural breakpoints:
74
- - After completing each sub-task or implementation step
75
- - Before starting a new file or module
76
- - After receiving an error or unexpected result
77
- - Every 10 conversation turns
78
-
79
- ### Self-Assessment Checklist
80
-
81
- At each checkpoint, the agent evaluates:
82
- 1. **Can I accurately recall the original task requirements without re-reading?**
83
- 2. **Am I making progress or cycling on the same issue?**
84
- 3. **Are my tool calls succeeding at a reasonable rate?**
85
- 4. **Is my understanding of the codebase still current?**
86
- 5. **Have I drifted from the issue's acceptance criteria?**
87
-
88
- ### Corrective Actions
89
-
90
- #### Refresh (Yellow)
91
- - Re-read the issue body and acceptance criteria
92
- - Re-read key files that have been modified
93
- - Summarize progress so far in a structured checkpoint
94
-
95
- #### Delegate (Orange)
96
- - Create a structured handoff document with: completed work, remaining tasks, key context, file list
97
- - Spawn a sub-agent with the handoff document using the Task tool
98
- - The sub-agent starts fresh with full context window
99
-
100
- #### Checkpoint and Stop (Red)
101
- - Save a progress checkpoint: files changed, tests written, current blockers
102
- - Post a status comment on the GitHub issue with progress
103
- - Recommend the user start a new conversation for the remaining work
104
-
105
- ## Integration with Board Pickup
106
-
107
- When `board-pickup` operates in auto-advance mode:
108
- - Context health is checked between each issue
109
- - If health drops to Orange, the current issue is completed and a fresh agent handles the next one
110
- - If health drops to Red mid-issue, the issue is marked as PARTIAL and moved back to Ready
111
-
112
- ## Output Format
113
-
114
- ```
115
- ## Context Health Check
116
-
117
- **Level:** GREEN | YELLOW | ORANGE | RED
118
-
119
- **Indicators:**
120
- - Conversation depth: {turns} / 30
121
- - Token usage: ~{estimated}% of context window
122
- - Topic coherence: {assessment}
123
- - Error rate: {n} failures in last {m} operations
124
- - File staleness: {n} files not re-read in {m} turns
125
-
126
- **Recommendation:** {CONTINUE | REFRESH | DELEGATE | CHECKPOINT}
127
-
128
- **Action taken:** {what corrective action was performed, if any}
129
- ```
130
-
131
- ---
132
-
133
- ## Error Handling
134
-
135
- - **Self-assessment failure:** If the agent cannot determine its own health level, default to Yellow and perform a context refresh.
136
- - **Delegation failure:** If sub-agent spawn fails, fall back to Checkpoint and Stop (Red protocol).
137
- - **Board integration failure:** Log warning and continue. Context health operates independently of board state.
138
-
139
- ---
140
-
141
- ## Guardrails
142
-
143
- - **Never ignore Red status.** A Red assessment always results in a checkpoint and stop.
144
- - **Do not inflate health.** When uncertain, round toward the more degraded level.
145
- - **Passive monitoring is mandatory** during board-pickup auto-advance mode.
146
- - **Handoff documents must be complete.** Never delegate without listing completed work, remaining tasks, key context, and file list.
147
- - **Do not expand scope during refresh.** Re-reading context is not an invitation to add new tasks.
@@ -1,163 +0,0 @@
1
- ---
2
- id: hatch3r-cost-tracking
3
- type: command
4
- orchestrator: false
5
- description: Track and report token usage and estimated costs across agent workflows and board operations
6
- tags: [maintenance]
7
- quality_charter: agents/shared/quality-charter.md
8
- efficiency_patterns: agents/shared/efficiency-patterns.md
9
- cache_friendly: true
10
- parallel_tool_default: true
11
- ---
12
- ## Agent Pipeline
13
-
14
- This command tracks token usage and costs. It does not spawn sub-agents directly — it monitors sub-agent usage across the session.
15
-
16
- # Cost Tracking — Token Usage and Cost Reporting
17
-
18
- Track token consumption and estimated costs across sub-agent workflows, board operations, and development sessions. Provides visibility into AI usage patterns and enforces cost guardrails.
19
-
20
- ---
21
-
22
- ## Cost Tracking Model
23
-
24
- ### Token Estimation
25
-
26
- Since exact token counts are not always available from the runtime, use estimation:
27
-
28
- | Content Type | Estimation Rule |
29
- |-------------|----------------|
30
- | User message | ~4 characters per token |
31
- | Assistant response | ~4 characters per token |
32
- | Tool call (input) | JSON stringified length / 4 |
33
- | Tool call (output) | Response length / 4 |
34
- | File read | File character count / 4 |
35
- | Web search | ~500 tokens per search |
36
-
37
- ### Cost Estimation
38
-
39
- | Model Tier | Input (per 1M tokens) | Output (per 1M tokens) |
40
- |-----------|----------------------|----------------------|
41
- | Fast | $0.25 | $1.00 |
42
- | Standard | $3.00 | $15.00 |
43
- | Premium | $15.00 | $75.00 |
44
-
45
- These are reference rates — update based on actual provider pricing.
46
-
47
- ## Tracking Scope
48
-
49
- ### Per-Issue Tracking
50
- - Total tokens consumed implementing an issue
51
- - Breakdown: planning vs implementation vs testing vs review
52
- - Sub-agent token usage (each sub-agent reports independently)
53
- - Estimated cost at current model pricing
54
-
55
- ### Per-Session Tracking
56
- - Total tokens in the current conversation
57
- - Running cost estimate
58
- - Comparison to session budget (if configured)
59
- - Warning at 50%, 75%, 90% of budget
60
-
61
- ### Board Operation Tracking
62
- - Tokens consumed per board-pickup cycle
63
- - Tokens per issue type (bug fix vs feature vs refactor)
64
- - Historical trends across sessions
65
- - Average cost per completed issue
66
-
67
- ## Cost Guardrails
68
-
69
- ### Budget Configuration
70
-
71
- Configure in `hatch.json`:
72
- ```json
73
- {
74
- "costTracking": {
75
- "sessionBudget": 10.00,
76
- "issueBudget": 5.00,
77
- "epicBudget": 50.00,
78
- "currency": "USD",
79
- "warningThresholds": [0.5, 0.75, 0.9],
80
- "hardStop": true
81
- }
82
- }
83
- ```
84
-
85
- ### Default Budgets
86
-
87
- When `hatch.json` has no `costTracking` section, the following defaults are applied automatically. These defaults provide baseline guardrails without requiring explicit configuration.
88
-
89
- | Budget Type | Default Value | Rationale |
90
- |------------|--------------|-----------|
91
- | `sessionBudget` | $10.00 | Covers a typical multi-issue development session (~3-4 issues at ~$3 each, with headroom) |
92
- | `issueBudget` | $5.00 | Accommodates the full 4-phase pipeline (Research + Implement + Review + Quality) for a standard task |
93
- | `epicBudget` | $25.00 | Covers ~5 sub-issues with shared overhead for batch coherence assessment |
94
- | `warningThresholds` | [0.5, 0.75, 0.9] | Progressive alerts at 50%, 75%, and 90% of budget |
95
- | `hardStop` | false | Defaults to soft warnings (log + alert) rather than blocking. Teams can opt into hard stops explicitly. |
96
-
97
- These defaults activate reporting mode: budget warnings are surfaced to the user at each threshold, but work is not halted unless `hardStop` is explicitly set to `true`. To override any default, add the corresponding key to `costTracking` in `hatch.json`.
98
-
99
- ### Enforcement
100
-
101
- | Threshold | Action |
102
- |-----------|--------|
103
- | 50% of budget | Log warning, continue |
104
- | 75% of budget | Alert user, suggest optimization |
105
- | 90% of budget | Strong warning, recommend delegation or checkpoint |
106
- | 100% of budget | Stop (if hardStop=true) or alert and continue |
107
-
108
- ### Cost Optimization Strategies
109
-
110
- When approaching budget limits:
111
- 1. **Reduce context**: Summarize long conversations, drop irrelevant file content
112
- 2. **Delegate to faster models**: Use fast-tier sub-agents for routine tasks
113
- 3. **Cache results**: Avoid re-reading unchanged files
114
- 4. **Batch operations**: Combine multiple small tool calls into fewer larger ones
115
- 5. **Scope reduction**: Break remaining work into a new issue for a fresh session
116
-
117
- ## Output Format
118
-
119
- ```
120
- ## Cost Report: {scope}
121
-
122
- **Period:** {session/issue/sprint}
123
-
124
- **Token Usage:**
125
- - Input tokens: ~{n}
126
- - Output tokens: ~{n}
127
- - Total tokens: ~{n}
128
-
129
- **Estimated Cost:** ${amount}
130
-
131
- **Budget Status:** {amount} / {budget} ({percentage}%)
132
-
133
- **Breakdown:**
134
-
135
- | Phase | Tokens | Cost | % of Total |
136
- |-------|--------|------|-----------|
137
- | Planning | ~{n} | ${x} | {%} |
138
- | Implementation | ~{n} | ${x} | {%} |
139
- | Testing | ~{n} | ${x} | {%} |
140
- | Review | ~{n} | ${x} | {%} |
141
- | Sub-agents | ~{n} | ${x} | {%} |
142
-
143
- **Optimization Opportunities:**
144
- - {suggestions based on usage patterns}
145
- ```
146
-
147
- ---
148
-
149
- ## Error Handling
150
-
151
- - **Token estimation inaccuracy:** Estimates may drift ±30% from actual usage. Always present values with `~` prefix.
152
- - **Missing budget config:** If `hatch.json` has no `costTracking` section, operate in report-only mode (no guardrails enforced).
153
- - **Sub-agent reporting failure:** If a sub-agent does not report token usage, estimate from its output length and log a warning.
154
-
155
- ---
156
-
157
- ## Guardrails
158
-
159
- - **Never suppress budget warnings.** All threshold alerts must be surfaced to the user.
160
- - **Hard stop is respected.** When `hardStop: true` and budget is exhausted, the agent must stop and checkpoint.
161
- - **Estimates are clearly labeled.** Never present estimated costs as exact figures.
162
- - **Budget config is read-only.** This command reads budget configuration but never modifies `hatch.json`.
163
- - **Cost data does not leak across sessions.** Each session starts with a fresh cost counter unless explicitly aggregating historical data.
@@ -1,188 +0,0 @@
1
- ---
2
- id: hatch3r-dep-audit
3
- type: command
4
- orchestrator: false
5
- description: Scan, assess, and upgrade npm dependencies. Categorizes findings by severity (CVEs, major/minor/patch outdated), researches migration paths, upgrades packages one at a time with testing, and creates tracking issues for unaddressed items.
6
- tags: [maintenance, security]
7
- quality_charter: agents/shared/quality-charter.md
8
- efficiency_patterns: agents/shared/efficiency-patterns.md
9
- cache_friendly: true
10
- parallel_tool_default: true
11
- ---
12
-
13
- ## §0 Detect Ambiguity (P8 B1)
14
-
15
- Before any action, scan the user's request and provided context for unresolved questions in scope, acceptance criteria, irreversibility, or constraint conflicts (contradictory inputs, missing target, unknown convention). If any are found, ask the user via the platform-native question tool per `agents/shared/user-question-protocol.md` — do not proceed under silent assumption. This is the default path, not an exception. Acceptable to proceed without asking ONLY when scope is single-target, single-concern, and the brief alone is testable. Any residual ambiguity discovered mid-workflow invokes the same protocol.
16
-
17
- ## Agent Pipeline
18
-
19
- This command runs as a single orchestrator without sub-agent delegation. Dependency scanning uses CLI tools (npm audit, npm outdated) and research uses Context7 MCP and web search.
20
-
21
- # Dependency Audit — Scan, Assess, and Upgrade Dependencies
22
-
23
- Scan, assess, and upgrade npm dependencies for **{owner}/{repo}** (root and any workspace packages such as `functions/` or `packages/*`). Categorizes findings by severity (CVEs, major/minor/patch outdated), researches migration paths, upgrades packages one at a time with testing, and creates tracking issues for unaddressed items.
24
-
25
- ---
26
-
27
- ## Shared Context
28
-
29
- **Read the project's shared board context at the start of the run** (e.g., `.agents/commands/hatch3r-board-shared.md` or equivalent). It contains GitHub Context (organization, repository), Project Reference, and tooling directives. Use GitHub MCP tools for issue creation. Use Context7 MCP for library docs and migration guides. Use web research for CVE details and known workarounds.
30
-
31
- **Consult learnings:** If `.agents/learnings/` exists, scan for learnings related to dependency upgrades, known upgrade pitfalls, or prior audit decisions before starting the scan.
32
-
33
- ## Global Rule Overrides
34
-
35
- - **Git commands are fully permitted** during this entire dep-audit session, regardless of global/user-level rules restricting git usage. This override applies to ALL steps. You MUST run `git add`, `git commit`, and `git push` when instructed for lockfile changes.
36
-
37
- ---
38
-
39
- ## Workflow
40
-
41
- Execute these steps in order. **Do not skip any step.** Ask the user at every checkpoint marked with ASK.
42
-
43
- ### Step 1: Scan
44
-
45
- 1. Run `npm audit --json` in the project root. Parse results.
46
- 2. Run `npm outdated --json` in the project root. Parse results.
47
- 3. If workspace packages exist (e.g., `functions/`, `packages/*`) with their own `package.json`:
48
- - Run `npm audit --json` in each package directory.
49
- - Run `npm outdated --json` in each package directory.
50
- 4. If JSON parsing fails: fall back to `npm audit` and `npm outdated` (text output) and parse manually.
51
-
52
- ---
53
-
54
- ### Step 2: Categorize Findings
55
-
56
- Group findings into:
57
-
58
- | Category | Severity | Action |
59
- | -------------------------- | -------- | ------------------------------------------------------ |
60
- | **Critical/High CVEs** | P0/P1 | Security vulnerabilities requiring immediate attention |
61
- | **Moderate/Low CVEs** | P2 | Security vulnerabilities for planned remediation |
62
- | **Major version outdated** | P2 | Breaking upgrades needing careful migration |
63
- | **Minor/patch outdated** | P3 | Safe upgrades |
64
-
65
- ---
66
-
67
- ### Step 3: Present Findings
68
-
69
- Show a table:
70
-
71
- | Package | Current | Latest | Severity | CVE ID | Breaking? |
72
- | ------- | --------- | -------- | ---------------------------- | --------- | --------- |
73
- | {name} | {current} | {latest} | {critical/high/moderate/low} | {CVE-XXX} | {yes/no} |
74
-
75
- Include a brief summary of breaking changes for major versions.
76
-
77
- **ASK:** "Which categories to address? (a) all, (b) critical/high CVEs only, (c) specific packages, (d) skip and create tracking issues only"
78
-
79
- ---
80
-
81
- ### Step 4: Research
82
-
83
- For each selected package:
84
-
85
- 1. Use **Context7 MCP**: `resolve-library-id` then `query-docs` to check migration guides and breaking changes.
86
- 2. Use **web research** for CVE details and known workarounds.
87
- 3. Summarize migration path and risks for the user.
88
-
89
- **ASK:** "Research complete for selected packages. Proceed with upgrades? (yes / review specific package / abort)"
90
-
91
- ---
92
-
93
- ### Step 5: Upgrade
94
-
95
- For each selected package, **one at a time**:
96
-
97
- 1. Install the new version in the appropriate directory (root or workspace package):
98
-
99
- ```bash
100
- npm install {package}@{version}
101
- ```
102
-
103
- 2. Run quality checks (adapt to project conventions):
104
-
105
- ```bash
106
- npm run lint && npm run typecheck && npm run test
107
- ```
108
-
109
- 3. If tests fail:
110
- - Assess whether it's a breaking change needing code updates or a genuine regression.
111
- - **STOP** and report the failure.
112
- - **ASK:** "Tests failed for {package}. (a) roll back and create tracking issue, (b) attempt code fixes, (c) skip this package and continue"
113
-
114
- 4. If code changes are needed (e.g., API changes):
115
-
116
- **ASK:** "Code changes required for {package}. Proceed with fixes? (yes / roll back and create tracking issue)"
117
-
118
- 5. If upgrade succeeds: commit lockfile changes:
119
-
120
- ```bash
121
- git add package-lock.json
122
- # or package-specific lockfile if applicable
123
- git commit -m "chore(deps): upgrade {package} to {version}"
124
- ```
125
-
126
- 6. Proceed to the next package in the selected set.
127
-
128
- ---
129
-
130
- ### Step 6: Create Tracking Issues
131
-
132
- For any CVEs or outdated packages **NOT** addressed in this session:
133
-
134
- 1. Create GitHub issues via `issue_write` with:
135
- - **Owner:** from shared context
136
- - **Repo:** from shared context
137
- - **Labels:** `type:bug`, `area:security`, `priority:{based on severity}`, `executor:agent`
138
- - **Title:** e.g., `[CVE] {package}: {CVE-ID} - {brief description}` or `[Deps] Upgrade {package} to {version}`
139
- - **Body:** Include package name, current version, target version, severity, CVE ID (if applicable), and migration notes from research.
140
-
141
- 2. Use severity-based priority:
142
- - Critical/High → `priority:p0` or `priority:p1`
143
- - Moderate/Low → `priority:p2`
144
- - Major outdated → `priority:p2`
145
- - Minor/patch → `priority:p3`
146
-
147
- **ASK:** "Tracking issues created for {N} unaddressed items. Proceed to summary? (yes / review issues)"
148
-
149
- ---
150
-
151
- ### Step 7: Summary
152
-
153
- Present a report:
154
-
155
- ```
156
- ## Dependency Audit Summary
157
-
158
- ### Upgraded
159
- - {package} {old} → {new}
160
- - ...
161
-
162
- ### Tracking Issues Created
163
- - #{N} — [CVE] {package}: {CVE-ID}
164
- - #{N} — [Deps] Upgrade {package} to {version}
165
- - ...
166
-
167
- ### Remaining Technical Debt
168
- - {package} — {reason not addressed}
169
- - ...
170
- ```
171
-
172
- ---
173
-
174
- ## Error Handling
175
-
176
- - **npm audit parse failure:** Fall back to `npm audit` text output. Parse manually.
177
- - **npm install failure:** Roll back. `git checkout package.json package-lock.json` (and workspace equivalents if applicable). Report error.
178
- - **Test failure:** Stop. Do not proceed with that package. Report and ask user (roll back / fix / skip).
179
-
180
- ---
181
-
182
- ## Guardrails
183
-
184
- - **Never ignore critical CVEs without creating a tracking issue.** Every critical/high CVE must either be fixed or have a tracking issue.
185
- - **Always test after each upgrade.** Do not batch upgrades without testing.
186
- - **Never upgrade all packages at once.** One package at a time.
187
- - **Always commit lockfile changes** after successful upgrades.
188
- - **ASK at every checkpoint.** Do not proceed without user confirmation.
@@ -1,194 +0,0 @@
1
- ---
2
- id: hatch3r-recipe
3
- type: command
4
- orchestrator: false
5
- description: Execute shareable workflow recipes that compose agents, skills, and commands into guided sequences for common development scenarios
6
- tags: [core]
7
- quality_charter: agents/shared/quality-charter.md
8
- efficiency_patterns: agents/shared/efficiency-patterns.md
9
- cache_friendly: true
10
- parallel_tool_default: true
11
- ---
12
-
13
- ## §0 Detect Ambiguity (P8 B1)
14
-
15
- Before any action, scan the user's request and provided context for unresolved questions in scope, acceptance criteria, irreversibility, or constraint conflicts (contradictory inputs, missing target, unknown convention). If any are found, ask the user via the platform-native question tool per `agents/shared/user-question-protocol.md` — do not proceed under silent assumption. This is the default path, not an exception. Acceptable to proceed without asking ONLY when scope is single-target, single-concern, and the brief alone is testable. Any residual ambiguity discovered mid-workflow invokes the same protocol.
16
-
17
- ## Agent Pipeline
18
-
19
- This command orchestrates other commands and skills as recipe steps. It does not spawn sub-agents directly — the composed commands handle their own agent delegation.
20
-
21
- # Recipe System — Composable Workflow Orchestration
22
-
23
- Execute predefined or custom workflow recipes that chain hatch3r's agents, skills, and commands into repeatable guided sequences for common development scenarios.
24
-
25
- ---
26
-
27
- ## Recipe Format
28
-
29
- Recipes are YAML files stored in `.hatch3r/recipes/` (project-level) or `~/.hatch3r/recipes/` (user-level).
30
-
31
- ### Recipe Schema
32
-
33
- ```yaml
34
- name: greenfield-setup
35
- version: 1.0.0
36
- description: Full greenfield project setup from spec to first PR
37
- author: hatch3r
38
- tags: [setup, greenfield, planning]
39
-
40
- prerequisites:
41
- - GitHub repository initialized
42
- - hatch3r initialized (hatch3r init)
43
-
44
- variables:
45
- project_name:
46
- description: Project name
47
- required: true
48
- tech_stack:
49
- description: Primary tech stack
50
- required: true
51
- options: [react, vue, next, express, fastify]
52
-
53
- steps:
54
- - id: generate-spec
55
- name: Generate Project Specification
56
- command: hatch3r-project-spec
57
- inputs:
58
- project_name: "{{ project_name }}"
59
- checkpoint: true
60
-
61
- - id: init-board
62
- name: Initialize Project Board
63
- command: hatch3r-board-init
64
- depends_on: [generate-spec]
65
- checkpoint: true
66
-
67
- - id: fill-board
68
- name: Fill Board from Specification
69
- command: hatch3r-board-fill
70
- depends_on: [init-board]
71
-
72
- - id: security-baseline
73
- name: Security Baseline Audit
74
- command: hatch3r-security-audit
75
- depends_on: [fill-board]
76
- parallel_with: [a11y-baseline]
77
-
78
- - id: a11y-baseline
79
- name: Accessibility Baseline
80
- skill: hatch3r-a11y-audit
81
- depends_on: [fill-board]
82
- parallel_with: [security-baseline]
83
-
84
- - id: first-pickup
85
- name: Pick Up First Issue
86
- command: hatch3r-board-pickup
87
- depends_on: [security-baseline, a11y-baseline]
88
- checkpoint: true
89
-
90
- completion:
91
- message: "Project {{ project_name }} is set up with board, security audit, and first issue in progress."
92
- next_steps:
93
- - Continue with `board-pickup` to implement remaining issues
94
- - Run `hatch3r-dep-audit` for dependency security baseline
95
- ```
96
-
97
- ## Built-in Recipes
98
-
99
- ### 1. Greenfield Setup
100
- Full project initialization: spec -> board -> audit -> first issue.
101
-
102
- ### 2. Legacy Onboarding
103
- Codebase analysis -> codebase map -> board setup -> healthcheck -> first improvements.
104
-
105
- ### 3. Security Hardening
106
- Security audit -> dependency audit -> findings triage -> hardening implementation.
107
-
108
- ### 4. Performance Sprint
109
- Performance audit -> budget review -> optimization planning -> implementation -> verification.
110
-
111
- ### 5. Release Preparation
112
- Healthcheck -> test validation -> security scan -> changelog -> release.
113
-
114
- ### 6. Quality Gate
115
- Lint fix -> test coverage review -> a11y audit -> perf audit -> security scan.
116
-
117
- ## Recipe Execution
118
-
119
- ### Workflow
120
-
121
- 1. **Parse recipe**: Load and validate YAML schema, resolve variable references.
122
- 2. **Check prerequisites**: Verify all prerequisites are met before starting.
123
- 3. **Collect variables**: Prompt user for required variables (or accept via CLI args).
124
- 4. **Build execution graph**: Resolve `depends_on` and `parallel_with` into a dependency DAG.
125
- 5. **Execute steps**: Run steps in dependency order, parallelizing where possible.
126
- 6. **Handle checkpoints**: At `checkpoint: true` steps, pause and present progress to user.
127
- 7. **Report completion**: Show completion message and next steps.
128
-
129
- ### Execution Modes
130
-
131
- | Mode | Behavior |
132
- |------|----------|
133
- | Interactive (default) | Pause at checkpoints, show progress |
134
- | Auto (`--auto`) | Skip checkpoints, run all steps autonomously |
135
- | Dry-run (`--dry-run`) | Show execution plan without running |
136
- | Resume (`--resume`) | Continue from last checkpoint |
137
-
138
- ### Error Handling
139
-
140
- - **Step failure**: Stop execution, show error, offer retry or skip.
141
- - **Dependency failure**: Skip dependent steps, mark as blocked.
142
- - **Partial completion**: Save progress, allow resume from last successful step.
143
-
144
- ## Custom Recipes
145
-
146
- ### Creating a Recipe
147
-
148
- 1. Create a YAML file in `.hatch3r/recipes/your-recipe.yaml`
149
- 2. Follow the recipe schema above
150
- 3. Test with `--dry-run` mode
151
- 4. Share by including in the project repository
152
-
153
- ### Recipe Composition
154
-
155
- Recipes can reference other recipes as steps:
156
- ```yaml
157
- steps:
158
- - id: security
159
- recipe: security-hardening
160
- inputs:
161
- scope: full
162
- ```
163
-
164
- ## Output Format
165
-
166
- ```
167
- ## Recipe Execution: {recipe_name}
168
-
169
- **Status:** COMPLETE | PARTIAL | FAILED
170
-
171
- **Steps:**
172
-
173
- | # | Step | Status | Duration | Notes |
174
- |---|------|--------|----------|-------|
175
- | 1 | Generate Spec | DONE | 5m | Spec created at docs/spec.md |
176
- | 2 | Init Board | DONE | 2m | Board created with 8 columns |
177
- | 3 | Fill Board | DONE | 8m | 24 issues created |
178
- | 4 | Security Audit | DONE | 3m | Audit epic #45 created |
179
- | 5 | First Pickup | IN PROGRESS | - | Working on #46 |
180
-
181
- **Variables Used:**
182
- - project_name: {value}
183
- - tech_stack: {value}
184
-
185
- **Next Steps:**
186
- - {recommendations}
187
- ```
188
-
189
- ## Guardrails
190
-
191
- - Recipes must not bypass safety checkpoints for destructive operations
192
- - Recipe files are validated against the schema before execution
193
- - Circular dependencies in the execution graph are detected and rejected
194
- - Variable injection is sanitized to prevent command injection