§0 Detect Ambiguity (P8 B1)
Before any action, scan the user's request and provided context for unresolved questions in scope, acceptance criteria, irreversibility, or constraint conflicts (contradictory inputs, missing target, unknown convention). If any are found, ask the user via the platform-native question tool per agents/shared/user-question-protocol.md — do not proceed under silent assumption. This is the default path, not an exception. Acceptable to proceed without asking ONLY when scope is single-target, single-concern, and the brief alone is testable. Any residual ambiguity discovered mid-workflow invokes the same protocol.
Integration with GitHub Agentic Workflows
hatch3r's board commands operate as the implementation orchestration layer above GitHub Agentic Workflows. While GitHub's agentic workflows handle continuous automation (triage, testing, documentation), hatch3r's board commands orchestrate the full delivery pipeline:
- board-init sets up the project management structure that agentic workflows operate within
- board-fill creates the work items that agentic workflows can triage and label
- board-groom refines existing work items as priorities, scope, and dependencies evolve over time
- board-pickup orchestrates the implementation -> review -> merge pipeline that goes beyond what generic agentic workflows provide
- board-refresh regenerates the living dashboard on demand without running a full board command
Board health findings surfaced by board-refresh (missing metadata, stale issues, blocked chains, epic ordering discrepancies) can be acted on via hatch3r-board-groom, which performs the same diagnostics but adds the ability to apply fixes.
GitHub Agentic Workflows and hatch3r are complementary: use agentic workflows for continuous background automation, use hatch3r board commands for structured delivery orchestration.
Shared Context
Read the hatch3r-board-shared skill at the start of the run. It contains Board Configuration, Platform Detection, Platform Context, Board Sync Procedure, and tooling directives. Cache all values for the duration of this run.
Token-Saving Directives
Follow the Token-Saving Directives in hatch3r-board-shared.
Workflow
Execute these steps in order. Do not skip any step.
Step 1: Read Configuration
- Read
.hatch3r/hatch.jsonand cache the full config (top-levelowner/repo,platform, andboardsection). - Read
platformfrom.hatch3r/hatch.json. Default togithubif missing. - Resolve owner/repo per
hatch3r-board-shared: use top-levelowner/repofirst, fall back toboard.owner/board.repoif top-level values are empty. - If both are missing, abort with: "Cannot refresh board -- owner and repo are not configured in
.hatch3r/hatch.json. Runboard-initfirst." - Note
board.projectNumber-- if null, board sync will be skipped later.
Step 2: Full Board Scan
Perform ONE comprehensive scan and cache everything for subsequent steps.
2a. Fetch Open Issues / Work Items & PR Association
Platform-specific: Fetch all open items
If platform is github:
- Fetch ALL open issues:
gh issue list -R {owner}/{repo} --state open --limit 500 --json number,title,labels,state,createdAt,updatedAt,body. Paginate if necessary. Fall back tolist_issuesMCP if gh CLI fails. - Fetch ALL open PRs:
gh pr list -R {owner}/{repo} --state open --json number,title,body. Build a PR-to-issue association map by parsingCloses #N,Fixes #N, andResolves #Nreferences from PR bodies. Cache aspr_association_map.
If platform is azure-devops:
- Fetch ALL active work items:
az boards query --org https://dev.azure.com/{namespace} --project {project} --wiql "SELECT [System.Id], [System.Title], [System.State], [System.Tags], [System.CreatedDate], [System.ChangedDate], [System.Description] FROM WorkItems WHERE [System.State] <> 'Closed' AND [System.State] <> 'Removed'". Fall back tolist_work_itemsMCP. - Fetch ALL active PRs:
az repos pr list --org https://dev.azure.com/{namespace} --project {project} --status active. Build PR-to-work-item association map from linked work items.
If platform is gitlab:
- Fetch ALL open issues:
glab issue list -R {namespace}/{project} --state opened --per-page 100. Paginate if necessary. - Fetch ALL open MRs:
glab mr list -R {namespace}/{project} --state opened. Build MR-to-issue association map fromCloses #Nreferences in MR descriptions.
- For each issue/work item, extract labels/tags from the response.
- Check for sub-issues/child work items:
- GitHub:
issue_readwithmethod: get_sub_issues. - Azure DevOps:
az boards work-item relation list --id Nfor parent-child relations. - GitLab:
glab api projects/{project_id}/issues/{N}/linksfor related issues.
Cache parent-child relationships.
- Parse
## Dependenciessections from issue bodies for dependency references. Recognize both hard (Blocked by #N,Depends on #N) and soft (Recommended after #N) dependency types. Track the type for each edge in the dependency graph -- only hard dependencies block pickup and exclude issues from Implementation Lanes. - Exclude any issue labeled
meta:board-overviewfrom all analysis and listings.
2b. Categorize Issues
Classify every open issue (excluding meta:board-overview) into Epic / Sub-issue / Standalone per Board Health Computation → Categorize Issues in hatch3r-board-shared.
Step 3: Compute Board Health & Metrics
Analyze cached data to produce board health diagnostics.
3a. Status Distribution
Count issues per status label per the Board Health Computation → Status Distribution table in hatch3r-board-shared.
3b. Missing Metadata Detection
Flag issues missing any required type:* / priority:* / executor:* label (optional, noted: area:*, risk:*) per Board Health Computation → Missing Metadata Detection in hatch3r-board-shared.
3c. Dependency Health
- Build a dependency graph from parsed
## Dependenciessections. - Identify blocked chains: issues with unsatisfied blockers (blocker is still open).
- Count issues with
has-dependencieslabel. - Epic ordering consistency: For each epic, compare its
## Implementation Orderlevels against the DAG derived from its sub-issues'## Dependenciessections. Flag epics where the two diverge (e.g., a sub-issue's## Dependencieslists a blocker not reflected in the epic's level ordering, or the epic lists a level order that contradicts the dependency DAG). Report discrepancies in Board Health. - Cross-epic dependencies: Scan hard dependencies (
Blocked by #N) where the blocking issue and the dependent issue belong to different epics. Aggregate these into epic-level relationships: "Epic A blocks Epic B via sub-issue #X blocking sub-issue #Y." Collect for the Cross-Epic Dependencies section of the overview.
3d. Stale Issue Detection
Flag open issues that are potentially stale:
status:triagewith no update in 14+ days (based onupdatedAt).status:in-progresswith no update in 7+ days (may be abandoned).
3e. Lane Computation & Dependency-Waiting Partition
Compute Implementation Lanes and the Waiting on Dependencies list for all status:ready issues using the Lane Computation Algorithm (steps 1-12) from commands/board/shared-board-overview.md. Use the dependency graph built in Step 3c as input. The algorithm partitions ready issues into available (all blockers satisfied) and dependency-waiting (unsatisfied blockers), computes lanes from available issues, then computes inter-lane dependency edges, lane phases, and the Lane Dependency Map (steps 10-12).
3f. PR Linkage Gaps
Using the pr_association_map from Step 2a, identify status:in-progress and status:in-review issues that have no open PR referencing them. These represent active work with no visible code contribution and should be flagged in Board Health.
3g. Unlinked Sub-Issue Detection
For each epic, compare the sub-issue references in the epic body (checklist items, > Parent: references) against the native sub-issue list from issue_read with method: get_sub_issues. Flag sub-issues that appear in the body but are not natively linked.
3h. Board Sync Drift Detection
If board.projectNumber is configured, compare label-based status (status:* labels) against board column status via gh project item-list {board.projectNumber} --owner {board.owner} --format json. Flag issues where the label status and board column status diverge (e.g., label says status:ready but board shows "In Progress").
3i. Dependency Format Inconsistencies
Scan all ## Dependencies sections for Depends on #N references (legacy format). Flag these for normalization to Blocked by #N (canonical format per the Dependency Data Model in commands/board/shared-board-overview.md).
Step 4: Regenerate Board Overview
Build the dashboard body following the Board Overview Issue Format and Model Selection Heuristic from commands/board/shared-board-overview.md.
4a. Model Assignment
For each open issue, assign a recommended model using the Model Selection Heuristic (Quality-First) from commands/board/shared-board-overview.md. Apply that heuristic as the single source of truth; do not duplicate it here.
4b. Compose Dashboard Body
Assemble the dashboard using the Board Overview Issue Format template from commands/board/shared-board-overview.md. Populate it with:
- Status Summary from Step 3a counts.
- In Progress and In Review from cached issues with the corresponding status labels. Include the
PRcolumn usingpr_association_mapfrom Step 2a — show#{pr_number}if an open PR references the issue,--if none. - Implementation Lanes from Step 3e lane computation results (available issues only). Include the Lane Dependency Map, phase annotations in lane headers,
> After:prerequisite lines for Phase 2+ lanes, and Cross-Lane Dependencies table. - Cross-Epic Dependencies from Step 3c cross-epic dependency scan (omit if none).
- Cross-Lane Dependencies from Step 3e inter-lane edge computation (omit if none).
- Waiting on Dependencies from Step 3e partition results (dependency-waiting issues:
status:readywith unsatisfied hard blockers). - Externally Blocked from cached issues with
status:blocked. - Backlog / Triage from cached issues with
status:triage. - Board Health from Steps 3b (missing metadata), 3d (stale issues), 3c (blocked chains, epic ordering discrepancies), 3e (lane sequencing warnings), 3f (PR linkage gaps), 3g (unlinked sub-issues), 3h (board sync drift), 3i (dependency format inconsistencies).
Step 5: Update Overview Issue
5a. Find Existing Overview Issue
Search the cached board inventory for an open issue labeled meta:board-overview.
If multiple found: Use the one with the lowest issue number (oldest). Warn: "Multiple board overview issues found (#{N}, #{M}). Updating #{lowest}. Consider closing duplicates."
5b. Update or Create
Platform-specific: Update or create overview issue
If found: Update the issue/work item body:
If platform is github:
gh issue edit {number} -R {owner}/{repo} --body "{generated dashboard body}"
Fall back to issue_write MCP with method: update if gh CLI fails.
If platform is azure-devops:
az boards work-item update --org https://dev.azure.com/{namespace} --id {number} --description "{generated dashboard body}"
If platform is gitlab:
glab issue update {number} -R {namespace}/{project} --description "{generated dashboard body}"
If not found: Create a new board overview issue:
If platform is github:
gh issue create -R {owner}/{repo} --title "[Board Overview] {repo} Project Board" --label "meta:board-overview" --body "{generated dashboard body}"
Fall back to issue_write MCP with method: create if gh CLI fails.
If platform is azure-devops:
az boards work-item create --org https://dev.azure.com/{namespace} --project {project} --type "User Story" --title "[Board Overview] {project} Project Board" --description "{generated dashboard body}" --fields "System.Tags=meta:board-overview"
If platform is gitlab:
glab issue create -R {namespace}/{project} --title "[Board Overview] {project} Project Board" --label "meta:board-overview" --description "{generated dashboard body}"
Then sync the new issue to the board and set its status to Backlog using the Board Sync Procedure from hatch3r-board-shared.
5c. Summary
Present a confirmation:
Board Refresh Complete:
Project: {owner}/{repo}
Overview issue: #{number} (updated / created)
Open issues: {total} ({epics} epics, {sub} sub-issues, {standalone} standalone)
Status: {ready} ready ({available} available, {depWaiting} waiting on deps), {inProgress} in progress, {inReview} in review, {blocked} ext. blocked, {triage} triage
Lanes: {laneCount} lanes across {phaseCount} phases ({available} available issues)
Health: {N} missing metadata, {M} stale, {K} blocked chains, {P} PR linkage gaps, {L} unlinked sub-issues, {D} sync drift, {F} dep format issues
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:
- Tier 1 (single-board refresh, no re-scoping): inline.
- Tier 2 (multi-lane refresh with re-scoping or reclassification): spawn parallel sub-agents per lane via the Task tool.
- Tier 3 (cross-board reconciliation): one fresh sub-agent per board or lane; orchestrator integrates only.
Emit sub_agents_spawned: { count, rationale, task_structure } in your output.
Error Handling
- Issue listing failure: Retry once, then fall back to MCP. If both fail, abort with platform-specific auth guidance:
- GitHub: "Cannot scan board -- check
gh auth loginstatus and repository access." - Azure DevOps: "Cannot scan board -- check
az loginstatus and project access." - GitLab: "Cannot scan board -- check
glab auth loginstatus and project access." - Issue edit/create failure: Retry once, then fall back to MCP. If both fail, present the generated dashboard body to the user so they can update the issue manually.
- Sub-issue/relation read failure: Warn and continue. Epic/sub-issue relationships will be incomplete; note in the summary.
- Board sync failure (new overview issue only): Warn and continue. The issue is created but not synced to the board.
Guardrails
- Never modify any issue other than the
meta:board-overviewissue. This command is read-only for all other issues. - Exclude the board overview issue from its own listings. It must never appear in any status table.
- One board overview issue at a time. If multiple are found, update the oldest and warn about duplicates.
- Follow the Platform CLI-first approach from
hatch3r-board-shared. Use platform CLI as primary; MCP as fallback. - No ASK checkpoints. This command performs a single, non-destructive mutation (updating the dashboard). It runs to completion without user prompts.
- Respect the Model Selection Heuristic. Always include the
Modelcolumn using the quality-first heuristic fromcommands/board/shared-board-overview.md.