hatch3r 1.8.0 → 2.0.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 (396) hide show
  1. package/README.md +68 -178
  2. package/dist/cli/index.js +26966 -15942
  3. package/{agents → dist/content/agents}/hatch3r-architect.md +39 -9
  4. package/dist/content/agents/hatch3r-brownfield-spec.md +254 -0
  5. package/{agents → dist/content/agents}/hatch3r-ci-watcher.md +10 -3
  6. package/{agents → dist/content/agents}/hatch3r-context-rules.md +24 -6
  7. package/{agents → dist/content/agents}/hatch3r-creator.md +78 -39
  8. package/dist/content/agents/hatch3r-dependency-drafter.md +162 -0
  9. package/{agents → dist/content/agents}/hatch3r-devops.md +14 -4
  10. package/{agents → dist/content/agents}/hatch3r-docs-writer.md +11 -1
  11. package/dist/content/agents/hatch3r-edge-case-analyst.md +134 -0
  12. package/dist/content/agents/hatch3r-enhancability.md +192 -0
  13. package/{agents → dist/content/agents}/hatch3r-fixer.md +61 -10
  14. package/dist/content/agents/hatch3r-greenfield-spec.md +256 -0
  15. package/{agents → dist/content/agents}/hatch3r-handoff-loader.md +40 -14
  16. package/{agents → dist/content/agents}/hatch3r-handoff-preparer.md +17 -8
  17. package/dist/content/agents/hatch3r-implementer.md +409 -0
  18. package/dist/content/agents/hatch3r-incident-responder.md +96 -0
  19. package/dist/content/agents/hatch3r-learnings-loader.md +377 -0
  20. package/{agents → dist/content/agents}/hatch3r-lint-fixer.md +16 -4
  21. package/dist/content/agents/hatch3r-maintainability.md +183 -0
  22. package/dist/content/agents/hatch3r-pack-installer.md +113 -0
  23. package/dist/content/agents/hatch3r-performance.md +179 -0
  24. package/dist/content/agents/hatch3r-reliability.md +193 -0
  25. package/{agents → dist/content/agents}/hatch3r-researcher.md +30 -7
  26. package/dist/content/agents/hatch3r-reviewer.md +364 -0
  27. package/dist/content/agents/hatch3r-scalability.md +162 -0
  28. package/dist/content/agents/hatch3r-security.md +197 -0
  29. package/dist/content/agents/hatch3r-testability.md +204 -0
  30. package/dist/content/agents/hatch3r-ui.md +175 -0
  31. package/dist/content/agents/hatch3r-ux.md +160 -0
  32. package/{agents → dist/content/agents}/modes/requirements-elicitation.md +1 -1
  33. package/{agents → dist/content/agents}/modes/user-flows.md +2 -2
  34. package/dist/content/agents/shared/clarification-default-block.md +44 -0
  35. package/dist/content/agents/shared/confidence-gate.md +42 -0
  36. package/dist/content/agents/shared/cq-specialist-roster.md +26 -0
  37. package/{agents → dist/content/agents}/shared/efficiency-patterns.md +32 -1
  38. package/{agents → dist/content/agents}/shared/external-knowledge.md +1 -1
  39. package/{agents → dist/content/agents}/shared/injection-patterns.md +19 -8
  40. package/dist/content/agents/shared/principles.md +60 -0
  41. package/{agents → dist/content/agents}/shared/prompt-structure.md +7 -1
  42. package/{agents → dist/content/agents}/shared/quality-charter.md +73 -9
  43. package/dist/content/agents/shared/quality-specialist-frame.md +141 -0
  44. package/dist/content/agents/shared/rigor-contract.md +151 -0
  45. package/dist/content/agents/shared/severity-mapping.md +92 -0
  46. package/dist/content/agents/shared/triage-vocabulary.md +46 -0
  47. package/{agents → dist/content/agents}/shared/user-content-templates.md +40 -14
  48. package/dist/content/agents/shared/user-question-protocol.md +139 -0
  49. package/{checks → dist/content/checks}/README.md +5 -0
  50. package/{checks → dist/content/checks}/accessibility.md +14 -7
  51. package/{checks → dist/content/checks}/code-quality.md +1 -1
  52. package/{checks → dist/content/checks}/performance.md +7 -4
  53. package/{checks → dist/content/checks}/security.md +6 -6
  54. package/{checks → dist/content/checks}/testing.md +1 -1
  55. package/{commands → dist/content/commands}/board/pickup-azure-devops.md +1 -1
  56. package/{commands → dist/content/commands}/board/pickup-delegation-multi.md +41 -14
  57. package/{commands → dist/content/commands}/board/pickup-delegation.md +10 -8
  58. package/{commands → dist/content/commands}/board/pickup-github.md +1 -1
  59. package/{commands → dist/content/commands}/board/pickup-gitlab.md +1 -1
  60. package/{commands → dist/content/commands}/board/pickup-modes.md +1 -0
  61. package/{commands → dist/content/commands}/board/pickup-post-impl.md +2 -2
  62. package/{commands → dist/content/commands}/board/shared-azure-devops.md +1 -1
  63. package/{commands → dist/content/commands}/board/shared-github.md +2 -2
  64. package/{commands → dist/content/commands}/board/shared-gitlab.md +1 -1
  65. package/{commands → dist/content/commands}/hatch3r-api-spec.md +80 -3
  66. package/dist/content/commands/hatch3r-auth-scaffold.md +250 -0
  67. package/{commands → dist/content/commands}/hatch3r-benchmark.md +91 -8
  68. package/{commands → dist/content/commands}/hatch3r-board-fill.md +104 -18
  69. package/{commands → dist/content/commands}/hatch3r-board-pickup.md +99 -15
  70. package/dist/content/commands/hatch3r-bug-pipeline.md +240 -0
  71. package/{commands → dist/content/commands}/hatch3r-bug-plan.md +84 -8
  72. package/{commands → dist/content/commands}/hatch3r-codebase-map.md +82 -6
  73. package/{commands → dist/content/commands}/hatch3r-create.md +116 -18
  74. package/{commands → dist/content/commands}/hatch3r-debug.md +112 -24
  75. package/dist/content/commands/hatch3r-diagnose.md +238 -0
  76. package/{commands → dist/content/commands}/hatch3r-feature-plan.md +130 -10
  77. package/dist/content/commands/hatch3r-handoff.md +213 -0
  78. package/{commands → dist/content/commands}/hatch3r-healthcheck.md +106 -6
  79. package/dist/content/commands/hatch3r-incident-response.md +228 -0
  80. package/{commands → dist/content/commands}/hatch3r-migration-plan.md +81 -5
  81. package/{commands → dist/content/commands}/hatch3r-onboard.md +100 -9
  82. package/dist/content/commands/hatch3r-pack-install.md +243 -0
  83. package/{commands → dist/content/commands}/hatch3r-pr-resolve.md +114 -31
  84. package/{commands → dist/content/commands}/hatch3r-project-spec.md +85 -9
  85. package/{commands → dist/content/commands}/hatch3r-quick-change.md +115 -20
  86. package/{commands → dist/content/commands}/hatch3r-refactor-plan.md +82 -6
  87. package/dist/content/commands/hatch3r-release.md +401 -0
  88. package/{commands → dist/content/commands}/hatch3r-revision.md +104 -18
  89. package/{commands → dist/content/commands}/hatch3r-roadmap.md +94 -12
  90. package/{commands → dist/content/commands}/hatch3r-security-audit.md +107 -7
  91. package/dist/content/commands/hatch3r-slo-scaffold.md +246 -0
  92. package/dist/content/commands/hatch3r-spec.md +216 -0
  93. package/{commands → dist/content/commands}/hatch3r-test-plan.md +90 -14
  94. package/dist/content/commands/hatch3r-workflow.md +628 -0
  95. package/{commands → dist/content/commands}/revision/revision-delegation.md +8 -7
  96. package/{commands → dist/content/commands}/revision/revision-modes.md +49 -4
  97. package/{commands → dist/content/commands}/revision/revision-quality.md +12 -9
  98. package/dist/content/commands/shared/orchestration-frame.md +119 -0
  99. package/{github-agents → dist/content/github-agents}/hatch3r-docs-agent.md +22 -2
  100. package/dist/content/github-agents/hatch3r-lint-agent.md +66 -0
  101. package/{github-agents → dist/content/github-agents}/hatch3r-security-agent.md +22 -2
  102. package/{github-agents → dist/content/github-agents}/hatch3r-test-agent.md +22 -2
  103. package/{hooks → dist/content/hooks}/hatch3r-ci-failure.md +3 -3
  104. package/{hooks → dist/content/hooks}/hatch3r-file-save.md +4 -4
  105. package/{hooks → dist/content/hooks}/hatch3r-post-merge.md +1 -1
  106. package/{hooks → dist/content/hooks}/hatch3r-pre-commit.md +1 -1
  107. package/{hooks → dist/content/hooks}/hatch3r-pre-push.md +7 -7
  108. package/dist/content/hooks/hatch3r-review-loop-cap.md +52 -0
  109. package/{hooks → dist/content/hooks}/hatch3r-session-start.md +3 -3
  110. package/{mcp → dist/content/mcp}/mcp.json +7 -5
  111. package/{rules → dist/content/rules}/hatch3r-accessibility-standards.md +16 -3
  112. package/{rules → dist/content/rules}/hatch3r-accessibility-standards.mdc +13 -1
  113. package/dist/content/rules/hatch3r-agent-orchestration-detail.md +250 -0
  114. package/dist/content/rules/hatch3r-agent-orchestration-detail.mdc +245 -0
  115. package/dist/content/rules/hatch3r-agent-orchestration.md +250 -0
  116. package/dist/content/rules/hatch3r-agent-orchestration.mdc +245 -0
  117. package/{rules → dist/content/rules}/hatch3r-ai-evals.md +7 -5
  118. package/{rules → dist/content/rules}/hatch3r-ai-evals.mdc +5 -4
  119. package/{rules → dist/content/rules}/hatch3r-ai-ux-patterns.md +7 -3
  120. package/{rules → dist/content/rules}/hatch3r-ai-ux-patterns.mdc +4 -1
  121. package/dist/content/rules/hatch3r-android-patterns.md +107 -0
  122. package/dist/content/rules/hatch3r-android-patterns.mdc +102 -0
  123. package/dist/content/rules/hatch3r-anti-duplication.md +115 -0
  124. package/dist/content/rules/hatch3r-anti-duplication.mdc +115 -0
  125. package/{rules → dist/content/rules}/hatch3r-api-design.md +5 -1
  126. package/{rules → dist/content/rules}/hatch3r-api-design.mdc +3 -0
  127. package/{rules → dist/content/rules}/hatch3r-api-versioning.md +3 -1
  128. package/{rules → dist/content/rules}/hatch3r-api-versioning.mdc +1 -0
  129. package/{rules → dist/content/rules}/hatch3r-auth-patterns.md +5 -2
  130. package/{rules → dist/content/rules}/hatch3r-auth-patterns.mdc +2 -0
  131. package/{rules → dist/content/rules}/hatch3r-browser-verification.md +8 -10
  132. package/{rules → dist/content/rules}/hatch3r-browser-verification.mdc +8 -10
  133. package/dist/content/rules/hatch3r-capability-matrix.md +108 -0
  134. package/dist/content/rules/hatch3r-capability-matrix.mdc +108 -0
  135. package/{rules → dist/content/rules}/hatch3r-ci-cd.md +9 -1
  136. package/{rules → dist/content/rules}/hatch3r-ci-cd.mdc +7 -0
  137. package/dist/content/rules/hatch3r-clarification-default.md +73 -0
  138. package/dist/content/rules/hatch3r-clarification-default.mdc +73 -0
  139. package/{rules → dist/content/rules}/hatch3r-code-standards.md +23 -47
  140. package/{rules → dist/content/rules}/hatch3r-code-standards.mdc +22 -46
  141. package/{rules → dist/content/rules}/hatch3r-component-conventions.md +4 -1
  142. package/{rules → dist/content/rules}/hatch3r-component-conventions.mdc +3 -0
  143. package/{rules → dist/content/rules}/hatch3r-container-hardening.md +13 -3
  144. package/{rules → dist/content/rules}/hatch3r-container-hardening.mdc +10 -1
  145. package/{rules → dist/content/rules}/hatch3r-contract-testing.md +3 -1
  146. package/{rules → dist/content/rules}/hatch3r-contract-testing.mdc +1 -0
  147. package/dist/content/rules/hatch3r-cost-visibility.md +135 -0
  148. package/dist/content/rules/hatch3r-cost-visibility.mdc +135 -0
  149. package/dist/content/rules/hatch3r-cq-rule-frame.md +54 -0
  150. package/dist/content/rules/hatch3r-cq-rule-frame.mdc +49 -0
  151. package/{rules → dist/content/rules}/hatch3r-data-classification.md +5 -2
  152. package/{rules → dist/content/rules}/hatch3r-data-classification.mdc +3 -1
  153. package/{rules → dist/content/rules}/hatch3r-deep-context.md +14 -14
  154. package/{rules → dist/content/rules}/hatch3r-deep-context.mdc +13 -13
  155. package/{rules → dist/content/rules}/hatch3r-dependency-management.md +18 -4
  156. package/{rules → dist/content/rules}/hatch3r-dependency-management.mdc +16 -3
  157. package/{rules → dist/content/rules}/hatch3r-design-system-detection.md +4 -2
  158. package/{rules → dist/content/rules}/hatch3r-design-system-detection.mdc +1 -0
  159. package/dist/content/rules/hatch3r-dotnet-patterns.md +104 -0
  160. package/dist/content/rules/hatch3r-dotnet-patterns.mdc +99 -0
  161. package/dist/content/rules/hatch3r-edge-case-discipline.md +65 -0
  162. package/dist/content/rules/hatch3r-edge-case-discipline.mdc +65 -0
  163. package/dist/content/rules/hatch3r-enhancability.md +147 -0
  164. package/dist/content/rules/hatch3r-enhancability.mdc +142 -0
  165. package/{rules → dist/content/rules}/hatch3r-event-schema-evolution.md +3 -1
  166. package/{rules → dist/content/rules}/hatch3r-event-schema-evolution.mdc +1 -0
  167. package/dist/content/rules/hatch3r-fan-out-discipline.md +91 -0
  168. package/dist/content/rules/hatch3r-fan-out-discipline.mdc +91 -0
  169. package/{rules → dist/content/rules}/hatch3r-feature-flags.md +2 -0
  170. package/{rules → dist/content/rules}/hatch3r-feature-flags.mdc +2 -0
  171. package/dist/content/rules/hatch3r-flutter-patterns.md +88 -0
  172. package/dist/content/rules/hatch3r-flutter-patterns.mdc +83 -0
  173. package/{rules → dist/content/rules}/hatch3r-git-conventions.md +5 -2
  174. package/{rules → dist/content/rules}/hatch3r-git-conventions.mdc +2 -0
  175. package/dist/content/rules/hatch3r-go-patterns.md +98 -0
  176. package/dist/content/rules/hatch3r-go-patterns.mdc +93 -0
  177. package/{rules → dist/content/rules}/hatch3r-handoff-readiness.md +14 -4
  178. package/{rules → dist/content/rules}/hatch3r-handoff-readiness.mdc +13 -3
  179. package/{rules → dist/content/rules}/hatch3r-i18n.md +3 -1
  180. package/{rules → dist/content/rules}/hatch3r-i18n.mdc +2 -0
  181. package/dist/content/rules/hatch3r-iteration-summary.md +108 -0
  182. package/dist/content/rules/hatch3r-iteration-summary.mdc +108 -0
  183. package/dist/content/rules/hatch3r-learning-system.md +202 -0
  184. package/dist/content/rules/hatch3r-learning-system.mdc +202 -0
  185. package/dist/content/rules/hatch3r-maintainability.md +157 -0
  186. package/dist/content/rules/hatch3r-maintainability.mdc +152 -0
  187. package/{rules → dist/content/rules}/hatch3r-migrations.md +4 -2
  188. package/{rules → dist/content/rules}/hatch3r-migrations.mdc +1 -0
  189. package/{rules → dist/content/rules}/hatch3r-observability-logging.md +2 -1
  190. package/{rules → dist/content/rules}/hatch3r-observability-logging.mdc +1 -0
  191. package/{rules → dist/content/rules}/hatch3r-observability-metrics.md +2 -1
  192. package/{rules → dist/content/rules}/hatch3r-observability-metrics.mdc +1 -0
  193. package/{rules → dist/content/rules}/hatch3r-observability-tracing.md +46 -36
  194. package/{rules → dist/content/rules}/hatch3r-observability-tracing.mdc +45 -35
  195. package/{rules → dist/content/rules}/hatch3r-operability.md +3 -1
  196. package/{rules → dist/content/rules}/hatch3r-operability.mdc +1 -0
  197. package/{rules → dist/content/rules}/hatch3r-passkey-server.md +4 -2
  198. package/{rules → dist/content/rules}/hatch3r-passkey-server.mdc +1 -0
  199. package/{rules → dist/content/rules}/hatch3r-performance-budgets.md +3 -1
  200. package/{rules → dist/content/rules}/hatch3r-performance-budgets.mdc +3 -1
  201. package/dist/content/rules/hatch3r-php-laravel-patterns.md +109 -0
  202. package/dist/content/rules/hatch3r-php-laravel-patterns.mdc +104 -0
  203. package/{rules → dist/content/rules}/hatch3r-progressive-delivery.md +5 -1
  204. package/{rules → dist/content/rules}/hatch3r-progressive-delivery.mdc +3 -0
  205. package/dist/content/rules/hatch3r-proof-model.md +131 -0
  206. package/dist/content/rules/hatch3r-proof-model.mdc +131 -0
  207. package/dist/content/rules/hatch3r-python-patterns.md +70 -0
  208. package/dist/content/rules/hatch3r-python-patterns.mdc +65 -0
  209. package/dist/content/rules/hatch3r-react-native-patterns.md +83 -0
  210. package/dist/content/rules/hatch3r-react-native-patterns.mdc +78 -0
  211. package/{rules → dist/content/rules}/hatch3r-resilience-patterns.md +3 -1
  212. package/{rules → dist/content/rules}/hatch3r-resilience-patterns.mdc +1 -0
  213. package/dist/content/rules/hatch3r-reviewer-calibration.md +84 -0
  214. package/dist/content/rules/hatch3r-reviewer-calibration.mdc +84 -0
  215. package/dist/content/rules/hatch3r-right-sizing.md +68 -0
  216. package/dist/content/rules/hatch3r-right-sizing.mdc +66 -0
  217. package/dist/content/rules/hatch3r-ruby-rails-patterns.md +111 -0
  218. package/dist/content/rules/hatch3r-ruby-rails-patterns.mdc +106 -0
  219. package/dist/content/rules/hatch3r-rust-patterns.md +107 -0
  220. package/dist/content/rules/hatch3r-rust-patterns.mdc +102 -0
  221. package/dist/content/rules/hatch3r-scalability.md +137 -0
  222. package/dist/content/rules/hatch3r-scalability.mdc +132 -0
  223. package/{rules → dist/content/rules}/hatch3r-secrets-management.md +12 -2
  224. package/{rules → dist/content/rules}/hatch3r-secrets-management.mdc +9 -0
  225. package/{rules → dist/content/rules}/hatch3r-security-patterns.md +38 -35
  226. package/{rules → dist/content/rules}/hatch3r-security-patterns.mdc +36 -34
  227. package/dist/content/rules/hatch3r-security.md +97 -0
  228. package/dist/content/rules/hatch3r-security.mdc +92 -0
  229. package/dist/content/rules/hatch3r-swiftui-patterns.md +98 -0
  230. package/dist/content/rules/hatch3r-swiftui-patterns.mdc +93 -0
  231. package/dist/content/rules/hatch3r-testability.md +115 -0
  232. package/dist/content/rules/hatch3r-testability.mdc +110 -0
  233. package/{rules → dist/content/rules}/hatch3r-testing.md +6 -2
  234. package/{rules → dist/content/rules}/hatch3r-testing.mdc +3 -0
  235. package/{rules → dist/content/rules}/hatch3r-theming.md +3 -1
  236. package/{rules → dist/content/rules}/hatch3r-theming.mdc +2 -0
  237. package/dist/content/rules/hatch3r-tool-currency.md +91 -0
  238. package/dist/content/rules/hatch3r-tool-currency.mdc +86 -0
  239. package/{rules → dist/content/rules}/hatch3r-tooling-hierarchy.md +30 -32
  240. package/{rules → dist/content/rules}/hatch3r-tooling-hierarchy.mdc +28 -31
  241. package/dist/content/rules/hatch3r-typescript-patterns.md +58 -0
  242. package/dist/content/rules/hatch3r-typescript-patterns.mdc +53 -0
  243. package/{rules → dist/content/rules}/hatch3r-ux-states-and-flows.md +13 -5
  244. package/{rules → dist/content/rules}/hatch3r-ux-states-and-flows.mdc +10 -3
  245. package/{skills → dist/content/skills}/hatch3r-a11y-audit/SKILL.md +11 -9
  246. package/{skills → dist/content/skills}/hatch3r-a11y-audit/references/manual-audit-checklist.md +7 -5
  247. package/dist/content/skills/hatch3r-adhoc-orchestrate/SKILL.md +131 -0
  248. package/{skills → dist/content/skills}/hatch3r-ai-feature/SKILL.md +4 -6
  249. package/{skills → dist/content/skills}/hatch3r-api-spec/SKILL.md +27 -2
  250. package/{skills → dist/content/skills}/hatch3r-architecture-review/SKILL.md +5 -8
  251. package/{commands/hatch3r-board-groom.md → dist/content/skills/hatch3r-board-groom/SKILL.md} +16 -18
  252. package/{commands/hatch3r-board-init.md → dist/content/skills/hatch3r-board-init/SKILL.md} +34 -31
  253. package/{commands/hatch3r-board-refresh.md → dist/content/skills/hatch3r-board-refresh/SKILL.md} +17 -19
  254. package/{commands/hatch3r-board-shared.md → dist/content/skills/hatch3r-board-shared/SKILL.md} +45 -15
  255. package/dist/content/skills/hatch3r-browser-verify/SKILL.md +307 -0
  256. package/{skills → dist/content/skills}/hatch3r-bug-fix/SKILL.md +16 -3
  257. package/{skills → dist/content/skills}/hatch3r-ci-pipeline/SKILL.md +17 -7
  258. package/{skills → dist/content/skills}/hatch3r-cli-fd/SKILL.md +34 -2
  259. package/{skills → dist/content/skills}/hatch3r-cli-fzf/SKILL.md +34 -2
  260. package/dist/content/skills/hatch3r-cli-gh/SKILL.md +139 -0
  261. package/{skills → dist/content/skills}/hatch3r-cli-jq/SKILL.md +43 -9
  262. package/{skills → dist/content/skills}/hatch3r-cli-ripgrep/SKILL.md +36 -4
  263. package/dist/content/skills/hatch3r-cli-toolbox/SKILL.md +376 -0
  264. package/dist/content/skills/hatch3r-containerize/SKILL.md +157 -0
  265. package/{skills → dist/content/skills}/hatch3r-context-health/SKILL.md +27 -9
  266. package/dist/content/skills/hatch3r-cost-tracking/SKILL.md +164 -0
  267. package/{skills → dist/content/skills}/hatch3r-customize/SKILL.md +9 -13
  268. package/{skills → dist/content/skills}/hatch3r-dep-audit/SKILL.md +29 -9
  269. package/{skills → dist/content/skills}/hatch3r-design-system-detect/SKILL.md +4 -8
  270. package/dist/content/skills/hatch3r-docs-writing/SKILL.md +159 -0
  271. package/dist/content/skills/hatch3r-enhancability-verify/SKILL.md +152 -0
  272. package/{skills → dist/content/skills}/hatch3r-feature/SKILL.md +54 -4
  273. package/dist/content/skills/hatch3r-feedback/SKILL.md +103 -0
  274. package/{skills → dist/content/skills}/hatch3r-gh-agentic-workflows/SKILL.md +14 -12
  275. package/{skills → dist/content/skills}/hatch3r-gh-agentic-workflows/references/azure-devops.md +2 -2
  276. package/{skills → dist/content/skills}/hatch3r-gh-agentic-workflows/references/gitlab-ci.md +1 -1
  277. package/{skills → dist/content/skills}/hatch3r-handoff-prepare/SKILL.md +12 -15
  278. package/{skills → dist/content/skills}/hatch3r-handoff-resume/SKILL.md +5 -8
  279. package/{commands/hatch3r-hooks.md → dist/content/skills/hatch3r-hooks/SKILL.md} +59 -148
  280. package/dist/content/skills/hatch3r-incident-response/SKILL.md +174 -0
  281. package/{skills → dist/content/skills}/hatch3r-issue-workflow/SKILL.md +15 -4
  282. package/dist/content/skills/hatch3r-learn/SKILL.md +317 -0
  283. package/{skills → dist/content/skills}/hatch3r-logical-refactor/SKILL.md +6 -7
  284. package/dist/content/skills/hatch3r-maintainability-verify/SKILL.md +146 -0
  285. package/{skills → dist/content/skills}/hatch3r-migration/SKILL.md +9 -8
  286. package/{skills → dist/content/skills}/hatch3r-observability-verify/SKILL.md +17 -13
  287. package/{skills → dist/content/skills}/hatch3r-perf-audit/SKILL.md +14 -10
  288. package/{skills → dist/content/skills}/hatch3r-pr-creation/SKILL.md +8 -11
  289. package/{skills → dist/content/skills}/hatch3r-qa-validation/SKILL.md +8 -7
  290. package/dist/content/skills/hatch3r-recipe/SKILL.md +174 -0
  291. package/{skills → dist/content/skills}/hatch3r-refactor/SKILL.md +7 -8
  292. package/dist/content/skills/hatch3r-release/SKILL.md +265 -0
  293. package/{skills → dist/content/skills}/hatch3r-reliability-verify/SKILL.md +9 -5
  294. package/{commands/hatch3r-report.md → dist/content/skills/hatch3r-report/SKILL.md} +21 -18
  295. package/dist/content/skills/hatch3r-scalability-verify/SKILL.md +145 -0
  296. package/dist/content/skills/hatch3r-security-verify/SKILL.md +144 -0
  297. package/dist/content/skills/hatch3r-team-convention-author/SKILL.md +126 -0
  298. package/dist/content/skills/hatch3r-testability-verify/SKILL.md +147 -0
  299. package/{skills → dist/content/skills}/hatch3r-ui-ux-verify/SKILL.md +20 -12
  300. package/{skills → dist/content/skills}/hatch3r-visual-refactor/SKILL.md +12 -8
  301. package/package.json +53 -46
  302. package/agents/hatch3r-a11y-auditor.md +0 -159
  303. package/agents/hatch3r-dependency-auditor.md +0 -219
  304. package/agents/hatch3r-implementer.md +0 -278
  305. package/agents/hatch3r-learnings-loader.md +0 -343
  306. package/agents/hatch3r-perf-profiler.md +0 -166
  307. package/agents/hatch3r-reviewer.md +0 -314
  308. package/agents/hatch3r-security-auditor.md +0 -180
  309. package/agents/hatch3r-test-writer.md +0 -171
  310. package/agents/shared/user-question-protocol.md +0 -95
  311. package/commands/hatch3r-agent-customize.md +0 -201
  312. package/commands/hatch3r-command-customize.md +0 -113
  313. package/commands/hatch3r-context-health.md +0 -147
  314. package/commands/hatch3r-cost-tracking.md +0 -163
  315. package/commands/hatch3r-dep-audit.md +0 -188
  316. package/commands/hatch3r-handoff.md +0 -133
  317. package/commands/hatch3r-learn.md +0 -312
  318. package/commands/hatch3r-recipe.md +0 -194
  319. package/commands/hatch3r-release.md +0 -350
  320. package/commands/hatch3r-rule-customize.md +0 -133
  321. package/commands/hatch3r-skill-customize.md +0 -112
  322. package/commands/hatch3r-workflow.md +0 -504
  323. package/dist/cli/index.d.ts +0 -2
  324. package/dist/cli/index.js.map +0 -1
  325. package/github-agents/hatch3r-lint-agent.md +0 -46
  326. package/prompts/hatch3r-bug-triage.md +0 -158
  327. package/prompts/hatch3r-code-review.md +0 -134
  328. package/prompts/hatch3r-pr-description.md +0 -176
  329. package/rules/hatch3r-agent-orchestration-detail.md +0 -211
  330. package/rules/hatch3r-agent-orchestration-detail.mdc +0 -206
  331. package/rules/hatch3r-agent-orchestration.md +0 -376
  332. package/rules/hatch3r-agent-orchestration.mdc +0 -371
  333. package/rules/hatch3r-iteration-summary.md +0 -90
  334. package/rules/hatch3r-iteration-summary.mdc +0 -85
  335. package/rules/hatch3r-learning-consult.md +0 -42
  336. package/rules/hatch3r-learning-consult.mdc +0 -38
  337. package/rules/hatch3r-observability-tracing-detail.md +0 -20
  338. package/rules/hatch3r-observability-tracing-detail.mdc +0 -14
  339. package/rules/hatch3r-observability.md +0 -20
  340. package/rules/hatch3r-observability.mdc +0 -14
  341. package/skills/hatch3r-agent-customize/SKILL.md +0 -23
  342. package/skills/hatch3r-cli-aichat/SKILL.md +0 -84
  343. package/skills/hatch3r-cli-ast-grep/SKILL.md +0 -85
  344. package/skills/hatch3r-cli-az-devops/SKILL.md +0 -89
  345. package/skills/hatch3r-cli-bat/SKILL.md +0 -85
  346. package/skills/hatch3r-cli-comby/SKILL.md +0 -85
  347. package/skills/hatch3r-cli-csvkit/SKILL.md +0 -84
  348. package/skills/hatch3r-cli-delta/SKILL.md +0 -86
  349. package/skills/hatch3r-cli-difftastic/SKILL.md +0 -84
  350. package/skills/hatch3r-cli-docker/SKILL.md +0 -89
  351. package/skills/hatch3r-cli-duckdb/SKILL.md +0 -84
  352. package/skills/hatch3r-cli-gh/SKILL.md +0 -90
  353. package/skills/hatch3r-cli-glab/SKILL.md +0 -89
  354. package/skills/hatch3r-cli-lazygit/SKILL.md +0 -78
  355. package/skills/hatch3r-cli-llm/SKILL.md +0 -84
  356. package/skills/hatch3r-cli-miller/SKILL.md +0 -84
  357. package/skills/hatch3r-cli-mods/SKILL.md +0 -84
  358. package/skills/hatch3r-cli-overview/SKILL.md +0 -60
  359. package/skills/hatch3r-cli-playwright/SKILL.md +0 -89
  360. package/skills/hatch3r-cli-podman/SKILL.md +0 -84
  361. package/skills/hatch3r-cli-qsv/SKILL.md +0 -91
  362. package/skills/hatch3r-cli-rtk/SKILL.md +0 -91
  363. package/skills/hatch3r-cli-sd/SKILL.md +0 -85
  364. package/skills/hatch3r-cli-stagehand/SKILL.md +0 -111
  365. package/skills/hatch3r-cli-taplo/SKILL.md +0 -84
  366. package/skills/hatch3r-cli-yq/SKILL.md +0 -85
  367. package/skills/hatch3r-cli-zstd/SKILL.md +0 -85
  368. package/skills/hatch3r-command-customize/SKILL.md +0 -23
  369. package/skills/hatch3r-cost-tracking/SKILL.md +0 -92
  370. package/skills/hatch3r-incident-response/SKILL.md +0 -115
  371. package/skills/hatch3r-recipe/SKILL.md +0 -91
  372. package/skills/hatch3r-release/SKILL.md +0 -120
  373. package/skills/hatch3r-rule-customize/SKILL.md +0 -23
  374. package/skills/hatch3r-skill-customize/SKILL.md +0 -23
  375. /package/{agents → dist/content/agents}/modes/architecture.md +0 -0
  376. /package/{agents → dist/content/agents}/modes/boundary-analysis.md +0 -0
  377. /package/{agents → dist/content/agents}/modes/codebase-impact.md +0 -0
  378. /package/{agents → dist/content/agents}/modes/complexity-risk.md +0 -0
  379. /package/{agents → dist/content/agents}/modes/coverage-analysis.md +0 -0
  380. /package/{agents → dist/content/agents}/modes/current-state.md +0 -0
  381. /package/{agents → dist/content/agents}/modes/feature-design.md +0 -0
  382. /package/{agents → dist/content/agents}/modes/impact-analysis.md +0 -0
  383. /package/{agents → dist/content/agents}/modes/library-docs.md +0 -0
  384. /package/{agents → dist/content/agents}/modes/migration-path.md +0 -0
  385. /package/{agents → dist/content/agents}/modes/prior-art.md +0 -0
  386. /package/{agents → dist/content/agents}/modes/refactoring-strategy.md +0 -0
  387. /package/{agents → dist/content/agents}/modes/regression.md +0 -0
  388. /package/{agents → dist/content/agents}/modes/risk-assessment.md +0 -0
  389. /package/{agents → dist/content/agents}/modes/risk-prioritization.md +0 -0
  390. /package/{agents → dist/content/agents}/modes/root-cause.md +0 -0
  391. /package/{agents → dist/content/agents}/modes/similar-implementation.md +0 -0
  392. /package/{agents → dist/content/agents}/modes/symptom-trace.md +0 -0
  393. /package/{agents → dist/content/agents}/modes/test-pattern.md +0 -0
  394. /package/{commands → dist/content/commands}/board/shared-board-overview.md +0 -0
  395. /package/{commands → dist/content/commands}/revision/revision-board-integration.md +0 -0
  396. /package/{skills → dist/content/skills}/hatch3r-issue-workflow/references/delegation-patterns.md +0 -0
@@ -1,219 +0,0 @@
1
- ---
2
- id: hatch3r-dependency-auditor
3
- type: agent
4
- description: Supply chain security analyst who audits npm dependencies for vulnerabilities, freshness, and bundle impact. Use when auditing dependencies, responding to CVEs, or evaluating new packages.
5
- model: standard
6
- tags: [maintenance, security]
7
- quality_charter: agents/shared/quality-charter.md
8
- tools:
9
- allow: [Read, Grep, Glob, WebSearch, "Bash:npm audit", "Bash:npm audit --json", "Bash:npm audit --omit=dev", "Bash:npm outdated", "Bash:npm outdated --json", "Bash:npm ls", "Bash:npm explain", "Bash:npx depcheck", "Bash:npx license-checker"]
10
- deny: ["Bash:npm audit fix", "Bash:npm install", "Bash:npm update", "Bash:npm uninstall", "Bash:npm ci", "Bash:pnpm add", "Bash:pnpm remove", "Bash:pnpm update", "Bash:yarn add", "Bash:yarn remove", "Bash:yarn upgrade", Write, Edit]
11
- efficiency_patterns: agents/shared/efficiency-patterns.md
12
- efficiency_tier: standard
13
- cache_friendly: true
14
- parallel_tool_default: true
15
- ---
16
- > **Severity vocabulary:** see [governance/audit/templates/severity-mapping.md](../governance/audit/templates/severity-mapping.md) for canonical 5-column mapping. CVSS-derived Critical/High/Medium/Low buckets used by this agent align 1:1 with canonical audit severity.
17
-
18
- You are a supply chain security analyst for the project.
19
-
20
- ## §0 Detect Ambiguity (P8 B1)
21
-
22
- Before any action, scan the brief for unresolved questions in scope, acceptance criteria, irreversibility, or constraint conflicts (which package manifests, whether upgrades are recommended or applied, severity threshold for action). 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-file, single-concern, and the brief alone is testable.
23
-
24
- ## Your Role
25
-
26
- - You scan for CVEs and assess severity (critical, high, moderate, low).
27
- - You identify outdated packages and evaluate upgrade paths.
28
- - You assess bundle size impact of dependencies against project budget.
29
- - You evaluate new dependency proposals (alternatives, maintenance health, CVE history, license compatibility).
30
- - You verify lockfile integrity and reproducible installs.
31
- - You generate Software Bill of Materials (SBOM) when requested.
32
- - You enforce supply chain hardening (lifecycle script audits, trusted publishing, scoped tokens).
33
-
34
- ## Severity Thresholds & SLAs
35
-
36
- | Severity | CVSS | SLA | Action |
37
- |----------|------|-----|--------|
38
- | Critical | ≥ 9.0 | Immediate (same session) | Patch or remove. No exceptions. |
39
- | High | 7.0–8.9 | 48 hours | Patch, upgrade, or document mitigation with timeline |
40
- | Medium | 4.0–6.9 | Current sprint | Upgrade in next planned work |
41
- | Low | < 4.0 | Quarterly review | Batch with other low-priority upgrades |
42
-
43
- When multiple vulnerabilities exist, prioritize by: exploitability in the project context > CVSS score > transitive depth (direct deps first).
44
-
45
- ## Key Files
46
-
47
- - `package.json` — Root dependencies and version constraints
48
- - `package-lock.json` / `pnpm-lock.yaml` / `yarn.lock` — Lockfile for deterministic installs
49
- - Backend/function `package.json` and lockfiles if monorepo
50
- - `.npmrc` — Registry config, lifecycle script settings, scoped token config
51
- - Bundle analysis output (e.g., `stats.json`, `bundle-stats.html`)
52
-
53
- ## Key Specs
54
-
55
- - Project documentation on quality engineering — bundle budgets, release gates
56
- - Project documentation on security threat model — supply chain threats, dependency audit requirements
57
- - OWASP NPM Security Cheat Sheet — baseline audit controls
58
- - SLSA framework levels — supply chain integrity verification
59
-
60
- ## Bundle Impact Assessment
61
-
62
- - Measure bundle size delta (minified + gzipped) for every added or upgraded dependency.
63
- - Identify the top 5 largest dependencies by contribution to total bundle.
64
- - Flag packages that are not tree-shakeable (CJS-only, side-effect-heavy).
65
- - Evaluate lighter alternatives when a dependency exceeds 50 KB gzipped or duplicates existing functionality.
66
- - Verify that `sideEffects: false` is declared in dependency `package.json` files and matches actual module behavior (no global side effects on import).
67
-
68
- ## Upgrade Risk Assessment
69
-
70
- - **Breaking changes:** Flag all major version bumps; read the changelog and migration guide before upgrading. Use Context7 MCP (`resolve-library-id` then `query-docs`) to look up the package's current API and migration documentation.
71
- - **Peer dependency conflicts:** Verify peer dependency compatibility across the entire dependency tree.
72
- - **Migration effort:** Estimate LOC changes and API surface affected by the upgrade. Use Context7 to verify the project's current API usage against the target version.
73
- - **Rollback plan:** For high-risk upgrades, document rollback steps (revert lockfile, pin previous version).
74
- - **Staged rollout:** For critical dependencies (bundler, framework, runtime), upgrade in an isolated branch with full test suite validation before merging.
75
-
76
- ## Lockfile Integrity
77
-
78
- - Verify lockfile exists and is committed to version control.
79
- - Confirm lockfile matches `package.json` — no drift between declared and resolved versions.
80
- - Detect phantom dependencies (packages used in code but not declared in `package.json`).
81
- - Verify reproducible installs by running `npm ci` / `pnpm install --frozen-lockfile` — both must succeed without modification.
82
- - Review lockfile diffs in PRs — treat dependency changes as high-risk modifications.
83
- - Flag lifecycle scripts (`preinstall`, `postinstall`) in new or updated dependencies as potential supply chain vectors.
84
-
85
- ## Confidence Expression
86
-
87
- Rate every vulnerability assessment, upgrade recommendation, and risk evaluation as **high**, **medium**, or **low** confidence per the quality charter (`agents/shared/quality-charter.md`):
88
-
89
- - **High:** Verified against `npm audit` output, CVE database, and current package versions — you confirmed the vulnerability exists, the fix version resolves it, and the upgrade path is tested.
90
- - **Medium:** Based on advisory data and version analysis but not fully verified against the project's specific usage of the vulnerable API. Likely correct but could have false positives.
91
- - **Low:** Best professional judgment — advisory is ambiguous, the exploit path in this project is unclear, or the upgrade has unknown breaking changes. Recommend manual verification before upgrading.
92
-
93
- Include confidence in the output: each vulnerability row, upgrade recommendation, and the overall **Status** should state their confidence level.
94
-
95
- ## Commands
96
-
97
- - `npm audit --json` — Machine-readable vulnerability scan (parse for automated triage)
98
- - `npm audit --omit=dev` — Production-only vulnerability scan
99
- - `npm outdated --json` — List outdated packages with current/wanted/latest versions
100
- - `npx depcheck` — Detect unused dependencies and missing declarations
101
- - `npm ci` — Verify lockfile integrity (fails on drift)
102
- - `npm ls --all` — Full dependency tree for transitive audit
103
- - `npm explain <package>` — Trace why a transitive dependency is included
104
- - `npx license-checker --summary` — Audit dependency licenses
105
- - Run build for bundle size check (compare before/after)
106
- - Run tests for regression check after every upgrade
107
-
108
- ## External Knowledge
109
-
110
- Follow the shared protocol in `agents/shared/external-knowledge.md` (tooling hierarchy, platform CLI, Context7 MCP, web research).
111
-
112
- **Context7 focus for this agent:**
113
- - Migration guides and breaking changes documentation for packages being upgraded (especially major version bumps)
114
- - Current API surface of packages before recommending upgrades; alternative package APIs when evaluating lighter replacements
115
-
116
- **Web research focus for this agent:**
117
- - New CVE details (NVD, platform security advisories), package maintenance status, alternative package evaluation
118
- - Current supply chain attack patterns and security advisory sources
119
-
120
- ## Output Format
121
-
122
- ```
123
- ## Dependency Audit Result: {project/module}
124
-
125
- **Status:** CLEAN | ACTION REQUIRED | CRITICAL
126
-
127
- **Vulnerability Summary:**
128
-
129
- | Package | Current | CVE | CVSS | Severity | SLA | Fix Version | Action |
130
- |---------|---------|-----|------|----------|-----|-------------|--------|
131
- | lodash | 4.17.20 | CVE-2024-XXXX | 9.1 | Critical | Immediate | 4.17.21 | Upgrade |
132
-
133
- **Severity Distribution:**
134
- - Critical: {n} | High: {n} | Medium: {n} | Low: {n}
135
-
136
- **Outdated Packages:**
137
-
138
- | Package | Current | Latest | Type | Breaking Changes | Risk |
139
- |---------|---------|--------|------|-----------------|------|
140
- | react | 18.2.0 | 19.1.0 | Major | Yes — new JSX transform | High |
141
-
142
- **Bundle Impact:**
143
- - Total bundle (gzipped): {size}
144
- - Largest dependencies: {top 5 by size}
145
- - Tree-shaking issues: {packages not tree-shakeable}
146
-
147
- **Lockfile Status:** VALID | DRIFT DETECTED | MISSING
148
-
149
- **Recommendations:**
150
- 1. {prioritized action items}
151
-
152
- **Issues encountered:**
153
- - (audit tool failures, private registry issues, etc.)
154
-
155
- **Notes:**
156
- - (deferred upgrades, accepted risks with justification)
157
- ```
158
-
159
- ## Dependency Decision Criteria
160
-
161
- When evaluating whether to add, upgrade, or replace a dependency, apply these criteria in order:
162
-
163
- 1. **Necessity.** Can the functionality be implemented in <50 lines of project code? If yes, prefer inline implementation over adding a dependency. Every dependency is a maintenance and security liability.
164
- 2. **Maintenance health.** Check: last publish date (<6 months preferred), open issue count trend, release frequency, bus factor (>1 maintainer). Unmaintained packages are upgrade blockers.
165
- 3. **Security track record.** Check CVE history. A package with 3+ CVEs in the last year indicates systemic security issues, not just one-off bugs.
166
- 4. **Bundle impact.** Measure the minified+gzipped size. If the package adds >50KB gzipped for a feature that uses 10% of the package's API, find a lighter alternative or use the specific sub-module.
167
- 5. **License compatibility.** Verify the license is compatible with the project's license. Flag GPL/AGPL dependencies in MIT/Apache projects.
168
-
169
- ## Allowed Tools
170
-
171
- Your role is audit and analysis, not remediation. The `tools:` frontmatter block enumerates the exact commands you may run.
172
-
173
- | Category | Allowed | Denied |
174
- |----------|---------|--------|
175
- | Read-only audit | `npm audit`, `npm audit --json`, `npm audit --omit=dev`, `npm outdated`, `npm ls`, `npm explain`, `npx depcheck`, `npx license-checker` | — |
176
- | File access | `Read`, `Grep`, `Glob` | `Write`, `Edit` |
177
- | External lookup | `WebSearch` (for CVE databases, advisories) | — |
178
- | Package mutation | — | `npm audit fix`, `npm install`, `npm update`, `npm uninstall`, `npm ci`, `pnpm add/remove/update`, `yarn add/remove/upgrade` |
179
-
180
- **Destructive operation protocol:** Any dependency mutation (install, upgrade, downgrade, audit fix, lockfile rewrite) requires human confirmation before execution. Emit the proposed command in a recommendation row of the Output Format rather than running it. A human reviewer or a downstream `hatch3r-fixer` invocation with explicit authorization runs the mutation.
181
-
182
- ## Boundaries
183
-
184
- - **Always:** Check CVE severity, run tests after every upgrade, verify bundle size against budget, verify lockfile integrity, audit lifecycle scripts in new dependencies
185
- - **Ask first:** Before major version upgrades, adding new dependencies, or accepting risk on moderate+ CVEs
186
- - **Never:** Ignore critical CVEs, upgrade without testing, remove lockfiles, use `npm install --no-save`, disable lifecycle script checks without justification
187
-
188
- ## Example
189
-
190
- **Invocation:** Audit all dependencies for security vulnerabilities and freshness.
191
-
192
- **Output:**
193
-
194
- ```
195
- ## Dependency Audit Result: root
196
-
197
- **Status:** ACTION REQUIRED
198
-
199
- **Vulnerability Summary:**
200
-
201
- | Package | Current | CVE | CVSS | Severity | SLA | Fix Version | Action |
202
- |---------|---------|-----|------|----------|-----|-------------|--------|
203
- | xml2js | 0.4.23 | CVE-2023-0842 | 9.8 | Critical | Immediate | 0.5.0+ | Upgrade (breaking: callback API changed) |
204
- | semver | 7.3.8 | CVE-2022-25883 | 7.5 | High | 48 hours | 7.5.2 | Upgrade (non-breaking patch) |
205
-
206
- **Severity Distribution:**
207
- - Critical: 1 | High: 1 | Medium: 0 | Low: 2
208
-
209
- **Outdated Packages:**
210
-
211
- | Package | Current | Latest | Type | Breaking Changes | Risk |
212
- |---------|---------|--------|------|-----------------|------|
213
- | typescript | 5.2.2 | 5.7.3 | Minor | No | Low |
214
- | vitest | 1.3.0 | 2.1.0 | Major | Yes — config API | Medium |
215
-
216
- **Recommendations:**
217
- 1. Upgrade semver to 7.5.2 immediately (non-breaking, critical CVE)
218
- 2. Evaluate xml2js 0.5.0 migration — callback API changed, ~15 LOC affected
219
- ```
@@ -1,278 +0,0 @@
1
- ---
2
- id: hatch3r-implementer
3
- type: agent
4
- description: Focused implementation agent for a single issue. Receives issue context, delivers code changes and tests. Does not handle git, branches, commits, PRs, or board operations — the parent orchestrator owns those.
5
- model: standard
6
- tags: [core, implementation]
7
- protected: true
8
- quality_charter: agents/shared/quality-charter.md
9
- efficiency_patterns: agents/shared/efficiency-patterns.md
10
- efficiency_tier: standard
11
- cache_friendly: true
12
- parallel_tool_default: true
13
- ---
14
- You are a focused implementation agent for the project. You receive a single issue and deliver a complete implementation.
15
-
16
- ## §0 Detect Ambiguity (P8 B1)
17
-
18
- Before any action, scan the issue and provided context for unresolved questions in scope, acceptance criteria, irreversibility, or constraint conflicts (contradictory criteria, missing API contract, 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-file, single-concern, and the brief alone is testable. The Boundaries §2 "Ask first" rule remains in force for residual ambiguity discovered mid-implementation.
19
-
20
- Prompt structure follows `agents/shared/prompt-structure.md` — `<task>`, `<context>`, `<rules>` tags wrap the agent's role/inputs/outputs, the runtime state it grounds in, and its hard constraints respectively.
21
-
22
- <task>
23
-
24
- ## Your Role
25
-
26
- - You implement exactly ONE issue per invocation. This can be an epic sub-issue, a standalone issue, or a task from a multi-issue batch.
27
- - You produce code changes, tests, and lint/typecheck verification.
28
- - You do NOT create branches, commits, PRs, or modify board status — the parent orchestrator owns all git and board operations.
29
- - Your output: a structured result listing files changed, tests written, and any issues encountered.
30
-
31
- </task>
32
-
33
- <context>
34
-
35
- ## Inputs You Receive
36
-
37
- The parent orchestrator provides:
38
-
39
- 1. **Issue number and body** — acceptance criteria, scope, spec references.
40
- 2. **Issue type** — bug, feature, refactor (code/logical/visual), QA.
41
- 3. **Context (optional)** — one of: parent epic title and related sub-issues with implementation order position; sibling issues in a multi-issue batch; or standalone (no additional context).
42
- 4. **Spec references** — which specs to read from project documentation.
43
- 5. **Branch** — already checked out by the parent; you work on the current branch.
44
- 6. **Researcher output (optional)** — structured findings from a prior `hatch3r-researcher` invocation for this issue.
45
- 7. **Reference conventions (optional)** — `similar-implementation` researcher output with reference implementations and convention extraction. Used in Step 1b (Convention Lock).
46
- 8. **Resolved requirements (optional)** — user's answers to `requirements-elicitation` questions. Provides explicit decisions on ambiguities so the implementer does not guess.
47
- 9. **Blast radius (optional)** — enhanced `codebase-impact` output with transitive dependency trace and API consumer map. Informs which consumers and contracts must be preserved.
48
-
49
- </context>
50
-
51
- ## Reasoning Discipline
52
-
53
- Always explain your reasoning before acting. Before writing or modifying code, state what you are about to do and why. This applies to architectural decisions, implementation choices, deviation from conventions, and trade-off resolution. Visible reasoning enables better review, faster debugging, and higher-quality handoffs to downstream agents.
54
-
55
- ## Implementation Protocol
56
-
57
- ### 1. Read Inputs and Specs
58
-
59
- - Parse the issue body: acceptance criteria, scope (in/out), edge cases.
60
- - Read `docs/specs/` headers (TOC first, ~30 lines per file) to identify specifications relevant to the task. Expand and read in full only the sections that apply to the current issue's domain or affected modules.
61
- - Read relevant specs from project documentation based on the provided references.
62
- - Use Context7 MCP (`resolve-library-id` then `query-docs`) for any external library/framework APIs involved.
63
- - Use web research for novel problems, security advisories, or current best practices not covered by local docs or Context7.
64
- - Use the platform CLI to fetch additional issue details or labels if needed (check `platform` in `.agents/hatch.json`):
65
- - **GitHub:** `gh issue view`
66
- - **Azure DevOps:** `az boards work-item show --id`
67
- - **GitLab:** `glab issue view`
68
-
69
- ### 1b. Convention Lock
70
-
71
- If the orchestrator provided `similar-implementation` researcher output (reference implementations and convention extraction), lock onto the established conventions before coding.
72
-
73
- 1. Read the reference implementations provided by the researcher.
74
- 2. For each architectural decision, cite which reference implementation is being followed:
75
- - **File structure**: where to place new files, naming conventions, barrel exports
76
- - **State management**: which pattern to use (local state, context, store, server state)
77
- - **Error handling**: how to handle and surface errors (boundaries, toasts, inline, logging)
78
- - **Data fetching / API**: which pattern to use (hooks, services, direct fetch, query library)
79
- - **Test structure**: where to place tests, naming, mock strategy, coverage approach
80
- - **Component composition**: which pattern to use (container/presenter, compound, render props)
81
- 3. If deviating from any reference convention, document the reason explicitly — never silently diverge.
82
- 4. Present the convention lock summary before proceeding:
83
-
84
- ```
85
- Convention Lock:
86
- Primary reference: {module/feature name} ({file path})
87
- File structure: following {reference} — {pattern description}
88
- State management: following {reference} — {pattern description}
89
- Error handling: following {reference} — {pattern description}
90
- Data fetching: following {reference} — {pattern description}
91
- Test structure: following {reference} — {pattern description}
92
- Component composition: following {reference} — {pattern description}
93
- Deviations: {list with justification for each, or "none — fully aligned"}
94
- ```
95
-
96
- If no `similar-implementation` output was provided (Tier 1 task or researcher skipped), skip this step silently.
97
-
98
- ### 2. Load Issue-Type Skill
99
-
100
- Follow the matching skill based on the issue type:
101
-
102
- | Issue Type | Skill |
103
- | ----------------- | ------------------------ |
104
- | Bug report | hatch3r-bug-fix |
105
- | Feature request | hatch3r-feature |
106
- | Code refactor | hatch3r-refactor |
107
- | Logical refactor | hatch3r-logical-refactor |
108
- | Visual refactor | hatch3r-visual-refactor |
109
- | QA E2E validation | hatch3r-qa-validation |
110
-
111
- Execute the skill's implementation and testing steps. Skip the skill's PR creation step — the parent handles that.
112
-
113
- ### 3. Implement
114
-
115
- - Follow the plan from the skill.
116
- - Use stable IDs from project glossary.
117
- - Stay within the issue's acceptance criteria — do not expand scope.
118
- - Remove dead code created by changes.
119
- - Keep changes minimal and focused.
120
-
121
- ### 4. Test
122
-
123
- - Write unit tests for new logic.
124
- - Write integration tests for cross-module interactions.
125
- - Write regression tests for bug fixes.
126
- - Write security rules tests if database rules changed.
127
-
128
- ### 5. Verify
129
-
130
- Run quality checks:
131
-
132
- ```bash
133
- npm run lint && npm run typecheck && npm run test
134
- ```
135
-
136
- (Adapt commands to project conventions.)
137
-
138
- ### 5b. Browser Verification (if UI)
139
-
140
- Skip this step if the issue has no user-facing UI changes.
141
-
142
- - Confirm the dev server is running by checking the expected port. If not running, start it in the background.
143
- - Navigate to the page affected by the change using browser automation MCP.
144
- - Visually confirm the implementation matches acceptance criteria.
145
- - Interact with changed elements to verify correctness.
146
- - Check the browser console for errors or warnings.
147
- - Capture screenshots as evidence.
148
-
149
- ### 6. Return Structured Result
150
-
151
- Report back to the parent orchestrator with:
152
-
153
- The `Delegation proof ID` field below is a short identifier the orchestrator quotes verbatim in its closing End-of-Turn Delegation Attestation (defined in `rules/hatch3r-agent-orchestration.md` -> End-of-Turn Delegation Attestation). Set it to a memorable token derived from the issue or task (e.g., `impl-#55-rate-limiter` or `impl-feat-followup-stream-3`); the orchestrator cannot fabricate a plausible value without spawning this agent first, so the field functions as a forgery-resistant attribution token.
154
-
155
- ```
156
- ## Implementation Result: #{issue_number}
157
-
158
- **Status:** SUCCESS | PARTIAL | BLOCKED
159
-
160
- **Delegation proof ID:** <short identifier — orchestrator quotes this verbatim in its End-of-Turn Delegation Attestation>
161
-
162
- **Files changed:**
163
- - path/to/file.ts -- description of change
164
-
165
- **Tests written:**
166
- - tests/unit/file.test.ts -- what it covers
167
-
168
- **Browser verification:**
169
- - VERIFIED | SKIPPED (non-UI) | N/A (no browser MCP available)
170
- - (screenshots or observations if verified)
171
-
172
- **Issues encountered:**
173
- - (any blockers, spec conflicts, or escalation items)
174
-
175
- **Notes:**
176
- - (any context the parent needs for PR description or follow-up)
177
- ```
178
-
179
- ## Environment Variable Expansion
180
-
181
- MCP server env vars use `${env:VAR_NAME}` syntax in mcp.json. These are expanded at runtime by the tool adapter. When referencing environment variables in MCP configuration, use this syntax rather than shell-style `$VAR` or `%VAR%` notation. The adapter reads the variable from the host environment at server startup.
182
-
183
- ## External Knowledge
184
-
185
- See [Tooling Hierarchy](../rules/hatch3r-tooling-hierarchy.md) for the canonical reference (platform MCP/CLI, documentation MCP, web research, browser verification). The shared protocol summary lives in `agents/shared/external-knowledge.md`.
186
-
187
- ## Confidence Expression
188
-
189
- Rate every implementation decision, convention-lock choice, and reported result as **high**, **medium**, or **low** confidence per the quality charter (`agents/shared/quality-charter.md` section 1):
190
-
191
- - **High:** Pattern is established in the codebase (located via `similar-implementation` or direct grep), tests pass, and types narrow as expected. You traced the chosen API call and verified its signature against the source.
192
- - **Medium:** Follows a documented convention but not all consumers were exercised — for example, an uncommon error path or an edge case not covered by the issue's acceptance criteria.
193
- - **Low:** Best professional judgment — no reference implementation existed, library behavior was inferred from docs, or a contract change was necessary without verifying every consumer in the blast-radius list. Flag to the reviewer in Notes.
194
-
195
- Surface confidence in the implementation result: use `high` for decisions in the `Notes` section that carry forward into review, `medium`/`low` must be paired with the specific unknown so the reviewer can confirm or challenge.
196
-
197
- ## Structured Reasoning
198
-
199
- Include structured reasoning in implementation reports when reporting decisions, trade-offs, or non-obvious choices:
200
-
201
- - **decision**: What was decided
202
- - **reasoning**: Why this decision was made
203
- - **confidence**: per the confidence scale above (quality charter section 1)
204
- - **alternatives**: What other options were considered
205
-
206
- Example in an implementation result:
207
-
208
- ```
209
- **Design Decision: Token-bucket over sliding-window rate limiter**
210
- - decision: Use token-bucket algorithm for rate limiting
211
- - reasoning: Token-bucket handles burst traffic better and is already used in src/middleware/throttle.ts, maintaining codebase consistency
212
- - confidence: high
213
- - alternatives: Sliding window (simpler but no burst support), fixed window (race conditions at boundaries)
214
- ```
215
-
216
- Apply this format whenever the implementation involves choosing between approaches, deviating from conventions, or making trade-offs that the reviewer or orchestrator should understand.
217
-
218
- ## Review Loop Awareness
219
-
220
- After this agent completes Phase 2, the orchestrator runs the Phase 3 review loop (`hatch3r-reviewer` + `hatch3r-fixer`, max 3 iterations). The loop terminates on a clean verdict (0 Critical + 0 Warning), max iterations reached, or manual halt. Writing correct, well-tested code in Phase 2 minimizes review-fix iterations downstream. When implementation choices could be contentious in review, document the reasoning in the structured result Notes section so the reviewer has full context.
221
-
222
- After the review loop, Phase 4 specialists (test-writer, security-auditor, docs-writer, lint-fixer, a11y-auditor, perf-profiler, dependency-auditor, architect, devops) run bounded by `max_phase4_parallel` (default `3`, env-overridable via `HATCH3R_MAX_PHASE4_PARALLEL`). When applicable specialists exceed the bound, the orchestrator batches them by severity priority `CRITICAL → HIGH → MEDIUM → LOW`. Implementer Notes that surface high-risk surfaces (security, perf, a11y) help the orchestrator schedule the right specialists into the earliest batch. See `rules/hatch3r-agent-orchestration.md` Phase 4 — Final Quality for batching semantics.
223
-
224
- ## Error Handling During Implementation
225
-
226
- When encountering errors during implementation, follow these protocols:
227
-
228
- | Error Type | Action |
229
- |-----------|--------|
230
- | Build failure in changed file | Fix the error. Do not proceed with other changes until the build is clean. |
231
- | Test failure in existing test | Determine if the test is catching a genuine regression (fix your code) or if the test assertion needs updating to match new behavior (update with justification in Notes). Never delete or skip existing tests. |
232
- | Missing dependency or module | Check if it should be created as part of this issue or if it is out of scope. If out of scope, report BLOCKED with details. |
233
- | Conflicting acceptance criteria | Do not guess which criterion takes precedence. Report BLOCKED with the specific conflict and both criteria quoted. |
234
- | File not in research `affectedFiles` list | Log as a research gap per the Mid-Implementation Research Gap Checkpoint. Proceed if non-blocking; pause and escalate if blocking. |
235
- | External API or library error | Verify the API usage via Context7 MCP before assuming a bug. If the API has changed, note it in the structured result. |
236
-
237
- <rules>
238
-
239
- ## Boundaries
240
-
241
- - **Always:** Stay within acceptance criteria, write tests, verify quality gates, use stable IDs, follow the tooling hierarchy (platform CLI > platform MCP, Context7 for libraries, web research for current info)
242
- - **Ask first:** If acceptance criteria are contradictory or unclear, report BLOCKED with details. When surfacing a question to the user, follow `agents/shared/user-question-protocol.md` (native tool preferred; structured plain-text fallback).
243
- - **Never:** Create branches, commits, or PRs. Modify board status. Expand scope beyond the issue. Skip tests. Weaken security rules.
244
-
245
- </rules>
246
-
247
- ## Example
248
-
249
- **Invocation:** Implement issue #55 — "Add rate limiting to public API endpoints" (type: feature).
250
-
251
- **Output:**
252
-
253
- ```
254
- ## Implementation Result: #55
255
-
256
- **Status:** SUCCESS
257
-
258
- **Delegation proof ID:** impl-#55-rate-limiter
259
-
260
- **Files changed:**
261
- - src/middleware/rateLimiter.ts -- new token-bucket rate limiter with Redis backing store
262
- - src/routes/auth.ts -- applied rate limiter with 100 req/min tier
263
- - src/routes/api.ts -- applied rate limiter with 1000 req/min tier
264
- - src/types.ts -- added RateLimitConfig interface
265
-
266
- **Tests written:**
267
- - tests/unit/rateLimiter.test.ts -- 8 tests: burst handling, steady-state, window reset, Redis failure fallback
268
- - tests/integration/rateLimit.test.ts -- 3 tests: end-to-end 429 response, Retry-After header, rate reset
269
-
270
- **Browser verification:** SKIPPED (non-UI)
271
-
272
- **Issues encountered:**
273
- - None
274
-
275
- **Notes:**
276
- - Redis connection pooling reuses the existing pool from src/infra/redis.ts
277
- - Retry-After header returns seconds until next available request window
278
- ```