hatch3r 1.0.0 → 1.2.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 (144) hide show
  1. package/README.md +93 -322
  2. package/agents/hatch3r-a11y-auditor.md +24 -6
  3. package/agents/hatch3r-architect.md +20 -1
  4. package/agents/hatch3r-ci-watcher.md +31 -8
  5. package/agents/hatch3r-context-rules.md +14 -2
  6. package/agents/hatch3r-dependency-auditor.md +21 -5
  7. package/agents/hatch3r-devops.md +37 -6
  8. package/agents/hatch3r-docs-writer.md +19 -3
  9. package/agents/hatch3r-fixer.md +171 -0
  10. package/agents/hatch3r-implementer.md +84 -11
  11. package/agents/hatch3r-learnings-loader.md +69 -13
  12. package/agents/hatch3r-lint-fixer.md +19 -14
  13. package/agents/hatch3r-perf-profiler.md +18 -1
  14. package/agents/hatch3r-researcher.md +440 -5
  15. package/agents/hatch3r-reviewer.md +97 -5
  16. package/agents/hatch3r-security-auditor.md +23 -5
  17. package/agents/hatch3r-test-writer.md +21 -10
  18. package/checks/README.md +49 -0
  19. package/checks/code-quality.md +49 -0
  20. package/checks/performance.md +58 -0
  21. package/checks/security.md +58 -0
  22. package/checks/testing.md +53 -0
  23. package/commands/board/pickup-azure-devops.md +81 -0
  24. package/commands/board/pickup-delegation-multi.md +197 -0
  25. package/commands/board/pickup-delegation.md +100 -0
  26. package/commands/board/pickup-github.md +82 -0
  27. package/commands/board/pickup-gitlab.md +81 -0
  28. package/commands/board/pickup-modes.md +143 -0
  29. package/commands/board/pickup-post-impl.md +120 -0
  30. package/commands/board/shared-azure-devops.md +149 -0
  31. package/commands/board/shared-board-overview.md +215 -0
  32. package/commands/board/shared-github.md +169 -0
  33. package/commands/board/shared-gitlab.md +142 -0
  34. package/commands/hatch3r-agent-customize.md +40 -2
  35. package/commands/hatch3r-api-spec.md +294 -32
  36. package/commands/hatch3r-benchmark.md +386 -32
  37. package/commands/hatch3r-board-fill.md +161 -25
  38. package/commands/hatch3r-board-groom.md +595 -0
  39. package/commands/hatch3r-board-init.md +203 -46
  40. package/commands/hatch3r-board-pickup.md +79 -457
  41. package/commands/hatch3r-board-refresh.md +98 -27
  42. package/commands/hatch3r-board-shared.md +87 -238
  43. package/commands/hatch3r-bug-plan.md +16 -3
  44. package/commands/hatch3r-codebase-map.md +43 -10
  45. package/commands/hatch3r-command-customize.md +6 -0
  46. package/commands/hatch3r-context-health.md +5 -0
  47. package/commands/hatch3r-cost-tracking.md +5 -0
  48. package/commands/hatch3r-debug.md +426 -0
  49. package/commands/hatch3r-dep-audit.md +7 -1
  50. package/commands/hatch3r-feature-plan.md +74 -12
  51. package/commands/hatch3r-healthcheck.md +17 -1
  52. package/commands/hatch3r-hooks.md +16 -10
  53. package/commands/hatch3r-learn.md +15 -9
  54. package/commands/hatch3r-migration-plan.md +333 -33
  55. package/commands/hatch3r-onboard.md +327 -38
  56. package/commands/hatch3r-project-spec.md +46 -10
  57. package/commands/hatch3r-quick-change.md +336 -0
  58. package/commands/hatch3r-recipe.md +6 -0
  59. package/commands/hatch3r-refactor-plan.md +29 -13
  60. package/commands/hatch3r-release.md +13 -3
  61. package/commands/hatch3r-revision.md +395 -0
  62. package/commands/hatch3r-roadmap.md +18 -3
  63. package/commands/hatch3r-rule-customize.md +6 -0
  64. package/commands/hatch3r-security-audit.md +17 -1
  65. package/commands/hatch3r-skill-customize.md +6 -0
  66. package/commands/hatch3r-test-plan.md +532 -0
  67. package/commands/hatch3r-workflow.md +113 -38
  68. package/dist/cli/index.js +5184 -2593
  69. package/dist/cli/index.js.map +1 -0
  70. package/github-agents/hatch3r-docs-agent.md +1 -0
  71. package/github-agents/hatch3r-lint-agent.md +1 -0
  72. package/github-agents/hatch3r-security-agent.md +1 -0
  73. package/github-agents/hatch3r-test-agent.md +1 -0
  74. package/hooks/hatch3r-ci-failure.md +30 -0
  75. package/hooks/hatch3r-file-save.md +22 -0
  76. package/hooks/hatch3r-post-merge.md +23 -0
  77. package/hooks/hatch3r-pre-commit.md +23 -0
  78. package/hooks/hatch3r-pre-push.md +22 -0
  79. package/hooks/hatch3r-session-start.md +22 -0
  80. package/mcp/mcp.json +22 -3
  81. package/package.json +4 -7
  82. package/prompts/hatch3r-bug-triage.md +1 -0
  83. package/prompts/hatch3r-code-review.md +1 -0
  84. package/prompts/hatch3r-pr-description.md +1 -0
  85. package/rules/hatch3r-accessibility-standards.md +1 -0
  86. package/rules/hatch3r-agent-orchestration.md +326 -53
  87. package/rules/hatch3r-agent-orchestration.mdc +225 -0
  88. package/rules/hatch3r-api-design.md +4 -1
  89. package/rules/hatch3r-browser-verification.md +33 -1
  90. package/rules/hatch3r-browser-verification.mdc +29 -0
  91. package/rules/hatch3r-ci-cd.md +5 -1
  92. package/rules/hatch3r-ci-cd.mdc +4 -1
  93. package/rules/hatch3r-code-standards.md +18 -0
  94. package/rules/hatch3r-code-standards.mdc +10 -1
  95. package/rules/hatch3r-component-conventions.md +4 -1
  96. package/rules/hatch3r-data-classification.md +1 -0
  97. package/rules/hatch3r-deep-context.md +94 -0
  98. package/rules/hatch3r-deep-context.mdc +69 -0
  99. package/rules/hatch3r-dependency-management.md +13 -0
  100. package/rules/hatch3r-feature-flags.md +4 -1
  101. package/rules/hatch3r-git-conventions.md +1 -0
  102. package/rules/hatch3r-i18n.md +4 -1
  103. package/rules/hatch3r-learning-consult.md +4 -2
  104. package/rules/hatch3r-learning-consult.mdc +3 -2
  105. package/rules/hatch3r-migrations.md +12 -0
  106. package/rules/hatch3r-observability.md +293 -1
  107. package/rules/hatch3r-performance-budgets.md +5 -2
  108. package/rules/hatch3r-performance-budgets.mdc +1 -1
  109. package/rules/hatch3r-secrets-management.md +11 -3
  110. package/rules/hatch3r-secrets-management.mdc +10 -3
  111. package/rules/hatch3r-security-patterns.md +23 -3
  112. package/rules/hatch3r-security-patterns.mdc +8 -2
  113. package/rules/hatch3r-testing.md +1 -0
  114. package/rules/hatch3r-theming.md +4 -1
  115. package/rules/hatch3r-tooling-hierarchy.md +42 -15
  116. package/rules/hatch3r-tooling-hierarchy.mdc +27 -4
  117. package/skills/hatch3r-a11y-audit/SKILL.md +1 -0
  118. package/skills/hatch3r-agent-customize/SKILL.md +3 -0
  119. package/skills/hatch3r-api-spec/SKILL.md +1 -0
  120. package/skills/hatch3r-architecture-review/SKILL.md +6 -2
  121. package/skills/hatch3r-bug-fix/SKILL.md +4 -1
  122. package/skills/hatch3r-ci-pipeline/SKILL.md +1 -0
  123. package/skills/hatch3r-command-customize/SKILL.md +1 -0
  124. package/skills/hatch3r-context-health/SKILL.md +2 -1
  125. package/skills/hatch3r-cost-tracking/SKILL.md +1 -0
  126. package/skills/hatch3r-dep-audit/SKILL.md +6 -2
  127. package/skills/hatch3r-feature/SKILL.md +9 -2
  128. package/skills/hatch3r-gh-agentic-workflows/SKILL.md +130 -21
  129. package/skills/hatch3r-incident-response/SKILL.md +11 -5
  130. package/skills/hatch3r-issue-workflow/SKILL.md +12 -7
  131. package/skills/hatch3r-logical-refactor/SKILL.md +1 -0
  132. package/skills/hatch3r-migration/SKILL.md +1 -0
  133. package/skills/hatch3r-perf-audit/SKILL.md +2 -1
  134. package/skills/hatch3r-pr-creation/SKILL.md +20 -10
  135. package/skills/hatch3r-qa-validation/SKILL.md +2 -1
  136. package/skills/hatch3r-recipe/SKILL.md +1 -0
  137. package/skills/hatch3r-refactor/SKILL.md +7 -1
  138. package/skills/hatch3r-release/SKILL.md +15 -11
  139. package/skills/hatch3r-rule-customize/SKILL.md +1 -0
  140. package/skills/hatch3r-skill-customize/SKILL.md +1 -0
  141. package/skills/hatch3r-visual-refactor/SKILL.md +1 -0
  142. package/dist/cli/hooks-ZOTFDEA3.js +0 -59
  143. package/rules/hatch3r-error-handling.md +0 -17
  144. package/rules/hatch3r-error-handling.mdc +0 -15
@@ -2,6 +2,7 @@
2
2
  id: hatch3r-workflow
3
3
  type: command
4
4
  description: Guided development lifecycle with 4 phases (Analyze, Plan, Implement, Review) and scale-adaptive Quick Mode for small tasks.
5
+ tags: [core, implementation]
5
6
  ---
6
7
  # Development Workflow -- Guided Lifecycle for Structured Implementation
7
8
 
@@ -9,6 +10,30 @@ Optional guided development lifecycle command that walks through structured phas
9
10
 
10
11
  ---
11
12
 
13
+ ## Agent Pipeline
14
+
15
+ | Stage | Agent(s) | Parallel | Required |
16
+ |-------|----------|----------|----------|
17
+ | 1. Research | `hatch3r-researcher` (modes by task type) | Per focus area | Yes (skip for trivial edits) |
18
+ | 2. Implementation | `hatch3r-implementer` (one per module) | Yes (independent modules) | Yes |
19
+ | 3a. Review Loop | `hatch3r-reviewer` -> `hatch3r-fixer` (max 3 iterations until clean) | No (sequential loop) | Yes |
20
+ | 3b. Final Quality — Testing | `hatch3r-test-writer` | Yes | Yes (code changes) |
21
+ | 3c. Final Quality — Security | `hatch3r-security-auditor` | Yes | Yes (code changes) |
22
+ | 3d. Final Quality — Docs | `hatch3r-docs-writer` | Yes | When APIs/architecture/UX affected |
23
+ | 3e. Final Quality — Conditional | `hatch3r-lint-fixer`, `hatch3r-a11y-auditor`, `hatch3r-perf-profiler` | Yes | When triggered |
24
+
25
+ ## Browser Automation
26
+
27
+ At the start of this command, ask the user once:
28
+
29
+ > "Would you like to enable browser verification for this session? This uses Playwright to test changes in the running application."
30
+
31
+ If **yes**: implementation (Phase 3) and review (Phase 4) stages include browser verification steps — navigate to affected pages, interact with changed elements, check console for errors, capture screenshots.
32
+
33
+ If **no**: all browser verification steps are skipped silently throughout the entire command.
34
+
35
+ ---
36
+
12
37
  ## Shared Context
13
38
 
14
39
  **Read the `hatch3r-board-shared` command at the start of the run.** It contains Board Configuration, GitHub Context, Project Reference, Projects v2 sync procedure, and tooling directives. Cache all values for the duration of this run.
@@ -70,7 +95,18 @@ Evaluate the task against both signal sets. Count matching signals to determine
70
95
  - **User description:** Extract requirements, scope, constraints from the provided description.
71
96
  - **Board-pickup invocation:** Use the issue context already gathered by board-pickup. Skip re-fetching.
72
97
 
73
- #### 1b. Load Relevant Context
98
+ #### 1b. Complexity Scoring and Deep Context
99
+
100
+ Score the task's complexity per the `hatch3r-deep-context` rule to determine the analysis tier (Light / Standard / Deep). This determines which additional researcher modes run in Step 3a alongside the standard task-type modes.
101
+
102
+ For **Tier 2 and Tier 3** tasks, spawn the tier-appropriate researcher modes now (in parallel with context loading):
103
+
104
+ - **Tier 2**: `requirements-elicitation` at `quick` depth + `similar-implementation` at `quick` depth
105
+ - **Tier 3**: `requirements-elicitation` at `deep` depth + `similar-implementation` at `deep` depth + `codebase-impact` at `deep` depth (with transitive tracing)
106
+
107
+ Cache the researcher outputs for use in Phase 2 and Phase 3.
108
+
109
+ #### 1c. Load Relevant Context
74
110
 
75
111
  1. Read project specs from `docs/specs/` — headers first (~30 lines), expand relevant sections only.
76
112
  2. Read ADRs that might constrain the approach.
@@ -78,26 +114,34 @@ Evaluate the task against both signal sets. Count matching signals to determine
78
114
  4. Use **Context7 MCP** (`resolve-library-id` then `query-docs`) for external library documentation referenced by the task.
79
115
  5. Use **web research** for current best practices, security advisories, or novel problems not covered by local docs or Context7.
80
116
 
81
- #### 1c. Consult Learnings
117
+ #### 1d. Consult Learnings
82
118
 
83
- If `/.agents/learnings/` exists:
119
+ If `.agents/learnings/` exists:
84
120
 
85
121
  1. Search for learnings tagged with relevant areas or technologies.
86
122
  2. Surface any applicable past experiences that inform this task.
87
123
 
88
- #### 1d. Present Analysis
124
+ #### 1e. Present Analysis
89
125
 
90
126
  ```
91
127
  Task Analysis:
128
+ Complexity: Tier {1/2/3} ({Light/Standard/Deep}) — score {N}
92
129
  Scope: {what's in / what's out}
93
130
  Affected files: {list}
131
+ Blast radius: {N direct + M transitive files at risk} (Tier 3 only)
132
+ Similar implementations found: {reference names} (Tier 2/3 only)
94
133
  Constraints: {from specs, ADRs}
95
134
  Relevant learnings: {if any}
96
- Open questions: {if any}
135
+ Open questions: {if any — including unresolved requirements-elicitation questions}
136
+ Cross-cutting concerns: {list with addressed/unaddressed status} (Tier 2/3 only)
97
137
  Risk: {low/med/high}
98
138
  ```
99
139
 
100
- **ASK:** "Analysis complete. Questions: {list}. Proceed to Plan phase? (yes / clarify questions first / adjust scope)"
140
+ **For Tier 2:** Present the `requirements-elicitation` questions inline and await answers before proceeding.
141
+
142
+ **For Tier 3:** Present a full Pre-Implementation Summary per the `hatch3r-deep-context` rule. Do NOT proceed until all unresolved questions are answered.
143
+
144
+ **ASK:** "Analysis complete. {Unresolved questions list, if any}. Proceed to Plan phase? (yes / clarify questions first / adjust scope)"
101
145
 
102
146
  ---
103
147
 
@@ -112,6 +156,7 @@ Task Analysis:
112
156
  3. Identify test requirements (unit, integration, e2e).
113
157
  4. Note any dependency changes needed.
114
158
  5. Consider rollback strategy for risky changes.
159
+ 6. **Convention alignment** (Tier 2/3 only): If `similar-implementation` output is available from Phase 1, specify which reference implementation's conventions the plan follows for file structure, state management, error handling, data fetching, and testing. Note planned divergences with justification.
115
160
 
116
161
  #### 2b. Select hatch3r Agents and Skills
117
162
 
@@ -120,8 +165,8 @@ Map the task type to the appropriate skill:
120
165
  | Task Type | Skill |
121
166
  | ---------------- | ------------------------------ |
122
167
  | Bug report | hatch3r-bug-fix |
123
- | Feature request | hatch3r-feature-implementation |
124
- | Code refactor | hatch3r-code-refactor |
168
+ | Feature request | hatch3r-feature |
169
+ | Code refactor | hatch3r-refactor |
125
170
  | Logical refactor | hatch3r-logical-refactor |
126
171
  | Visual refactor | hatch3r-visual-refactor |
127
172
  | QA validation | hatch3r-qa-validation |
@@ -140,10 +185,12 @@ Identify supporting agents needed: test-writer, docs-writer, reviewer, security-
140
185
  Implementation Plan:
141
186
  Approach: {description}
142
187
  Skill: {selected hatch3r skill}
188
+ Convention reference: {reference module name — "following patterns from X"} (Tier 2/3 only)
143
189
  Files to modify: {list with change descriptions}
144
190
  New files: {list}
145
191
  Tests: {what to test}
146
192
  Risks: {list with mitigations}
193
+ Resolved requirements: {N}/{M} answered (Tier 2/3 only)
147
194
  Estimated effort: {time}
148
195
  ```
149
196
 
@@ -160,7 +207,8 @@ Implementation Plan:
160
207
  You MUST spawn a `hatch3r-researcher` sub-agent via the Task tool (`subagent_type: "generalPurpose"`) before implementation. Skip only for trivial single-line edits (typos, comment fixes, single-value config changes).
161
208
 
162
209
  - Select research modes by task type (bug → symptom-trace/root-cause/codebase-impact, feature → codebase-impact/feature-design/architecture, refactor → current-state/refactoring-strategy/migration-path, QA → codebase-impact).
163
- - Use depth `quick` for low-risk, `standard` for medium-risk, `deep` for high-risk.
210
+ - Add tier-appropriate modes per the `hatch3r-deep-context` rule if not already run in Phase 1 Step 1b.
211
+ - Use depth `quick` for low-risk, `standard` for medium-risk, `deep` for high-risk. The complexity tier may override depth upward.
164
212
  - Await the researcher result. Use its structured output to inform Step 3b.
165
213
 
166
214
  #### 3b. Core Implementation (Implementer Sub-Agent)
@@ -176,9 +224,12 @@ The implementer sub-agent prompt MUST include:
176
224
  - The task description, acceptance criteria, and type.
177
225
  - The researcher output from Step 3a (if not skipped).
178
226
  - The selected hatch3r skill name and instructions.
179
- - All `scope: always` rule directives from `/.agents/rules/`.
180
- - Relevant learnings from `/.agents/learnings/`.
227
+ - All `scope: always` rule directives from `.agents/rules/`.
228
+ - Relevant learnings from `.agents/learnings/`.
181
229
  - Explicit instruction: do NOT create branches, commits, or PRs.
230
+ - **Reference conventions** from `similar-implementation` output (Tier 2/3) — triggers the implementer's Convention Lock step.
231
+ - **Resolved requirements** from `requirements-elicitation` answers (Tier 2/3) — explicit decisions on ambiguities.
232
+ - **Blast radius data** from enhanced `codebase-impact` (Tier 3) — transitive dependency trace and API consumer map.
182
233
 
183
234
  Await the implementer sub-agent. Collect its structured result.
184
235
 
@@ -203,41 +254,56 @@ Fix any issues before proceeding. If quality checks fail, loop back and resolve
203
254
 
204
255
  ### Phase 4: Review (Sub-Agent Quality Pipeline)
205
256
 
206
- **Goal:** Verify quality and completeness via specialist sub-agents before finalizing.
257
+ **Goal:** Verify quality and completeness via a two-stage sub-agent pipeline before finalizing. The Review Loop (4a) iterates until code quality is clean, then Final Quality (4b) runs remaining specialists in parallel.
258
+
259
+ #### 4a. Review Loop (Reviewer → Fixer)
207
260
 
208
- #### 4a. Spawn Quality Sub-Agents
261
+ Spawn a `hatch3r-reviewer` sub-agent via the Task tool (`subagent_type: "generalPurpose"`). Include the diff and acceptance criteria in the prompt.
209
262
 
210
- You MUST spawn specialist sub-agents for quality assurance. Use the Task tool with `subagent_type: "generalPurpose"`. Launch as many independent sub-agents in parallel as the platform supports.
263
+ 1. **Review:** Await the reviewer result. Check for Critical and Warning findings.
264
+ 2. **If 0 Critical + 0 Warning:** Review loop is clean. Proceed to 4b.
265
+ 3. **If Critical or Warning findings exist:** Spawn a `hatch3r-fixer` sub-agent with the reviewer output. The fixer applies fixes for all Critical and Warning findings.
266
+ 4. **Re-review:** After the fixer completes, spawn `hatch3r-reviewer` again to verify fixes.
267
+ 5. **Repeat** steps 2-4 for a maximum of **3 iterations**. If still not clean after 3 iterations, **ASK** the user how to proceed (force continue / manual fix / abort).
268
+
269
+ Each reviewer/fixer sub-agent prompt MUST include:
270
+ - The agent protocol to follow.
271
+ - All `scope: always` rule directives from `.agents/rules/`.
272
+ - The diff or file changes to review/fix.
273
+ - The task's acceptance criteria.
274
+
275
+ #### 4b. Final Quality (Parallel Specialists)
276
+
277
+ **ONLY after the review loop (4a) reports 0 Critical + 0 Warning findings**, spawn the remaining specialist sub-agents. Use the Task tool with `subagent_type: "generalPurpose"`. Launch as many independent sub-agents in parallel as the platform supports.
211
278
 
212
279
  **Always spawn (mandatory for every code change):**
213
280
 
214
- 1. **`hatch3r-reviewer`** — code review of all changes. Include the diff and acceptance criteria in the prompt.
215
- 2. **`hatch3r-test-writer`** — tests for all code changes. Unit tests for new logic, regression tests for bug fixes, integration tests for cross-module changes.
216
- 3. **`hatch3r-security-auditor`** — security review of all code changes. Audit data flows, access control, input validation, and secret management.
281
+ 1. **`hatch3r-test-writer`** — tests for all code changes. Unit tests for new logic, regression tests for bug fixes, integration tests for cross-module changes.
282
+ 2. **`hatch3r-security-auditor`** — security review of all code changes. Audit data flows, access control, input validation, and secret management.
217
283
 
218
284
  **Always evaluate (spawn when applicable):**
219
285
 
220
- 4. **`hatch3r-docs-writer`** — spawn when changes affect public APIs, architectural patterns, user-facing behavior, or when specs/ADRs need updating. Skip silently if no documentation impact.
286
+ 3. **`hatch3r-docs-writer`** — spawn when changes affect public APIs, architectural patterns, user-facing behavior, or when specs/ADRs need updating. Skip silently if no documentation impact.
221
287
 
222
288
  **Conditional specialists (spawn when triggered):**
223
289
 
224
- 5. **`hatch3r-lint-fixer`** — when lint or type errors are present after implementation.
225
- 6. **`hatch3r-a11y-auditor`** — when UI or accessibility changes are made.
226
- 7. **`hatch3r-perf-profiler`** — when performance-sensitive changes are made.
290
+ 4. **`hatch3r-lint-fixer`** — when lint or type errors are present after implementation.
291
+ 5. **`hatch3r-a11y-auditor`** — when UI or accessibility changes are made.
292
+ 6. **`hatch3r-perf-profiler`** — when performance-sensitive changes are made.
227
293
 
228
294
  Each specialist sub-agent prompt MUST include:
229
295
  - The agent protocol to follow.
230
- - All `scope: always` rule directives from `/.agents/rules/`.
296
+ - All `scope: always` rule directives from `.agents/rules/`.
231
297
  - The diff or file changes to review.
232
298
  - The task's acceptance criteria.
233
299
 
234
300
  Await all specialist sub-agents. Apply their feedback (fixes, additional tests, documentation updates).
235
301
 
236
- #### 4b. Verify Against Acceptance Criteria
302
+ #### 4c. Verify Against Acceptance Criteria
237
303
 
238
304
  Check each acceptance criterion from the original task or issue. Mark as met or not-met with evidence.
239
305
 
240
- #### 4c. Present Review
306
+ #### 4d. Present Review
241
307
 
242
308
  ```
243
309
  Review Results:
@@ -251,12 +317,12 @@ Review Results:
251
317
 
252
318
  **ASK:** "Review complete. {summary}. Ready to finalize? (yes / address review issues / request human review)"
253
319
 
254
- #### 4d. Capture Learnings
320
+ #### 4e. Capture Learnings
255
321
 
256
- If `/.agents/learnings/` exists:
322
+ If `.agents/learnings/` exists:
257
323
 
258
324
  1. Extract learnings from this implementation session (patterns discovered, pitfalls encountered, decisions made).
259
- 2. Store in `/.agents/learnings/` with appropriate area tags.
325
+ 2. Store in `.agents/learnings/` with appropriate area tags.
260
326
 
261
327
  ---
262
328
 
@@ -266,11 +332,12 @@ Collapses the 4 phases into a streamlined flow for small, well-defined tasks. Su
266
332
 
267
333
  ### Quick Step 1: Rapid Analysis + Plan (Combined)
268
334
 
269
- 1. Spawn `hatch3r-researcher` with depth `quick` for brief context gathering. Skip only for trivial single-line edits.
270
- 2. Quick plan: list changes, identify the appropriate hatch3r skill.
271
- 3. Skip ADR/spec review unless the task touches architecture.
335
+ 1. Score complexity per `hatch3r-deep-context`. If the score yields Tier 3, recommend switching to Full Mode.
336
+ 2. Spawn `hatch3r-researcher` with depth `quick` for brief context gathering. Skip only for trivial single-line edits. For Tier 2, include `requirements-elicitation` and `similar-implementation` at `quick` depth.
337
+ 3. Quick plan: list changes, identify the appropriate hatch3r skill. If `similar-implementation` found a reference, note the convention to follow.
338
+ 4. Skip ADR/spec review unless the task touches architecture.
272
339
 
273
- **ASK:** "Quick analysis: {scope}, {approach}. Proceed? (yes / switch to Full Mode)"
340
+ **ASK:** "Quick analysis: {scope}, {approach}. {Unresolved questions from elicitation, if any.} Proceed? (yes / switch to Full Mode)"
274
341
 
275
342
  ### Quick Step 2: Implement
276
343
 
@@ -280,14 +347,20 @@ Collapses the 4 phases into a streamlined flow for small, well-defined tasks. Su
280
347
 
281
348
  ### Quick Step 3: Quick Review (Sub-Agent Quality Pipeline)
282
349
 
283
- Spawn specialist sub-agents in parallel — same mandatory pipeline as Full Mode:
350
+ Same two-stage pipeline as Full Mode, with lighter prompts:
351
+
352
+ **Stage 1 — Review Loop:**
284
353
 
285
- 1. **`hatch3r-reviewer`** ALWAYS. Use a focused prompt covering correctness and quality.
286
- 2. **`hatch3r-test-writer`** ALWAYS for code changes.
287
- 3. **`hatch3r-security-auditor`** — ALWAYS for code changes.
288
- 4. **`hatch3r-docs-writer`**evaluate; spawn when documentation impact exists.
289
- 5. Verify acceptance criteria are met.
290
- 6. Confirm lint/typecheck/test pass.
354
+ 1. Spawn **`hatch3r-reviewer`** with a focused prompt covering correctness and quality.
355
+ 2. If Critical or Warning findings exist, spawn **`hatch3r-fixer`**, then re-review. Max 3 iterations.
356
+
357
+ **Stage 2Final Quality (after review loop is clean):**
358
+
359
+ 3. **`hatch3r-test-writer`** — ALWAYS for code changes.
360
+ 4. **`hatch3r-security-auditor`** — ALWAYS for code changes.
361
+ 5. **`hatch3r-docs-writer`** — evaluate; spawn when documentation impact exists.
362
+ 6. Verify acceptance criteria are met.
363
+ 7. Confirm lint/typecheck/test pass.
291
364
 
292
365
  **ASK:** "Changes complete. Quality checks pass. Finalize? (yes / deeper review needed → switch to Full Mode Phase 4)"
293
366
 
@@ -301,6 +374,8 @@ Spawn specialist sub-agents in parallel — same mandatory pipeline as Full Mode
301
374
  - Phase 3 skips PR creation — board-pickup handles it in its own Steps 7a–8.
302
375
  - Phase 4 results feed into board-pickup's quality verification (Step 7).
303
376
 
377
+ When operating with board context, all issue operations MUST follow the Projects v2 Enforcement rules defined in `hatch3r-board-shared`.
378
+
304
379
  ### Invoked Standalone
305
380
 
306
381
  - All phases run independently with full context loading.