Hatch3r issue workflow

From hatch3r/hatch3r · View interactive version

Hatch3r issue workflow is an AI agent skill from the GitHub repository hatch3r/hatch3r. Guides the 8-step agentic development workflow for issues/work items. Covers parsing issues, loading skills, reading specs, planning, implementing, testing, opening PRs/MRs, and addressing review. Use when working on any issue/work item or when the user mentions an issue number.

How to use this skill

Skill file

Issue Workflow

Quick Start

When assigned an issue or work item (GitHub Issue, Azure DevOps Work Item, or GitLab Issue — check platform in .hatch3r/hatch.json), follow these 8 steps in order:

Task Progress:
- [ ] Step 0: Detect ambiguity (P8 B1)
- [ ] Step 1: Parse the issue
- [ ] Step 2: Load the issue-type skill
- [ ] Step 3: Read relevant specs
- [ ] Step 4: Produce a plan
- [ ] Step 5: Implement
- [ ] Step 6: Test
- [ ] Step 6b: Browser verification (if UI)
- [ ] Step 7: Open PR
- [ ] Step 8: Address review

Step 0 — Detect Ambiguity (P8 B1)

Before any work, scan the invocation for unresolved questions in scope, intent, acceptance criteria, target environment, or irreversibility. If any are found, ask the user via the platform-native question tool per agents/shared/user-question-protocol.md. Do not proceed under silent assumption. Default path, not an exception. This upgrades the existing Escalation block from exception to default. Triggers for THIS skill: issue type unclear (bug vs feature vs refactor), acceptance criteria missing or contradictory, scope boundary undefined, irreversible operation in path (schema change, public API rename), and target branch / merge policy ambiguous.

Step 1: Parse the Issue

Step 2: Load the Issue-Type Skill

Navigate to the matching skill based on issue type:

| Issue Type | Skill |

| ----------------- | ------------------------ |

| Bug report | hatch3r-bug-fix |

| Feature request | hatch3r-feature |

| Code refactor | hatch3r-refactor |

| Logical refactor | hatch3r-logical-refactor |

| Visual refactor | hatch3r-visual-refactor |

| QA E2E validation | hatch3r-qa-validation |

Step 3: Read Relevant Specs

Load only the specs relevant to the issue area. See the spec mapping table in the project context rule.

Also check project ADRs for architectural constraints.

Step 4: Produce a Plan

Output a structured plan before writing code:

Step 4b: Sub-Agent Delegation

Every issue MUST be delegated to a dedicated hatch3r-implementer sub-agent — never implement inline. The board-pickup command orchestrates this automatically; if running issue-workflow standalone, apply the pattern that matches your scenario:

| Scenario | Pattern |

|----------|---------|

| Single issue | Spawn one hatch3r-implementer sub-agent via the Task tool with issue number, body, acceptance criteria, issue type, researcher output, and spec references. Await result. |

| Epic with sub-issues | Load references/delegation-patterns.md — Pattern 2 |

| Batch of standalone issues | Load references/delegation-patterns.md — Pattern 3 |

| Plain chat with multiple tasks | Load references/delegation-patterns.md — Pattern 4 |

The implementer sub-agent protocol is defined in the hatch3r-implementer agent. Each sub-agent handles its own implementation and testing but does NOT create branches, commits, or PRs.

Step 5: Implement

Step 6: Test

Step 6b: Browser Verification (if UI)

Skip this step if the issue has no user-facing UI changes.

Step 7: Open PR / MR

Step 8: Address Review

Fan-out Discipline (P8 B2)

Fan-out scales with task size; token cost never justifies serializing independent work (rules/hatch3r-fan-out-discipline.md P8 B2; agents/shared/efficiency-patterns.md). Tier boundaries for THIS skill:

Emit sub_agents_spawned: { count, rationale, task_structure } in your output.

Related

Error Handling

Escalation

Stop and ask when:

  1. Acceptance criteria are contradictory.
  2. Security concern discovered.
  3. Architectural decision needed (new ADR required).
  4. Spec conflict found.
  5. Scope creep detected.
  6. Test infrastructure missing.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.