hatch3r 1.8.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (276) hide show
  1. package/README.md +36 -55
  2. package/dist/cli/index.js +13073 -14671
  3. package/dist/cli/index.js.map +1 -1
  4. package/{agents → dist/content/agents}/hatch3r-a11y-auditor.md +2 -2
  5. package/{agents → dist/content/agents}/hatch3r-ci-watcher.md +2 -2
  6. package/{agents → dist/content/agents}/hatch3r-context-rules.md +5 -5
  7. package/{agents → dist/content/agents}/hatch3r-creator.md +15 -15
  8. package/{agents → dist/content/agents}/hatch3r-dependency-auditor.md +1 -1
  9. package/{agents → dist/content/agents}/hatch3r-devops.md +3 -3
  10. package/{agents → dist/content/agents}/hatch3r-fixer.md +2 -2
  11. package/{agents → dist/content/agents}/hatch3r-handoff-loader.md +11 -11
  12. package/{agents → dist/content/agents}/hatch3r-handoff-preparer.md +7 -7
  13. package/{agents → dist/content/agents}/hatch3r-implementer.md +2 -2
  14. package/{agents → dist/content/agents}/hatch3r-learnings-loader.md +11 -11
  15. package/{agents → dist/content/agents}/hatch3r-lint-fixer.md +2 -2
  16. package/{agents → dist/content/agents}/hatch3r-researcher.md +3 -3
  17. package/{agents → dist/content/agents}/hatch3r-reviewer.md +4 -4
  18. package/{agents → dist/content/agents}/hatch3r-security-auditor.md +2 -2
  19. package/{agents → dist/content/agents}/hatch3r-test-writer.md +2 -2
  20. package/{agents → dist/content/agents}/shared/external-knowledge.md +1 -1
  21. package/{agents → dist/content/agents}/shared/injection-patterns.md +1 -1
  22. package/{agents → dist/content/agents}/shared/quality-charter.md +31 -3
  23. package/{agents → dist/content/agents}/shared/user-content-templates.md +10 -10
  24. package/{agents → dist/content/agents}/shared/user-question-protocol.md +2 -0
  25. package/{commands → dist/content/commands}/board/pickup-azure-devops.md +1 -1
  26. package/{commands → dist/content/commands}/board/pickup-delegation-multi.md +4 -4
  27. package/{commands → dist/content/commands}/board/pickup-delegation.md +3 -3
  28. package/{commands → dist/content/commands}/board/pickup-github.md +1 -1
  29. package/{commands → dist/content/commands}/board/pickup-gitlab.md +1 -1
  30. package/{commands → dist/content/commands}/board/pickup-post-impl.md +2 -2
  31. package/{commands → dist/content/commands}/board/shared-azure-devops.md +1 -1
  32. package/{commands → dist/content/commands}/board/shared-github.md +2 -2
  33. package/{commands → dist/content/commands}/board/shared-gitlab.md +1 -1
  34. package/{commands → dist/content/commands}/hatch3r-api-spec.md +1 -1
  35. package/{commands → dist/content/commands}/hatch3r-benchmark.md +1 -1
  36. package/{commands → dist/content/commands}/hatch3r-board-fill.md +7 -7
  37. package/{commands → dist/content/commands}/hatch3r-board-pickup.md +6 -6
  38. package/{commands → dist/content/commands}/hatch3r-bug-plan.md +5 -5
  39. package/{commands → dist/content/commands}/hatch3r-codebase-map.md +2 -2
  40. package/{commands → dist/content/commands}/hatch3r-create.md +11 -11
  41. package/{commands → dist/content/commands}/hatch3r-debug.md +11 -11
  42. package/{commands → dist/content/commands}/hatch3r-feature-plan.md +5 -5
  43. package/{commands → dist/content/commands}/hatch3r-handoff.md +9 -9
  44. package/{commands → dist/content/commands}/hatch3r-healthcheck.md +1 -1
  45. package/{commands → dist/content/commands}/hatch3r-hooks.md +12 -12
  46. package/{commands → dist/content/commands}/hatch3r-learn.md +11 -11
  47. package/{commands → dist/content/commands}/hatch3r-migration-plan.md +2 -2
  48. package/{commands → dist/content/commands}/hatch3r-onboard.md +7 -7
  49. package/{commands → dist/content/commands}/hatch3r-pr-resolve.md +8 -8
  50. package/{commands → dist/content/commands}/hatch3r-project-spec.md +3 -3
  51. package/{commands → dist/content/commands}/hatch3r-quick-change.md +7 -7
  52. package/{commands → dist/content/commands}/hatch3r-refactor-plan.md +4 -4
  53. package/{commands → dist/content/commands}/hatch3r-report.md +1 -1
  54. package/{commands → dist/content/commands}/hatch3r-revision.md +7 -7
  55. package/{commands → dist/content/commands}/hatch3r-roadmap.md +2 -2
  56. package/{commands → dist/content/commands}/hatch3r-security-audit.md +2 -2
  57. package/{commands → dist/content/commands}/hatch3r-test-plan.md +5 -5
  58. package/{commands → dist/content/commands}/hatch3r-workflow.md +9 -9
  59. package/{commands → dist/content/commands}/revision/revision-delegation.md +2 -2
  60. package/{commands → dist/content/commands}/revision/revision-quality.md +2 -2
  61. package/{github-agents → dist/content/github-agents}/hatch3r-docs-agent.md +1 -1
  62. package/{github-agents → dist/content/github-agents}/hatch3r-lint-agent.md +1 -1
  63. package/{github-agents → dist/content/github-agents}/hatch3r-security-agent.md +1 -1
  64. package/{github-agents → dist/content/github-agents}/hatch3r-test-agent.md +1 -1
  65. package/{hooks → dist/content/hooks}/hatch3r-ci-failure.md +3 -3
  66. package/{hooks → dist/content/hooks}/hatch3r-file-save.md +3 -3
  67. package/{hooks → dist/content/hooks}/hatch3r-post-merge.md +1 -1
  68. package/{hooks → dist/content/hooks}/hatch3r-pre-commit.md +1 -1
  69. package/{hooks → dist/content/hooks}/hatch3r-pre-push.md +3 -3
  70. package/{hooks → dist/content/hooks}/hatch3r-session-start.md +3 -3
  71. package/{rules → dist/content/rules}/hatch3r-accessibility-standards.md +2 -1
  72. package/{rules → dist/content/rules}/hatch3r-accessibility-standards.mdc +1 -0
  73. package/{rules → dist/content/rules}/hatch3r-agent-orchestration-detail.md +2 -2
  74. package/{rules → dist/content/rules}/hatch3r-agent-orchestration-detail.mdc +1 -1
  75. package/{rules → dist/content/rules}/hatch3r-agent-orchestration.md +2 -2
  76. package/{rules → dist/content/rules}/hatch3r-agent-orchestration.mdc +1 -1
  77. package/{rules → dist/content/rules}/hatch3r-ai-evals.md +2 -1
  78. package/{rules → dist/content/rules}/hatch3r-ai-evals.mdc +2 -1
  79. package/{rules → dist/content/rules}/hatch3r-ai-ux-patterns.md +1 -1
  80. package/{rules → dist/content/rules}/hatch3r-api-versioning.md +1 -0
  81. package/{rules → dist/content/rules}/hatch3r-api-versioning.mdc +1 -0
  82. package/{rules → dist/content/rules}/hatch3r-auth-patterns.md +2 -1
  83. package/{rules → dist/content/rules}/hatch3r-auth-patterns.mdc +1 -0
  84. package/{rules → dist/content/rules}/hatch3r-browser-verification.md +6 -10
  85. package/{rules → dist/content/rules}/hatch3r-browser-verification.mdc +6 -10
  86. package/{rules → dist/content/rules}/hatch3r-ci-cd.md +1 -0
  87. package/{rules → dist/content/rules}/hatch3r-ci-cd.mdc +1 -0
  88. package/{rules → dist/content/rules}/hatch3r-code-standards.md +1 -1
  89. package/{rules → dist/content/rules}/hatch3r-component-conventions.md +1 -1
  90. package/{rules → dist/content/rules}/hatch3r-container-hardening.md +2 -1
  91. package/{rules → dist/content/rules}/hatch3r-container-hardening.mdc +1 -0
  92. package/{rules → dist/content/rules}/hatch3r-contract-testing.md +1 -0
  93. package/{rules → dist/content/rules}/hatch3r-contract-testing.mdc +1 -0
  94. package/{rules → dist/content/rules}/hatch3r-data-classification.md +2 -1
  95. package/{rules → dist/content/rules}/hatch3r-data-classification.mdc +1 -0
  96. package/{rules → dist/content/rules}/hatch3r-deep-context.md +1 -1
  97. package/{rules → dist/content/rules}/hatch3r-dependency-management.md +2 -1
  98. package/{rules → dist/content/rules}/hatch3r-dependency-management.mdc +1 -0
  99. package/{rules → dist/content/rules}/hatch3r-design-system-detection.md +2 -1
  100. package/{rules → dist/content/rules}/hatch3r-design-system-detection.mdc +1 -0
  101. package/{rules → dist/content/rules}/hatch3r-event-schema-evolution.md +1 -0
  102. package/{rules → dist/content/rules}/hatch3r-event-schema-evolution.mdc +1 -0
  103. package/{rules → dist/content/rules}/hatch3r-git-conventions.md +1 -1
  104. package/{rules → dist/content/rules}/hatch3r-handoff-readiness.md +4 -4
  105. package/{rules → dist/content/rules}/hatch3r-handoff-readiness.mdc +3 -3
  106. package/{rules → dist/content/rules}/hatch3r-i18n.md +1 -1
  107. package/{rules → dist/content/rules}/hatch3r-iteration-summary.md +1 -1
  108. package/{rules → dist/content/rules}/hatch3r-learning-consult.md +7 -7
  109. package/{rules → dist/content/rules}/hatch3r-learning-consult.mdc +6 -6
  110. package/{rules → dist/content/rules}/hatch3r-migrations.md +2 -1
  111. package/{rules → dist/content/rules}/hatch3r-migrations.mdc +1 -0
  112. package/{rules → dist/content/rules}/hatch3r-observability-logging.md +1 -0
  113. package/{rules → dist/content/rules}/hatch3r-observability-logging.mdc +1 -0
  114. package/{rules → dist/content/rules}/hatch3r-observability-metrics.md +1 -0
  115. package/{rules → dist/content/rules}/hatch3r-observability-metrics.mdc +1 -0
  116. package/{rules → dist/content/rules}/hatch3r-observability-tracing.md +1 -0
  117. package/{rules → dist/content/rules}/hatch3r-observability-tracing.mdc +1 -0
  118. package/{rules → dist/content/rules}/hatch3r-operability.md +1 -0
  119. package/{rules → dist/content/rules}/hatch3r-operability.mdc +1 -0
  120. package/{rules → dist/content/rules}/hatch3r-passkey-server.md +2 -1
  121. package/{rules → dist/content/rules}/hatch3r-passkey-server.mdc +1 -0
  122. package/{rules → dist/content/rules}/hatch3r-performance-budgets.md +1 -1
  123. package/{rules → dist/content/rules}/hatch3r-performance-budgets.mdc +1 -1
  124. package/{rules → dist/content/rules}/hatch3r-resilience-patterns.md +1 -0
  125. package/{rules → dist/content/rules}/hatch3r-resilience-patterns.mdc +1 -0
  126. package/{rules → dist/content/rules}/hatch3r-secrets-management.md +2 -1
  127. package/{rules → dist/content/rules}/hatch3r-secrets-management.mdc +1 -0
  128. package/{rules → dist/content/rules}/hatch3r-security-patterns.md +2 -1
  129. package/{rules → dist/content/rules}/hatch3r-security-patterns.mdc +1 -0
  130. package/{rules → dist/content/rules}/hatch3r-testing.md +2 -1
  131. package/{rules → dist/content/rules}/hatch3r-testing.mdc +1 -0
  132. package/{rules → dist/content/rules}/hatch3r-theming.md +1 -1
  133. package/{rules → dist/content/rules}/hatch3r-tooling-hierarchy.md +4 -4
  134. package/{rules → dist/content/rules}/hatch3r-tooling-hierarchy.mdc +3 -3
  135. package/{rules → dist/content/rules}/hatch3r-ux-states-and-flows.md +2 -1
  136. package/{rules → dist/content/rules}/hatch3r-ux-states-and-flows.mdc +1 -0
  137. package/{skills → dist/content/skills}/hatch3r-a11y-audit/SKILL.md +1 -1
  138. package/{skills → dist/content/skills}/hatch3r-architecture-review/SKILL.md +1 -1
  139. package/{commands/hatch3r-board-groom.md → dist/content/skills/hatch3r-board-groom/SKILL.md} +5 -18
  140. package/{commands/hatch3r-board-init.md → dist/content/skills/hatch3r-board-init/SKILL.md} +17 -30
  141. package/{commands/hatch3r-board-refresh.md → dist/content/skills/hatch3r-board-refresh/SKILL.md} +5 -18
  142. package/{commands/hatch3r-board-shared.md → dist/content/skills/hatch3r-board-shared/SKILL.md} +7 -14
  143. package/{skills → dist/content/skills}/hatch3r-bug-fix/SKILL.md +1 -1
  144. package/{skills → dist/content/skills}/hatch3r-cli-fd/SKILL.md +1 -1
  145. package/{skills → dist/content/skills}/hatch3r-cli-fzf/SKILL.md +1 -1
  146. package/{skills → dist/content/skills}/hatch3r-cli-gh/SKILL.md +4 -4
  147. package/{skills → dist/content/skills}/hatch3r-cli-jq/SKILL.md +3 -3
  148. package/{skills → dist/content/skills}/hatch3r-cli-ripgrep/SKILL.md +3 -3
  149. package/dist/content/skills/hatch3r-cli-toolbox/SKILL.md +269 -0
  150. package/{skills → dist/content/skills}/hatch3r-context-health/SKILL.md +18 -2
  151. package/{skills → dist/content/skills}/hatch3r-cost-tracking/SKILL.md +59 -7
  152. package/{skills → dist/content/skills}/hatch3r-customize/SKILL.md +5 -6
  153. package/{skills → dist/content/skills}/hatch3r-dep-audit/SKILL.md +6 -2
  154. package/{skills → dist/content/skills}/hatch3r-design-system-detect/SKILL.md +1 -1
  155. package/{skills → dist/content/skills}/hatch3r-feature/SKILL.md +1 -1
  156. package/{skills → dist/content/skills}/hatch3r-gh-agentic-workflows/SKILL.md +4 -4
  157. package/{skills → dist/content/skills}/hatch3r-gh-agentic-workflows/references/azure-devops.md +2 -2
  158. package/{skills → dist/content/skills}/hatch3r-gh-agentic-workflows/references/gitlab-ci.md +1 -1
  159. package/{skills → dist/content/skills}/hatch3r-handoff-prepare/SKILL.md +9 -9
  160. package/{skills → dist/content/skills}/hatch3r-handoff-resume/SKILL.md +2 -2
  161. package/{skills → dist/content/skills}/hatch3r-incident-response/SKILL.md +2 -2
  162. package/{skills → dist/content/skills}/hatch3r-issue-workflow/SKILL.md +4 -4
  163. package/{skills → dist/content/skills}/hatch3r-migration/SKILL.md +1 -1
  164. package/{skills → dist/content/skills}/hatch3r-observability-verify/SKILL.md +0 -1
  165. package/{skills → dist/content/skills}/hatch3r-perf-audit/SKILL.md +1 -1
  166. package/{skills → dist/content/skills}/hatch3r-pr-creation/SKILL.md +4 -4
  167. package/{skills → dist/content/skills}/hatch3r-qa-validation/SKILL.md +2 -2
  168. package/{skills → dist/content/skills}/hatch3r-recipe/SKILL.md +82 -2
  169. package/{skills → dist/content/skills}/hatch3r-refactor/SKILL.md +1 -1
  170. package/{skills → dist/content/skills}/hatch3r-release/SKILL.md +35 -2
  171. package/{skills → dist/content/skills}/hatch3r-ui-ux-verify/SKILL.md +1 -1
  172. package/{skills → dist/content/skills}/hatch3r-visual-refactor/SKILL.md +1 -1
  173. package/package.json +6 -18
  174. package/commands/hatch3r-agent-customize.md +0 -201
  175. package/commands/hatch3r-command-customize.md +0 -113
  176. package/commands/hatch3r-context-health.md +0 -147
  177. package/commands/hatch3r-cost-tracking.md +0 -163
  178. package/commands/hatch3r-dep-audit.md +0 -188
  179. package/commands/hatch3r-recipe.md +0 -194
  180. package/commands/hatch3r-release.md +0 -350
  181. package/commands/hatch3r-rule-customize.md +0 -133
  182. package/commands/hatch3r-skill-customize.md +0 -112
  183. package/prompts/hatch3r-bug-triage.md +0 -158
  184. package/prompts/hatch3r-code-review.md +0 -134
  185. package/prompts/hatch3r-pr-description.md +0 -176
  186. package/rules/hatch3r-observability-tracing-detail.md +0 -20
  187. package/rules/hatch3r-observability-tracing-detail.mdc +0 -14
  188. package/rules/hatch3r-observability.md +0 -20
  189. package/rules/hatch3r-observability.mdc +0 -14
  190. package/skills/hatch3r-agent-customize/SKILL.md +0 -23
  191. package/skills/hatch3r-cli-aichat/SKILL.md +0 -84
  192. package/skills/hatch3r-cli-ast-grep/SKILL.md +0 -85
  193. package/skills/hatch3r-cli-az-devops/SKILL.md +0 -89
  194. package/skills/hatch3r-cli-bat/SKILL.md +0 -85
  195. package/skills/hatch3r-cli-comby/SKILL.md +0 -85
  196. package/skills/hatch3r-cli-csvkit/SKILL.md +0 -84
  197. package/skills/hatch3r-cli-delta/SKILL.md +0 -86
  198. package/skills/hatch3r-cli-difftastic/SKILL.md +0 -84
  199. package/skills/hatch3r-cli-docker/SKILL.md +0 -89
  200. package/skills/hatch3r-cli-duckdb/SKILL.md +0 -84
  201. package/skills/hatch3r-cli-glab/SKILL.md +0 -89
  202. package/skills/hatch3r-cli-lazygit/SKILL.md +0 -78
  203. package/skills/hatch3r-cli-llm/SKILL.md +0 -84
  204. package/skills/hatch3r-cli-miller/SKILL.md +0 -84
  205. package/skills/hatch3r-cli-mods/SKILL.md +0 -84
  206. package/skills/hatch3r-cli-overview/SKILL.md +0 -60
  207. package/skills/hatch3r-cli-playwright/SKILL.md +0 -89
  208. package/skills/hatch3r-cli-podman/SKILL.md +0 -84
  209. package/skills/hatch3r-cli-qsv/SKILL.md +0 -91
  210. package/skills/hatch3r-cli-rtk/SKILL.md +0 -91
  211. package/skills/hatch3r-cli-sd/SKILL.md +0 -85
  212. package/skills/hatch3r-cli-stagehand/SKILL.md +0 -111
  213. package/skills/hatch3r-cli-taplo/SKILL.md +0 -84
  214. package/skills/hatch3r-cli-yq/SKILL.md +0 -85
  215. package/skills/hatch3r-cli-zstd/SKILL.md +0 -85
  216. package/skills/hatch3r-command-customize/SKILL.md +0 -23
  217. package/skills/hatch3r-rule-customize/SKILL.md +0 -23
  218. package/skills/hatch3r-skill-customize/SKILL.md +0 -23
  219. /package/{agents → dist/content/agents}/hatch3r-architect.md +0 -0
  220. /package/{agents → dist/content/agents}/hatch3r-docs-writer.md +0 -0
  221. /package/{agents → dist/content/agents}/hatch3r-perf-profiler.md +0 -0
  222. /package/{agents → dist/content/agents}/modes/architecture.md +0 -0
  223. /package/{agents → dist/content/agents}/modes/boundary-analysis.md +0 -0
  224. /package/{agents → dist/content/agents}/modes/codebase-impact.md +0 -0
  225. /package/{agents → dist/content/agents}/modes/complexity-risk.md +0 -0
  226. /package/{agents → dist/content/agents}/modes/coverage-analysis.md +0 -0
  227. /package/{agents → dist/content/agents}/modes/current-state.md +0 -0
  228. /package/{agents → dist/content/agents}/modes/feature-design.md +0 -0
  229. /package/{agents → dist/content/agents}/modes/impact-analysis.md +0 -0
  230. /package/{agents → dist/content/agents}/modes/library-docs.md +0 -0
  231. /package/{agents → dist/content/agents}/modes/migration-path.md +0 -0
  232. /package/{agents → dist/content/agents}/modes/prior-art.md +0 -0
  233. /package/{agents → dist/content/agents}/modes/refactoring-strategy.md +0 -0
  234. /package/{agents → dist/content/agents}/modes/regression.md +0 -0
  235. /package/{agents → dist/content/agents}/modes/requirements-elicitation.md +0 -0
  236. /package/{agents → dist/content/agents}/modes/risk-assessment.md +0 -0
  237. /package/{agents → dist/content/agents}/modes/risk-prioritization.md +0 -0
  238. /package/{agents → dist/content/agents}/modes/root-cause.md +0 -0
  239. /package/{agents → dist/content/agents}/modes/similar-implementation.md +0 -0
  240. /package/{agents → dist/content/agents}/modes/symptom-trace.md +0 -0
  241. /package/{agents → dist/content/agents}/modes/test-pattern.md +0 -0
  242. /package/{agents → dist/content/agents}/modes/user-flows.md +0 -0
  243. /package/{agents → dist/content/agents}/shared/efficiency-patterns.md +0 -0
  244. /package/{agents → dist/content/agents}/shared/prompt-structure.md +0 -0
  245. /package/{checks → dist/content/checks}/README.md +0 -0
  246. /package/{checks → dist/content/checks}/accessibility.md +0 -0
  247. /package/{checks → dist/content/checks}/code-quality.md +0 -0
  248. /package/{checks → dist/content/checks}/performance.md +0 -0
  249. /package/{checks → dist/content/checks}/security.md +0 -0
  250. /package/{checks → dist/content/checks}/testing.md +0 -0
  251. /package/{commands → dist/content/commands}/board/pickup-modes.md +0 -0
  252. /package/{commands → dist/content/commands}/board/shared-board-overview.md +0 -0
  253. /package/{commands → dist/content/commands}/revision/revision-board-integration.md +0 -0
  254. /package/{commands → dist/content/commands}/revision/revision-modes.md +0 -0
  255. /package/{mcp → dist/content/mcp}/mcp.json +0 -0
  256. /package/{rules → dist/content/rules}/hatch3r-ai-ux-patterns.mdc +0 -0
  257. /package/{rules → dist/content/rules}/hatch3r-api-design.md +0 -0
  258. /package/{rules → dist/content/rules}/hatch3r-api-design.mdc +0 -0
  259. /package/{rules → dist/content/rules}/hatch3r-code-standards.mdc +0 -0
  260. /package/{rules → dist/content/rules}/hatch3r-component-conventions.mdc +0 -0
  261. /package/{rules → dist/content/rules}/hatch3r-deep-context.mdc +0 -0
  262. /package/{rules → dist/content/rules}/hatch3r-feature-flags.md +0 -0
  263. /package/{rules → dist/content/rules}/hatch3r-feature-flags.mdc +0 -0
  264. /package/{rules → dist/content/rules}/hatch3r-git-conventions.mdc +0 -0
  265. /package/{rules → dist/content/rules}/hatch3r-i18n.mdc +0 -0
  266. /package/{rules → dist/content/rules}/hatch3r-iteration-summary.mdc +0 -0
  267. /package/{rules → dist/content/rules}/hatch3r-progressive-delivery.md +0 -0
  268. /package/{rules → dist/content/rules}/hatch3r-progressive-delivery.mdc +0 -0
  269. /package/{rules → dist/content/rules}/hatch3r-theming.mdc +0 -0
  270. /package/{skills → dist/content/skills}/hatch3r-a11y-audit/references/manual-audit-checklist.md +0 -0
  271. /package/{skills → dist/content/skills}/hatch3r-ai-feature/SKILL.md +0 -0
  272. /package/{skills → dist/content/skills}/hatch3r-api-spec/SKILL.md +0 -0
  273. /package/{skills → dist/content/skills}/hatch3r-ci-pipeline/SKILL.md +0 -0
  274. /package/{skills → dist/content/skills}/hatch3r-issue-workflow/references/delegation-patterns.md +0 -0
  275. /package/{skills → dist/content/skills}/hatch3r-logical-refactor/SKILL.md +0 -0
  276. /package/{skills → dist/content/skills}/hatch3r-reliability-verify/SKILL.md +0 -0
@@ -1,158 +0,0 @@
1
- ---
2
- id: hatch3r-bug-triage
3
- type: prompt
4
- description: Triage a bug report and suggest investigation steps
5
- tags: [core]
6
- efficiency_patterns: agents/shared/efficiency-patterns.md
7
- cache_friendly: true
8
- ---
9
- # Bug Triage
10
-
11
- Triage the described bug and produce a structured investigation plan with severity classification, root cause hypotheses, and recommended fix approach.
12
-
13
- ## Instructions
14
-
15
- 1. **Classify severity** using the matrix below. Consider both user impact and data integrity risk.
16
- 2. **Identify affected area** from the description — map to specific modules, services, or components.
17
- 3. **Assess blast radius** — how many users are affected? Is data at risk? Are there downstream effects?
18
- 4. **List 3–5 investigation steps** with specific files, functions, or logs to check. Order by likelihood of finding the root cause.
19
- 5. **Suggest a minimal reproduction path** — exact steps a developer can follow to reproduce the bug locally.
20
- 6. **Propose a fix approach** if the root cause is evident, including which files to change and what tests to add.
21
- 7. **Flag related issues** — check for similar past bugs, related symptoms, or recent regressions.
22
-
23
- ## Severity Matrix
24
-
25
- | Priority | Criteria | Response SLA | Examples |
26
- |----------|----------|-------------|----------|
27
- | **P0** | Data loss, security breach, complete service outage | Immediate (drop everything) | Credential leak, database corruption, auth bypass |
28
- | **P1** | Core feature broken, no workaround, significant user impact | Same day | Login fails, payments broken, data not saving |
29
- | **P2** | Feature degraded, workaround exists, moderate user impact | Within sprint | Slow page load, intermittent error, UI glitch on edge case |
30
- | **P3** | Cosmetic issue, minor inconvenience, low frequency | Backlog | Typo, alignment off by 1px, tooltip truncated |
31
-
32
- ## Edge Cases to Consider
33
-
34
- - Is this a regression? Check recent deploys and PRs merged near the reported time.
35
- - Is this environment-specific? Different behavior in dev/staging/prod, different browsers, or different locales.
36
- - Is this timing-dependent? Race conditions, timezone issues, cache staleness.
37
- - Is this data-dependent? Specific user data, edge-case input values, empty/null states.
38
- - Is this intermittent? Flaky behavior suggests concurrency, caching, or external dependency issues.
39
-
40
- ## Output Template
41
-
42
- ```markdown
43
- ## Bug Triage: {short title}
44
-
45
- ### Classification
46
-
47
- | Field | Value |
48
- |-------|-------|
49
- | **Priority** | P0 / P1 / P2 / P3 |
50
- | **Affected Area** | {module / service / component} |
51
- | **Blast Radius** | {all users / subset / single user} |
52
- | **Regression?** | Yes (since {version/date}) / No / Unknown |
53
- | **Data at Risk?** | Yes ({what data}) / No |
54
-
55
- ### Reproduction Steps
56
-
57
- 1. {exact step}
58
- 2. {exact step}
59
- 3. {exact step}
60
- - **Expected:** {what should happen}
61
- - **Actual:** {what happens instead}
62
- - **Environment:** {browser, OS, locale, or server environment}
63
-
64
- ### Investigation Plan
65
-
66
- | # | Step | Where to Look | What to Check |
67
- |---|------|---------------|---------------|
68
- | 1 | {action} | `{file:function}` | {what to look for} |
69
- | 2 | {action} | `{log source}` | {pattern or error message} |
70
- | 3 | {action} | `{git log / deploy history}` | {recent changes in area} |
71
-
72
- ### Root Cause Hypotheses
73
-
74
- | Rank | Hypothesis | Likelihood | Evidence |
75
- |------|-----------|-----------|----------|
76
- | 1 | {most likely cause} | High / Med / Low | {supporting evidence} |
77
- | 2 | {alternative cause} | High / Med / Low | {supporting evidence} |
78
-
79
- ### Recommended Fix
80
-
81
- - **Approach:** {description of fix}
82
- - **Files to change:** {list}
83
- - **Tests to add:** {regression test description}
84
- - **Rollback plan:** {if fix is risky}
85
-
86
- ### Related Issues
87
-
88
- - #{N} — {title} ({similarity reason})
89
- ```
90
-
91
- ## Few-Shot Examples
92
-
93
- ### Example 1: P0 Security Bug
94
-
95
- **Input:** "Users can see other users' billing information by changing the user ID in the URL."
96
-
97
- **Output:**
98
-
99
- ```markdown
100
- ## Bug Triage: IDOR in billing endpoint
101
-
102
- ### Classification
103
-
104
- | Field | Value |
105
- |-------|-------|
106
- | **Priority** | P0 |
107
- | **Affected Area** | API — billing routes |
108
- | **Blast Radius** | All users with billing data |
109
- | **Regression?** | Unknown — check when `/api/billing/:userId` was added |
110
- | **Data at Risk?** | Yes — billing addresses, payment method last-4, invoice history |
111
-
112
- ### Investigation Plan
113
-
114
- | # | Step | Where to Look | What to Check |
115
- |---|------|---------------|---------------|
116
- | 1 | Check auth middleware | `src/routes/billing.ts` | Is `requireAuth` applied? Does it verify `userId === req.user.id`? |
117
- | 2 | Check authorization | `src/middleware/auth.ts` | Is ownership validated, not just authentication? |
118
- | 3 | Check other user-scoped routes | `src/routes/*.ts` | Same pattern may exist elsewhere |
119
-
120
- ### Recommended Fix
121
-
122
- - **Approach:** Add ownership check: `if (params.userId !== req.user.id) return 403`
123
- - **Files to change:** `src/routes/billing.ts`, `src/middleware/auth.ts` (add `requireOwnership` helper)
124
- - **Tests to add:** Test that user A cannot access user B's billing endpoint
125
- ```
126
-
127
- ### Example 2: P2 UI Bug
128
-
129
- **Input:** "Date picker shows wrong month when timezone is UTC-12."
130
-
131
- **Output:**
132
-
133
- ```markdown
134
- ## Bug Triage: Date picker timezone offset
135
-
136
- ### Classification
137
-
138
- | Field | Value |
139
- |-------|-------|
140
- | **Priority** | P2 |
141
- | **Affected Area** | UI — DatePicker component |
142
- | **Blast Radius** | Users in far-west timezones (low frequency) |
143
- | **Regression?** | No — likely always present |
144
- | **Data at Risk?** | No — display only |
145
-
146
- ### Investigation Plan
147
-
148
- | # | Step | Where to Look | What to Check |
149
- |---|------|---------------|---------------|
150
- | 1 | Check date construction | `src/components/DatePicker.ts` | Is `new Date()` used without timezone normalization? |
151
- | 2 | Check locale formatting | `src/utils/dates.ts` | Is `Intl.DateTimeFormat` using the correct timezone? |
152
- | 3 | Test with mocked timezone | `tests/unit/` | Set `TZ=Etc/GMT+12` and verify month calculation |
153
-
154
- ### Recommended Fix
155
-
156
- - **Approach:** Normalize to UTC before extracting month/year for display
157
- - **Tests to add:** Parameterized test across UTC-12, UTC, UTC+14
158
- ```
@@ -1,134 +0,0 @@
1
- ---
2
- id: hatch3r-code-review
3
- type: prompt
4
- description: Review code changes for quality, security, and correctness
5
- tags: [core]
6
- efficiency_patterns: agents/shared/efficiency-patterns.md
7
- cache_friendly: true
8
- ---
9
- # Code Review
10
-
11
- Review the provided code changes for quality, security, and correctness. Produce a structured review report with actionable feedback.
12
-
13
- ## Instructions
14
-
15
- 1. **Correctness** — Does the code do what it is supposed to? Verify against acceptance criteria, spec references, and expected behavior. Check for off-by-one errors, missing null/undefined handling, incorrect operator usage, and logic inversions.
16
- 2. **Security** — Input validation at boundaries, auth checks on every route, no secrets in code or logs, CSRF protection on mutations, parameterized queries, safe deserialization. Flag any trust boundary violations.
17
- 3. **Code Quality** — Naming follows conventions, functions < 50 lines, files < 400 lines, cyclomatic complexity ≤ 10, no dead code or unused imports, DRY without over-abstraction.
18
- 4. **Type Safety** — No `any`, no `@ts-ignore` without a linked issue, discriminated unions preferred over type assertions, `satisfies` over `as` where applicable.
19
- 5. **Performance** — No N+1 queries, no unnecessary allocations in hot paths, lazy loading for large imports, no unbounded list fetches, bundle size impact assessed.
20
- 6. **Testing** — New logic has unit tests, bug fixes have regression tests, edge cases covered, mocks are minimal and focused.
21
- 7. **Accessibility** — If UI changes: keyboard navigation, WCAG AA contrast (4.5:1), ARIA attributes, `prefers-reduced-motion` respected.
22
- 8. **Error Handling** — Errors caught and handled at the appropriate level, user-facing errors are informative but safe (no stack traces), fail-closed defaults.
23
-
24
- ## Edge Cases to Watch
25
-
26
- - Empty collections and null/undefined inputs at boundaries
27
- - Concurrent modifications and race conditions
28
- - Unicode and multi-byte string handling
29
- - Timezone-sensitive date operations
30
- - Large payload sizes and pagination exhaustion
31
- - Partial failures in batch operations
32
-
33
- ## Severity Classification
34
-
35
- | Severity | Criteria | Action |
36
- |----------|----------|--------|
37
- | **Critical** | Security vulnerability, data loss risk, privacy violation, incorrect business logic | Must fix before merge |
38
- | **Warning** | Performance regression, missing tests, code quality violation, poor error handling | Should fix, PR author decides timing |
39
- | **Suggestion** | Naming improvement, alternative pattern, readability enhancement | Nice to have, not blocking |
40
-
41
- ## Output Template
42
-
43
- ```markdown
44
- ## Code Review: {file or PR scope}
45
-
46
- **Verdict:** APPROVE | REQUEST CHANGES | COMMENT
47
-
48
- ### Critical
49
-
50
- | # | File:Line | Issue | Suggestion |
51
- |---|-----------|-------|------------|
52
- | 1 | `src/auth.ts:42` | Missing token expiry check | Add `if (isExpired(token)) throw new AuthError(...)` |
53
-
54
- ### Warnings
55
-
56
- | # | File:Line | Issue | Suggestion |
57
- |---|-----------|-------|------------|
58
- | 1 | `src/api/users.ts:78` | No test for empty input case | Add unit test for `getUser(undefined)` |
59
-
60
- ### Suggestions
61
-
62
- | # | File:Line | Issue | Suggestion |
63
- |---|-----------|-------|------------|
64
- | 1 | `src/utils.ts:15` | `data` is vague | Rename to `userProfile` for clarity |
65
-
66
- ### Summary
67
-
68
- - Critical: {n} | Warnings: {n} | Suggestions: {n}
69
- - Test coverage: {assessed / not assessed}
70
- - Security: {no issues / issues found}
71
- ```
72
-
73
- ## Few-Shot Examples
74
-
75
- ### Example 1: Security Issue Found
76
-
77
- **Input:** A diff adding a new API endpoint:
78
-
79
- ```typescript
80
- app.post("/api/admin/users", async (req, res) => {
81
- const user = await db.createUser(req.body);
82
- res.json(user);
83
- });
84
- ```
85
-
86
- **Output:**
87
-
88
- ```markdown
89
- ## Code Review: src/routes/admin.ts
90
-
91
- **Verdict:** REQUEST CHANGES
92
-
93
- ### Critical
94
-
95
- | # | File:Line | Issue | Suggestion |
96
- |---|-----------|-------|------------|
97
- | 1 | `src/routes/admin.ts:12` | No auth middleware on admin endpoint | Add `requireAuth("admin")` middleware before handler |
98
- | 2 | `src/routes/admin.ts:13` | `req.body` used without validation | Add zod schema: `const body = CreateUserSchema.parse(req.body)` |
99
-
100
- ### Warnings
101
-
102
- | # | File:Line | Issue | Suggestion |
103
- |---|-----------|-------|------------|
104
- | 1 | `src/routes/admin.ts:14` | Full user object returned including password hash | Return `omit(user, ["passwordHash"])` |
105
-
106
- ### Summary
107
-
108
- - Critical: 2 | Warnings: 1 | Suggestions: 0
109
- - Security: AUTH MISSING, INPUT UNVALIDATED
110
- ```
111
-
112
- ### Example 2: Clean Code with Minor Suggestions
113
-
114
- **Input:** A utility function refactor with tests.
115
-
116
- **Output:**
117
-
118
- ```markdown
119
- ## Code Review: src/utils/format.ts
120
-
121
- **Verdict:** APPROVE
122
-
123
- ### Suggestions
124
-
125
- | # | File:Line | Issue | Suggestion |
126
- |---|-----------|-------|------------|
127
- | 1 | `src/utils/format.ts:8` | `formatDate` accepts `any` | Use `Date | string | number` union type |
128
-
129
- ### Summary
130
-
131
- - Critical: 0 | Warnings: 0 | Suggestions: 1
132
- - Test coverage: 4 new tests added, edge cases covered
133
- - Security: no issues
134
- ```
@@ -1,176 +0,0 @@
1
- ---
2
- id: hatch3r-pr-description
3
- type: prompt
4
- description: Generate a pull request description from staged changes
5
- tags: [core]
6
- efficiency_patterns: agents/shared/efficiency-patterns.md
7
- cache_friendly: true
8
- ---
9
- # PR Description
10
-
11
- Generate a pull request description for the current changes. Analyze the diff and produce a structured, reviewer-friendly PR description.
12
-
13
- ## Instructions
14
-
15
- 1. **Analyze the staged diff and recent commits** on this branch. Identify all files changed, lines added/removed, and the nature of each change.
16
- 2. **Identify the type of change:**
17
-
18
- | Type | Prefix | When to Use |
19
- |------|--------|-------------|
20
- | Feature | `feat:` | New functionality or capability |
21
- | Fix | `fix:` | Bug fix or error correction |
22
- | Refactor | `refactor:` | Code restructuring without behavior change |
23
- | Docs | `docs:` | Documentation only |
24
- | Test | `test:` | Adding or updating tests only |
25
- | Infra | `infra:` | CI/CD, build config, tooling |
26
- | Perf | `perf:` | Performance improvement |
27
- | Security | `security:` | Security fix or hardening |
28
-
29
- 3. **Write a concise title** following Conventional Commits: `{type}: {short description}` (max 72 characters).
30
- 4. **Write the body** with structured sections (see template below).
31
- 5. **Assess risk level** — low (docs, tests), medium (new feature, refactor), high (auth, data model, security).
32
-
33
- ## Edge Cases to Handle
34
-
35
- - **Multiple change types:** If the PR spans types (e.g., feature + tests + docs), use the primary type and note others in the summary.
36
- - **Breaking changes:** Always include a `## Breaking Changes` section with migration instructions. Prefix title with `feat!:` or `fix!:`.
37
- - **Large PRs:** If the diff exceeds 500 lines, suggest splitting. List logical split points.
38
- - **No linked issue:** Flag this — every PR should reference an issue.
39
- - **Reverts:** Use `revert:` prefix and link to the original PR being reverted.
40
-
41
- ## Output Template
42
-
43
- ```markdown
44
- ## {type}: {short description}
45
-
46
- ### Summary
47
-
48
- - {what changed — 1-3 bullet points explaining the change and why it was needed}
49
-
50
- ### Changes
51
-
52
- | File | Change | Description |
53
- |------|--------|-------------|
54
- | `{path}` | Added / Modified / Deleted | {what and why} |
55
-
56
- ### Test Plan
57
-
58
- - [ ] {how to verify the changes work — specific steps}
59
- - [ ] {edge case verified}
60
- - [ ] Lint and typecheck pass
61
- - [ ] All tests pass
62
-
63
- ### Risk Assessment
64
-
65
- | Factor | Level | Notes |
66
- |--------|-------|-------|
67
- | **Scope** | Low / Med / High | {number of files, modules touched} |
68
- | **Data impact** | None / Low / High | {any schema or data changes} |
69
- | **Security** | None / Low / High | {auth, input validation, secrets} |
70
- | **Rollback** | Easy / Complex | {can this be reverted cleanly?} |
71
-
72
- ### Breaking Changes
73
-
74
- {None, or describe what breaks and how to migrate}
75
-
76
- ### Related
77
-
78
- - Closes #{issue_number}
79
- - Related: #{other_issue}
80
- ```
81
-
82
- ## Few-Shot Examples
83
-
84
- ### Example 1: Feature PR
85
-
86
- **Input:** Diff adds a new rate-limiting middleware, updates 3 route files, adds tests.
87
-
88
- **Output:**
89
-
90
- ```markdown
91
- ## feat: add rate limiting to public API endpoints
92
-
93
- ### Summary
94
-
95
- - Add token-bucket rate limiter middleware to prevent abuse of public endpoints
96
- - Apply 100 req/min limit to auth endpoints, 1000 req/min to read endpoints
97
- - Return standard `429 Too Many Requests` with `Retry-After` header
98
-
99
- ### Changes
100
-
101
- | File | Change | Description |
102
- |------|--------|-------------|
103
- | `src/middleware/rateLimiter.ts` | Added | Token-bucket implementation with Redis backing |
104
- | `src/routes/auth.ts` | Modified | Apply rate limiter with auth-tier limits |
105
- | `src/routes/api.ts` | Modified | Apply rate limiter with standard-tier limits |
106
- | `tests/unit/rateLimiter.test.ts` | Added | 8 tests covering burst, steady-state, and reset |
107
-
108
- ### Test Plan
109
-
110
- - [ ] Verify 429 returned after exceeding limit
111
- - [ ] Verify `Retry-After` header is accurate
112
- - [ ] Verify rate limit resets after window expires
113
- - [ ] Load test confirms no false positives under normal traffic
114
-
115
- ### Risk Assessment
116
-
117
- | Factor | Level | Notes |
118
- |--------|-------|-------|
119
- | **Scope** | Medium | 3 route files + new middleware |
120
- | **Data impact** | None | No schema changes |
121
- | **Security** | Low | Additive security improvement |
122
- | **Rollback** | Easy | Remove middleware from routes |
123
-
124
- ### Breaking Changes
125
-
126
- None
127
-
128
- ### Related
129
-
130
- - Closes #42
131
- ```
132
-
133
- ### Example 2: Bug Fix PR
134
-
135
- **Input:** Diff fixes an off-by-one error in pagination, adds a regression test.
136
-
137
- **Output:**
138
-
139
- ```markdown
140
- ## fix: correct off-by-one in cursor pagination
141
-
142
- ### Summary
143
-
144
- - Fix pagination returning duplicate items when cursor falls on page boundary
145
- - Root cause: `>=` comparison should have been `>` in cursor offset calculation
146
-
147
- ### Changes
148
-
149
- | File | Change | Description |
150
- |------|--------|-------------|
151
- | `src/db/pagination.ts` | Modified | Fix boundary comparison operator |
152
- | `tests/unit/pagination.test.ts` | Modified | Add regression test for boundary cursor |
153
-
154
- ### Test Plan
155
-
156
- - [ ] Verify no duplicates at page boundary (regression test added)
157
- - [ ] Verify first page, last page, and empty result still work
158
- - [ ] Existing pagination tests still pass
159
-
160
- ### Risk Assessment
161
-
162
- | Factor | Level | Notes |
163
- |--------|-------|-------|
164
- | **Scope** | Low | Single line fix + test |
165
- | **Data impact** | None | Read-only query change |
166
- | **Security** | None | No auth changes |
167
- | **Rollback** | Easy | Revert single commit |
168
-
169
- ### Breaking Changes
170
-
171
- None
172
-
173
- ### Related
174
-
175
- - Closes #87
176
- ```
@@ -1,20 +0,0 @@
1
- ---
2
- id: hatch3r-observability-tracing-detail
3
- type: rule
4
- description: "[Deprecated] AI agent tracing detail rule -- consolidated into hatch3r-observability-tracing's AI Agent Instrumentation section"
5
- scope: conditional
6
- globs: "**/*trac*,**/*span*,**/*telemetry*,**/*otel*,**/*agent*,**/observability/**,**/routes/**,**/handlers/**,**/services/**,**/api/**,**/middleware/**,**/controllers/**,**/lib/**"
7
- tags: [devops]
8
- quality_charter: agents/shared/quality-charter.md
9
- deprecated: true
10
- cache_friendly: true
11
- ---
12
- # Observability -- Tracing Extended Reference (Deprecated Redirect)
13
-
14
- This rule has been merged into `hatch3r-observability-tracing`. Load that rule for AI agent instrumentation, tool call spans, LLM request/response tracing, tool call audit trails, and correlation ID patterns.
15
-
16
- - See `hatch3r-observability-tracing` § "AI Agent Instrumentation" for: GenAI span attributes, agent invocation spans, tool call spans, LLM request/response tracing, tool call audit trail, correlation IDs for agent workflows.
17
-
18
- <!-- DEPRECATED-CONTENT-REMOVED -->
19
-
20
- The full content has been migrated to `hatch3r-observability-tracing`.
@@ -1,14 +0,0 @@
1
- ---
2
- description: "[Deprecated] AI agent tracing detail rule -- consolidated into hatch3r-observability-tracing's AI Agent Instrumentation section"
3
- globs: ["**/*trac*", "**/*span*", "**/*telemetry*", "**/*otel*", "**/*agent*", "**/observability/**", "**/routes/**", "**/handlers/**", "**/services/**", "**/api/**", "**/middleware/**", "**/controllers/**", "**/lib/**"]
4
- alwaysApply: false
5
- ---
6
- # Observability -- Tracing Extended Reference (Deprecated Redirect)
7
-
8
- This rule has been merged into `hatch3r-observability-tracing`. Load that rule for AI agent instrumentation, tool call spans, LLM request/response tracing, tool call audit trails, and correlation ID patterns.
9
-
10
- - See `hatch3r-observability-tracing` § "AI Agent Instrumentation" for: GenAI span attributes, agent invocation spans, tool call spans, LLM request/response tracing, tool call audit trail, correlation IDs for agent workflows.
11
-
12
- <!-- DEPRECATED-CONTENT-REMOVED -->
13
-
14
- The full content has been migrated to `hatch3r-observability-tracing`.
@@ -1,20 +0,0 @@
1
- ---
2
- id: hatch3r-observability
3
- type: rule
4
- description: "[Deprecated] Observability conventions -- split into hatch3r-observability-logging, hatch3r-observability-metrics, and hatch3r-observability-tracing"
5
- scope: conditional
6
- globs: "**/routes/**,**/handlers/**,**/services/**,**/api/**,**/middleware/**,**/controllers/**,**/lib/**,**/observability/**"
7
- tags: [devops]
8
- quality_charter: agents/shared/quality-charter.md
9
- deprecated: true
10
- cache_friendly: true
11
- ---
12
- # Observability (Deprecated Redirect)
13
-
14
- This rule has been split into three focused rules for maintainability:
15
-
16
- - **`hatch3r-observability-logging`** -- Structured logging and error reporting conventions
17
- - **`hatch3r-observability-metrics`** -- Metrics, SLO/SLI definitions, alerting, and dashboard standards
18
- - **`hatch3r-observability-tracing`** -- Distributed tracing, OpenTelemetry semantic conventions, AI agent instrumentation, and correlation IDs
19
-
20
- Load the specific rule that matches your task scope instead of this file.
@@ -1,14 +0,0 @@
1
- ---
2
- description: "[Deprecated] Observability conventions -- split into hatch3r-observability-logging, hatch3r-observability-metrics, and hatch3r-observability-tracing"
3
- globs: ["**/routes/**", "**/handlers/**", "**/services/**", "**/api/**", "**/middleware/**", "**/controllers/**", "**/lib/**", "**/observability/**"]
4
- alwaysApply: false
5
- ---
6
- # Observability (Deprecated Redirect)
7
-
8
- This rule has been split into three focused rules for maintainability:
9
-
10
- - **`hatch3r-observability-logging`** -- Structured logging and error reporting conventions
11
- - **`hatch3r-observability-metrics`** -- Metrics, SLO/SLI definitions, alerting, and dashboard standards
12
- - **`hatch3r-observability-tracing`** -- Distributed tracing, OpenTelemetry semantic conventions, AI agent instrumentation, and correlation IDs
13
-
14
- Load the specific rule that matches your task scope instead of this file.
@@ -1,23 +0,0 @@
1
- ---
2
- id: hatch3r-agent-customize
3
- description: Redirect to write agent persona, model, and apply-scope overrides under .hatch3r/agents/ -- use when tailoring a sub-agent for the current repository
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
- # Agent Customization
11
-
12
- > **This skill has been consolidated.** Use the `hatch3r-customize` skill with `type: agent`.
13
-
14
- For agent-specific reference (model resolution, protected agents, YAML schema), see the `hatch3r-agent-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-agent-customize` or referenced the id `hatch3r-agent-customize` (per CHANGELOG.md, `website/docs/reference/configuration.md:325`, `docs/model-selection.md:158`) 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,84 +0,0 @@
1
- ---
2
- id: hatch3r-cli-aichat
3
- description: "Multi-provider LLM chat CLI with RAG and session memory. Use when RAG-enabled multi-provider conversational shell with saved session history; invoke `aichat`. Streams tokens to stdout so downstream `grep`/`tee` consumers see partial results."
4
- tags: ["cli-tools", "ai", "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: aichat
10
- bin: aichat
11
- tier: 3
12
- category: ai
13
- homepage: https://github.com/sigoden/aichat
14
- ---
15
- <!-- HATCH3R-CLI-SKILL-GENERATED v1 -->
16
- # aichat
17
-
18
- Multi-provider LLM chat CLI with RAG and session memory
19
-
20
- ## When to Use
21
-
22
- Reach for `aichat` when the task is in the **ai** 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
- aichat 'explain this commit message' < commit.txt
33
- ```
34
- One-shot prompt with stdin as the input payload.
35
-
36
- ```bash
37
- aichat -r 'tech writer' 'rewrite as bullets' < draft.md
38
- ```
39
- Apply a saved role (`~/.config/aichat/roles/tech-writer.md`) as the system prompt.
40
-
41
- ```bash
42
- aichat --model claude-3-5-sonnet -e 'summarize' README.md
43
- ```
44
- Pin the model and pass a file argument directly — `-e` executes the prompt non-interactively.
45
-
46
- ```bash
47
- aichat --rag mydocs 'how do we configure auth?'
48
- ```
49
- Query a pre-built RAG index over local documentation — runs embeddings locally, no remote indexer needed.
50
-
51
- ```bash
52
- aichat --session refactor-plan
53
- ```
54
- Resume a named session with persisted history — useful for multi-turn refinement loops.
55
-
56
- ## Wrong Choice When
57
-
58
- - **Scripted Unix-style pipelines with a rich plugin ecosystem:** `hatch3r-cli-llm` (tier 2) has plugin support for templates, embeddings, and provider adapters not in aichat.
59
- - **Offline-only / fully local inference:** aichat supports Ollama backends but adds an unneeded abstraction; talk to Ollama's HTTP API directly via `curl`.
60
- - **CI batch tasks that benefit from `mods` pipe semantics:** `hatch3r-cli-mods` reads a single piped payload then exits — simpler for one-shot transforms.
61
-
62
- ## Alternatives
63
-
64
- | Tool | When to prefer |
65
- |------|----------------|
66
- | `hatch3r-cli-llm` (tier 2) | Plugin ecosystem, templates, embeddings, structured CI use |
67
- | `hatch3r-cli-mods` (tier 3) | Single-piped-payload transforms, Unix-pipe ergonomics |
68
- | Raw `curl` against Ollama / provider HTTP API | Maximum control, no client-side caching or session state |
69
-
70
- ## Detection / Install
71
-
72
- Verify with:
73
- ```bash
74
- command -v aichat
75
- ```
76
-
77
- Install (mac):
78
-
79
- ```bash
80
- # brew
81
- brew install aichat
82
- ```
83
-
84
- Homepage: https://github.com/sigoden/aichat