hatch3r 1.6.0 → 1.7.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 (170) hide show
  1. package/README.md +5 -5
  2. package/agents/hatch3r-a11y-auditor.md +5 -0
  3. package/agents/hatch3r-architect.md +5 -0
  4. package/agents/hatch3r-ci-watcher.md +5 -0
  5. package/agents/hatch3r-context-rules.md +5 -0
  6. package/agents/hatch3r-creator.md +304 -0
  7. package/agents/hatch3r-dependency-auditor.md +5 -0
  8. package/agents/hatch3r-devops.md +5 -0
  9. package/agents/hatch3r-docs-writer.md +5 -0
  10. package/agents/hatch3r-fixer.md +5 -0
  11. package/agents/hatch3r-implementer.md +5 -0
  12. package/agents/hatch3r-learnings-loader.md +5 -0
  13. package/agents/hatch3r-lint-fixer.md +5 -0
  14. package/agents/hatch3r-perf-profiler.md +5 -0
  15. package/agents/hatch3r-researcher.md +5 -0
  16. package/agents/hatch3r-reviewer.md +5 -0
  17. package/agents/hatch3r-security-auditor.md +5 -0
  18. package/agents/hatch3r-test-writer.md +5 -0
  19. package/agents/modes/architecture.md +3 -0
  20. package/agents/modes/boundary-analysis.md +3 -0
  21. package/agents/modes/codebase-impact.md +3 -0
  22. package/agents/modes/complexity-risk.md +3 -0
  23. package/agents/modes/coverage-analysis.md +3 -0
  24. package/agents/modes/current-state.md +3 -0
  25. package/agents/modes/feature-design.md +3 -0
  26. package/agents/modes/impact-analysis.md +3 -0
  27. package/agents/modes/library-docs.md +3 -0
  28. package/agents/modes/migration-path.md +3 -0
  29. package/agents/modes/prior-art.md +3 -0
  30. package/agents/modes/refactoring-strategy.md +3 -0
  31. package/agents/modes/regression.md +3 -0
  32. package/agents/modes/requirements-elicitation.md +3 -0
  33. package/agents/modes/risk-assessment.md +3 -0
  34. package/agents/modes/risk-prioritization.md +3 -0
  35. package/agents/modes/root-cause.md +3 -0
  36. package/agents/modes/similar-implementation.md +3 -0
  37. package/agents/modes/symptom-trace.md +3 -0
  38. package/agents/modes/test-pattern.md +3 -0
  39. package/agents/shared/efficiency-patterns.md +71 -0
  40. package/agents/shared/external-knowledge.md +2 -0
  41. package/agents/shared/injection-patterns.md +2 -0
  42. package/agents/shared/prompt-structure.md +2 -0
  43. package/agents/shared/quality-charter.md +10 -0
  44. package/agents/shared/user-content-templates.md +257 -0
  45. package/checks/accessibility.md +1 -0
  46. package/checks/code-quality.md +1 -0
  47. package/checks/performance.md +1 -0
  48. package/checks/security.md +1 -0
  49. package/checks/testing.md +1 -0
  50. package/commands/board/pickup-azure-devops.md +1 -0
  51. package/commands/board/pickup-delegation-multi.md +1 -0
  52. package/commands/board/pickup-delegation.md +1 -0
  53. package/commands/board/pickup-github.md +1 -0
  54. package/commands/board/pickup-gitlab.md +1 -0
  55. package/commands/board/pickup-modes.md +1 -0
  56. package/commands/board/pickup-post-impl.md +1 -0
  57. package/commands/board/shared-azure-devops.md +1 -0
  58. package/commands/board/shared-board-overview.md +1 -0
  59. package/commands/board/shared-github.md +1 -0
  60. package/commands/board/shared-gitlab.md +1 -0
  61. package/commands/hatch3r-agent-customize.md +9 -2
  62. package/commands/hatch3r-api-spec.md +16 -0
  63. package/commands/hatch3r-benchmark.md +16 -0
  64. package/commands/hatch3r-board-fill.md +16 -0
  65. package/commands/hatch3r-board-groom.md +3 -0
  66. package/commands/hatch3r-board-init.md +3 -0
  67. package/commands/hatch3r-board-pickup.md +16 -0
  68. package/commands/hatch3r-board-refresh.md +3 -0
  69. package/commands/hatch3r-board-shared.md +3 -0
  70. package/commands/hatch3r-bug-plan.md +16 -0
  71. package/commands/hatch3r-codebase-map.md +16 -0
  72. package/commands/hatch3r-command-customize.md +3 -0
  73. package/commands/hatch3r-context-health.md +3 -0
  74. package/commands/hatch3r-cost-tracking.md +3 -0
  75. package/commands/hatch3r-create.md +197 -0
  76. package/commands/hatch3r-debug.md +16 -0
  77. package/commands/hatch3r-dep-audit.md +3 -0
  78. package/commands/hatch3r-feature-plan.md +16 -0
  79. package/commands/hatch3r-healthcheck.md +3 -0
  80. package/commands/hatch3r-hooks.md +3 -0
  81. package/commands/hatch3r-learn.md +3 -0
  82. package/commands/hatch3r-migration-plan.md +16 -0
  83. package/commands/hatch3r-onboard.md +16 -0
  84. package/commands/hatch3r-project-spec.md +16 -0
  85. package/commands/hatch3r-quick-change.md +17 -1
  86. package/commands/hatch3r-recipe.md +3 -0
  87. package/commands/hatch3r-refactor-plan.md +16 -0
  88. package/commands/hatch3r-release.md +3 -0
  89. package/commands/hatch3r-revision.md +16 -0
  90. package/commands/hatch3r-roadmap.md +16 -0
  91. package/commands/hatch3r-rule-customize.md +3 -0
  92. package/commands/hatch3r-security-audit.md +3 -0
  93. package/commands/hatch3r-skill-customize.md +3 -0
  94. package/commands/hatch3r-test-plan.md +16 -0
  95. package/commands/hatch3r-workflow.md +17 -1
  96. package/commands/revision/revision-board-integration.md +1 -0
  97. package/commands/revision/revision-delegation.md +1 -0
  98. package/commands/revision/revision-modes.md +1 -0
  99. package/commands/revision/revision-quality.md +1 -0
  100. package/dist/cli/index.js +2448 -932
  101. package/dist/cli/index.js.map +1 -1
  102. package/github-agents/hatch3r-docs-agent.md +3 -0
  103. package/github-agents/hatch3r-lint-agent.md +3 -0
  104. package/github-agents/hatch3r-security-agent.md +3 -0
  105. package/github-agents/hatch3r-test-agent.md +3 -0
  106. package/hooks/hatch3r-ci-failure.md +1 -0
  107. package/hooks/hatch3r-file-save.md +1 -0
  108. package/hooks/hatch3r-post-merge.md +1 -0
  109. package/hooks/hatch3r-pre-commit.md +1 -0
  110. package/hooks/hatch3r-pre-push.md +1 -0
  111. package/hooks/hatch3r-session-start.md +1 -0
  112. package/package.json +10 -1
  113. package/prompts/hatch3r-bug-triage.md +2 -0
  114. package/prompts/hatch3r-code-review.md +2 -0
  115. package/prompts/hatch3r-pr-description.md +2 -0
  116. package/rules/hatch3r-accessibility-standards.md +1 -0
  117. package/rules/hatch3r-agent-orchestration-detail.md +1 -0
  118. package/rules/hatch3r-agent-orchestration.md +1 -0
  119. package/rules/hatch3r-api-design.md +1 -0
  120. package/rules/hatch3r-browser-verification.md +1 -0
  121. package/rules/hatch3r-ci-cd.md +1 -0
  122. package/rules/hatch3r-code-standards.md +1 -0
  123. package/rules/hatch3r-component-conventions.md +1 -0
  124. package/rules/hatch3r-data-classification.md +1 -0
  125. package/rules/hatch3r-deep-context.md +1 -0
  126. package/rules/hatch3r-dependency-management.md +1 -0
  127. package/rules/hatch3r-feature-flags.md +1 -0
  128. package/rules/hatch3r-git-conventions.md +1 -0
  129. package/rules/hatch3r-i18n.md +1 -0
  130. package/rules/hatch3r-iteration-summary.md +86 -0
  131. package/rules/hatch3r-iteration-summary.mdc +81 -0
  132. package/rules/hatch3r-learning-consult.md +1 -0
  133. package/rules/hatch3r-migrations.md +1 -0
  134. package/rules/hatch3r-observability-logging.md +1 -0
  135. package/rules/hatch3r-observability-metrics.md +1 -0
  136. package/rules/hatch3r-observability-tracing-detail.md +1 -0
  137. package/rules/hatch3r-observability-tracing.md +1 -0
  138. package/rules/hatch3r-observability.md +1 -0
  139. package/rules/hatch3r-performance-budgets.md +1 -0
  140. package/rules/hatch3r-secrets-management.md +1 -0
  141. package/rules/hatch3r-security-patterns.md +1 -0
  142. package/rules/hatch3r-testing.md +1 -0
  143. package/rules/hatch3r-theming.md +1 -0
  144. package/rules/hatch3r-tooling-hierarchy.md +1 -0
  145. package/skills/hatch3r-a11y-audit/SKILL.md +2 -0
  146. package/skills/hatch3r-agent-customize/SKILL.md +2 -0
  147. package/skills/hatch3r-api-spec/SKILL.md +2 -0
  148. package/skills/hatch3r-architecture-review/SKILL.md +2 -0
  149. package/skills/hatch3r-bug-fix/SKILL.md +2 -0
  150. package/skills/hatch3r-ci-pipeline/SKILL.md +2 -0
  151. package/skills/hatch3r-command-customize/SKILL.md +2 -0
  152. package/skills/hatch3r-context-health/SKILL.md +2 -0
  153. package/skills/hatch3r-cost-tracking/SKILL.md +2 -0
  154. package/skills/hatch3r-customize/SKILL.md +2 -0
  155. package/skills/hatch3r-dep-audit/SKILL.md +2 -0
  156. package/skills/hatch3r-feature/SKILL.md +2 -0
  157. package/skills/hatch3r-gh-agentic-workflows/SKILL.md +2 -0
  158. package/skills/hatch3r-incident-response/SKILL.md +2 -0
  159. package/skills/hatch3r-issue-workflow/SKILL.md +2 -0
  160. package/skills/hatch3r-logical-refactor/SKILL.md +2 -0
  161. package/skills/hatch3r-migration/SKILL.md +2 -0
  162. package/skills/hatch3r-perf-audit/SKILL.md +2 -0
  163. package/skills/hatch3r-pr-creation/SKILL.md +2 -0
  164. package/skills/hatch3r-qa-validation/SKILL.md +2 -0
  165. package/skills/hatch3r-recipe/SKILL.md +2 -0
  166. package/skills/hatch3r-refactor/SKILL.md +2 -0
  167. package/skills/hatch3r-release/SKILL.md +2 -0
  168. package/skills/hatch3r-rule-customize/SKILL.md +2 -0
  169. package/skills/hatch3r-skill-customize/SKILL.md +2 -0
  170. package/skills/hatch3r-visual-refactor/SKILL.md +2 -0
@@ -6,6 +6,10 @@ agentPipeline: [hatch3r-researcher, hatch3r-architect, hatch3r-docs-writer]
6
6
  description: Create a phased migration plan for a major dependency or framework upgrade. Analyzes breaking changes and produces an actionable plan with rollback procedures.
7
7
  tags: [planning, brownfield]
8
8
  quality_charter: agents/shared/quality-charter.md
9
+ efficiency_patterns: agents/shared/efficiency-patterns.md
10
+ cache_friendly: true
11
+ parallel_tool_default: true
12
+ triage_tiers: [1, 2, 3]
9
13
  ---
10
14
 
11
15
  ## Agent Pipeline
@@ -39,6 +43,18 @@ Take a dependency or framework upgrade target and produce a complete migration p
39
43
 
40
44
  Execute these steps in order. **Do not skip any step.** Ask the user at every checkpoint marked with ASK.
41
45
 
46
+ ## Step 0: Triage
47
+
48
+ Classify the migration request before delegating:
49
+
50
+ - **Tier 1 (trivial)**: minor version bump with no breaking changes; produce a single-phase todo entry without ADRs or architect involvement.
51
+ - **Tier 2 (standard)**: single major version jump with bounded breaking changes; standard pipeline with both parallel researchers and the architect for impact mapping.
52
+ - **Tier 3 (deep)**: multi-major-version jump or framework migration (e.g., CRA -> Vite); full pipeline with research and confirm phased plan with the user before writing files.
53
+
54
+ If Tier 1, run a condensed pipeline that skips the architect when no breaking changes exist. If Tier 2, run the standard pipeline below. If Tier 3, run the full pipeline including incremental-vs-direct trade-off analysis and confirm phasing with the user before writing files.
55
+
56
+ ---
57
+
42
58
  ### Step 1: Gather Migration Target
43
59
 
44
60
  1. **ASK:** "Tell me about the migration you're planning. I need:
@@ -6,6 +6,10 @@ agentPipeline: [hatch3r-researcher, hatch3r-docs-writer]
6
6
  description: Generate a comprehensive onboarding guide for a new developer joining the project -- spawn parallel researchers to analyze codebase structure, architecture, and conventions, then produce a tailored onboarding document with setup instructions, architecture walkthrough, coding conventions, key workflows, tribal knowledge, and a quick-reference cheat sheet.
7
7
  tags: [brownfield, team]
8
8
  quality_charter: agents/shared/quality-charter.md
9
+ efficiency_patterns: agents/shared/efficiency-patterns.md
10
+ cache_friendly: true
11
+ parallel_tool_default: true
12
+ triage_tiers: [1, 2, 3]
9
13
  ---
10
14
 
11
15
  ## Agent Pipeline
@@ -38,6 +42,18 @@ Take a new developer's role, experience level, and focus areas and produce a com
38
42
 
39
43
  Execute these steps in order. **Do not skip any step.** Ask the user at every checkpoint marked with ASK.
40
44
 
45
+ ## Step 0: Triage
46
+
47
+ Classify the onboarding-guide request before delegating:
48
+
49
+ - **Tier 1 (trivial)**: small project (<500 files) or condensed guide for a single role; reduced fanout (1 researcher: codebase-overview), abbreviated guide.
50
+ - **Tier 2 (standard)**: standard project with both technical and team context; standard pipeline with all 3 parallel researchers (codebase-overview, architecture, conventions).
51
+ - **Tier 3 (deep)**: large monorepo or staff-level guide covering system architecture, integration boundaries, and scaling considerations; full pipeline with deep researcher depth and confirm sections with the user.
52
+
53
+ If Tier 1, run the reduced researcher set and skip experience-level depth tailoring. If Tier 2, run the standard pipeline below. If Tier 3, expand researcher depth and confirm guide sections with the user before generating the document.
54
+
55
+ ---
56
+
41
57
  ### Step 1: Gather Context
42
58
 
43
59
  1. **ASK:** "Tell me about the developer who will use this onboarding guide. I need:
@@ -6,6 +6,10 @@ agentPipeline: [hatch3r-researcher, hatch3r-docs-writer]
6
6
  description: Translate a greenfield vision into future-state design artifacts -- ADRs, domain model, API contracts, per-module technical specs, and a board-ready todo.md
7
7
  tags: [planning, greenfield]
8
8
  quality_charter: agents/shared/quality-charter.md
9
+ efficiency_patterns: agents/shared/efficiency-patterns.md
10
+ cache_friendly: true
11
+ parallel_tool_default: true
12
+ triage_tiers: [1, 2, 3]
9
13
  ---
10
14
  # Project Spec — Greenfield Project Specification from Vision to Docs
11
15
 
@@ -37,6 +41,18 @@ Take a project idea or vision and produce complete project documentation across
37
41
 
38
42
  Execute these steps in order. **Do not skip any step.** Ask the user at every checkpoint marked with ASK. When in doubt, **ASK** — it is better to ask one question too many than to make one wrong assumption. Discovery questions are never wasted.
39
43
 
44
+ ## Step 0: Triage
45
+
46
+ Classify the project-spec request before delegating:
47
+
48
+ - **Tier 1 (trivial)**: small greenfield project with focused scope, single platform, no compliance burden; reduced fanout (3–4 researchers) and skip the production-blueprint sub-agent.
49
+ - **Tier 2 (standard)**: standard greenfield with business and technical lenses; standard pipeline with all 7 parallel researchers and ADR generation.
50
+ - **Tier 3 (deep)**: enterprise-scale, multi-platform, or regulated greenfield (HIPAA/PCI/FedRAMP); full pipeline with all researchers, deep web research for compliance, and confirm spec scope with the user before file writes.
51
+
52
+ If Tier 1, run the reduced researcher set and skip Sub-Agents 6–7 unless the user opts in. If Tier 2, run the standard pipeline below. If Tier 3, run the full pipeline including the production-blueprint and confirm scope with the user before generating ADRs.
53
+
54
+ ---
55
+
40
56
  ### Step 1: Gather Project Vision & Business Context
41
57
 
42
58
  #### 1a. Core Vision
@@ -6,6 +6,10 @@ agentPipeline: [hatch3r-implementer, hatch3r-lint-fixer, hatch3r-reviewer, hatch
6
6
  description: Lightweight command for small changes not worth tracking on the board. Adaptive ceremony with inline or sub-agent implementation, batch support, and soft scope guards.
7
7
  tags: [core, implementation]
8
8
  quality_charter: agents/shared/quality-charter.md
9
+ efficiency_patterns: agents/shared/efficiency-patterns.md
10
+ cache_friendly: true
11
+ parallel_tool_default: true
12
+ triage_tiers: [1, 2, 3]
9
13
  ---
10
14
 
11
15
  ## Agent Pipeline
@@ -77,6 +81,18 @@ Downstream propagation: every ASK checkpoint that reports verification quality,
77
81
 
78
82
  ---
79
83
 
84
+ ## Triage
85
+
86
+ Classify the change request before delegating. Detailed tier scoring runs in Step 2 (Tier Assessment); this section summarizes the routing:
87
+
88
+ - **Tier 1 (trivial)**: single-file edit, config tweak, typo, or constant rename; inline implementation in Step 4a, no researcher, no review loop.
89
+ - **Tier 2 (standard)**: multi-file change or new function with bounded scope; standard pipeline with `hatch3r-implementer` and lightweight researcher (`similar-implementation` at `quick` depth).
90
+ - **Tier 3 (deep)**: hard-blocked here — quick-change does not provide research depth for Tier 3 work. Step 2b routes Tier 3 to `hatch3r-workflow`.
91
+
92
+ If Tier 1, run inline. If Tier 2, run the implementer-only pipeline below. If Tier 3, exit and recommend `hatch3r-workflow`.
93
+
94
+ ---
95
+
80
96
  ## Workflow
81
97
 
82
98
  Execute these steps in order. **Do not skip any step.** Ask the user at every checkpoint marked with ASK.
@@ -94,7 +110,7 @@ Parse the user's description into discrete change items.
94
110
 
95
111
  ---
96
112
 
97
- ### Step 2: Scale Assessment (Soft Guard)
113
+ ### Step 2: Tier Assessment (Soft Guard)
98
114
 
99
115
  Evaluate whether the described changes fit the quick-change scope.
100
116
 
@@ -5,6 +5,9 @@ orchestrator: false
5
5
  description: Execute shareable workflow recipes that compose agents, skills, and commands into guided sequences for common development scenarios
6
6
  tags: [core]
7
7
  quality_charter: agents/shared/quality-charter.md
8
+ efficiency_patterns: agents/shared/efficiency-patterns.md
9
+ cache_friendly: true
10
+ parallel_tool_default: true
8
11
  ---
9
12
 
10
13
  ## Agent Pipeline
@@ -6,6 +6,10 @@ agentPipeline: [hatch3r-researcher, hatch3r-docs-writer]
6
6
  description: Plan a refactoring or migration effort -- spawn parallel researchers, produce refactoring spec, ADR(s), and phased todo.md entries for board-fill.
7
7
  tags: [planning]
8
8
  quality_charter: agents/shared/quality-charter.md
9
+ efficiency_patterns: agents/shared/efficiency-patterns.md
10
+ cache_friendly: true
11
+ parallel_tool_default: true
12
+ triage_tiers: [1, 2, 3]
9
13
  ---
10
14
 
11
15
  ## Agent Pipeline
@@ -47,6 +51,18 @@ The command produces phased todo.md entries that map to the appropriate executio
47
51
 
48
52
  Execute these steps in order. **Do not skip any step.** Ask the user at every checkpoint marked with ASK.
49
53
 
54
+ ## Step 0: Triage
55
+
56
+ Classify the refactor-planning request before delegating:
57
+
58
+ - **Tier 1 (trivial)**: localized refactoring scoped to a single module with strong test coverage; reduced fanout (1–2 researchers) and produce a single-phase todo entry.
59
+ - **Tier 2 (standard)**: standard refactor across 2–4 modules or a single dimension (structural or logical or visual); standard pipeline with all 5 parallel researcher modes.
60
+ - **Tier 3 (deep)**: cross-cutting refactor (architectural shift, framework swap, or mixed-dimension); full pipeline with deep research and confirm phased plan with the user before file writes.
61
+
62
+ If Tier 1, run the reduced researcher set and skip ADR generation unless decisions are obvious. If Tier 2, run the standard pipeline below. If Tier 3, run the full pipeline including ADR generation and confirm phasing with the user before writing files.
63
+
64
+ ---
65
+
50
66
  ### Step 1: Gather Refactoring Goal
51
67
 
52
68
  1. **ASK:** "Tell me about the refactoring or migration you want to plan. I need:
@@ -5,6 +5,9 @@ orchestrator: false
5
5
  description: Cut a versioned release with changelog generation, version bumping, and GitHub release creation.
6
6
  tags: [devops]
7
7
  quality_charter: agents/shared/quality-charter.md
8
+ efficiency_patterns: agents/shared/efficiency-patterns.md
9
+ cache_friendly: true
10
+ parallel_tool_default: true
8
11
  ---
9
12
  # Release — Cut a Versioned Release with Changelog
10
13
 
@@ -6,6 +6,10 @@ agentPipeline: [hatch3r-implementer, hatch3r-lint-fixer, hatch3r-test-writer, ha
6
6
  description: User-guided revision of agent-implemented code in a fresh context window. Reconstructs what was done, interviews the user for feedback, fixes issues, cleans up leftovers, and drives toward merge readiness. Delegation, quality pipeline, modes, and board integration details are in commands/revision/.
7
7
  tags: [implementation, team]
8
8
  quality_charter: agents/shared/quality-charter.md
9
+ efficiency_patterns: agents/shared/efficiency-patterns.md
10
+ cache_friendly: true
11
+ parallel_tool_default: true
12
+ triage_tiers: [1, 2, 3]
9
13
  ---
10
14
 
11
15
  ## Agent Pipeline
@@ -75,6 +79,18 @@ Initialize the run cache at the start of the workflow. See `commands/revision/re
75
79
 
76
80
  Execute these steps in order. **Do not skip any step.** Ask the user at every checkpoint marked with ASK.
77
81
 
82
+ ## Step 0: Triage
83
+
84
+ Classify the revision request before delegating:
85
+
86
+ - **Tier 1 (trivial)**: cleanup-only revision or 1–3 minor leftovers; reduced pipeline (Steps 1–2, 4–5, 8) with inline fixes and skip the full review loop in Step 7.
87
+ - **Tier 2 (standard)**: standard user feedback with a mix of critical/important/cleanup findings; standard pipeline with sub-agent delegation (Step 6) and the review loop (Step 7a).
88
+ - **Tier 3 (deep)**: deep revision with critical findings, architectural concerns, or board-deferred follow-ups; full pipeline including the parallel quality specialists in Step 7b and the merge-readiness gate in Step 9.
89
+
90
+ If Tier 1, run the reduced pipeline. If Tier 2, run the standard pipeline below. If Tier 3, run the full pipeline including all quality specialists and confirm merge readiness with the user before commit.
91
+
92
+ ---
93
+
78
94
  ### Step 1: Context Reconstruction
79
95
 
80
96
  Rebuild full context in the fresh window. No prior implementation context is assumed.
@@ -6,6 +6,10 @@ agentPipeline: [hatch3r-researcher, hatch3r-docs-writer]
6
6
  description: Sequence delivery phases over time into a dependency-ordered milestone plan with business and technical lenses, emitting a todo.md rollout schedule rather than design docs
7
7
  tags: [planning, greenfield]
8
8
  quality_charter: agents/shared/quality-charter.md
9
+ efficiency_patterns: agents/shared/efficiency-patterns.md
10
+ cache_friendly: true
11
+ parallel_tool_default: true
12
+ triage_tiers: [1, 2, 3]
9
13
  ---
10
14
  # Roadmap — Generate Phased Roadmap from Specs & Vision
11
15
 
@@ -35,6 +39,18 @@ Follow the **Token-Saving Directives** in `hatch3r-board-shared`.
35
39
 
36
40
  Execute these steps in order. **Do not skip any step.** Ask the user at every checkpoint marked with ASK. When in doubt, **ASK** — it is better to ask one question too many than to make one wrong assumption. Discovery questions are never wasted.
37
41
 
42
+ ## Step 0: Triage
43
+
44
+ Classify the roadmap request before delegating:
45
+
46
+ - **Tier 1 (trivial)**: small project with focused scope (under 20 backlog items), single dimension (technical only); reduced fanout (1 researcher: Technical Readiness) and condensed todo.md output.
47
+ - **Tier 2 (standard)**: standard dual-lens roadmap (business + technical) with both researchers; standard pipeline with parallel research and AGENTS.md generation.
48
+ - **Tier 3 (deep)**: enterprise/scale company with regulatory deadlines, multi-quarter horizon, or 50+ backlog items; full pipeline with deep web research and confirm milestones with the user before writing files.
49
+
50
+ If Tier 1, run the reduced researcher set and skip Step 7 (AGENTS.md) unless requested. If Tier 2, run the standard pipeline below. If Tier 3, run the full pipeline with deep research, surface market-timing intelligence, and confirm phased plan with the user before file writes.
51
+
52
+ ---
53
+
38
54
  ### Step 1: Load Project Context & Business Discovery
39
55
 
40
56
  #### 1a. Load Existing Documentation
@@ -5,6 +5,9 @@ orchestrator: false
5
5
  description: Edit rule scope globs, toggle always-on versus conditional activation, and adjust precedence tier via .hatch3r/rules/ YAML overrides plus markdown appends
6
6
  tags: [customize]
7
7
  quality_charter: agents/shared/quality-charter.md
8
+ efficiency_patterns: agents/shared/efficiency-patterns.md
9
+ cache_friendly: true
10
+ parallel_tool_default: true
8
11
  ---
9
12
 
10
13
  ## Agent Pipeline
@@ -5,6 +5,9 @@ orchestrator: false
5
5
  description: Open an OWASP ASI security epic reviewing auth boundaries, input validation, and supply-chain risks with one hardening sub-issue per module plus trust-boundary audit
6
6
  tags: [maintenance, security]
7
7
  quality_charter: agents/shared/quality-charter.md
8
+ efficiency_patterns: agents/shared/efficiency-patterns.md
9
+ cache_friendly: true
10
+ parallel_tool_default: true
8
11
  ---
9
12
 
10
13
  ## Agent Pipeline
@@ -5,6 +5,9 @@ orchestrator: false
5
5
  description: Rewrite skill dispatch descriptions for model auto-selection, gate per-preset exposure, and control slash-command surfacing via .hatch3r/skills/ YAML overrides
6
6
  tags: [customize]
7
7
  quality_charter: agents/shared/quality-charter.md
8
+ efficiency_patterns: agents/shared/efficiency-patterns.md
9
+ cache_friendly: true
10
+ parallel_tool_default: true
8
11
  ---
9
12
 
10
13
  ## Agent Pipeline
@@ -6,6 +6,10 @@ agentPipeline: [hatch3r-researcher, hatch3r-docs-writer]
6
6
  description: Plan a comprehensive test strategy -- spawn parallel researchers, produce test plan spec with coverage targets, priority ordering, test case outlines, and structured todo.md entries for board-fill.
7
7
  tags: [core, planning]
8
8
  quality_charter: agents/shared/quality-charter.md
9
+ efficiency_patterns: agents/shared/efficiency-patterns.md
10
+ cache_friendly: true
11
+ parallel_tool_default: true
12
+ triage_tiers: [1, 2, 3]
9
13
  ---
10
14
 
11
15
  ## Agent Pipeline
@@ -38,6 +42,18 @@ Take a test planning scope (feature, module, or codebase area) and produce a com
38
42
 
39
43
  Execute these steps in order. **Do not skip any step.** Ask the user at every checkpoint marked with ASK.
40
44
 
45
+ ## Step 0: Triage
46
+
47
+ Classify the test-planning request before delegating:
48
+
49
+ - **Tier 1 (trivial)**: tests for a single feature or single module with existing test infrastructure; reduced fanout (1–2 researchers: coverage-analysis, risk-prioritization) and produce a single-task todo entry.
50
+ - **Tier 2 (standard)**: feature-scoped or module-coverage audit with mixed test types; standard pipeline with all 5 parallel researcher modes.
51
+ - **Tier 3 (deep)**: full-suite restructure, mutation-testing rollout, contract testing, or coverage uplift across the whole codebase; full pipeline with deep research and confirm test plan scope with the user before writing files.
52
+
53
+ If Tier 1, run the reduced researcher set and skip Step 6 (ADRs). If Tier 2, run the standard pipeline below. If Tier 3, run the full pipeline including ADR generation for testing infrastructure decisions and confirm scope with the user before writing files.
54
+
55
+ ---
56
+
41
57
  ### Step 1: Gather Test Planning Scope
42
58
 
43
59
  1. **ASK:** "Tell me about the test strategy you want to plan. I need:
@@ -6,6 +6,10 @@ agentPipeline: [hatch3r-researcher, hatch3r-implementer, hatch3r-reviewer, hatch
6
6
  description: Guided development lifecycle with 4 phases (Analyze, Plan, Implement, Review) and scale-adaptive Quick Mode for small tasks.
7
7
  tags: [core, implementation]
8
8
  quality_charter: agents/shared/quality-charter.md
9
+ efficiency_patterns: agents/shared/efficiency-patterns.md
10
+ cache_friendly: true
11
+ parallel_tool_default: true
12
+ triage_tiers: [1, 2, 3]
9
13
  ---
10
14
  # Development Workflow -- Guided Lifecycle for Structured Implementation
11
15
 
@@ -59,11 +63,23 @@ Downstream propagation: every ASK checkpoint that reports verification quality,
59
63
 
60
64
  ---
61
65
 
66
+ ## Triage
67
+
68
+ Classify the development task before delegating. Detailed mode classification runs in Step 0 (Triage / Scale-Adaptive Mode Selection); this section summarizes the routing:
69
+
70
+ - **Tier 1 (trivial)**: single-line edit, typo, or trivial config change; Quick Mode skips most ASK checkpoints and runs the streamlined 3-step path.
71
+ - **Tier 2 (standard)**: bug fix or small feature in 1–3 files; Quick Mode with full sub-agent delegation (researcher, implementer, reviewer, fixer, test-writer, security-auditor).
72
+ - **Tier 3 (deep)**: multi-module feature, architectural change, or cross-cutting refactor; Full Mode with all 4 phases (Analyze, Plan, Implement, Review) and deep research before mutating files.
73
+
74
+ If Tier 1, take Quick Mode with reduced sub-agent prompts. If Tier 2, take Quick Mode below. If Tier 3, switch to Full Mode and confirm the plan with the user before implementation.
75
+
76
+ ---
77
+
62
78
  ## Workflow
63
79
 
64
80
  Execute these steps in order. **Do not skip any step.** Ask the user at every checkpoint marked with ASK.
65
81
 
66
- ### Step 0: Mode Selection (Scale-Adaptive)
82
+ ### Step 0: Triage (Scale-Adaptive Mode Selection)
67
83
 
68
84
  Assess the task to recommend a mode.
69
85
 
@@ -4,6 +4,7 @@ type: command
4
4
  description: Board integration for revision. Covers run cache schema, post-commit PR updates, dashboard refresh (Step 9a), and lightweight reconciliation (Step 9b).
5
5
  tags: [implementation, team]
6
6
  quality_charter: agents/shared/quality-charter.md
7
+ cache_friendly: true
7
8
  ---
8
9
  # Revision — Board Integration
9
10
 
@@ -4,6 +4,7 @@ type: command
4
4
  description: Fix delegation protocol for revision Step 6. Covers complexity-aware grouping, blast radius context, sub-agent prompt templates, and cross-agent conflict resolution.
5
5
  tags: [implementation, team]
6
6
  quality_charter: agents/shared/quality-charter.md
7
+ cache_friendly: true
7
8
  ---
8
9
  # Revision — Fix Delegation (Step 6)
9
10
 
@@ -4,6 +4,7 @@ type: command
4
4
  description: Auto-advance mode, safety guardrails, error handling, and session report for revision. Covers --auto operation, never-skip rules, platform-aware error recovery, and end-of-session summary.
5
5
  tags: [implementation, team]
6
6
  quality_charter: agents/shared/quality-charter.md
7
+ cache_friendly: true
7
8
  ---
8
9
  # Revision — Modes, Guardrails, and Error Handling
9
10
 
@@ -4,6 +4,7 @@ type: command
4
4
  description: Quality verification pipeline for revision Step 7. Covers review loop (Stage 1), final quality with conditional specialists (Stage 2), and failure handling.
5
5
  tags: [implementation, team]
6
6
  quality_charter: agents/shared/quality-charter.md
7
+ cache_friendly: true
7
8
  ---
8
9
  # Revision — Quality Verification (Step 7)
9
10