hatch3r 1.7.5 → 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 +37 -56
  2. package/dist/cli/index.js +13554 -13329
  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 +25 -9
  7. package/{agents → dist/content/agents}/hatch3r-creator.md +17 -16
  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 +12 -12
  12. package/{agents → dist/content/agents}/hatch3r-handoff-preparer.md +7 -7
  13. package/{agents → dist/content/agents}/hatch3r-implementer.md +10 -2
  14. package/{agents → dist/content/agents}/hatch3r-learnings-loader.md +12 -12
  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 +6 -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 +41 -11
  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 +8 -1
  35. package/{commands → dist/content/commands}/hatch3r-benchmark.md +8 -1
  36. package/{commands → dist/content/commands}/hatch3r-board-fill.md +14 -7
  37. package/{commands → dist/content/commands}/hatch3r-board-pickup.md +14 -6
  38. package/{commands → dist/content/commands}/hatch3r-bug-plan.md +12 -5
  39. package/{commands → dist/content/commands}/hatch3r-codebase-map.md +10 -2
  40. package/{commands → dist/content/commands}/hatch3r-create.md +68 -15
  41. package/{commands → dist/content/commands}/hatch3r-debug.md +18 -11
  42. package/{commands → dist/content/commands}/hatch3r-feature-plan.md +12 -5
  43. package/{commands → dist/content/commands}/hatch3r-handoff.md +16 -9
  44. package/{commands → dist/content/commands}/hatch3r-healthcheck.md +5 -1
  45. package/{commands → dist/content/commands}/hatch3r-hooks.md +16 -12
  46. package/{commands → dist/content/commands}/hatch3r-learn.md +27 -11
  47. package/{commands → dist/content/commands}/hatch3r-migration-plan.md +9 -2
  48. package/{commands → dist/content/commands}/hatch3r-onboard.md +14 -7
  49. package/{commands → dist/content/commands}/hatch3r-pr-resolve.md +16 -9
  50. package/{commands → dist/content/commands}/hatch3r-project-spec.md +11 -3
  51. package/{commands → dist/content/commands}/hatch3r-quick-change.md +14 -7
  52. package/{commands → dist/content/commands}/hatch3r-refactor-plan.md +11 -4
  53. package/{commands → dist/content/commands}/hatch3r-report.md +1 -1
  54. package/{commands → dist/content/commands}/hatch3r-revision.md +14 -7
  55. package/{commands → dist/content/commands}/hatch3r-roadmap.md +10 -2
  56. package/{commands → dist/content/commands}/hatch3r-security-audit.md +6 -2
  57. package/{commands → dist/content/commands}/hatch3r-test-plan.md +12 -5
  58. package/{commands → dist/content/commands}/hatch3r-workflow.md +18 -10
  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 +5 -2
  74. package/{rules → dist/content/rules}/hatch3r-agent-orchestration-detail.mdc +4 -1
  75. package/{rules → dist/content/rules}/hatch3r-agent-orchestration.md +27 -4
  76. package/{rules → dist/content/rules}/hatch3r-agent-orchestration.mdc +26 -3
  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 +3 -1
  108. package/{rules → dist/content/rules}/hatch3r-iteration-summary.mdc +2 -0
  109. package/{rules → dist/content/rules}/hatch3r-learning-consult.md +7 -7
  110. package/{rules → dist/content/rules}/hatch3r-learning-consult.mdc +6 -6
  111. package/{rules → dist/content/rules}/hatch3r-migrations.md +2 -1
  112. package/{rules → dist/content/rules}/hatch3r-migrations.mdc +1 -0
  113. package/{rules → dist/content/rules}/hatch3r-observability-logging.md +1 -0
  114. package/{rules → dist/content/rules}/hatch3r-observability-logging.mdc +1 -0
  115. package/{rules → dist/content/rules}/hatch3r-observability-metrics.md +1 -0
  116. package/{rules → dist/content/rules}/hatch3r-observability-metrics.mdc +1 -0
  117. package/{rules/hatch3r-observability-tracing-detail.md → dist/content/rules/hatch3r-observability-tracing.md} +85 -10
  118. package/{rules/hatch3r-observability-tracing-detail.mdc → dist/content/rules/hatch3r-observability-tracing.mdc} +84 -9
  119. package/{rules → dist/content/rules}/hatch3r-operability.md +1 -0
  120. package/{rules → dist/content/rules}/hatch3r-operability.mdc +1 -0
  121. package/{rules → dist/content/rules}/hatch3r-passkey-server.md +2 -1
  122. package/{rules → dist/content/rules}/hatch3r-passkey-server.mdc +1 -0
  123. package/{rules → dist/content/rules}/hatch3r-performance-budgets.md +1 -1
  124. package/{rules → dist/content/rules}/hatch3r-performance-budgets.mdc +1 -1
  125. package/{rules → dist/content/rules}/hatch3r-resilience-patterns.md +1 -0
  126. package/{rules → dist/content/rules}/hatch3r-resilience-patterns.mdc +1 -0
  127. package/{rules → dist/content/rules}/hatch3r-secrets-management.md +2 -1
  128. package/{rules → dist/content/rules}/hatch3r-secrets-management.mdc +1 -0
  129. package/{rules → dist/content/rules}/hatch3r-security-patterns.md +2 -1
  130. package/{rules → dist/content/rules}/hatch3r-security-patterns.mdc +1 -0
  131. package/{rules → dist/content/rules}/hatch3r-testing.md +2 -1
  132. package/{rules → dist/content/rules}/hatch3r-testing.mdc +1 -0
  133. package/{rules → dist/content/rules}/hatch3r-theming.md +1 -1
  134. package/{rules → dist/content/rules}/hatch3r-tooling-hierarchy.md +4 -4
  135. package/{rules → dist/content/rules}/hatch3r-tooling-hierarchy.mdc +3 -3
  136. package/{rules → dist/content/rules}/hatch3r-ux-states-and-flows.md +2 -1
  137. package/{rules → dist/content/rules}/hatch3r-ux-states-and-flows.mdc +1 -0
  138. package/{skills → dist/content/skills}/hatch3r-a11y-audit/SKILL.md +1 -1
  139. package/{skills → dist/content/skills}/hatch3r-ai-feature/SKILL.md +2 -0
  140. package/{skills → dist/content/skills}/hatch3r-api-spec/SKILL.md +68 -0
  141. package/{skills → dist/content/skills}/hatch3r-architecture-review/SKILL.md +1 -1
  142. package/{commands/hatch3r-board-groom.md → dist/content/skills/hatch3r-board-groom/SKILL.md} +7 -16
  143. package/{commands/hatch3r-board-init.md → dist/content/skills/hatch3r-board-init/SKILL.md} +62 -24
  144. package/{commands/hatch3r-board-refresh.md → dist/content/skills/hatch3r-board-refresh/SKILL.md} +7 -16
  145. package/{commands/hatch3r-board-shared.md → dist/content/skills/hatch3r-board-shared/SKILL.md} +13 -20
  146. package/{skills → dist/content/skills}/hatch3r-bug-fix/SKILL.md +1 -1
  147. package/{skills → dist/content/skills}/hatch3r-cli-fd/SKILL.md +1 -1
  148. package/{skills → dist/content/skills}/hatch3r-cli-fzf/SKILL.md +1 -1
  149. package/{skills → dist/content/skills}/hatch3r-cli-gh/SKILL.md +4 -4
  150. package/{skills → dist/content/skills}/hatch3r-cli-jq/SKILL.md +7 -3
  151. package/{skills → dist/content/skills}/hatch3r-cli-ripgrep/SKILL.md +3 -3
  152. package/dist/content/skills/hatch3r-cli-toolbox/SKILL.md +269 -0
  153. package/{skills → dist/content/skills}/hatch3r-context-health/SKILL.md +18 -2
  154. package/{skills → dist/content/skills}/hatch3r-cost-tracking/SKILL.md +59 -7
  155. package/{skills → dist/content/skills}/hatch3r-customize/SKILL.md +6 -4
  156. package/{skills → dist/content/skills}/hatch3r-dep-audit/SKILL.md +6 -2
  157. package/{skills → dist/content/skills}/hatch3r-design-system-detect/SKILL.md +3 -1
  158. package/{skills → dist/content/skills}/hatch3r-feature/SKILL.md +1 -1
  159. package/{skills → dist/content/skills}/hatch3r-gh-agentic-workflows/SKILL.md +4 -4
  160. package/{skills → dist/content/skills}/hatch3r-gh-agentic-workflows/references/azure-devops.md +2 -2
  161. package/{skills → dist/content/skills}/hatch3r-gh-agentic-workflows/references/gitlab-ci.md +1 -1
  162. package/{skills → dist/content/skills}/hatch3r-handoff-prepare/SKILL.md +9 -9
  163. package/{skills → dist/content/skills}/hatch3r-handoff-resume/SKILL.md +2 -2
  164. package/{skills → dist/content/skills}/hatch3r-incident-response/SKILL.md +2 -2
  165. package/{skills → dist/content/skills}/hatch3r-issue-workflow/SKILL.md +4 -4
  166. package/{skills → dist/content/skills}/hatch3r-migration/SKILL.md +1 -1
  167. package/{skills → dist/content/skills}/hatch3r-observability-verify/SKILL.md +4 -4
  168. package/{skills → dist/content/skills}/hatch3r-perf-audit/SKILL.md +1 -1
  169. package/{skills → dist/content/skills}/hatch3r-pr-creation/SKILL.md +4 -4
  170. package/{skills → dist/content/skills}/hatch3r-qa-validation/SKILL.md +2 -2
  171. package/{skills → dist/content/skills}/hatch3r-recipe/SKILL.md +82 -2
  172. package/{skills → dist/content/skills}/hatch3r-refactor/SKILL.md +1 -1
  173. package/{skills → dist/content/skills}/hatch3r-release/SKILL.md +35 -2
  174. package/{skills → dist/content/skills}/hatch3r-reliability-verify/SKILL.md +2 -0
  175. package/{skills → dist/content/skills}/hatch3r-ui-ux-verify/SKILL.md +3 -1
  176. package/{skills → dist/content/skills}/hatch3r-visual-refactor/SKILL.md +1 -1
  177. package/package.json +13 -22
  178. package/commands/hatch3r-agent-customize.md +0 -197
  179. package/commands/hatch3r-command-customize.md +0 -109
  180. package/commands/hatch3r-context-health.md +0 -142
  181. package/commands/hatch3r-cost-tracking.md +0 -163
  182. package/commands/hatch3r-dep-audit.md +0 -184
  183. package/commands/hatch3r-recipe.md +0 -190
  184. package/commands/hatch3r-release.md +0 -345
  185. package/commands/hatch3r-rule-customize.md +0 -129
  186. package/commands/hatch3r-skill-customize.md +0 -108
  187. package/prompts/hatch3r-bug-triage.md +0 -158
  188. package/prompts/hatch3r-code-review.md +0 -134
  189. package/prompts/hatch3r-pr-description.md +0 -176
  190. package/rules/hatch3r-observability-tracing.md +0 -87
  191. package/rules/hatch3r-observability-tracing.mdc +0 -82
  192. package/rules/hatch3r-observability.md +0 -20
  193. package/rules/hatch3r-observability.mdc +0 -14
  194. package/skills/hatch3r-agent-customize/SKILL.md +0 -13
  195. package/skills/hatch3r-cli-aichat/SKILL.md +0 -84
  196. package/skills/hatch3r-cli-ast-grep/SKILL.md +0 -85
  197. package/skills/hatch3r-cli-az-devops/SKILL.md +0 -89
  198. package/skills/hatch3r-cli-bat/SKILL.md +0 -85
  199. package/skills/hatch3r-cli-comby/SKILL.md +0 -85
  200. package/skills/hatch3r-cli-csvkit/SKILL.md +0 -84
  201. package/skills/hatch3r-cli-delta/SKILL.md +0 -86
  202. package/skills/hatch3r-cli-difftastic/SKILL.md +0 -84
  203. package/skills/hatch3r-cli-docker/SKILL.md +0 -89
  204. package/skills/hatch3r-cli-duckdb/SKILL.md +0 -84
  205. package/skills/hatch3r-cli-glab/SKILL.md +0 -89
  206. package/skills/hatch3r-cli-lazygit/SKILL.md +0 -78
  207. package/skills/hatch3r-cli-llm/SKILL.md +0 -84
  208. package/skills/hatch3r-cli-miller/SKILL.md +0 -84
  209. package/skills/hatch3r-cli-mods/SKILL.md +0 -84
  210. package/skills/hatch3r-cli-overview/SKILL.md +0 -60
  211. package/skills/hatch3r-cli-playwright/SKILL.md +0 -89
  212. package/skills/hatch3r-cli-podman/SKILL.md +0 -84
  213. package/skills/hatch3r-cli-rtk/SKILL.md +0 -91
  214. package/skills/hatch3r-cli-sd/SKILL.md +0 -85
  215. package/skills/hatch3r-cli-stagehand/SKILL.md +0 -79
  216. package/skills/hatch3r-cli-taplo/SKILL.md +0 -84
  217. package/skills/hatch3r-cli-xsv/SKILL.md +0 -89
  218. package/skills/hatch3r-cli-yq/SKILL.md +0 -85
  219. package/skills/hatch3r-cli-zstd/SKILL.md +0 -85
  220. package/skills/hatch3r-command-customize/SKILL.md +0 -13
  221. package/skills/hatch3r-rule-customize/SKILL.md +0 -13
  222. package/skills/hatch3r-skill-customize/SKILL.md +0 -13
  223. /package/{agents → dist/content/agents}/hatch3r-architect.md +0 -0
  224. /package/{agents → dist/content/agents}/hatch3r-docs-writer.md +0 -0
  225. /package/{agents → dist/content/agents}/hatch3r-perf-profiler.md +0 -0
  226. /package/{agents → dist/content/agents}/modes/architecture.md +0 -0
  227. /package/{agents → dist/content/agents}/modes/boundary-analysis.md +0 -0
  228. /package/{agents → dist/content/agents}/modes/codebase-impact.md +0 -0
  229. /package/{agents → dist/content/agents}/modes/complexity-risk.md +0 -0
  230. /package/{agents → dist/content/agents}/modes/coverage-analysis.md +0 -0
  231. /package/{agents → dist/content/agents}/modes/current-state.md +0 -0
  232. /package/{agents → dist/content/agents}/modes/feature-design.md +0 -0
  233. /package/{agents → dist/content/agents}/modes/impact-analysis.md +0 -0
  234. /package/{agents → dist/content/agents}/modes/library-docs.md +0 -0
  235. /package/{agents → dist/content/agents}/modes/migration-path.md +0 -0
  236. /package/{agents → dist/content/agents}/modes/prior-art.md +0 -0
  237. /package/{agents → dist/content/agents}/modes/refactoring-strategy.md +0 -0
  238. /package/{agents → dist/content/agents}/modes/regression.md +0 -0
  239. /package/{agents → dist/content/agents}/modes/requirements-elicitation.md +0 -0
  240. /package/{agents → dist/content/agents}/modes/risk-assessment.md +0 -0
  241. /package/{agents → dist/content/agents}/modes/risk-prioritization.md +0 -0
  242. /package/{agents → dist/content/agents}/modes/root-cause.md +0 -0
  243. /package/{agents → dist/content/agents}/modes/similar-implementation.md +0 -0
  244. /package/{agents → dist/content/agents}/modes/symptom-trace.md +0 -0
  245. /package/{agents → dist/content/agents}/modes/test-pattern.md +0 -0
  246. /package/{agents → dist/content/agents}/modes/user-flows.md +0 -0
  247. /package/{agents → dist/content/agents}/shared/efficiency-patterns.md +0 -0
  248. /package/{agents → dist/content/agents}/shared/prompt-structure.md +0 -0
  249. /package/{checks → dist/content/checks}/README.md +0 -0
  250. /package/{checks → dist/content/checks}/accessibility.md +0 -0
  251. /package/{checks → dist/content/checks}/code-quality.md +0 -0
  252. /package/{checks → dist/content/checks}/performance.md +0 -0
  253. /package/{checks → dist/content/checks}/security.md +0 -0
  254. /package/{checks → dist/content/checks}/testing.md +0 -0
  255. /package/{commands → dist/content/commands}/board/pickup-modes.md +0 -0
  256. /package/{commands → dist/content/commands}/board/shared-board-overview.md +0 -0
  257. /package/{commands → dist/content/commands}/revision/revision-board-integration.md +0 -0
  258. /package/{commands → dist/content/commands}/revision/revision-modes.md +0 -0
  259. /package/{mcp → dist/content/mcp}/mcp.json +0 -0
  260. /package/{rules → dist/content/rules}/hatch3r-ai-ux-patterns.mdc +0 -0
  261. /package/{rules → dist/content/rules}/hatch3r-api-design.md +0 -0
  262. /package/{rules → dist/content/rules}/hatch3r-api-design.mdc +0 -0
  263. /package/{rules → dist/content/rules}/hatch3r-code-standards.mdc +0 -0
  264. /package/{rules → dist/content/rules}/hatch3r-component-conventions.mdc +0 -0
  265. /package/{rules → dist/content/rules}/hatch3r-deep-context.mdc +0 -0
  266. /package/{rules → dist/content/rules}/hatch3r-feature-flags.md +0 -0
  267. /package/{rules → dist/content/rules}/hatch3r-feature-flags.mdc +0 -0
  268. /package/{rules → dist/content/rules}/hatch3r-git-conventions.mdc +0 -0
  269. /package/{rules → dist/content/rules}/hatch3r-i18n.mdc +0 -0
  270. /package/{rules → dist/content/rules}/hatch3r-progressive-delivery.md +0 -0
  271. /package/{rules → dist/content/rules}/hatch3r-progressive-delivery.mdc +0 -0
  272. /package/{rules → dist/content/rules}/hatch3r-theming.mdc +0 -0
  273. /package/{skills → dist/content/skills}/hatch3r-a11y-audit/references/manual-audit-checklist.md +0 -0
  274. /package/{skills → dist/content/skills}/hatch3r-ci-pipeline/SKILL.md +0 -0
  275. /package/{skills → dist/content/skills}/hatch3r-issue-workflow/references/delegation-patterns.md +0 -0
  276. /package/{skills → dist/content/skills}/hatch3r-logical-refactor/SKILL.md +0 -0
@@ -4,16 +4,24 @@ type: command
4
4
  orchestrator: true
5
5
  agentPipeline: [hatch3r-researcher, hatch3r-implementer, hatch3r-reviewer, hatch3r-fixer, hatch3r-test-writer, hatch3r-security-auditor, hatch3r-docs-writer, hatch3r-lint-fixer, hatch3r-a11y-auditor, hatch3r-perf-profiler]
6
6
  description: Pick up one or more epics/issues from the project board for development. Handles dependency-aware selection, collision detection, branching, parallel sub-agent delegation, and batch execution. Supports GitHub, Azure DevOps, and GitLab. Platform-specific details are in commands/board/pickup-{platform}.md.
7
- tags: [board, team]
7
+ tags: [board, ctx:team-only]
8
8
  quality_charter: agents/shared/quality-charter.md
9
9
  efficiency_patterns: agents/shared/efficiency-patterns.md
10
10
  cache_friendly: true
11
11
  parallel_tool_default: true
12
12
  triage_tiers: [1, 2, 3]
13
+ sub_agents_spawned:
14
+ count: 10
15
+ rationale: Full delivery pipeline — researcher, implementer (one per independent issue in batch mode), reviewer ↔ fixer review loop, then a parallel final-quality batch (test-writer, security-auditor, docs-writer, lint-fixer, a11y-auditor, perf-profiler) bounded by max_phase4_parallel.
13
16
  ---
17
+
18
+ ## §0 Detect Ambiguity (P8 B1)
19
+
20
+ Before any action, scan the user's request and provided context for unresolved questions in scope, acceptance criteria, irreversibility, or constraint conflicts (contradictory inputs, missing target, unknown convention). If any are found, ask the user via the platform-native question tool per `agents/shared/user-question-protocol.md` — do not proceed under silent assumption. This is the default path, not an exception. Acceptable to proceed without asking ONLY when scope is single-target, single-concern, and the brief alone is testable. Any residual ambiguity discovered mid-workflow invokes the same protocol.
21
+
14
22
  # Board Pickup -- Develop Issues from the Project Board
15
23
 
16
- Pick up an epic (with all sub-issues), a single sub-issue, a standalone issue, or **a batch of independent issues** from **{owner}/{repo}** (read from `.agents/hatch.json` board config) for development. The `platform` field determines whether to interact with GitHub Issues, Azure DevOps Work Items, or GitLab Issues. Supports single-issue and multi-issue batch modes. When no specific issue is referenced, auto-picks the next best candidate(s). Respects dependency order and readiness status. Performs collision detection, creates a branch, then delegates implementation via one sub-agent per issue running in parallel.
24
+ Pick up an epic (with all sub-issues), a single sub-issue, a standalone issue, or **a batch of independent issues** from **{owner}/{repo}** (read from `.hatch3r/hatch.json` board config) for development. The `platform` field determines whether to interact with GitHub Issues, Azure DevOps Work Items, or GitLab Issues. Supports single-issue and multi-issue batch modes. When no specific issue is referenced, auto-picks the next best candidate(s). Respects dependency order and readiness status. Performs collision detection, creates a branch, then delegates implementation via one sub-agent per issue running in parallel.
17
25
 
18
26
  ---
19
27
 
@@ -49,7 +57,7 @@ hatch3r board commands orchestrate the **implementation delivery pipeline** (ini
49
57
 
50
58
  ## Shared Context
51
59
 
52
- **Read the `hatch3r-board-shared` command at the start of the run.** It contains Board Configuration, Platform Detection, Platform Context, Board Sync Procedure, and tooling directives. Cache all values for the duration of this run.
60
+ **Read the `hatch3r-board-shared` skill at the start of the run.** It contains Board Configuration, Platform Detection, Platform Context, Board Sync Procedure, and tooling directives. Cache all values for the duration of this run.
53
61
 
54
62
  All issue operations in this command MUST follow the Board Sync Enforcement rules defined in `hatch3r-board-shared`. Every status change, issue creation, and update must be synced to the board immediately.
55
63
 
@@ -259,7 +267,7 @@ Follow the **Board Sync Procedure** from `hatch3r-board-shared` for each issue m
259
267
 
260
268
  **If branch exists:** **ASK** reuse / delete+recreate / rename with `-v2`.
261
269
 
262
- **Normal path:** Use `{base}` = `board.defaultBranch` from `.agents/hatch.json` (fallback: `"main"`).
270
+ **Normal path:** Use `{base}` = `board.defaultBranch` from `.hatch3r/hatch.json` (fallback: `"main"`).
263
271
 
264
272
  ```bash
265
273
  git checkout {base} && git pull origin {base} && git checkout -b {branch-name}
@@ -285,7 +293,7 @@ Use the issue type to select the appropriate hatch3r skill: `type:bug` → the h
285
293
 
286
294
  #### 6.pre: Consult Learnings
287
295
 
288
- Before delegating: scan `.agents/learnings/` for matching `area`/`tags`, include relevant learnings (especially `pitfall` category) in sub-agent context. Skip silently if no learnings directory exists.
296
+ Before delegating: scan `.hatch3r/learnings/` for matching `area`/`tags`, include relevant learnings (especially `pitfall` category) in sub-agent context. Skip silently if no learnings directory exists.
289
297
 
290
298
  > **Audit epics:** Audit epics produce findings (issues) rather than code changes — adjust delegation and skip Steps 7-8a if no code changes.
291
299
 
@@ -310,7 +318,7 @@ Execute Steps 7-10 in order after all implementation completes:
310
318
  - **Step 8:** Create PR/MR with proper `Closes #N` references. See platform sub-files for CLI commands.
311
319
  - **Step 8a:** Transition labels to `status:in-review` and sync board. See platform sub-files.
312
320
  - **Step 9:** Post-PR housekeeping: epic link verification, board dashboard refresh (9a, mandatory), end-of-run reconciliation (9b, mandatory).
313
- - **Step 10:** Capture learnings in `.agents/learnings/` if any were identified.
321
+ - **Step 10:** Capture learnings in `.hatch3r/learnings/` if any were identified.
314
322
 
315
323
  ---
316
324
 
@@ -4,14 +4,21 @@ type: command
4
4
  orchestrator: true
5
5
  agentPipeline: [hatch3r-researcher, hatch3r-docs-writer]
6
6
  description: Diagnose a complex incident -- reproduce the symptom, rank root-cause hypotheses, design the fix path, and emit regression coverage items as a board-ready investigation
7
- tags: [core, planning]
7
+ tags: [planning, orchestration]
8
8
  quality_charter: agents/shared/quality-charter.md
9
9
  efficiency_patterns: agents/shared/efficiency-patterns.md
10
10
  cache_friendly: true
11
11
  parallel_tool_default: true
12
12
  triage_tiers: [1, 2, 3]
13
+ sub_agents_spawned:
14
+ count: 4
15
+ rationale: Four parallel hatch3r-researcher modes per bug brief — symptom-trace, root-cause-hypothesis, impact-assessment, regression-research — dispatched concurrently in Step 3; a docs-writer assembles the investigation report on their merged output.
13
16
  ---
14
17
 
18
+ ## §0 Detect Ambiguity (P8 B1)
19
+
20
+ Before any action, scan the user's request and provided context for unresolved questions in scope, acceptance criteria, irreversibility, or constraint conflicts (contradictory inputs, missing target, unknown convention). If any are found, ask the user via the platform-native question tool per `agents/shared/user-question-protocol.md` — do not proceed under silent assumption. This is the default path, not an exception. Acceptable to proceed without asking ONLY when scope is single-target, single-concern, and the brief alone is testable. Any residual ambiguity discovered mid-workflow invokes the same protocol.
21
+
15
22
  ## Agent Pipeline
16
23
 
17
24
  | Stage | Agent(s) | Parallel | Required |
@@ -33,7 +40,7 @@ Take a complex or ambiguous bug report and produce a structured investigation re
33
40
 
34
41
  ## Shared Context
35
42
 
36
- **Read the `hatch3r-board-shared` command at the start of the run** if it exists. While this command does not perform board operations directly, it establishes patterns and context (GitHub owner/repo, tooling directives) that downstream commands like `hatch3r-board-fill` rely on. Cache any values found.
43
+ **Read the `hatch3r-board-shared` skill at the start of the run** if it exists. While this command does not perform board operations directly, it establishes patterns and context (GitHub owner/repo, tooling directives) that downstream commands like `hatch3r-board-fill` rely on. Cache any values found.
37
44
 
38
45
  ## Token-Saving Directives
39
46
 
@@ -95,10 +102,10 @@ Bug Brief:
95
102
  - `docs/adr/` — architectural decision records (scan for decisions relevant to the affected area)
96
103
  - `docs/investigations/` — prior investigation reports (check for related or recurring bugs)
97
104
  - `README.md` — project overview
98
- - `.agents/hatch.json` — board configuration
105
+ - `.hatch3r/hatch.json` — board configuration
99
106
  - Existing `todo.md` — current backlog (check for overlap or related items)
100
107
  2. Scan GitHub issues via `search_issues` for existing work related to the bug. Note duplicates, related bugs, or prior investigations.
101
- 3. If `.agents/learnings/` exists, scan for learnings relevant to the affected area. Match by area and tags against the bug brief.
108
+ 3. If `.hatch3r/learnings/` exists, scan for learnings relevant to the affected area. Match by area and tags against the bug brief.
102
109
  4. Present a context summary:
103
110
 
104
111
  ```
@@ -421,7 +428,7 @@ If yes, instruct the user to invoke the `hatch3r-board-fill` command. Note that
421
428
  - **Sub-agent failure:** Retry the failed sub-agent once. If it fails again, present partial results from the remaining sub-agents and ask the user how to proceed (continue without that researcher's input / provide the missing information manually / abort).
422
429
  - **Conflicting researcher outputs:** Present both options side by side with trade-offs. Ask the user to decide. Do not silently pick one.
423
430
  - **File write failure:** Report the error and provide the full file content so the user can create the file manually.
424
- - **Missing project context:** If no `hatch3r-board-shared` or `.agents/hatch.json` exists, proceed without board context — this command does not require board configuration.
431
+ - **Missing project context:** If no `hatch3r-board-shared` or `.hatch3r/hatch.json` exists, proceed without board context — this command does not require board configuration.
425
432
  - **No existing specs or docs:** Proceed without spec references. Warn that the investigation will be less contextualized without existing project documentation. Recommend running `hatch3r-project-spec` or `hatch3r-codebase-map` first for best results.
426
433
  - **Duplicate detection:** If the bug overlaps significantly with existing todo.md items, GitHub issues, or prior investigation reports found in Step 2, present the overlap and ASK whether to proceed (augment existing / replace / abort).
427
434
  - **No clear root cause:** If all hypotheses are low-confidence, state this clearly. Recommend a focused debugging session (using `hatch3r-bug-fix` skill with the top hypothesis) rather than generating speculative fix items. ASK the user how to proceed.
@@ -4,13 +4,21 @@ type: command
4
4
  orchestrator: true
5
5
  agentPipeline: [hatch3r-researcher, hatch3r-docs-writer]
6
6
  description: Reverse-engineer a brownfield codebase into current-state module boundaries, integration-point inventory, tech-debt register, and dependency graph via static analysis
7
- tags: [planning, brownfield]
7
+ tags: [planning, ctx:brownfield-only]
8
8
  quality_charter: agents/shared/quality-charter.md
9
9
  efficiency_patterns: agents/shared/efficiency-patterns.md
10
10
  cache_friendly: true
11
11
  parallel_tool_default: true
12
12
  triage_tiers: [1, 2, 3]
13
+ sub_agents_spawned:
14
+ count: 8
15
+ rationale: Eight parallel analyzer domains in Step 3 across business + technical dimensions (modules, dependencies, conventions, stack, technical-debt, business-domain, market-context, production-readiness); docs-writers fan out in a second parallel batch in Step 7 (one per document category).
13
16
  ---
17
+
18
+ ## §0 Detect Ambiguity (P8 B1)
19
+
20
+ Before any action, scan the user's request and provided context for unresolved questions in scope, acceptance criteria, irreversibility, or constraint conflicts (contradictory inputs, missing target, unknown convention). If any are found, ask the user via the platform-native question tool per `agents/shared/user-question-protocol.md` — do not proceed under silent assumption. This is the default path, not an exception. Acceptable to proceed without asking ONLY when scope is single-target, single-concern, and the brief alone is testable. Any residual ambiguity discovered mid-workflow invokes the same protocol.
21
+
14
22
  # Codebase Map — Brownfield Codebase Analysis & Spec Generation
15
23
 
16
24
  Analyze an existing codebase to reverse-engineer project documentation across **two dimensions**: business domain analysis and technical architecture analysis. Discovers modules, dependencies, conventions, tech stack, technical debt, business logic, domain models, and production readiness using parallel analyzer sub-agents. Outputs structured specs to `docs/specs/business/` (business domain, market context, production readiness) and `docs/specs/technical/` (modules, conventions, stack, debt), plus inferred architectural decision records to `docs/adr/`. Optionally generates a root-level `AGENTS.md` as the project's "README for agents." This command is **purely read-only** until the final write step — all analysis is static (file reading, pattern matching). Works for any language or framework.
@@ -97,7 +105,7 @@ From config files and top-level imports, identify:
97
105
  - Check for `docs/specs/` — if exists, note contents (including `business/` and `technical/` subdirectories)
98
106
  - Check for `docs/adr/` — if exists, note contents
99
107
  - Check for `README.md`, `CONTRIBUTING.md`, `ARCHITECTURE.md`, or similar
100
- - Check for `.agents/hatch.json` — if exists, this project already has hatch3r configuration
108
+ - Check for `.hatch3r/hatch.json` — if exists, this project already has hatch3r configuration
101
109
  - Check for root `AGENTS.md` — if exists, note its contents
102
110
 
103
111
  If `docs/specs/` or `docs/adr/` already exist:
@@ -3,22 +3,29 @@ id: hatch3r-create
3
3
  type: command
4
4
  orchestrator: true
5
5
  agentPipeline: [hatch3r-creator]
6
- description: Author a custom user-tier artifact (agent, skill, rule, command, or hook) for this project. Generates frontmatter and body skeleton, applies strict + gentle quality gates, writes to .agents/user/{type}/, and offers to sync to all enabled adapters.
7
- tags: [core, customize]
6
+ description: Author a custom user-tier artifact (agent, skill, rule, command, or hook) for this project. Generates frontmatter and body skeleton, applies strict + gentle quality gates, writes to .hatch3r/overrides/{type}/, and offers to sync to all enabled adapters.
7
+ tags: [customize]
8
8
  quality_charter: agents/shared/quality-charter.md
9
9
  efficiency_patterns: agents/shared/efficiency-patterns.md
10
10
  cache_friendly: true
11
11
  parallel_tool_default: true
12
12
  triage_tiers: [1, 2, 3]
13
+ sub_agents_spawned:
14
+ count: 1
15
+ rationale: Single hatch3r-creator delegation in Phase 2 — body composition plus the strict + gentle gate funnel run as one atomic Task per artifact; multi-artifact runs invoke one creator per artifact in parallel.
13
16
  ---
14
17
 
18
+ ## §0 Detect Ambiguity (P8 B1)
19
+
20
+ Before any action, scan the user's request and provided context for unresolved questions in scope, acceptance criteria, irreversibility, or constraint conflicts (contradictory inputs, missing target, unknown convention). If any are found, ask the user via the platform-native question tool per `agents/shared/user-question-protocol.md` — do not proceed under silent assumption. This is the default path, not an exception. Acceptable to proceed without asking ONLY when scope is single-target, single-concern, and the brief alone is testable. Any residual ambiguity discovered mid-workflow invokes the same protocol.
21
+
15
22
  ## Agent Pipeline
16
23
 
17
24
  This command runs as an orchestrator. After collecting inputs in Phase 1, it delegates artifact composition and the strict + gentle gate funnel to `hatch3r-creator` via the Task tool. Phase 3 runs `hatch3r validate` and surfaces results inline.
18
25
 
19
26
  # `/hatch3r-create` — Author a User-Tier Artifact
20
27
 
21
- Use this command when you need a project-specific agent, skill, rule, command, or hook that does not exist in the canonical hatch3r corpus. The command writes one new artifact under `.agents/user/{type}/` per invocation, runs the same frontmatter/security/structural gates the framework uses on canonical content (strict — block on failure), and runs style/lean checks as warnings (gentle — save proceeds, warnings reported).
28
+ Use this command when you need a project-specific agent, skill, rule, command, or hook that does not exist in the canonical hatch3r corpus. The command writes one new artifact under `.hatch3r/overrides/{type}/` per invocation, runs the same frontmatter/security/structural gates the framework uses on canonical content (strict — block on failure), and runs style/lean checks as warnings (gentle — save proceeds, warnings reported).
22
29
 
23
30
  The 5 supported types: **agent** (sub-agent invokable from orchestrators), **skill** (workflow recipe), **rule** (always or glob-scoped guidance), **command** (slash command, inline or orchestrator), **hook** (event-triggered agent invocation).
24
31
 
@@ -68,7 +75,7 @@ Cache the selection as `type`.
68
75
  Validate the name against the regex `^[a-z][a-z0-9-]*$`. Reject and re-ask if:
69
76
 
70
77
  - The name fails the regex (uppercase, underscores, leading digit, etc.).
71
- - The name starts with `hatch3r-` — this prefix is reserved for canonical framework content. Show: "Names starting with `hatch3r-` are reserved for canonical framework artifacts. Choose a different prefix or omit the prefix entirely. The framework will namespace the file path under `.agents/user/{type}/` automatically."
78
+ - The name starts with `hatch3r-` — this prefix is reserved for canonical framework content. Show: "Names starting with `hatch3r-` are reserved for canonical framework artifacts. Choose a different prefix or omit the prefix entirely. The framework will namespace the file path under `.hatch3r/overrides/{type}/` automatically."
72
79
 
73
80
  Cache the validated name as `name`.
74
81
 
@@ -86,6 +93,26 @@ Present the known tag set: `core, customization, planning, implementation, revie
86
93
 
87
94
  Cache as `tags` (array).
88
95
 
96
+ #### 1.4a: Pillar Declaration (C9-H80, D20-F20.1.2)
97
+
98
+ Every user artifact must declare at least one Binding Pillar — strict-gate enforced at `saveUserContent` (`src/content/userContent.ts`). Present the 8 pillars with one-line descriptors:
99
+
100
+ ```
101
+ Which pillar(s) does this artifact serve? (one or more — comma-separated)
102
+ P1 — CLI UI/UX Excellence
103
+ P2 — Scientific & Practical Quality
104
+ P3 — Adapter & External Tool Currency
105
+ P4 — Comprehensive Lean Coverage
106
+ P5 — Governance Self-Quality
107
+ P6 — Security & Trust Governance
108
+ P7 — Speed & Token Efficiency
109
+ P8 — Clarification & Fan-out Discipline
110
+ ```
111
+
112
+ **ASK:** "Select pillar(s) (e.g., `P4, P6`). At least one is required."
113
+
114
+ Reject empty input and re-ask. Validate every entry against the `P1..P8` enum. Cache as `pillars` (array). The frontmatter emitter writes the array as `pillars: [P1, P4]`; the strict gate also accepts a `**Pillars:** ...` line in the body.
115
+
89
116
  #### 1.5: Adapter Scope (Optional)
90
117
 
91
118
  **ASK:** "Restrict this artifact to specific adapters? Press Enter to default to ALL enabled adapters (full parity), or list adapter names like `claude, cursor`."
@@ -96,12 +123,35 @@ Cache as `adapters` (array, or `null` for full parity).
96
123
 
97
124
  Branch on the cached `type`:
98
125
 
99
- - **agent:** Ask for `model` preference (default: `standard`; options: `fast | standard | reasoning`). Ask for an optional tool-allowlist hint (free-text). Cache as `model` and `toolHint`.
100
- - **skill:** Confirm the subdirectory layout. Show: "Skill files are stored as `.agents/user/skills/{name}/SKILL.md` (a new directory will be created). Continue?" — ASK Y/n.
126
+ - **agent:** Ask for `model` preference (default: `standard`; options: `fast | standard | reasoning`). Ask for an optional tool-allowlist hint (free-text). Cache as `model` and `toolHint`. Then ask for a structured `tools` declaration (see §1.6a below) and cache as `tools`.
127
+ - **skill:** Confirm the subdirectory layout. Show: "Skill files are stored as `.hatch3r/overrides/skills/{name}/SKILL.md` (a new directory will be created). Continue?" — ASK Y/n.
101
128
  - **rule:** Ask for scope: `always` (loaded every session) or `conditional` (loaded by glob match). If `conditional`, ASK for a comma-separated glob list (e.g., `src/**/*.ts, src/**/*.tsx`). Then ASK for `precedence` (one of `critical | high | normal | low`, default `normal`). Cache as `ruleScope`, `ruleGlobs`, `rulePrecedence`.
102
- - **command:** ASK whether this is an orchestrator command. If yes, ASK for the agent pipeline as a comma-separated list of agent IDs (each ID must reference an existing agent — canonical or under `.agents/user/agents/`). Cache as `isOrchestrator` and `agentPipeline`.
129
+ - **command:** ASK whether this is an orchestrator command. If yes, ASK for the agent pipeline as a comma-separated list of agent IDs (each ID must reference an existing agent — canonical or under `.hatch3r/overrides/agents/`). Cache as `isOrchestrator` and `agentPipeline`.
103
130
  - **hook:** ASK for the hook event from the enum: `pre-commit | post-merge | ci-failure | file-save | session-start | pre-push`. Reject any value outside this enum and re-ask. Cache as `hookEvent`.
104
131
 
132
+ #### 1.6a: Structured Tool Declaration (C9-H81, D20-F20.1.3)
133
+
134
+ For `type=agent` only: collect a structured `tools` declaration that the strict gate validates against the canonical category registry (`ALL_TOOL_CATEGORIES` in `src/pipeline/agentToolAllowlist.ts`). The eight valid categories are: `read | search | write | execute | web | mcp | git | board`.
135
+
136
+ ```
137
+ Tool allowlist (optional). Press Enter on either prompt to skip.
138
+ Categories: read, search, write, execute, web, mcp, git, board.
139
+ Tools the agent IS permitted to use (comma-separated):
140
+ Tools the agent is NOT permitted to use (comma-separated):
141
+ ```
142
+
143
+ **ASK (twice):**
144
+ 1. "Allowed tool categories (comma-separated; empty = decline)."
145
+ 2. "Denied tool categories (comma-separated; empty = decline)."
146
+
147
+ Validation (perform before caching; re-ask on failure):
148
+
149
+ - Every entry must be one of the eight categories — reject typos verbatim ("unknown category `X` — valid: read, search, write, execute, web, mcp, git, board").
150
+ - A category may not appear in both lists — reject overlap ("category `X` cannot be both allowed and denied").
151
+ - Both lists may be omitted; emit a one-line note that no structured declaration was collected so the strict gate accepts the artifact with no `tools:` frontmatter.
152
+
153
+ Cache as `tools: { allowed: [...], denied: [...] }`. Either side may be absent (omitted from the structured input). The frontmatter emitter writes `tools: { allowed: [...], denied: [...] }`; the strict gate at `saveUserContent` re-validates so a tampered structured input from the orchestrator cannot bypass the registry check.
154
+
105
155
  #### 1.7: Plan Summary & Confirmation
106
156
 
107
157
  Render the proposed file path, full frontmatter block, and body-skeleton outline. For an agent plan, the summary lists `Path`, `Type`, `Name`, `Description` (first 80 chars), `Tags`, `Adapters` (or "all enabled"), `Model`; then the frontmatter block; then the body-skeleton outline (`<task>`, `<context>`, Implementation Protocol numbered steps, `<rules>`). For other types, swap the type-specific slots from Step 1.6.
@@ -128,7 +178,8 @@ Pass the collected slots as a structured input:
128
178
  tags: [{tags}],
129
179
  adapters: [{adapters}] | null,
130
180
  model: "{model}", // agent only
131
- toolHint: "{toolHint}", // agent only (optional)
181
+ toolHint: "{toolHint}", // agent only (optional, free-text hint)
182
+ tools: { allowed: [{tools.allowed}], denied: [{tools.denied}] }, // agent only — structured allowlist/denylist (C9-H81, D20-F20.1.3); either side may be omitted
132
183
  ruleScope: "{ruleScope}", // rule only
133
184
  ruleGlobs: [{ruleGlobs}], // rule only (when scope=conditional)
134
185
  rulePrecedence:"{rulePrecedence}", // rule only
@@ -171,14 +222,14 @@ Print the absolute path(s) and the next-step pointer:
171
222
 
172
223
  ```
173
224
  Created:
174
- /abs/path/.agents/user/{type}/{name}.md
175
- /abs/path/.agents/user/rules/{name}.mdc (rule only — paired companion)
225
+ /abs/path/.hatch3r/overrides/{type}/{name}.md
226
+ /abs/path/.hatch3r/overrides/rules/{name}.mdc (rule only — paired companion)
176
227
 
177
228
  Next step:
178
229
  Run `hatch3r sync` to propagate this artifact to all enabled adapter outputs
179
230
  (.cursor/, .claude/, .github/copilot-instructions.md, etc.).
180
231
 
181
- Edit your artifact directly anytime — `.agents/user/` is preserved across
232
+ Edit your artifact directly anytime — `.hatch3r/overrides/` is preserved across
182
233
  `hatch3r update` and `hatch3r clean`.
183
234
  ```
184
235
 
@@ -186,10 +237,12 @@ Edit your artifact directly anytime — `.agents/user/` is preserved across
186
237
 
187
238
  ## Constraints / Anti-Patterns
188
239
 
189
- - **Never overwrite an existing user file.** Collision with an existing path under `.agents/user/{type}/` is a strict-gate failure raised by `hatch3r-creator` (status `BLOCKED` with the conflicting path).
190
- - **Never write to canonical content directories.** All output goes under `.agents/user/`. Writes to `agents/`, `skills/`, `rules/`, `commands/`, or `hooks/` are rejected.
191
- - **Never bypass strict gates.** Strict failures (frontmatter, ID collision, deny patterns, paired-file parity, orchestrator contract, hook event enum, ≤10KB size) block the save.
192
- - **Pillar coverage required.** Every user artifact must declare at least one of P1–P6 in tags or body. Authors that do not select a pillar-aligned tag are warned by the gentle gate; the artifact still saves but the warning surfaces in Phase 3.
240
+ - **Never overwrite an existing user file.** Collision with an existing path under `.hatch3r/overrides/{type}/` is a strict-gate failure raised by `hatch3r-creator` (status `BLOCKED` with the conflicting path).
241
+ - **Never write to canonical content directories.** All output goes under `.hatch3r/overrides/`. Writes to `agents/`, `skills/`, `rules/`, `commands/`, or `hooks/` are rejected.
242
+ - **Never bypass strict gates.** Strict failures (frontmatter, ID collision, deny patterns, paired-file parity, orchestrator contract, hook event enum, ≤10KB size, quality_charter reference, pillar declaration, structured `tools` field shape + category membership) block the save.
243
+ - **Structured tool allowlist required (strict shape).** When `tools` is supplied for an `agent` artifact, every entry in `tools.allowed` and `tools.denied` must resolve to a canonical category from `ALL_TOOL_CATEGORIES` in `src/pipeline/agentToolAllowlist.ts` (`read | search | write | execute | web | mcp | git | board`). Overlap between the two lists is rejected. Strict-gate enforced at `saveUserContent` (C9-H81, D20-F20.1.3; depends on C9-H49 Hybrid allowlist).
244
+ - **Pillar coverage required (strict).** Every user artifact must declare at least one of P1–P8 — via `pillars: [...]` in frontmatter (collected at Step 1.4a) or a `**Pillars:** ...` line in the body. The strict gate at `saveUserContent` blocks the save when neither is present (C9-H80, D20-F20.1.2).
245
+ - **Quality charter inheritance required (strict).** Every user artifact must reference `agents/shared/quality-charter.md` — via `quality_charter:` in frontmatter or a `quality_charter` mention in the body. Strict-gate enforced at `saveUserContent` (C9-H79, D20-F20.1.1, closes CD-12 partial).
193
246
  - **One artifact per invocation.** Re-run `/hatch3r-create` for additional artifacts.
194
247
 
195
248
  ---
@@ -4,13 +4,20 @@ type: command
4
4
  orchestrator: true
5
5
  agentPipeline: [hatch3r-researcher, hatch3r-implementer, hatch3r-reviewer, hatch3r-fixer, hatch3r-test-writer, hatch3r-security-auditor]
6
6
  description: Standalone debug-and-fix workflow — add strategic debug logging, collect runtime logs from the user, perform root cause analysis, implement the fix, and clean up all debug artifacts.
7
- tags: [core, implementation]
7
+ tags: [implementation, orchestration]
8
8
  quality_charter: agents/shared/quality-charter.md
9
9
  efficiency_patterns: agents/shared/efficiency-patterns.md
10
10
  cache_friendly: true
11
11
  parallel_tool_default: true
12
12
  triage_tiers: [1, 2, 3]
13
+ sub_agents_spawned:
14
+ count: 6
15
+ rationale: Six-stage pipeline per agentPipeline — researcher → implementer → reviewer ↔ fixer review loop (max 3 iterations) → parallel final-quality pass (test-writer + security-auditor); serialization only across true dependency edges (logs → root cause → fix → verify).
13
16
  ---
17
+ ## §0 Detect Ambiguity (P8 B1)
18
+
19
+ Before any action, scan the user's bug description and provided context for unresolved questions in scope, reproduction conditions, irreversibility, or constraint conflicts (contradictory symptoms, missing environment details, unknown affected area). If any are found, ask the user via the platform-native question tool per `agents/shared/user-question-protocol.md` — do not proceed under silent assumption. This is the default path, not an exception. Acceptable to proceed without asking ONLY when the bug is single-file, single-symptom, and the brief alone identifies the reproduction path. The Stage 1c "ASK" rule remains in force for residual ambiguity discovered mid-workflow.
20
+
14
21
  # Debug — Instrument, Diagnose, and Fix from Runtime Evidence
15
22
 
16
23
  Standalone debug-and-fix command that instruments the codebase with strategic debug logging, pauses for the user to reproduce the issue and provide runtime logs, performs root cause analysis from the collected evidence, implements the fix, and removes all debug artifacts. Five-stage workflow: Gather Context → Add Debug Logging → Collect Logs (user checkpoint) → Root Cause Analysis → Implement Fix. Works independently — no board integration, no GitHub issue required.
@@ -50,7 +57,7 @@ It retains:
50
57
  - Quality checks (lint, typecheck, test) — always mandatory
51
58
  - Sub-agent delegation for all non-trivial work
52
59
  - Full review pipeline in Stage 5 (reviewer, test-writer, security-auditor)
53
- - `scope: always` rules from `.agents/rules/`
60
+ - `scope: always` rules from `rules/`
54
61
  - Debug artifact cleanup guarantee
55
62
 
56
63
  ---
@@ -120,8 +127,8 @@ You can also paste an error log, stack trace, or screenshot description and I'll
120
127
  1. Check for existing documentation:
121
128
  - `docs/specs/` — project specifications (read TOC/headers first, expand relevant sections only)
122
129
  - `README.md` — project overview and setup instructions
123
- - `AGENTS.md` or `.agents/rules/` — agent rules and project conventions
124
- 2. If `.agents/learnings/` exists, scan for learnings relevant to the affected area. Match by area and tags against the bug description.
130
+ - `AGENTS.md` or `rules/` — agent rules and project conventions
131
+ 2. If `.hatch3r/learnings/` exists, scan for learnings relevant to the affected area. Match by area and tags against the bug description.
125
132
  3. Scan the affected code area — read the primary files involved, trace imports and dependencies one level deep.
126
133
 
127
134
  **Knowledge hierarchy:** project specs → codebase exploration → Context7 MCP (`resolve-library-id` then `query-docs`) → web research. Exhaust each level before escalating to the next.
@@ -159,7 +166,7 @@ The researcher prompt MUST include:
159
166
  - The affected files and modules identified in Stage 1b.
160
167
  - Instruction to follow the **hatch3r-researcher agent protocol** with mode `symptom-trace`.
161
168
  - Instruction to identify specific instrumentation points: decision branches, data flow boundaries, error handlers, state transitions, and external call sites in the affected area.
162
- - All `scope: always` rule directives from `.agents/rules/`.
169
+ - All `scope: always` rule directives from `rules/`.
163
170
 
164
171
  The researcher must produce a structured list of recommended instrumentation points:
165
172
 
@@ -179,7 +186,7 @@ Spawn a `hatch3r-implementer` sub-agent via the Task tool (`subagent_type: "gene
179
186
  The implementer prompt MUST include:
180
187
  - The researcher's instrumentation points from Stage 2a.
181
188
  - The confirmed bug context from Stage 1c.
182
- - All `scope: always` rule directives from `.agents/rules/`.
189
+ - All `scope: always` rule directives from `rules/`.
183
190
  - Explicit instruction: do NOT create branches, commits, or PRs.
184
191
 
185
192
  **Debug logging rules** (include these verbatim in the implementer prompt):
@@ -274,7 +281,7 @@ The researcher prompt MUST include:
274
281
  - The structured log analysis from Stage 3b (full parsed output).
275
282
  - The instrumentation point list from Stage 2a (to correlate expected vs. actual behavior).
276
283
  - Instruction to follow the **hatch3r-researcher agent protocol** with mode `root-cause` and depth `deep`.
277
- - All `scope: always` rule directives from `.agents/rules/`.
284
+ - All `scope: always` rule directives from `rules/`.
278
285
  - Instruction to produce ranked hypotheses with evidence from the log data.
279
286
 
280
287
  **Knowledge hierarchy for the researcher:** project specs → codebase → Context7 MCP → web research. Use `gh` CLI (e.g., `gh issue list`, `gh pr list`) for reading GitHub data; prefer `gh` over GitHub MCP tools.
@@ -317,7 +324,7 @@ Spawn a `hatch3r-implementer` sub-agent via the Task tool (`subagent_type: "gene
317
324
  The implementer prompt MUST include:
318
325
  - The confirmed diagnosis from Stage 4b (root cause, evidence, recommended fix approach).
319
326
  - The full list of files modified in Stage 2b (debug logging locations) for cleanup reference.
320
- - All `scope: always` rule directives from `.agents/rules/`.
327
+ - All `scope: always` rule directives from `rules/`.
321
328
  - Explicit instruction: do NOT create branches, commits, or PRs.
322
329
 
323
330
  **Fix implementation rules** (include these verbatim in the implementer prompt):
@@ -348,7 +355,7 @@ Run a review-fix loop, maximum 3 iterations, until the reviewer reports a clean
348
355
  - The diff of all changes (use `git diff` on the working tree).
349
356
  - The original bug context from Stage 1c.
350
357
  - The diagnosis from Stage 4b.
351
- - All `scope: always` rule directives from `.agents/rules/`.
358
+ - All `scope: always` rule directives from `rules/`.
352
359
  - Instruction to verify: correctness of the fix, no remaining debug artifacts, code quality, no regressions introduced.
353
360
 
354
361
  2. If the reviewer reports findings (critical or warning level):
@@ -371,12 +378,12 @@ After the review loop completes clean (or the user proceeds), spawn these two su
371
378
  - The fix diff (what was changed).
372
379
  - The root cause from Stage 4b.
373
380
  - Instruction to write tests that would have caught this bug — regression tests targeting the specific failure mode.
374
- - All `scope: always` rule directives from `.agents/rules/`.
381
+ - All `scope: always` rule directives from `rules/`.
375
382
 
376
383
  2. **`hatch3r-security-auditor`** — security review of the fix. The prompt MUST include:
377
384
  - The fix diff.
378
385
  - The affected files and data flows.
379
- - All `scope: always` rule directives from `.agents/rules/`.
386
+ - All `scope: always` rule directives from `rules/`.
380
387
 
381
388
  Await both sub-agents. Apply any findings (additional tests, security fixes).
382
389
 
@@ -4,14 +4,21 @@ type: command
4
4
  orchestrator: true
5
5
  agentPipeline: [hatch3r-researcher, hatch3r-docs-writer]
6
6
  description: Design a new capability -- draft user stories, acceptance criteria, data model, API surface, and sub-issue breakdown as an epic-shaped todo.md for greenfield features
7
- tags: [core, planning]
7
+ tags: [planning, orchestration]
8
8
  quality_charter: agents/shared/quality-charter.md
9
9
  efficiency_patterns: agents/shared/efficiency-patterns.md
10
10
  cache_friendly: true
11
11
  parallel_tool_default: true
12
12
  triage_tiers: [1, 2, 3]
13
+ sub_agents_spawned:
14
+ count: 4
15
+ rationale: Four parallel hatch3r-researcher modes per feature brief — codebase-impact, feature-design, architecture, risk-pitfalls — dispatched concurrently in Step 3; a docs-writer composes the spec on their merged output.
13
16
  ---
14
17
 
18
+ ## §0 Detect Ambiguity (P8 B1)
19
+
20
+ Before any action, scan the user's request and provided context for unresolved questions in scope, acceptance criteria, irreversibility, or constraint conflicts (contradictory inputs, missing target, unknown convention). If any are found, ask the user via the platform-native question tool per `agents/shared/user-question-protocol.md` — do not proceed under silent assumption. This is the default path, not an exception. Acceptable to proceed without asking ONLY when scope is single-target, single-concern, and the brief alone is testable. Any residual ambiguity discovered mid-workflow invokes the same protocol.
21
+
15
22
  ## Agent Pipeline
16
23
 
17
24
  | Stage | Agent(s) | Parallel | Required |
@@ -28,7 +35,7 @@ Take a single feature idea and produce a complete feature specification (`docs/s
28
35
 
29
36
  ## Shared Context
30
37
 
31
- **Read the `hatch3r-board-shared` command at the start of the run** if it exists. While this command does not perform board operations directly, it establishes patterns and context (GitHub owner/repo, tooling directives) that downstream commands like `hatch3r-board-fill` rely on. Cache any values found.
38
+ **Read the `hatch3r-board-shared` skill at the start of the run** if it exists. While this command does not perform board operations directly, it establishes patterns and context (GitHub owner/repo, tooling directives) that downstream commands like `hatch3r-board-fill` rely on. Cache any values found.
32
39
 
33
40
  ## Token-Saving Directives
34
41
 
@@ -111,10 +118,10 @@ Answer these now, or say 'use defaults' for any where you're comfortable with a
111
118
  - `docs/specs/` — project specifications (read TOC/headers first, expand relevant sections only)
112
119
  - `docs/adr/` — architectural decision records (scan for decisions relevant to the feature area)
113
120
  - `README.md` — project overview
114
- - `.agents/hatch.json` — board configuration
121
+ - `.hatch3r/hatch.json` — board configuration
115
122
  - Existing `todo.md` — current backlog (check for overlap or related items)
116
123
  2. Scan GitHub issues via `search_issues` for existing work related to the feature. Note duplicates or partial overlaps.
117
- 3. If `.agents/learnings/` exists, scan for learnings relevant to the feature area. Match by area and tags against the feature brief.
124
+ 3. If `.hatch3r/learnings/` exists, scan for learnings relevant to the feature area. Match by area and tags against the feature brief.
118
125
  4. Present a context summary:
119
126
 
120
127
  ```
@@ -441,7 +448,7 @@ If yes, instruct the user to invoke the `hatch3r-board-fill` command. Note that
441
448
  - **Sub-agent failure:** Retry the failed sub-agent once. If it fails again, present partial results from the remaining sub-agents and ask the user how to proceed (continue without that researcher's input / provide the missing information manually / abort).
442
449
  - **Conflicting researcher outputs:** Present both options side by side with trade-offs. Ask the user to decide. Do not silently pick one.
443
450
  - **File write failure:** Report the error and provide the full file content so the user can create the file manually.
444
- - **Missing project context:** If no `hatch3r-board-shared` or `.agents/hatch.json` exists, proceed without board context — this command does not require board configuration.
451
+ - **Missing project context:** If no `hatch3r-board-shared` or `.hatch3r/hatch.json` exists, proceed without board context — this command does not require board configuration.
445
452
  - **No existing specs or docs:** Proceed without spec references. Warn that the feature spec will be less contextualized without existing project documentation. Recommend running `hatch3r-project-spec` or `hatch3r-codebase-map` first for best results.
446
453
  - **Duplicate detection:** If the feature overlaps significantly with existing todo.md items or GitHub issues found in Step 2, present the overlap and ASK whether to proceed (augment existing / replace / abort).
447
454
 
@@ -4,25 +4,32 @@ type: command
4
4
  orchestrator: true
5
5
  agentPipeline: [hatch3r-handoff-preparer]
6
6
  description: Prepare, resume, list, complete, and prune cross-session handoff documents.
7
- tags: [core, maintenance]
7
+ tags: [orchestration, maintenance]
8
8
  quality_charter: agents/shared/quality-charter.md
9
9
  efficiency_patterns: agents/shared/efficiency-patterns.md
10
10
  cache_friendly: true
11
11
  parallel_tool_default: true
12
12
  triage_tiers: [1, 2]
13
+ sub_agents_spawned:
14
+ count: 1
15
+ rationale: Single hatch3r-handoff-preparer delegation for the `prepare` Tier-2 subcommand; `resume`, `list`, `complete`, `prune` run inline with no sub-agent fan-out (filesystem-read or single-file rename per the Triage table).
13
16
  ---
14
17
 
18
+ ## §0 Detect Ambiguity (P8 B1)
19
+
20
+ Before any action, scan the user's request and provided context for unresolved questions in scope, acceptance criteria, irreversibility, or constraint conflicts (contradictory inputs, missing target, unknown convention). If any are found, ask the user via the platform-native question tool per `agents/shared/user-question-protocol.md` — do not proceed under silent assumption. This is the default path, not an exception. Acceptable to proceed without asking ONLY when scope is single-target, single-concern, and the brief alone is testable. Any residual ambiguity discovered mid-workflow invokes the same protocol.
21
+
15
22
  ## Agent Pipeline
16
23
 
17
24
  The `prepare` subcommand delegates to `hatch3r-handoff-preparer` via the Task tool. The other four subcommands (`resume`, `list`, `complete`, `prune`) run inline within this command — they read, list, transition status, or archive files and do not require a sub-agent.
18
25
 
19
26
  ## Learnings Consultation
20
27
 
21
- Before starting, scan `.agents/learnings/` for entries tagged `handoff`, `context-switch`, `resume`, or `session-state`. Apply the protocol in `rules/hatch3r-learning-consult.md` (frontmatter-first scan; surface top 5 by confidence). Skip if the directory has fewer than 3 files.
28
+ Before starting, scan `.hatch3r/learnings/` for entries tagged `handoff`, `context-switch`, `resume`, or `session-state`. Apply the protocol in `rules/hatch3r-learning-consult.md` (frontmatter-first scan; surface top 5 by confidence). Skip if the directory has fewer than 3 files.
22
29
 
23
30
  # Handoff Management — Cross-Session Work Continuity
24
31
 
25
- Manage canonical handoff documents at `.agents/handoffs/active/` for mid-work state capture and resumption across sessions, tools, or developers.
32
+ Manage canonical handoff documents at `.hatch3r/handoffs/active/` for mid-work state capture and resumption across sessions, tools, or developers.
26
33
 
27
34
  ---
28
35
 
@@ -94,13 +101,13 @@ ID STATUS BRANCH
94
101
 
95
102
  **ASK:** "Mark `{id}` completed and archive? (y/N). Reason will be recorded: `{reason or 'no reason given'}`."
96
103
 
97
- 4. On confirm: transition `status` to `completed`, stamp `updated` to now, prepend the archival notice (mirrors learnings archival format), then atomic-rename to `.agents/handoffs/archived/<id>.md`.
104
+ 4. On confirm: transition `status` to `completed`, stamp `updated` to now, prepend the archival notice (mirrors learnings archival format), then atomic-rename to `.hatch3r/handoffs/archived/<id>.md`.
98
105
 
99
106
  ## Subcommand: prune
100
107
 
101
108
  1. Parse `--dry-run` flag.
102
- 2. Scan `.agents/handoffs/active/`: collect entries whose `expires_after` ISO-8601 timestamp is at-or-before now (preparer default stamps `created + 30 days`).
103
- 3. Scan `.agents/handoffs/archived/`: collect entries where `updated` is older than 90 days.
109
+ 2. Scan `.hatch3r/handoffs/active/`: collect entries whose `expires_after` ISO-8601 timestamp is at-or-before now (preparer default stamps `created + 30 days`).
110
+ 3. Scan `.hatch3r/handoffs/archived/`: collect entries where `updated` is older than 90 days.
104
111
  4. Present a two-section preview (Active expirations to archive, Archives to delete).
105
112
  5. If `--dry-run`: print the preview and exit.
106
113
 
@@ -112,7 +119,7 @@ ID STATUS BRANCH
112
119
 
113
120
  ## Error Handling
114
121
 
115
- - `.agents/handoffs/active/` missing or empty: emit `No active handoffs. Run 'hatch3r-handoff prepare' to capture one.` and exit 0.
122
+ - `.hatch3r/handoffs/active/` missing or empty: emit `No active handoffs. Run 'hatch3r-handoff prepare' to capture one.` and exit 0.
116
123
  - Ambiguous `<id>` (multiple partial matches): list the matches and **ASK** the user to pick one.
117
124
  - Write conflict (concurrent prepare for same `work_item`): surface the existing handoff path and **ASK** whether to overwrite (only if existing handoff is older than 24 hours per `writeHandoff` policy).
118
125
  - `complete` or `prune` requested on a missing id: report the path that was looked up and suggest `hatch3r-handoff list`.
@@ -120,7 +127,7 @@ ID STATUS BRANCH
120
127
  ## Guardrails
121
128
 
122
129
  - **Never delete** a handoff without explicit user confirmation. Prune deletes only archives older than 90 days, and only after the confirm prompt.
123
- - **Never modify** a file already in `.agents/handoffs/archived/`. Archived entries are immutable history.
130
+ - **Never modify** a file already in `.hatch3r/handoffs/archived/`. Archived entries are immutable history.
124
131
  - **Never include secrets** (API keys, tokens, credentials) in any handoff body. The preparer scans for credential-shaped strings; reject the write if any are detected.
125
- - **Never write** outside `.agents/handoffs/active/` for new handoffs. Archival is the only path into `archived/`.
132
+ - **Never write** outside `.hatch3r/handoffs/active/` for new handoffs. Archival is the only path into `archived/`.
126
133
  - **Always emit the Iteration Summary block** at the end of the iteration per `rules/hatch3r-iteration-summary.md`.
@@ -10,6 +10,10 @@ cache_friendly: true
10
10
  parallel_tool_default: true
11
11
  ---
12
12
 
13
+ ## §0 Detect Ambiguity (P8 B1)
14
+
15
+ Before any action, scan the user's request and provided context for unresolved questions in scope, acceptance criteria, irreversibility, or constraint conflicts (contradictory inputs, missing target, unknown convention). If any are found, ask the user via the platform-native question tool per `agents/shared/user-question-protocol.md` — do not proceed under silent assumption. This is the default path, not an exception. Acceptable to proceed without asking ONLY when scope is single-target, single-concern, and the brief alone is testable. Any residual ambiguity discovered mid-workflow invokes the same protocol.
16
+
13
17
  ## Agent Pipeline
14
18
 
15
19
  This command creates QA audit issues and epics. It does not spawn implementation sub-agents.
@@ -30,7 +34,7 @@ Create a healthcheck epic on **{owner}/{repo}** with one sub-issue per logical p
30
34
 
31
35
  ## Shared Context
32
36
 
33
- **Read the project's shared board context at the start of the run** (e.g., `.agents/commands/hatch3r-board-shared.md` or equivalent). It contains GitHub Context, Project Reference, Projects v2 sync procedure, and Board Overview template. Cache all values for the duration of this run.
37
+ **Read the project's shared board context at the start of the run** (e.g., `commands/hatch3r-board-shared/SKILL.md` or equivalent). It contains GitHub Context, Project Reference, Projects v2 sync procedure, and Board Overview template. Cache all values for the duration of this run.
34
38
 
35
39
  ## Token-Saving Directives
36
40