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,111 +0,0 @@
1
- ---
2
- id: hatch3r-cli-stagehand
3
- description: "Browserbase Stagehand — AI-driven browser automation. Use when natural-language browser steering with on-the-fly DOM reasoning; invoke `stagehand`. Wraps Browserbase Stagehand so prompts decide which DOM nodes to inspect or click."
4
- tags: ["cli-tools", "browser", "opt-in"]
5
- quality_charter: agents/shared/quality-charter.md
6
- efficiency_patterns: agents/shared/efficiency-patterns.md
7
- cache_friendly: true
8
- cli_tool:
9
- id: stagehand
10
- bin: stagehand
11
- tier: 3
12
- category: browser
13
- homepage: https://github.com/browserbase/stagehand
14
- ---
15
- <!-- HATCH3R-CLI-SKILL-GENERATED v1 -->
16
- # stagehand
17
-
18
- Browserbase Stagehand — AI-driven browser automation
19
-
20
- ## When to Use
21
-
22
- Reach for `stagehand` when the task is in the **browser** category and the agent would otherwise call an MCP tool or read large outputs into context. v3 (released 2025-10-29) operates directly on the Chrome DevTools Protocol — choose Stagehand when the target page changes shape often enough that hand-written selectors break, or when a prompt is the most compact spec of intent.
23
-
24
- ## Token Cost
25
-
26
- CLI tools return structured stdout that fits in <1KB for typical queries; equivalent MCP calls regularly exceed 10KB.
27
- Reference: Anthropic engineering (Nov 4 2025) — code-execution-over-MCP yields 98.7% token reduction.
28
-
29
- ## v3 Driver Model
30
-
31
- v3 dropped the hard Playwright dependency and exposes a modular driver layer. Pick the driver that matches the host environment:
32
-
33
- - **CDP-native (default):** Stagehand talks Chrome DevTools Protocol directly — no test-runner dependency, smallest install, Bun-compatible.
34
- - **Playwright peer:** install `playwright-core` alongside Stagehand to reuse existing Playwright fixtures, traces, or `@playwright/test` reporters.
35
- - **Puppeteer peer:** install `puppeteer-core` to share a launcher with existing Puppeteer scripts.
36
- - **Patchright peer:** install `patchright-core` for stealth-patched CDP profiles.
37
-
38
- `playwright-core`, `puppeteer-core`, and `patchright-core` are peer dependencies in v3 — install only the driver you use.
39
-
40
- ## Recipes
41
-
42
- ```bash
43
- npx create-browser-app
44
- ```
45
- Scaffold a v3 Stagehand project with TypeScript wiring, a `stagehand.config.ts`, and an example `act`/`extract`/`observe` script. Replaces the v2 `npx stagehand init` workflow.
46
-
47
- ```bash
48
- node scripts/login.ts
49
- ```
50
- Execute an AI-driven action script. The script imports `Stagehand` from `@browserbasehq/stagehand`, calls `stagehand.act("click the login button")`, and Stagehand resolves the action at runtime via CDP — no test runner required.
51
-
52
- ```bash
53
- npx browse get markdown https://example.com
54
- ```
55
- One-shot page extraction via `browse-cli` (v0.6+). Returns structured Markdown the agent can consume directly; cheaper than spawning a full Stagehand session for a single read.
56
-
57
- ```bash
58
- npx browse cdp wss://browser.example.com
59
- ```
60
- Attach to an existing CDP endpoint (Browserbase managed session, local Chrome, or a custom launcher). Useful when the script delegates browser lifecycle to another supervisor.
61
-
62
- ```typescript
63
- // scripts/observe.ts — observe primitive returns actions without executing
64
- import { Stagehand } from "@browserbasehq/stagehand";
65
- const stagehand = new Stagehand({ env: "LOCAL" });
66
- await stagehand.init();
67
- const actions = await stagehand.observe("find the login form");
68
- console.log(JSON.stringify(actions, null, 2));
69
- await stagehand.close();
70
- ```
71
- Dry-run agent loop: `observe` returns the candidate action set without performing it, so a caller can route the decision (execute, ask the user, or reject).
72
-
73
- ## Wrong Choice When
74
-
75
- - **High-volume scraping at scale:** Stagehand's per-action LLM round-trip is cost-prohibitive past a few hundred pages — use the Browserbase managed-browser product, raw CDP with cached locators (v3's `deepLocator`), or Stagehand's action cache once a workflow is recorded as a deterministic script.
76
- - **Headless CI in air-gapped environments:** Stagehand requires outbound LLM API access for selector resolution; offline environments fail the `act`/`extract`/`observe` calls. Pre-record actions with v3's automatic action cache, then replay the cached deterministic script in the air-gapped runner.
77
- - **Workflows already covered by a stable test suite:** if Playwright tests with hand-tuned locators already pass green, Stagehand adds an LLM round-trip per step with no behavioural gain. Use `hatch3r-cli-playwright` (tier 2) for the test surface; reserve Stagehand for the agent-driven exploratory flows.
78
-
79
- ## Alternatives
80
-
81
- | Tool | When to prefer |
82
- |------|----------------|
83
- | `hatch3r-cli-playwright` (tier 2) | Existing test fixtures, deterministic CI, no LLM round-trips needed |
84
- | Browserbase managed browsers | Production scale, session recording, anti-bot evasion, CAPTCHA solving |
85
- | Stagehand action cache (built into v3) | Same workflow re-run many times — record once, replay deterministically |
86
- | Skyvern / Browser-Use | Workflow-style automation with embedded LLM agents and built-in task loops |
87
-
88
- ## Detection / Install
89
-
90
- Verify with:
91
- ```bash
92
- command -v stagehand
93
- ```
94
-
95
- Install (mac):
96
-
97
- ```bash
98
- # npm — v3 (Oct 29 2025); drivers are peer deps, install only what you use
99
- npm install -g @browserbasehq/stagehand
100
- # Add a driver only if you need Playwright/Puppeteer/Patchright interop:
101
- # npm install -g playwright-core # OR
102
- # npm install -g puppeteer-core # OR
103
- # npm install -g patchright-core
104
- ```
105
-
106
- References:
107
- - v3 release announcement (2025-10-29): https://www.browserbase.com/blog/stagehand-v3
108
- - Latest npm releases: https://github.com/browserbase/stagehand/releases
109
- - v3 docs: https://docs.stagehand.dev/v3/get_started/introduction
110
-
111
- Homepage: https://github.com/browserbase/stagehand
@@ -1,84 +0,0 @@
1
- ---
2
- id: hatch3r-cli-taplo
3
- description: "TOML toolkit (format, lint, query) for pyproject.toml / Cargo.toml. Use when formatting and linting pyproject.toml or Cargo.toml manifests; invoke `taplo`. Preserves YAML anchors, comments, and ordering when editing in place."
4
- tags: ["cli-tools", "yaml"]
5
- quality_charter: agents/shared/quality-charter.md
6
- efficiency_patterns: agents/shared/efficiency-patterns.md
7
- cache_friendly: true
8
- cli_tool:
9
- id: taplo
10
- bin: taplo
11
- tier: 2
12
- category: yaml
13
- homepage: https://taplo.tamasfe.dev/
14
- ---
15
- <!-- HATCH3R-CLI-SKILL-GENERATED v1 -->
16
- # taplo
17
-
18
- TOML toolkit (format, lint, query) for pyproject.toml / Cargo.toml
19
-
20
- ## When to Use
21
-
22
- Reach for `taplo` when the task is in the **yaml** category and the agent would otherwise call an MCP tool or read large outputs into context.
23
-
24
- ## Token Cost
25
-
26
- CLI tools return structured stdout that fits in <1KB for typical queries; equivalent MCP calls regularly exceed 10KB.
27
- Reference: Anthropic engineering (Nov 4 2025) — code-execution-over-MCP yields 98.7% token reduction.
28
-
29
- ## Recipes
30
-
31
- ```bash
32
- taplo fmt
33
- ```
34
- Format every TOML file under the cwd in-place; idempotent — safe to run in pre-commit.
35
-
36
- ```bash
37
- taplo fmt --check
38
- ```
39
- Exit non-zero if any TOML file would change; CI-friendly drift detector.
40
-
41
- ```bash
42
- taplo lint
43
- ```
44
- Surface syntax and schema-violation diagnostics; works with bundled schemas for `Cargo.toml`, `pyproject.toml`.
45
-
46
- ```bash
47
- taplo get -f Cargo.toml package.version
48
- ```
49
- Extract a single TOML value as plain stdout — replaces a multi-line `grep`/`sed` recipe.
50
-
51
- ```bash
52
- taplo get -f pyproject.toml -o json 'project.dependencies'
53
- ```
54
- Emit the value as JSON for piping into `jq` — keeps quoting unambiguous.
55
-
56
- ## Wrong Choice When
57
-
58
- - The project has no TOML files (pure YAML/JSON config) — skip entirely; use `yq` for YAML, `jq` for JSON.
59
- - You are converting TOML to YAML/JSON as the goal — `yq` or `dasel` handle multi-format conversion in one binary.
60
- - The TOML lives inside a templating system (Jinja/Handlebars) — render the template first, then run `taplo` on the output.
61
-
62
- ## Alternatives
63
-
64
- | Tool | When to prefer |
65
- |------|----------------|
66
- | `yq` | Mixed YAML/TOML/JSON; want a single multi-format query tool. |
67
- | `dasel` | Same as `yq` plus XML; cross-format updates. |
68
- | `grep` + `sed` | A single value lookup in a script with no `taplo` dependency available. |
69
-
70
- ## Detection / Install
71
-
72
- Verify with:
73
- ```bash
74
- command -v taplo
75
- ```
76
-
77
- Install (mac):
78
-
79
- ```bash
80
- # brew
81
- brew install taplo
82
- ```
83
-
84
- Homepage: https://taplo.tamasfe.dev/
@@ -1,85 +0,0 @@
1
- ---
2
- id: hatch3r-cli-yq
3
- description: "YAML processor (mikefarah Go implementation). Use when editing Kubernetes manifests, Helm values, or GitHub-Actions workflows in place; invoke `yq`. Preserves YAML anchors, comments, and ordering when editing in place."
4
- tags: ["cli-tools", "yaml", "core"]
5
- quality_charter: agents/shared/quality-charter.md
6
- efficiency_patterns: agents/shared/efficiency-patterns.md
7
- cache_friendly: true
8
- cli_tool:
9
- id: yq
10
- bin: yq
11
- tier: 1
12
- category: yaml
13
- homepage: https://github.com/mikefarah/yq
14
- ---
15
- <!-- HATCH3R-CLI-SKILL-GENERATED v1 -->
16
- # yq
17
-
18
- YAML processor (mikefarah Go implementation)
19
-
20
- ## When to Use
21
-
22
- Reach for `yq` when the task is in the **yaml** category and the agent would otherwise call an MCP tool or read large outputs into context.
23
-
24
- ## Token Cost
25
-
26
- CLI tools return structured stdout that fits in <1KB for typical queries; equivalent MCP calls regularly exceed 10KB.
27
- Reference: Anthropic engineering (Nov 4 2025) — code-execution-over-MCP yields 98.7% token reduction.
28
-
29
- ## Recipes
30
-
31
- ```bash
32
- yq '.spec.containers[].image' k8s/deployment.yml
33
- ```
34
- Project every container image across multi-doc Kubernetes manifests — same path syntax as `jq`.
35
-
36
- ```bash
37
- yq -i '.version = "1.7.5"' .agents/hatch.json
38
- ```
39
- In-place edit (`-i`) — single-shot version bumps without shelling out to a templating step.
40
-
41
- ```bash
42
- yq -o=json '.' config.yml | jq '.servers | length'
43
- ```
44
- Convert YAML to JSON on the wire so `jq` can take over for richer querying.
45
-
46
- ```bash
47
- yq eval-all '. as $i ireduce ({}; . * $i)' base.yml override.yml
48
- ```
49
- Deep-merge multiple YAML documents into one — pattern for layered config (base + env override).
50
-
51
- ```bash
52
- yq -P -i '.tags |= sort | .' content.yml
53
- ```
54
- Pretty-print preservation (`-P`) keeps comments/anchors stable while sorting the `tags` array in place.
55
-
56
- ## Wrong Choice When
57
-
58
- - Don't assume `yq` flags work when the binary is actually the Python `kislyuk/yq` wrapper around jq — flags and filter dialect differ. Confirm `yq --version` reports `mikefarah` first; otherwise reach for `python-yq` documentation or install the Go build.
59
- - Don't expect round-trip comment preservation without the `-P` (pretty) output mode; default JSON-style output drops comments. Reach for `yq -P` or `taplo` for TOML.
60
- - Don't use `yq` on Kubernetes manifests when you actually need schema-aware validation. Reach for `kubectl explain` / `kubeconform` and use `yq` only for projection.
61
-
62
- ## Alternatives
63
-
64
- | Tool | When to prefer |
65
- |------|----------------|
66
- | `jq` (`hatch3r-cli-jq`) | JSON input, or YAML converted via `yq -o=json` — jq's filter language has more rebuild idioms. |
67
- | `dasel` | Multi-format (JSON/YAML/TOML/XML) single-binary path queries in CI. |
68
- | `taplo` | TOML-specific formatting and schema validation (`pyproject.toml`, `Cargo.toml`). |
69
- | `kubectl explain` | Kubernetes-resource schema lookup — `yq` projects, kubectl explains. |
70
-
71
- ## Detection / Install
72
-
73
- Verify with:
74
- ```bash
75
- command -v yq
76
- ```
77
-
78
- Install (mac):
79
-
80
- ```bash
81
- # brew
82
- brew install yq
83
- ```
84
-
85
- Homepage: https://github.com/mikefarah/yq
@@ -1,85 +0,0 @@
1
- ---
2
- id: hatch3r-cli-zstd
3
- description: "Fast lossless compression with high ratio. Use when high-ratio compression with single-digit-millisecond decompress speeds; invoke `zstd`. Designed for cold-storage payloads and CI artifact upload/download steps."
4
- tags: ["cli-tools", "archive", "core"]
5
- quality_charter: agents/shared/quality-charter.md
6
- efficiency_patterns: agents/shared/efficiency-patterns.md
7
- cache_friendly: true
8
- cli_tool:
9
- id: zstd
10
- bin: zstd
11
- tier: 1
12
- category: archive
13
- homepage: https://github.com/facebook/zstd
14
- ---
15
- <!-- HATCH3R-CLI-SKILL-GENERATED v1 -->
16
- # zstd
17
-
18
- Fast lossless compression with high ratio
19
-
20
- ## When to Use
21
-
22
- Reach for `zstd` when the task is in the **archive** category and the agent would otherwise call an MCP tool or read large outputs into context.
23
-
24
- ## Token Cost
25
-
26
- CLI tools return structured stdout that fits in <1KB for typical queries; equivalent MCP calls regularly exceed 10KB.
27
- Reference: Anthropic engineering (Nov 4 2025) — code-execution-over-MCP yields 98.7% token reduction.
28
-
29
- ## Recipes
30
-
31
- ```bash
32
- tar --zstd -cf bundle.tar.zst dist/ governance/
33
- ```
34
- Stream `tar` through zstd in one shot — default level (~3) gives high-ratio archives an order of magnitude faster than gzip.
35
-
36
- ```bash
37
- tar --zstd -xf bundle.tar.zst -C /tmp/restore/
38
- ```
39
- Extract a zstd-compressed tarball to a target directory — paired with the previous recipe for round-trip backup.
40
-
41
- ```bash
42
- zstd -19 -T0 huge.csv
43
- ```
44
- Level 19 (near-max ratio) with `-T0` (all CPU threads) — appropriate for archival snapshots where compression time is fine.
45
-
46
- ```bash
47
- pzstd --keep -d findings.tar.zst
48
- ```
49
- Parallel decompression preserving the input (`--keep`) — fastest restore path for large `.zst` archives on multi-core hosts.
50
-
51
- ```bash
52
- zstd --train datasets/*.json -o dict.zstd && zstd -D dict.zstd payload.json
53
- ```
54
- Train a dictionary from a sample corpus then compress with `-D dict.zstd` — wins when payloads share schema (logs, structured events).
55
-
56
- ## Wrong Choice When
57
-
58
- - Don't use `zstd` for distribution where every byte of size matters and decompression speed does not. Reach for `xz` (`xz -9e`) — slower but tighter ratios for immutable releases.
59
- - Don't ship a zstd archive to legacy Windows recipients without a bundled decoder; native support landed in Windows 11 but earlier hosts need 7-Zip 21.07+. Reach for `zip` for broadest compatibility.
60
- - Don't reach for `zstd` to compress already-compressed payloads (JPEGs, MP4s, existing zips); ratios approach 1.0 and the CPU spend is wasted. Skip compression or use `tar -cf` with no codec.
61
-
62
- ## Alternatives
63
-
64
- | Tool | When to prefer |
65
- |------|----------------|
66
- | `xz` | Immutable release artifacts where size is the dominant cost. |
67
- | `gzip` | Universal compatibility — every UNIX-like system since 1992. |
68
- | `zip` | Windows recipients without native `.zst` support; flat distribution archives. |
69
- | `7z` | Heterogeneous payloads where xz-style LZMA2 plus per-file streaming beats both zstd and gzip. |
70
-
71
- ## Detection / Install
72
-
73
- Verify with:
74
- ```bash
75
- command -v zstd
76
- ```
77
-
78
- Install (mac):
79
-
80
- ```bash
81
- # brew
82
- brew install zstd
83
- ```
84
-
85
- Homepage: https://github.com/facebook/zstd
@@ -1,23 +0,0 @@
1
- ---
2
- id: hatch3r-command-customize
3
- description: Redirect to edit orchestrator pipeline and prompt wording for slash commands under .hatch3r/commands/ -- use when changing how a command fans out to sub-agents
4
- tags: [customize]
5
- quality_charter: agents/shared/quality-charter.md
6
- efficiency_patterns: agents/shared/efficiency-patterns.md
7
- cache_friendly: true
8
- redirect_to: hatch3r-customize
9
- ---
10
- # Command Customization
11
-
12
- > **This skill has been consolidated.** Use the `hatch3r-customize` skill with `type: command`.
13
-
14
- For command-specific reference (YAML schema, examples), see the `hatch3r-command-customize` command.
15
-
16
- ## Rejected Merge Alternative (D16.3 add-vs-remove bias)
17
-
18
- Per `governance/audit/domains/D16-compound-system.md` SA 16.3, the default recommendation on functional overlap is MERGE rather than removal. Full deletion of this redirect file was rejected for two reasons:
19
-
20
- 1. **Preserves UX entry points.** Users typed `/h4tcher-command-customize` or referenced the id `hatch3r-command-customize` (per `commands/hatch3r-command-customize.md:2` and sibling redirects) before consolidation. Deleting the id breaks those entry points without a redirect target.
21
- 2. **Signals umbrella canonicality.** The `redirect_to: hatch3r-customize` frontmatter field marks `hatch3r-customize` as the single source of truth — tooling, audit scans, and adapters can resolve any redirect to the canonical without re-reading body prose.
22
-
23
- The 13-LOC redirect cost is paid once per type; the umbrella body lives in `skills/hatch3r-customize/SKILL.md`.
@@ -1,92 +0,0 @@
1
- ---
2
- id: hatch3r-cost-tracking
3
- description: Track token usage and estimate costs for agent sessions. Use when monitoring spend, approaching budget limits, or generating cost reports.
4
- tags: [maintenance]
5
- quality_charter: agents/shared/quality-charter.md
6
- efficiency_patterns: agents/shared/efficiency-patterns.md
7
- cache_friendly: true
8
- ---
9
- # Cost Tracking Workflow
10
-
11
- ## Quick Start
12
-
13
- ```
14
- Task Progress:
15
- - [ ] Step 0: Detect ambiguity (P8 B1)
16
- - [ ] Step 1: Review cost tracking configuration
17
- - [ ] Step 2: Estimate current session token usage
18
- - [ ] Step 3: Identify cost optimization opportunities
19
- - [ ] Step 4: Generate cost report
20
- ```
21
-
22
- ## Step 0 — Detect Ambiguity (P8 B1)
23
-
24
- Before any work, scan the invocation for unresolved questions in scope, intent, acceptance criteria, target environment, or irreversibility. 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. Default path, not an exception. Triggers for THIS skill: tracking scope (session vs issue vs epic), budget values when missing from hatch.json, hardStop authority (block vs warn), report format target, and whether to defer non-critical work over budget.
25
-
26
- ## Fan-out Discipline (P8 B2)
27
-
28
- This skill delegates per task size:
29
- - Tier 1 (trivial single-file): inline execution acceptable.
30
- - Tier 2 (multi-file or multi-concern): spawn parallel sub-agents per concern via the Task tool.
31
- - Tier 3 (multi-module / high-risk): one fresh sub-agent per independent module or gate; orchestrator integrates only.
32
-
33
- Never under-fan-out to save tokens. Token cost is dominated by quality and completeness gains. Emit `sub_agents_spawned: { count, rationale }` in your output.
34
-
35
- ## Step 1: Review Configuration
36
-
37
- 1. Check `hatch.json` for a `costTracking` section.
38
- 2. Note configured budgets: `sessionBudget`, `issueBudget`, `epicBudget`.
39
- 3. Note warning thresholds and whether `hardStop` is enabled.
40
- 4. If no configuration exists, operate in report-only mode.
41
-
42
- ## Step 2: Estimate Token Usage
43
-
44
- Estimate tokens for the current session using these rules:
45
-
46
- | Content Type | Rule | Accuracy |
47
- |-------------|------|----------|
48
- | Messages | ~4 characters per token | High -- stable ratio for English text |
49
- | Tool calls | JSON length / 4 (input), response length / 4 (output) | Medium -- JSON has more overhead characters |
50
- | File reads | Character count / 4 | High -- but large files may be truncated by the tool |
51
- | Web searches | ~500 tokens per search | Low -- varies widely by result length |
52
- | Subagent spawns | Estimate full context re-sent per spawn (~2000-5000 tokens base) | Medium -- depends on included rules/context |
53
-
54
- **Subagent cost multiplier.** Each subagent spawn carries a base cost for the agent protocol, included rules, and context. A pipeline with 8 subagents (researcher + implementer + reviewer + fixer + 4 Phase 4 specialists) has significant overhead from context re-transmission. Factor this into budget estimates.
55
-
56
- Calculate estimated cost using the model tier rates from the `hatch3r-cost-tracking` command reference.
57
-
58
- ## Step 3: Identify Optimizations
59
-
60
- Review usage patterns for savings:
61
-
62
- - **Large file reads**: Were files read multiple times without changes? Cache instead.
63
- - **Model tier**: Could routine tasks (linting, formatting) use a faster/cheaper model?
64
- - **Context bloat**: Is irrelevant context accumulating? Summarize and trim.
65
- - **Batching**: Were multiple small tool calls made that could be combined?
66
- - **Scope creep**: Did work expand beyond the original issue? Scope back.
67
-
68
- ## Step 4: Generate Report
69
-
70
- Produce a cost report using the output format from the `hatch3r-cost-tracking` command. Include:
71
- - Total estimated tokens (input + output)
72
- - Estimated cost at the current model tier
73
- - Budget status (if configured)
74
- - Top optimization opportunities
75
-
76
- ## Error Handling
77
-
78
- - **Token usage data unavailable**: If the platform does not expose token metrics, use input/output character counts divided by 4 as an estimate. Note the approximation method in the report.
79
- - **Budget limit exceeded mid-session**: Stop non-critical operations, produce a partial cost report, and recommend which remaining tasks to defer or delegate to a lower-cost model.
80
- - **Cost configuration missing from hatch.json**: Operate in report-only mode and note that budget enforcement is inactive. Recommend adding cost configuration to enable guardrails.
81
-
82
- ## Definition of Done
83
-
84
- - [ ] Cost configuration reviewed (or report-only mode noted)
85
- - [ ] Token usage estimated for current session
86
- - [ ] Optimization opportunities identified
87
- - [ ] Cost report generated with budget status
88
-
89
- ## Related Skills & Agents
90
-
91
- - **Command**: `hatch3r-cost-tracking` — full cost tracking protocol with guardrails and budget enforcement
92
- - **Skill**: `hatch3r-context-health` — context health monitoring complements cost tracking for session management
@@ -1,115 +0,0 @@
1
- ---
2
- id: hatch3r-incident-response
3
- description: Handle production incidents with structured triage, mitigation, and post-mortem. Use when responding to production issues, outages, or security incidents.
4
- tags: [devops]
5
- quality_charter: agents/shared/quality-charter.md
6
- efficiency_patterns: agents/shared/efficiency-patterns.md
7
- cache_friendly: true
8
- ---
9
- # Incident Response Workflow
10
-
11
- ## Quick Start
12
-
13
- ```
14
- Task Progress:
15
- - [ ] Step 0: Detect ambiguity (P8 B1)
16
- - [ ] Step 1: Classify severity (P0-P3) based on impact
17
- - [ ] Step 2: Triage — identify affected systems, user impact, blast radius
18
- - [ ] Step 3: Mitigate — apply hotfix or rollback, verify mitigation works
19
- - [ ] Step 4: Root cause analysis — trace the failure chain
20
- - [ ] Step 5: Write post-mortem with timeline, root cause, action items
21
- - [ ] Step 6: Create follow-up issues for permanent fixes and preventive measures
22
- ```
23
-
24
- ## Step 0 — Detect Ambiguity (P8 B1)
25
-
26
- Before any work, scan the invocation for unresolved questions in scope, intent, acceptance criteria, target environment, or irreversibility. 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. Default path, not an exception. Triggers for THIS skill: user-facing impact vs internal-only, blast radius known (single tenant vs all users), rollback safety verified, stakeholder notification scope (engineering vs exec vs public), and whether mitigation requires data write (irreversible) vs config flip (reversible).
27
-
28
- ## Fan-out Discipline (P8 B2)
29
-
30
- This skill delegates per task size:
31
- - Tier 1 (trivial single-file): inline execution acceptable.
32
- - Tier 2 (multi-file or multi-concern): spawn parallel sub-agents per concern via the Task tool.
33
- - Tier 3 (multi-module / high-risk): one fresh sub-agent per independent module or gate; orchestrator integrates only.
34
-
35
- Never under-fan-out to save tokens. Token cost is dominated by quality and completeness gains. Emit `sub_agents_spawned: { count, rationale }` in your output.
36
-
37
- ## Step 1: Classify Severity
38
-
39
- | Severity | Definition | Examples |
40
- | -------- | ------------------------------------------- | -------------------------------------------- |
41
- | P0 | Complete outage, data loss, security breach | App unusable, auth down, data exposed |
42
- | P1 | Major degradation, significant user impact | Sync failing, billing broken, >1% error rate |
43
- | P2 | Partial degradation, limited impact | Single flow broken, slow performance |
44
- | P3 | Minor issue, workaround available | Cosmetic bug, edge case |
45
-
46
- - Check for related issues or prior incidents using the platform tools (check `platform` in `.agents/hatch.json`):
47
- - **GitHub:** Use **GitHub MCP** (`issue_read`, `search_issues`) or `gh issue list --search "..."`
48
- - **Azure DevOps:** `az boards query --wiql "SELECT [System.Id] FROM WorkItems WHERE [System.Title] CONTAINS '...'"` or `az boards work-item show --id N`
49
- - **GitLab:** `glab issue list --search "..."` or `glab issue view N`
50
- - For external library docs and current best practices, follow the project's tooling hierarchy.
51
-
52
- ## Step 2: Triage
53
-
54
- - **Affected systems:** Frontend, backend, database, auth, payment, third-party services?
55
- - **User impact:** How many users? Which flows? Which plans (free/paid)?
56
- - **Blast radius:** Is the issue contained or spreading?
57
- - **Data:** Any data corruption, loss, or exposure? Check project privacy/security specs for implications.
58
- - **Timeline:** When did it start? Any recent deploys, config changes, or dependency updates?
59
-
60
- ## Step 3: Mitigate
61
-
62
- - **Immediate actions:** Rollback last deploy, disable feature flag, revert config, scale up, or apply hotfix.
63
- - **Verification:** Confirm mitigation works — error rate drops, affected flow recovers.
64
- - **Communication:** Notify stakeholders if P0/P1. Document status in incident channel or issue.
65
- - Do not spend time on perfect fixes during active incident — stabilize first.
66
-
67
- ## Step 4: Root Cause Analysis
68
-
69
- - Trace the failure chain: what changed, what failed, why.
70
- - Review logs (correlationId, userId), metrics, deploy history.
71
- - Check ADRs in project docs for architectural context.
72
- - For external library docs and current best practices, follow the project's tooling hierarchy.
73
-
74
- ## Step 5: Post-Mortem
75
-
76
- Write a structured post-mortem document:
77
-
78
- - **Summary:** One-paragraph description of the incident.
79
- - **Timeline:** Key events (detection, mitigation, resolution) with timestamps.
80
- - **Root cause:** What went wrong and why.
81
- - **Impact:** Users affected, duration, business impact.
82
- - **Action items:** Permanent fixes, preventive measures, process improvements.
83
- - **Lessons learned:** What we'll do differently.
84
-
85
- Store in project incident docs or as an issue/wiki page on the platform. Follow project conventions.
86
-
87
- ## Step 6: Follow-Up Issues
88
-
89
- - Create follow-up issues/work items for each action item from the post-mortem (check `platform` in `.agents/hatch.json`):
90
- - **GitHub:** `gh issue create --title "..." --body "..." --label "incident-follow-up"` (or use **GitHub MCP** `issue_create`)
91
- - **Azure DevOps:** `az boards work-item create --type "Bug" --title "..." --description "..." --fields "System.Tags=incident-follow-up"`
92
- - **GitLab:** `glab issue create --title "..." --description "..." --label "incident-follow-up"`
93
- - Label appropriately (e.g., `incident-follow-up`, `P0`, `P1`).
94
- - Link issues/work items to the post-mortem and to each other.
95
- - Assign owners and due dates for critical fixes.
96
-
97
- ## Error Handling
98
-
99
- - **Cannot reproduce the incident locally**: Use production logs and traces to build the timeline. If local reproduction is blocked by environment differences, document the gap and recommend a staging environment test.
100
- - **Mitigation introduces new issues**: Roll back the mitigation immediately, reassess the approach, and apply a more targeted fix. Document both the original incident and the mitigation regression in the post-mortem.
101
- - **Root cause spans multiple services or teams**: Document the cross-service dependency chain, assign follow-up items to the responsible teams, and coordinate a joint post-mortem.
102
-
103
- ## Definition of Done
104
-
105
- - [ ] Incident mitigated and verified
106
- - [ ] Post-mortem written with timeline, root cause, and action items
107
- - [ ] Follow-up issues created for permanent fixes and preventive measures
108
- - [ ] Stakeholders notified (if P0/P1)
109
- - [ ] No sensitive data (secrets, PII, code content) in post-mortem or logs
110
-
111
- ## Additional Resources
112
-
113
- - Privacy/security specs: project documentation
114
- - Observability: project logging and correlation conventions
115
- - Error handling: project error handling patterns