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.
- package/README.md +93 -322
- package/agents/hatch3r-a11y-auditor.md +24 -6
- package/agents/hatch3r-architect.md +20 -1
- package/agents/hatch3r-ci-watcher.md +31 -8
- package/agents/hatch3r-context-rules.md +14 -2
- package/agents/hatch3r-dependency-auditor.md +21 -5
- package/agents/hatch3r-devops.md +37 -6
- package/agents/hatch3r-docs-writer.md +19 -3
- package/agents/hatch3r-fixer.md +171 -0
- package/agents/hatch3r-implementer.md +84 -11
- package/agents/hatch3r-learnings-loader.md +69 -13
- package/agents/hatch3r-lint-fixer.md +19 -14
- package/agents/hatch3r-perf-profiler.md +18 -1
- package/agents/hatch3r-researcher.md +440 -5
- package/agents/hatch3r-reviewer.md +97 -5
- package/agents/hatch3r-security-auditor.md +23 -5
- package/agents/hatch3r-test-writer.md +21 -10
- package/checks/README.md +49 -0
- package/checks/code-quality.md +49 -0
- package/checks/performance.md +58 -0
- package/checks/security.md +58 -0
- package/checks/testing.md +53 -0
- package/commands/board/pickup-azure-devops.md +81 -0
- package/commands/board/pickup-delegation-multi.md +197 -0
- package/commands/board/pickup-delegation.md +100 -0
- package/commands/board/pickup-github.md +82 -0
- package/commands/board/pickup-gitlab.md +81 -0
- package/commands/board/pickup-modes.md +143 -0
- package/commands/board/pickup-post-impl.md +120 -0
- package/commands/board/shared-azure-devops.md +149 -0
- package/commands/board/shared-board-overview.md +215 -0
- package/commands/board/shared-github.md +169 -0
- package/commands/board/shared-gitlab.md +142 -0
- package/commands/hatch3r-agent-customize.md +40 -2
- package/commands/hatch3r-api-spec.md +294 -32
- package/commands/hatch3r-benchmark.md +386 -32
- package/commands/hatch3r-board-fill.md +161 -25
- package/commands/hatch3r-board-groom.md +595 -0
- package/commands/hatch3r-board-init.md +203 -46
- package/commands/hatch3r-board-pickup.md +79 -457
- package/commands/hatch3r-board-refresh.md +98 -27
- package/commands/hatch3r-board-shared.md +87 -238
- package/commands/hatch3r-bug-plan.md +16 -3
- package/commands/hatch3r-codebase-map.md +43 -10
- package/commands/hatch3r-command-customize.md +6 -0
- package/commands/hatch3r-context-health.md +5 -0
- package/commands/hatch3r-cost-tracking.md +5 -0
- package/commands/hatch3r-debug.md +426 -0
- package/commands/hatch3r-dep-audit.md +7 -1
- package/commands/hatch3r-feature-plan.md +74 -12
- package/commands/hatch3r-healthcheck.md +17 -1
- package/commands/hatch3r-hooks.md +16 -10
- package/commands/hatch3r-learn.md +15 -9
- package/commands/hatch3r-migration-plan.md +333 -33
- package/commands/hatch3r-onboard.md +327 -38
- package/commands/hatch3r-project-spec.md +46 -10
- package/commands/hatch3r-quick-change.md +336 -0
- package/commands/hatch3r-recipe.md +6 -0
- package/commands/hatch3r-refactor-plan.md +29 -13
- package/commands/hatch3r-release.md +13 -3
- package/commands/hatch3r-revision.md +395 -0
- package/commands/hatch3r-roadmap.md +18 -3
- package/commands/hatch3r-rule-customize.md +6 -0
- package/commands/hatch3r-security-audit.md +17 -1
- package/commands/hatch3r-skill-customize.md +6 -0
- package/commands/hatch3r-test-plan.md +532 -0
- package/commands/hatch3r-workflow.md +113 -38
- package/dist/cli/index.js +5184 -2593
- package/dist/cli/index.js.map +1 -0
- package/github-agents/hatch3r-docs-agent.md +1 -0
- package/github-agents/hatch3r-lint-agent.md +1 -0
- package/github-agents/hatch3r-security-agent.md +1 -0
- package/github-agents/hatch3r-test-agent.md +1 -0
- package/hooks/hatch3r-ci-failure.md +30 -0
- package/hooks/hatch3r-file-save.md +22 -0
- package/hooks/hatch3r-post-merge.md +23 -0
- package/hooks/hatch3r-pre-commit.md +23 -0
- package/hooks/hatch3r-pre-push.md +22 -0
- package/hooks/hatch3r-session-start.md +22 -0
- package/mcp/mcp.json +22 -3
- package/package.json +4 -7
- package/prompts/hatch3r-bug-triage.md +1 -0
- package/prompts/hatch3r-code-review.md +1 -0
- package/prompts/hatch3r-pr-description.md +1 -0
- package/rules/hatch3r-accessibility-standards.md +1 -0
- package/rules/hatch3r-agent-orchestration.md +326 -53
- package/rules/hatch3r-agent-orchestration.mdc +225 -0
- package/rules/hatch3r-api-design.md +4 -1
- package/rules/hatch3r-browser-verification.md +33 -1
- package/rules/hatch3r-browser-verification.mdc +29 -0
- package/rules/hatch3r-ci-cd.md +5 -1
- package/rules/hatch3r-ci-cd.mdc +4 -1
- package/rules/hatch3r-code-standards.md +18 -0
- package/rules/hatch3r-code-standards.mdc +10 -1
- package/rules/hatch3r-component-conventions.md +4 -1
- package/rules/hatch3r-data-classification.md +1 -0
- package/rules/hatch3r-deep-context.md +94 -0
- package/rules/hatch3r-deep-context.mdc +69 -0
- package/rules/hatch3r-dependency-management.md +13 -0
- package/rules/hatch3r-feature-flags.md +4 -1
- package/rules/hatch3r-git-conventions.md +1 -0
- package/rules/hatch3r-i18n.md +4 -1
- package/rules/hatch3r-learning-consult.md +4 -2
- package/rules/hatch3r-learning-consult.mdc +3 -2
- package/rules/hatch3r-migrations.md +12 -0
- package/rules/hatch3r-observability.md +293 -1
- package/rules/hatch3r-performance-budgets.md +5 -2
- package/rules/hatch3r-performance-budgets.mdc +1 -1
- package/rules/hatch3r-secrets-management.md +11 -3
- package/rules/hatch3r-secrets-management.mdc +10 -3
- package/rules/hatch3r-security-patterns.md +23 -3
- package/rules/hatch3r-security-patterns.mdc +8 -2
- package/rules/hatch3r-testing.md +1 -0
- package/rules/hatch3r-theming.md +4 -1
- package/rules/hatch3r-tooling-hierarchy.md +42 -15
- package/rules/hatch3r-tooling-hierarchy.mdc +27 -4
- package/skills/hatch3r-a11y-audit/SKILL.md +1 -0
- package/skills/hatch3r-agent-customize/SKILL.md +3 -0
- package/skills/hatch3r-api-spec/SKILL.md +1 -0
- package/skills/hatch3r-architecture-review/SKILL.md +6 -2
- package/skills/hatch3r-bug-fix/SKILL.md +4 -1
- package/skills/hatch3r-ci-pipeline/SKILL.md +1 -0
- package/skills/hatch3r-command-customize/SKILL.md +1 -0
- package/skills/hatch3r-context-health/SKILL.md +2 -1
- package/skills/hatch3r-cost-tracking/SKILL.md +1 -0
- package/skills/hatch3r-dep-audit/SKILL.md +6 -2
- package/skills/hatch3r-feature/SKILL.md +9 -2
- package/skills/hatch3r-gh-agentic-workflows/SKILL.md +130 -21
- package/skills/hatch3r-incident-response/SKILL.md +11 -5
- package/skills/hatch3r-issue-workflow/SKILL.md +12 -7
- package/skills/hatch3r-logical-refactor/SKILL.md +1 -0
- package/skills/hatch3r-migration/SKILL.md +1 -0
- package/skills/hatch3r-perf-audit/SKILL.md +2 -1
- package/skills/hatch3r-pr-creation/SKILL.md +20 -10
- package/skills/hatch3r-qa-validation/SKILL.md +2 -1
- package/skills/hatch3r-recipe/SKILL.md +1 -0
- package/skills/hatch3r-refactor/SKILL.md +7 -1
- package/skills/hatch3r-release/SKILL.md +15 -11
- package/skills/hatch3r-rule-customize/SKILL.md +1 -0
- package/skills/hatch3r-skill-customize/SKILL.md +1 -0
- package/skills/hatch3r-visual-refactor/SKILL.md +1 -0
- package/dist/cli/hooks-ZOTFDEA3.js +0 -59
- package/rules/hatch3r-error-handling.md +0 -17
- package/rules/hatch3r-error-handling.mdc +0 -15
|
@@ -1,29 +1,50 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: hatch3r-board-pickup
|
|
3
3
|
type: command
|
|
4
|
-
description: Pick up one or more epics/issues from the
|
|
4
|
+
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.
|
|
5
|
+
tags: [board, team]
|
|
5
6
|
---
|
|
6
|
-
# Board Pickup -- Develop Issues from the
|
|
7
|
+
# Board Pickup -- Develop Issues from the Project Board
|
|
7
8
|
|
|
8
|
-
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
|
|
9
|
+
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.
|
|
9
10
|
|
|
10
11
|
---
|
|
11
12
|
|
|
12
|
-
##
|
|
13
|
+
## Agent Pipeline
|
|
14
|
+
|
|
15
|
+
| Stage | Agent(s) | Parallel | Required |
|
|
16
|
+
|-------|----------|----------|----------|
|
|
17
|
+
| 1. Research | `hatch3r-researcher` (modes by task type) | Per issue | Yes |
|
|
18
|
+
| 2. Implementation | `hatch3r-implementer` (one per issue) | Yes (per dependency level) | 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."
|
|
13
30
|
|
|
14
|
-
|
|
31
|
+
If **yes**: implementation and review stages include browser verification steps — navigate to affected pages, interact with changed elements, check console for errors, capture screenshots.
|
|
15
32
|
|
|
16
|
-
|
|
17
|
-
- **board-fill** creates the work items that agentic workflows can triage and label
|
|
18
|
-
- **board-pickup** orchestrates the implementation -> review -> merge pipeline that goes beyond what generic agentic workflows provide
|
|
33
|
+
If **no**: all browser verification steps are skipped silently throughout the entire command.
|
|
19
34
|
|
|
20
|
-
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## Integration with GitHub Agentic Workflows
|
|
38
|
+
|
|
39
|
+
hatch3r board commands orchestrate the **implementation delivery pipeline** (init → fill → groom → pickup → PR) above GitHub Agentic Workflows, which handle continuous background automation (triage, testing, docs). The two are complementary.
|
|
21
40
|
|
|
22
41
|
---
|
|
23
42
|
|
|
24
43
|
## Shared Context
|
|
25
44
|
|
|
26
|
-
**Read the `hatch3r-board-shared` command at the start of the run.** It contains Board Configuration,
|
|
45
|
+
**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.
|
|
46
|
+
|
|
47
|
+
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.
|
|
27
48
|
|
|
28
49
|
## Global Rule Overrides
|
|
29
50
|
|
|
@@ -43,11 +64,18 @@ Execute these steps in order. **Do not skip any step.** Ask the user at every ch
|
|
|
43
64
|
|
|
44
65
|
#### 1a. Fetch and Parse Board State
|
|
45
66
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
67
|
+
> Platform-specific details: see `commands/board/pickup-github.md` (Step 1a)
|
|
68
|
+
> Platform-specific details: see `commands/board/pickup-azure-devops.md` (Step 1a)
|
|
69
|
+
> Platform-specific details: see `commands/board/pickup-gitlab.md` (Step 1a)
|
|
70
|
+
|
|
71
|
+
**Exclude** `meta:board-overview` issues/work items.
|
|
72
|
+
|
|
73
|
+
After fetching open items using the platform CLI:
|
|
74
|
+
|
|
75
|
+
1. For each issue, check sub-issues using the platform-specific method.
|
|
76
|
+
2. Fetch labels/tags using the platform-specific method.
|
|
77
|
+
3. Parse `## Dependencies` sections for hard (`Blocked by #N`) and soft (`Recommended after #N`) references. Only hard dependencies affect availability categorization and block pickup; soft dependencies are advisory (note them in the presentation but do not treat as blockers).
|
|
78
|
+
4. For epics, parse `## Implementation Order` sections.
|
|
51
79
|
|
|
52
80
|
**Cache all data retrieved here for reuse in later steps.**
|
|
53
81
|
|
|
@@ -98,16 +126,9 @@ When the user selects **(f) batch** or references multiple issue numbers (e.g.,
|
|
|
98
126
|
|
|
99
127
|
#### 1e. Auto-Pick (No Specific Issue Referenced)
|
|
100
128
|
|
|
101
|
-
If
|
|
102
|
-
|
|
103
|
-
**Selection criteria (in order):**
|
|
104
|
-
|
|
105
|
-
1. Available: `status:ready`, all blockers satisfied, not already `status:in-progress`.
|
|
106
|
-
2. `executor:agent` or `executor:hybrid` (skip `executor:human`).
|
|
107
|
-
3. Follow the board's Implementation Order (earliest open level, highest-priority entry, most downstream unblocking). Fall back to priority-weighted topological sort.
|
|
108
|
-
4. Tiebreaker: epic sub-issues > standalone; most downstream unblocking; higher priority.
|
|
129
|
+
If no specific issue was referenced, auto-pick using: (1) `status:ready` + all blockers satisfied + not `in-progress`, (2) `executor:agent` or `executor:hybrid`, (3) Implementation Order position → priority → most downstream unblocking, (4) tiebreaker: epic sub-issues > standalone.
|
|
109
130
|
|
|
110
|
-
**
|
|
131
|
+
**Batch mode:** Auto-pick selects all independent issues with no mutual dependencies (configurable via `--max-batch`).
|
|
111
132
|
|
|
112
133
|
**ASK:** "Pick up #N? Or batch: #N, #M, #K (independent, parallelizable). Options: (yes single / yes batch / pick alternative / show full board)"
|
|
113
134
|
|
|
@@ -156,8 +177,12 @@ When multiple issues are selected as a batch:
|
|
|
156
177
|
|
|
157
178
|
### Step 3: Collision Detection
|
|
158
179
|
|
|
159
|
-
|
|
160
|
-
|
|
180
|
+
> Platform-specific details: see `commands/board/pickup-github.md` (Step 3)
|
|
181
|
+
> Platform-specific details: see `commands/board/pickup-azure-devops.md` (Step 3)
|
|
182
|
+
> Platform-specific details: see `commands/board/pickup-gitlab.md` (Step 3)
|
|
183
|
+
|
|
184
|
+
1. **In-progress issues:** Search using platform CLI (see platform sub-file).
|
|
185
|
+
2. **Open PRs/MRs:** Search using platform CLI (see platform sub-file).
|
|
161
186
|
3. **Overlap analysis:** Flag hard collisions (same problem/files), soft collisions (related work), or no collision.
|
|
162
187
|
4. **Intra-batch overlap (batch mode):** Check whether any issues within the batch are likely to touch the same files. If so, move conflicting issues to sequential dependency levels rather than parallel.
|
|
163
188
|
|
|
@@ -169,60 +194,9 @@ When multiple issues are selected as a batch:
|
|
|
169
194
|
|
|
170
195
|
### Step 3b: Specification Generation (Optional)
|
|
171
196
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
#### When to Generate
|
|
175
|
-
|
|
176
|
-
- Issue body has acceptance criteria but no implementation spec
|
|
177
|
-
- Issue is type `feature` or `refactor` (bugs typically don't need specs)
|
|
178
|
-
- Issue has complexity label `complex` or `epic`
|
|
179
|
-
|
|
180
|
-
#### Specification Generation Process
|
|
197
|
+
> Full details: see `commands/board/pickup-modes.md` (Specification Generation)
|
|
181
198
|
|
|
182
|
-
|
|
183
|
-
2. **Research context**: Read relevant project documentation, existing code in the affected area, and related specs.
|
|
184
|
-
3. **Generate specification** with the following structure:
|
|
185
|
-
|
|
186
|
-
```
|
|
187
|
-
## Specification: #{issue_number} — {title}
|
|
188
|
-
|
|
189
|
-
### Problem Statement
|
|
190
|
-
{what needs to change and why}
|
|
191
|
-
|
|
192
|
-
### Proposed Solution
|
|
193
|
-
{high-level approach}
|
|
194
|
-
|
|
195
|
-
### Technical Design
|
|
196
|
-
- **Data model changes**: {new/modified schemas}
|
|
197
|
-
- **API changes**: {new/modified endpoints}
|
|
198
|
-
- **UI changes**: {new/modified components}
|
|
199
|
-
- **Dependencies**: {new libraries or services}
|
|
200
|
-
|
|
201
|
-
### Implementation Plan
|
|
202
|
-
1. {ordered steps}
|
|
203
|
-
|
|
204
|
-
### Test Strategy
|
|
205
|
-
- Unit: {what to unit test}
|
|
206
|
-
- Integration: {what to integration test}
|
|
207
|
-
- E2E: {what to E2E test}
|
|
208
|
-
|
|
209
|
-
### Risks & Mitigations
|
|
210
|
-
- {risk}: {mitigation}
|
|
211
|
-
|
|
212
|
-
### Out of Scope
|
|
213
|
-
- {explicitly excluded items}
|
|
214
|
-
```
|
|
215
|
-
|
|
216
|
-
4. **ASK:** Present the generated specification to the user for validation before proceeding to implementation.
|
|
217
|
-
5. **Store**: Save the validated spec as a comment on the GitHub issue for traceability.
|
|
218
|
-
|
|
219
|
-
#### Skip Specification
|
|
220
|
-
|
|
221
|
-
Skip this step when:
|
|
222
|
-
- Issue already has a linked spec document
|
|
223
|
-
- Issue is a simple bug fix with clear reproduction steps
|
|
224
|
-
- Issue has `skip-spec` label
|
|
225
|
-
- Auto-advance mode is active (see below)
|
|
199
|
+
When the picked issue lacks a detailed specification (type `feature` or `refactor`, complexity `complex` or `epic`), generate one before implementation. Skip when: issue already has a linked spec, simple bug fix, `skip-spec` label, or auto-advance mode is active.
|
|
226
200
|
|
|
227
201
|
---
|
|
228
202
|
|
|
@@ -232,14 +206,18 @@ Skip this step when:
|
|
|
232
206
|
|
|
233
207
|
> When picking up any sub-issue, the **parent epic MUST also be marked `status:in-progress`**.
|
|
234
208
|
|
|
235
|
-
|
|
209
|
+
> Platform-specific details: see `commands/board/pickup-github.md` (Step 4)
|
|
210
|
+
> Platform-specific details: see `commands/board/pickup-azure-devops.md` (Step 4)
|
|
211
|
+
> Platform-specific details: see `commands/board/pickup-gitlab.md` (Step 4)
|
|
212
|
+
|
|
213
|
+
1. Update status labels/tags to `in-progress` using platform CLI (see platform sub-file).
|
|
236
214
|
2. Always mark parent epic as `status:in-progress`.
|
|
237
215
|
3. When picking up an entire epic: mark ALL remaining open sub-issues as `status:in-progress`.
|
|
238
216
|
4. **Batch mode:** Mark ALL issues in the batch as `status:in-progress`.
|
|
239
217
|
|
|
240
|
-
#### 4a. Sync
|
|
218
|
+
#### 4a. Sync Board Status
|
|
241
219
|
|
|
242
|
-
Follow the **
|
|
220
|
+
Follow the **Board Sync Procedure** from `hatch3r-board-shared` for each issue marked `status:in-progress` (including parent epic). Set status to "In Progress".
|
|
243
221
|
|
|
244
222
|
---
|
|
245
223
|
|
|
@@ -254,7 +232,7 @@ Follow the **Projects v2 Sync Procedure** from `hatch3r-board-shared` (gh CLI pr
|
|
|
254
232
|
|
|
255
233
|
**If branch exists:** **ASK** reuse / delete+recreate / rename with `-v2`.
|
|
256
234
|
|
|
257
|
-
**Normal path:** Use `{base}` = `board.defaultBranch` from
|
|
235
|
+
**Normal path:** Use `{base}` = `board.defaultBranch` from `.agents/hatch.json` (fallback: `"main"`).
|
|
258
236
|
|
|
259
237
|
```bash
|
|
260
238
|
git checkout {base} && git pull origin {base} && git checkout -b {branch-name}
|
|
@@ -270,7 +248,7 @@ Check `executor:` label (for batch mode, check each issue):
|
|
|
270
248
|
- `executor:hybrid` -- **ASK** for human direction first.
|
|
271
249
|
- `executor:human` -- **ASK** if user wants agent assistance and which parts.
|
|
272
250
|
|
|
273
|
-
Use the issue type to select the appropriate hatch3r skill: `type:bug` → the hatch3r-bug-fix skill; `type:feature` → the hatch3r-feature
|
|
251
|
+
Use the issue type to select the appropriate hatch3r skill: `type:bug` → the hatch3r-bug-fix skill; `type:feature` → the hatch3r-feature skill; `type:refactor` → disambiguate by area/behavior (UI → hatch3r-visual-refactor, behavior changes → hatch3r-logical-refactor, otherwise → hatch3r-refactor); `type:qa` → the hatch3r-qa-validation skill.
|
|
274
252
|
|
|
275
253
|
**Delegation path selection:**
|
|
276
254
|
|
|
@@ -280,393 +258,37 @@ Use the issue type to select the appropriate hatch3r skill: `type:bug` → the h
|
|
|
280
258
|
|
|
281
259
|
#### 6.pre: Consult Learnings
|
|
282
260
|
|
|
283
|
-
Before delegating
|
|
284
|
-
|
|
285
|
-
1. If `/.agents/learnings/` exists, scan for learnings with matching `area` or `tags` that overlap with the issue's area labels or tech stack.
|
|
286
|
-
2. Read the `## Applies When` section of matching learnings.
|
|
287
|
-
3. Include any relevant learnings (especially `pitfall` category) in the sub-agent prompt or direct implementation context.
|
|
288
|
-
4. If no learnings directory exists, skip silently.
|
|
289
|
-
|
|
290
|
-
> **For audit epics:** If the selected epic represents an audit (e.g., healthcheck, security audit, dependency audit), customize this step based on the project's audit protocol. Audit epics typically produce GitHub issues as findings rather than code changes -- adjust the delegation flow accordingly and skip Steps 7-8a if no code changes are produced.
|
|
291
|
-
|
|
292
|
-
**Do NOT execute the skill's PR creation steps.** Testing and PR creation are handled by board-pickup Steps 7-8 below, which include board-specific requirements (epic linking, label transitions, Projects v2 sync) that individual skills do not cover.
|
|
293
|
-
|
|
294
|
-
**After all implementation completes, return here and continue with Step 7.**
|
|
295
|
-
|
|
296
|
-
---
|
|
297
|
-
|
|
298
|
-
#### 6a. Single Standalone Issue -- Subagent Delegation
|
|
299
|
-
|
|
300
|
-
For a single standalone issue (no sub-issues, not part of a batch), follow this three-phase approach: research, delegate to implementer, then specialist review.
|
|
301
|
-
|
|
302
|
-
##### 6a.1. Context Gathering (Researcher Subagent)
|
|
303
|
-
|
|
304
|
-
**Skip this step only** for trivially simple issues (`risk:low` AND `priority:p3`).
|
|
305
|
-
|
|
306
|
-
Spawn a **hatch3r-researcher** sub-agent via the Task tool (`subagent_type: "generalPurpose"`) with:
|
|
307
|
-
|
|
308
|
-
- **Research brief:** The issue title, body, acceptance criteria, and area labels.
|
|
309
|
-
- **Modes by issue type:**
|
|
310
|
-
- `type:bug` → `symptom-trace`, `root-cause`, `codebase-impact`
|
|
311
|
-
- `type:feature` → `codebase-impact`, `feature-design`, `architecture`
|
|
312
|
-
- `type:refactor` → `current-state`, `refactoring-strategy`, `migration-path`
|
|
313
|
-
- `type:qa` → `codebase-impact`
|
|
314
|
-
- `type:docs` → `codebase-impact`
|
|
315
|
-
- `type:infra` → `codebase-impact`, `risk-assessment`
|
|
316
|
-
- **Depth:** `quick` for `risk:low`, `standard` for `risk:med`, `deep` for `risk:high`.
|
|
317
|
-
- **Project context:** Pre-loaded documentation references from area labels.
|
|
318
|
-
|
|
319
|
-
Await the researcher result. Use its structured output to inform Steps 6a.2-6a.3.
|
|
320
|
-
|
|
321
|
-
##### 6a.2. Core Implementation (Implementer Subagent)
|
|
322
|
-
|
|
323
|
-
You MUST spawn a **hatch3r-implementer** sub-agent via the Task tool (`subagent_type: "generalPurpose"`). Do NOT implement inline — always delegate to a dedicated implementer to preserve orchestrator context for coordination, review, and integration.
|
|
324
|
-
|
|
325
|
-
The implementer sub-agent prompt MUST include:
|
|
326
|
-
- The issue number, title, full body, and acceptance criteria.
|
|
327
|
-
- The issue type (bug/feature/refactor/QA) and corresponding hatch3r skill name.
|
|
328
|
-
- The researcher output from Step 6a.1 (if that step was not skipped).
|
|
329
|
-
- Documentation references relevant to this issue.
|
|
330
|
-
- Instruction to follow the **hatch3r-implementer agent protocol**.
|
|
331
|
-
- All `scope: always` rule directives from `/.agents/rules/` — subagents do not inherit rules automatically.
|
|
332
|
-
- Relevant learnings from `/.agents/learnings/` (from Step 6.pre).
|
|
333
|
-
- Explicit instruction: do NOT create branches, commits, or PRs.
|
|
334
|
-
|
|
335
|
-
Await the implementer sub-agent. Collect its structured result (files changed, tests written, issues encountered).
|
|
336
|
-
|
|
337
|
-
##### 6a.3. Post-Implementation Specialist Delegation
|
|
338
|
-
|
|
339
|
-
After implementation completes, 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.
|
|
340
|
-
|
|
341
|
-
**Always spawn (mandatory for every code change):**
|
|
342
|
-
- **hatch3r-reviewer** — code review of all changes. Include the diff and acceptance criteria in the prompt.
|
|
343
|
-
- **hatch3r-test-writer** — tests for all code changes. Unit tests for new logic, regression tests for bug fixes, integration tests for cross-module changes.
|
|
344
|
-
- **hatch3r-security-auditor** — security review of all code changes. Audit data flows, access control, input validation, and secret management.
|
|
345
|
-
|
|
346
|
-
**Always evaluate (spawn when applicable):**
|
|
347
|
-
- **hatch3r-docs-writer** — spawn when changes affect public APIs, architectural patterns, or user-facing behavior. Skip silently if no documentation impact.
|
|
348
|
-
|
|
349
|
-
**Conditional specialists (spawn when triggered):**
|
|
350
|
-
- **hatch3r-lint-fixer** — spawn when lint errors are present after implementation.
|
|
351
|
-
- **hatch3r-a11y-auditor** — spawn when issue has `area:ui` or `area:a11y` labels.
|
|
352
|
-
- **hatch3r-perf-profiler** — spawn when issue has `area:performance` label or changes touch hot paths.
|
|
353
|
-
|
|
354
|
-
Each specialist sub-agent prompt MUST include:
|
|
355
|
-
- The agent protocol to follow (e.g., "Follow the hatch3r-reviewer agent protocol").
|
|
356
|
-
- All `scope: always` rule directives from `/.agents/rules/` (subagents do not inherit rules automatically).
|
|
357
|
-
- The diff or file changes to review.
|
|
358
|
-
- The issue's acceptance criteria.
|
|
261
|
+
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.
|
|
359
262
|
|
|
360
|
-
|
|
263
|
+
> **Audit epics:** Audit epics produce findings (issues) rather than code changes — adjust delegation and skip Steps 7-8a if no code changes.
|
|
361
264
|
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
#### 6b. Epics -- Sub-Agent Delegation (One Implementer Per Sub-Issue)
|
|
365
|
-
|
|
366
|
-
For epics with sub-issues, delegate each sub-issue to a dedicated implementer sub-agent. The parent orchestrator (this agent) coordinates dependency order, parallelism, and git operations.
|
|
367
|
-
|
|
368
|
-
##### 6b.1. Parse Sub-Issues Into Dependency Levels
|
|
369
|
-
|
|
370
|
-
1. Fetch the epic's `## Implementation Order` section.
|
|
371
|
-
2. Group sub-issues by dependency level:
|
|
372
|
-
- **Level 1:** Sub-issues with no unsatisfied blockers (can start immediately).
|
|
373
|
-
- **Level N:** Sub-issues whose blockers are all in levels < N.
|
|
374
|
-
3. Within each level, identify parallelizable sub-issues (no mutual dependencies).
|
|
375
|
-
|
|
376
|
-
##### 6b.2. Prepare Shared Context
|
|
377
|
-
|
|
378
|
-
Before spawning implementer sub-agents, delegate context gathering to the **hatch3r-researcher agent protocol**.
|
|
379
|
-
|
|
380
|
-
1. Read the epic body (goal, scope, constraints).
|
|
381
|
-
2. Spawn a researcher sub-agent following the **hatch3r-researcher agent protocol** with:
|
|
382
|
-
- **Research brief:** The epic title, goal, scope, constraints, and area labels.
|
|
383
|
-
- **Modes:** `codebase-impact`, `risk-assessment`
|
|
384
|
-
- **Depth:** `standard` for most epics. Use `quick` if the epic has fewer than 3 sub-issues or is well-specified with linked specs. Use `deep` if the epic spans multiple modules or introduces new patterns.
|
|
385
|
-
- **Project context:** Pre-loaded documentation references from area labels.
|
|
386
|
-
3. Await the researcher result. Include the structured output as shared context in all implementer sub-agent prompts in Step 6b.3.
|
|
387
|
-
|
|
388
|
-
##### 6b.3. Execute Level-by-Level With Parallel Sub-Agents
|
|
389
|
-
|
|
390
|
-
For each dependency level, starting at Level 1:
|
|
391
|
-
|
|
392
|
-
1. **Spawn one implementer sub-agent per sub-issue in the current level.** Use the Task tool with `subagent_type: "generalPurpose"`. Launch as many sub-agents concurrently as the platform supports.
|
|
393
|
-
|
|
394
|
-
2. **Each sub-agent prompt must include:**
|
|
395
|
-
- The sub-issue number, title, full body, and acceptance criteria.
|
|
396
|
-
- The issue type (bug/feature/refactor/QA) and corresponding hatch3r skill name.
|
|
397
|
-
- Parent epic context (title, goal, related sub-issues at the same level).
|
|
398
|
-
- The researcher output from Step 6b.2 (codebase impact and risk assessment as shared context).
|
|
399
|
-
- Documentation references relevant to this sub-issue.
|
|
400
|
-
- Instruction to follow the hatch3r-implementer agent protocol.
|
|
401
|
-
- All `scope: always` rule directives from `/.agents/rules/` — subagents do not inherit rules automatically.
|
|
402
|
-
- Relevant learnings from `/.agents/learnings/` (from Step 6.pre).
|
|
403
|
-
- Instruction to use GitHub MCP for issue reads, and follow the project's tooling hierarchy for external knowledge augmentation.
|
|
404
|
-
- Explicit instruction: do NOT create branches, commits, or PRs.
|
|
405
|
-
|
|
406
|
-
3. **Await all sub-agents in the current level.** Collect their structured results (files changed, tests written, issues encountered).
|
|
407
|
-
|
|
408
|
-
4. **Review sub-agent results:**
|
|
409
|
-
- If any sub-agent reports BLOCKED or PARTIAL, **ASK** the user how to proceed (skip, fix manually, retry).
|
|
410
|
-
- If sub-agents modified overlapping files, review for conflicts and resolve before proceeding.
|
|
411
|
-
|
|
412
|
-
5. **Advance to the next dependency level.** Repeat steps 1-4 until all levels are complete.
|
|
413
|
-
|
|
414
|
-
##### 6b.4. Post-Delegation Verification
|
|
415
|
-
|
|
416
|
-
After all sub-agents complete:
|
|
417
|
-
|
|
418
|
-
1. Run a combined quality check across all changes.
|
|
419
|
-
2. Resolve any cross-sub-issue integration issues.
|
|
420
|
-
3. Verify no file conflicts between parallel sub-agent outputs.
|
|
265
|
+
**Do NOT execute the skill's PR creation steps.** Steps 7-8 handle board-specific requirements (epic linking, label transitions, board sync).
|
|
421
266
|
|
|
422
267
|
---
|
|
423
268
|
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
For batches of multiple standalone issues (selected via batch mode in Step 1d or by referencing multiple issue numbers), delegate each issue to a dedicated implementer sub-agent. The parent orchestrator (this agent) coordinates dependency levels, parallelism, collision avoidance, and git operations.
|
|
269
|
+
> Delegation protocols: `commands/board/pickup-delegation.md` (6a single issue), `commands/board/pickup-delegation-multi.md` (6b epics, 6c batch)
|
|
427
270
|
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
1. Use the updated cross-issue dependency graph (from Step 2e, adjusted by Step 3.4).
|
|
431
|
-
2. Group issues by dependency level:
|
|
432
|
-
- **Level 1:** Issues with no dependencies on other issues in the batch (can start immediately). Most standalone issues will be Level 1.
|
|
433
|
-
- **Level N:** Issues that depend on other issues in levels < N.
|
|
434
|
-
3. Within each level, all issues are parallelizable (no mutual dependencies — conflicts were moved to separate levels in Step 3).
|
|
435
|
-
|
|
436
|
-
##### 6c.2. Context Gathering (Parallel Researchers)
|
|
437
|
-
|
|
438
|
-
**Skip this step only** if ALL issues in the batch are trivially simple (`risk:low` AND `priority:p3`).
|
|
439
|
-
|
|
440
|
-
Unlike epics (which share a single researcher), standalone issues in a batch are unrelated and each need individual context gathering.
|
|
441
|
-
|
|
442
|
-
1. **Spawn one hatch3r-researcher sub-agent per issue** via the Task tool (`subagent_type: "generalPurpose"`). Launch as many concurrently as the platform supports.
|
|
443
|
-
|
|
444
|
-
2. **Each researcher prompt must include:**
|
|
445
|
-
- The issue title, body, acceptance criteria, and area labels.
|
|
446
|
-
- Research modes by issue type (same as Step 6a.1).
|
|
447
|
-
- Depth by risk level (`quick` / `standard` / `deep`).
|
|
448
|
-
- Project context and documentation references.
|
|
449
|
-
|
|
450
|
-
3. **Await all researchers.** Collect structured outputs. Each researcher's output feeds exclusively into its corresponding implementer in Step 6c.3.
|
|
451
|
-
|
|
452
|
-
##### 6c.3. Execute Level-by-Level With Parallel Implementers
|
|
453
|
-
|
|
454
|
-
For each dependency level, starting at Level 1:
|
|
455
|
-
|
|
456
|
-
1. **Spawn one hatch3r-implementer sub-agent per issue in the current level.** Use the Task tool with `subagent_type: "generalPurpose"`. Launch as many sub-agents concurrently as the platform supports.
|
|
457
|
-
|
|
458
|
-
2. **Each sub-agent prompt must include:**
|
|
459
|
-
- The issue number, title, full body, and acceptance criteria.
|
|
460
|
-
- The issue type (bug/feature/refactor/QA) and corresponding hatch3r skill name.
|
|
461
|
-
- Batch context: sibling issues in the batch at the same level (for awareness, not implementation).
|
|
462
|
-
- The researcher output from Step 6c.2 for this specific issue (if that step was not skipped).
|
|
463
|
-
- Documentation references relevant to this issue.
|
|
464
|
-
- Instruction to follow the **hatch3r-implementer agent protocol**.
|
|
465
|
-
- All `scope: always` rule directives from `/.agents/rules/` — subagents do not inherit rules automatically.
|
|
466
|
-
- Relevant learnings from `/.agents/learnings/` (from Step 6.pre).
|
|
467
|
-
- Explicit instruction: do NOT create branches, commits, or PRs.
|
|
468
|
-
|
|
469
|
-
3. **Await all sub-agents in the current level.** Collect their structured results (files changed, tests written, issues encountered).
|
|
470
|
-
|
|
471
|
-
4. **Review sub-agent results:**
|
|
472
|
-
- If any sub-agent reports BLOCKED or PARTIAL, **ASK** the user how to proceed (skip, fix manually, retry).
|
|
473
|
-
- If sub-agents modified overlapping files, review for conflicts and resolve before proceeding.
|
|
474
|
-
|
|
475
|
-
5. **Advance to the next dependency level.** Repeat steps 1-4 until all levels are complete.
|
|
476
|
-
|
|
477
|
-
##### 6c.4. Post-Batch Verification
|
|
478
|
-
|
|
479
|
-
After all implementer sub-agents complete across all levels:
|
|
480
|
-
|
|
481
|
-
1. Run a combined quality check across all changes from all issues.
|
|
482
|
-
2. Resolve any cross-issue file conflicts or integration issues.
|
|
483
|
-
3. Verify no regressions between parallel sub-agent outputs.
|
|
484
|
-
|
|
485
|
-
##### 6c.5. Post-Implementation Specialist Delegation
|
|
486
|
-
|
|
487
|
-
After all implementations complete, spawn specialist sub-agents across the entire batch. Use the Task tool with `subagent_type: "generalPurpose"`. Launch as many independent sub-agents in parallel as the platform supports.
|
|
488
|
-
|
|
489
|
-
**Always spawn (mandatory for every code change):**
|
|
490
|
-
- **hatch3r-reviewer** — code review of ALL changes across the batch. Include the full diff and acceptance criteria for each issue.
|
|
491
|
-
- **hatch3r-test-writer** — tests for all code changes across the batch.
|
|
492
|
-
- **hatch3r-security-auditor** — security review of all code changes across the batch.
|
|
493
|
-
|
|
494
|
-
**Always evaluate (spawn when applicable):**
|
|
495
|
-
- **hatch3r-docs-writer** — spawn when any changes affect public APIs, architectural patterns, or user-facing behavior.
|
|
496
|
-
|
|
497
|
-
**Conditional specialists (spawn when triggered by any issue in the batch):**
|
|
498
|
-
- **hatch3r-lint-fixer** — spawn when lint errors are present after implementation.
|
|
499
|
-
- **hatch3r-a11y-auditor** — spawn when any issue has `area:ui` or `area:a11y` labels.
|
|
500
|
-
- **hatch3r-perf-profiler** — spawn when any issue has `area:performance` label.
|
|
501
|
-
|
|
502
|
-
Await all specialist sub-agents. Apply their feedback before proceeding to Step 7.
|
|
503
|
-
|
|
504
|
-
---
|
|
505
|
-
|
|
506
|
-
### Step 7: Quality Verification
|
|
507
|
-
|
|
508
|
-
Run the project's quality checks (linting, type checking, tests). Refer to the project's `AGENTS.md`, `README.md`, or `package.json` scripts for the appropriate commands.
|
|
509
|
-
|
|
510
|
-
Verify: all AC met, tests passing, no lint errors, dead code removed, project-specific invariants respected.
|
|
511
|
-
|
|
512
|
-
---
|
|
513
|
-
|
|
514
|
-
### Step 7a: Commit & Push
|
|
515
|
-
|
|
516
|
-
Stage, commit, and push all changes so the branch exists on the remote before PR creation.
|
|
517
|
-
|
|
518
|
-
**Single issue or epic:**
|
|
519
|
-
|
|
520
|
-
```bash
|
|
521
|
-
git add -A
|
|
522
|
-
git commit -m "{type}: {short description} (#{issue})"
|
|
523
|
-
git push -u origin {branch-name}
|
|
524
|
-
```
|
|
525
|
-
|
|
526
|
-
- Use the branch type prefix (`feat`, `fix`, `refactor`, `qa`) matching the branch name.
|
|
527
|
-
- Reference the issue number in the commit message.
|
|
528
|
-
- If `git push` fails (e.g., branch already exists on remote), use `git push` without `-u`.
|
|
529
|
-
|
|
530
|
-
**Batch mode:** Create one commit covering all issues in the batch.
|
|
531
|
-
|
|
532
|
-
```bash
|
|
533
|
-
git add -A
|
|
534
|
-
git commit -m "batch: {short description} (#N, #M, #K)"
|
|
535
|
-
git push -u origin {branch-name}
|
|
536
|
-
```
|
|
537
|
-
|
|
538
|
-
- List all issue numbers in the commit message.
|
|
539
|
-
- If all issues share a type, use that type prefix instead of `batch`.
|
|
540
|
-
|
|
541
|
-
---
|
|
542
|
-
|
|
543
|
-
### Step 8: Create Pull Request
|
|
544
|
-
|
|
545
|
-
Follow the project's PR creation skill or conventions:
|
|
546
|
-
|
|
547
|
-
1. **Title:** `{type}: {short description} (#issue)` — for batch mode: `batch: {short description} (#N, #M, #K)`.
|
|
548
|
-
2. **Determine epic link type:** If working on an epic's sub-issues, check whether ALL sub-issues of the parent epic are addressed by this PR (listed as `Closes #N`) or are already closed. If yes → use `Closes #<epic-number>` so the epic auto-closes on merge. If some sub-issues remain open and unaddressed → use `Relates to #<epic-number>`.
|
|
549
|
-
3. **Body:** Use the repository's PR template if available (`.github/PULL_REQUEST_TEMPLATE.md`). Fill: Summary, Type, Changes, Testing, Rollout plan. Include a **Related Issues** section listing:
|
|
550
|
-
- `Closes #N` for each issue addressed by this PR (including all batch issues).
|
|
551
|
-
- `Closes #<epic>` (all sub-issues addressed) OR `Relates to #<epic>` (partial) for the parent epic.
|
|
552
|
-
- Always list both the epic and all sub-issues in the Related Issues section regardless of partial/full completion.
|
|
553
|
-
- **Batch mode:** List `Closes #N` for every issue in the batch. Include a per-issue summary of changes in the body.
|
|
554
|
-
4. **Create:** Use `gh pr create` (primary) with `--head {branch}`, `--base {base}`, `--title`, `--body`; fall back to `create_pull_request` if `gh` CLI unavailable. `{base}` = `board.defaultBranch` from `/.agents/hatch.json` (fallback: `"main"`).
|
|
555
|
-
5. **Link PR to epic:** Use `gh issue comment` (primary) on the epic with PR reference; fall back to `add_issue_comment` if `gh` CLI unavailable.
|
|
556
|
-
|
|
557
|
-
---
|
|
558
|
-
|
|
559
|
-
### Step 8a: Post-PR Label Transition & Project Board Sync
|
|
560
|
-
|
|
561
|
-
1. **Transition labels to `status:in-review`:** For each `Closes #N` issue (including all batch issues), remove `status:in-progress`, add `status:in-review`. If ALL sub-issues addressed, also transition the parent epic.
|
|
562
|
-
|
|
563
|
-
2. **Sync Projects v2:** Run the full **Projects v2 Sync Procedure** from `hatch3r-board-shared` (add + capture `item_id` + update status) for **each** of the following items individually:
|
|
564
|
-
- **a. The PR:** `item_type: pull_request`, `pull_request_number: <N>` → set to "In review" using `board.statusOptions.inReview`.
|
|
565
|
-
- **b. Each `Closes #N` issue:** `item_type: issue`, `issue_number: <N>` → set to "In review" using `board.statusOptions.inReview`. In batch mode, this includes every issue in the batch.
|
|
566
|
-
- **c. Parent epic (all sub-issues addressed):** `item_type: issue`, `issue_number: <epic>` → set to "In review" using `board.statusOptions.inReview`. The PR body uses `Closes #<epic>`, so the epic will auto-close on merge and transition to Done.
|
|
567
|
-
- **d. Parent epic (partial -- some sub-issues remain):** `item_type: issue`, `issue_number: <epic>` → verify status is "In progress" using `board.statusOptions.inProgress`; set it if not. The PR body uses `Relates to #<epic>` (epic stays open after merge).
|
|
568
|
-
|
|
569
|
-
---
|
|
570
|
-
|
|
571
|
-
### Step 9: Post-PR Housekeeping
|
|
572
|
-
|
|
573
|
-
1. If all sub-issues addressed, confirm the PR body uses `Closes #<epic-number>` so the epic will auto-close on merge and transition to Done.
|
|
574
|
-
2. Remind user `Closes #N` auto-closes on merge.
|
|
575
|
-
3. If partial:
|
|
576
|
-
|
|
577
|
-
**ASK:** "PR created. N remaining sub-issues on epic #X. Continue with next sub-issue or stop?"
|
|
578
|
-
|
|
579
|
-
#### 9a. Refresh Board Dashboard
|
|
580
|
-
|
|
581
|
-
**This step is mandatory. Do not skip.**
|
|
582
|
-
|
|
583
|
-
If a `meta:board-overview` issue exists on the board, refresh it now using cached board data updated with mutations from Steps 4, 8, and 8a. Include the `Recommended Model` column in all issue listings per the Board Overview section in `hatch3r-board-shared`. Do NOT re-fetch all issues; use cached data. Skip silently if no `meta:board-overview` issue exists.
|
|
271
|
+
**After all implementation completes, return here and continue with Step 7.**
|
|
584
272
|
|
|
585
273
|
---
|
|
586
274
|
|
|
587
|
-
###
|
|
588
|
-
|
|
589
|
-
After PR creation, capture learnings from this development session.
|
|
275
|
+
### Steps 7-10: Post-Implementation Pipeline
|
|
590
276
|
|
|
591
|
-
|
|
592
|
-
- Were there any unexpected challenges or blockers?
|
|
593
|
-
- Did any patterns or approaches work particularly well?
|
|
594
|
-
- Were there decisions made that future developers should know about?
|
|
595
|
-
- Were any pitfalls discovered that should be avoided next time?
|
|
277
|
+
> Full details: see `commands/board/pickup-post-impl.md`
|
|
596
278
|
|
|
597
|
-
|
|
598
|
-
- Create learning files in `/.agents/learnings/` following the learning file format (see `hatch3r-learn` command).
|
|
599
|
-
- Include the issue number as `source-issue`.
|
|
600
|
-
- Tag with relevant area labels from the issue.
|
|
601
|
-
- **ASK:** "Learnings captured: {list}. Anything else to note? (add more / done)"
|
|
279
|
+
Execute Steps 7-10 in order after all implementation completes:
|
|
602
280
|
|
|
603
|
-
|
|
281
|
+
- **Step 7:** Quality verification (lint, type check, tests, AC).
|
|
282
|
+
- **Step 7a:** Commit and push all changes to the remote branch.
|
|
283
|
+
- **Step 8:** Create PR/MR with proper `Closes #N` references. See platform sub-files for CLI commands.
|
|
284
|
+
- **Step 8a:** Transition labels to `status:in-review` and sync board. See platform sub-files.
|
|
285
|
+
- **Step 9:** Post-PR housekeeping: epic link verification, board dashboard refresh (9a, mandatory), end-of-run reconciliation (9b, mandatory).
|
|
286
|
+
- **Step 10:** Capture learnings in `.agents/learnings/` if any were identified.
|
|
604
287
|
|
|
605
288
|
---
|
|
606
289
|
|
|
607
|
-
## Auto-Advance Mode
|
|
608
|
-
|
|
609
|
-
When invoked with `--auto` or `--unattended`, the board pickup operates with reduced human checkpoints for sustained autonomous operation.
|
|
610
|
-
|
|
611
|
-
### Behavior Changes in Auto Mode
|
|
612
|
-
|
|
613
|
-
| Checkpoint | Normal Mode | Auto Mode |
|
|
614
|
-
|-----------|-------------|-----------|
|
|
615
|
-
| Issue selection | ASK user to confirm | Auto-select highest priority ready issue(s); **auto-batch** independent issues up to `--max-batch` (default 4) |
|
|
616
|
-
| Specification generation | ASK user to validate | Auto-generate and attach, skip validation |
|
|
617
|
-
| Implementation plan | ASK user to review | Auto-proceed with plan |
|
|
618
|
-
| PR creation | ASK user to confirm | Auto-create PR |
|
|
619
|
-
| Review feedback | Wait for human review | Proceed to next issue/batch |
|
|
620
|
-
|
|
621
|
-
In auto mode, batch pickup is the default when multiple independent issues are available. The system auto-selects up to `--max-batch` independent issues and processes them in parallel via Step 6c.
|
|
290
|
+
## Auto-Advance Mode, Error Handling, and Guardrails
|
|
622
291
|
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
These checkpoints are NEVER skipped, even in auto mode:
|
|
626
|
-
- **Destructive operations**: Database migrations, file deletions, security rule changes always require confirmation
|
|
627
|
-
- **Breaking changes**: API contract changes, public interface modifications always require confirmation
|
|
628
|
-
- **Cost thresholds**: Stop if estimated token cost exceeds configured limit (default: $10 per issue)
|
|
629
|
-
- **Error threshold**: Stop after 3 consecutive implementation failures
|
|
630
|
-
- **Scope limits**: Maximum 10 issues per auto session (configurable)
|
|
631
|
-
|
|
632
|
-
### Activation
|
|
633
|
-
|
|
634
|
-
```
|
|
635
|
-
/hatch3r board-pickup --auto
|
|
636
|
-
/hatch3r board-pickup --auto --max-issues=5 --cost-limit=20
|
|
637
|
-
/hatch3r board-pickup --auto --max-batch=4
|
|
638
|
-
```
|
|
639
|
-
|
|
640
|
-
### Session Report
|
|
641
|
-
|
|
642
|
-
At the end of an auto session, generate a summary:
|
|
643
|
-
- Issues completed: {count}
|
|
644
|
-
- Issues batched: {count per batch}
|
|
645
|
-
- PRs created: {list}
|
|
646
|
-
- Issues blocked: {list with reasons}
|
|
647
|
-
- Total estimated cost: {tokens/cost}
|
|
648
|
-
- Learnings captured: {count}
|
|
649
|
-
|
|
650
|
-
---
|
|
292
|
+
> Full details: see `commands/board/pickup-modes.md`
|
|
651
293
|
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
- `list_issues`/`search_issues` failure: retry once, then ask user for issue number.
|
|
655
|
-
- `issue_write` failure: warn and continue (labels not blocking).
|
|
656
|
-
- Quality verification failure: fix before creating PR.
|
|
657
|
-
- `create_pull_request` failure: present error and manual instructions.
|
|
658
|
-
|
|
659
|
-
## Guardrails
|
|
660
|
-
|
|
661
|
-
- **Never skip collision check** (Step 3).
|
|
662
|
-
- **Never skip ASK checkpoints.**
|
|
663
|
-
- **Always work on a dedicated branch.** Never commit to the default branch.
|
|
664
|
-
- **Stay within scope.** Note related work but do not implement it.
|
|
665
|
-
- **One PR per pickup session.** A single issue, epic, or batch produces one PR. Split large epics into multiple PRs.
|
|
666
|
-
- **One sub-agent per issue.** Every issue MUST be delegated to its own `hatch3r-implementer` sub-agent -- never implement multiple issues inline. This applies to standalone issues (6a), epic sub-issues (6b), and batch issues (6c).
|
|
667
|
-
- **Maximize parallelism.** Launch as many independent sub-agents concurrently as the platform supports. Only serialize when dependency order or file conflicts require it.
|
|
668
|
-
- **Respect the issue-type skill** as source of truth for implementation.
|
|
669
|
-
- **Respect dependency and implementation order.** Warn and suggest blockers.
|
|
670
|
-
- **Prefer `status:ready` issues.** Warn if selecting non-ready.
|
|
671
|
-
- **Board Overview is auto-maintained.** Exclude from all analysis.
|
|
672
|
-
- **Always create a PR.** Every board-pickup session MUST end with a PR (Steps 7a-8) unless explicitly abandoned by the user or the epic is an audit that produces no code changes. If quality checks fail in Step 7, fix the issues and re-run Step 7 -- do not exit without completing Steps 7a, 8, 8a, and 9.
|
|
294
|
+
The modes file contains: auto-advance mode (`--auto`/`--unattended`), safety guardrails, error handling, and operational guardrails for board-pickup.
|