From hatch3r
Generates a dependency-aware, priority-ordered rollout roadmap with parallel business and technical milestone tracks, outputting a todo.md schedule.
How this command is triggered — by the user, by Claude, or both
Slash command
/hatch3r:hatch3r-roadmapThe summary Claude sees in its command listing — used to decide when to auto-load this command
## §0 Detect Ambiguity (P8 B1) > Orchestration boilerplate: see `commands/shared/orchestration-frame.md` → §0 Detect Ambiguity (P8 B1). Triggers: contradictory inputs, missing target, unknown convention. # Roadmap — Generate Phased Roadmap from Specs & Vision Generate a dependency-aware, priority-ordered roadmap with **two parallel dimensions**: business milestones and technical milestones. Spawns parallel researcher sub-agents (business priority, technical readiness) to inform prioritization with market timing, competitive pressure, revenue impact, and production readiness gaps. Outputs...
Orchestration boilerplate: see
commands/shared/orchestration-frame.md→ §0 Detect Ambiguity (P8 B1). Triggers: contradictory inputs, missing target, unknown convention.
Generate a dependency-aware, priority-ordered roadmap with two parallel dimensions: business milestones and technical milestones. Spawns parallel researcher sub-agents (business priority, technical readiness) to inform prioritization with market timing, competitive pressure, revenue impact, and production readiness gaps. Outputs to todo.md in the exact format that hatch3r-board-fill expects, with items tagged as [BIZ], [TECH], or [BOTH]. Optionally generates a root-level AGENTS.md. Works for both greenfield projects (from hatch3r-project-spec output) and brownfield projects (from hatch3r-codebase-map output).
| Stage | Agent(s) | Parallel | Required |
|---|---|---|---|
| 1. Research | hatch3r-researcher (2 parallel: Business Priority, Technical Readiness) | Yes | Yes |
| 2. Document Generation | hatch3r-docs-writer (todo.md generation) | No | Yes |
| 3. AGENTS.md | hatch3r-docs-writer (AGENTS.md generation/rework) | No | Yes |
Parallel-safety conditions (per rules/hatch3r-agent-orchestration.md §Parallel Safety): every parallel fan-out above holds all three — read-only or disjoint writes (file- and contract-level), deterministic aggregation, no shared mutable state.
Read the hatch3r-board-shared skill 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.
Follow the Token-Saving Directives in hatch3r-board-shared.
Every sub-agent delegation prompt in this command MUST include the confidence expression requirement below (verbatim). Sub-agents are invoked with the quality_charter: agents/shared/quality-charter.md reference in their frontmatter, but the orchestrator repeats the directive to override runtime prompt defaults per the charter §1 rule.
Confidence expression requirement: rate every recommendation and finding as high/medium/low confidence per the quality charter (
agents/shared/quality-charter.md). High = verified against current code. Medium = pattern-based, not fully verified. Low = best judgment, recommend human review.
Downstream propagation: every business-priority and technical-readiness recommendation (market-timing, revenue-impact ordering, debt-velocity estimate) carries a high/medium/low confidence rating sourced from the researcher sub-agent — web-sourced market estimates are medium at best unless tied to a cited benchmark. The Step 4 roadmap presentation and Step 6 summary MUST preserve the signal. Dropping it between stages is a gate failure.
Execute these steps in order. Do not skip any step. Ask the user at every checkpoint marked with ASK. When in doubt, ASK — it is better to ask one question too many than to make one wrong assumption. Discovery questions are never wasted.
Classify the roadmap request before delegating:
If Tier 1, run the reduced researcher set and skip Step 7 (AGENTS.md) unless requested. If Tier 2, run the standard pipeline below. If Tier 3, run the full pipeline with deep research, surface market-timing intelligence, and confirm phased plan with the user before file writes.
Before the first sub-agent dispatch (Step 3 parallel researchers), surface the cost preview so a deep-research roadmap run is never started blind. Emit the cost_estimate block per rules/hatch3r-cost-visibility.md Pre-Execution Estimate, calibrated to the Step 0 triage tier:
cost_estimate:
expected_sa_count: <triage tier → Tier 1 ~1 (technical-readiness only), Tier 2 ~2-3, Tier 3 up to 3 (+ AGENTS.md docs-writer)>
estimated_input_tokens_static_frame: <int>
estimated_web_research_queries: <int> # market + benchmark research; Tier 3 is web-heavy
triage_tier: light | standard | deep
estimated_duration_min: <int>
The Step 1 business-discovery interview is user-driven and excluded from the duration estimate. Post-execution actuals + delta land in the Iteration Summary recap (cost facet; full blocks on the Cost: exception line beyond ±25%) per rules/hatch3r-cost-visibility.md Post-Execution Actuals. Token telemetry sources from src/pipeline/observability.ts.
Auto-tiering can misclassify — a focused single-dimension roadmap scored as Deep, or an enterprise multi-quarter roadmap scored as Light. The user override is the recovery path mandated by hatch3r's universal --effort override contract ("User overridable via --effort flag"):
--effort=light|standard|deep forces the named tier, bypassing the Step 0 auto-classification (which controls researcher count and web-research depth).docs/specs/technical/ — technical specificationsdocs/specs/business/ — business specificationsdocs/specs/ (flat) — legacy spec layout (pre-dual-lens)docs/adr/ — architectural decision recordsdocs/codebase-health.md — health report (from codebase-map)todo.md — current backlogREADME.md — project overviewAGENTS.md — existing agent instructionsgh issue list --state open --limit 100 to understand existing tracked work. Paginate if more than 100 issues.Check for .hatch3r-session.json (written by hatch3r-codebase-map or hatch3r-project-spec). If found, pre-fill company stage and business context. Confirm with the user rather than re-asking.
ASK: "Should I generate a roadmap for the full product, or only specific parts? If specific, list the domains, modules, or feature areas to focus on."
If not loaded from .hatch3r-session.json:
ASK: "To calibrate the roadmap to your situation, tell me about your company/project stage:
Cache the stage assessment. It drives stage-adaptive prioritization:
ASK: "To build a business-aware roadmap, I need additional context:
Any other priorities or constraints I should factor into the roadmap?"
Context Loaded:
Technical Specs: {N} files in docs/specs/technical/
Business Specs: {N} files in docs/specs/business/
ADRs: {N} files in docs/adr/
Health report: {found / not found}
Existing todo.md: {found with N items / not found}
AGENTS.md: {found / not found}
Open GitHub issues: {N}
Session context: {loaded from .hatch3r-session.json / gathered fresh}
Company Stage: {stage}
Team Capacity: {N} devs, {hours}/week
Next Milestone: {milestone} by {date}
Key KPIs: {list}
Market Pressures: {list or none}
Gaps: {list any missing context}
ASK: "Here is the context I loaded. Provide additional goals, constraints, or priorities? (or confirm to proceed)"
| Dimension | Values |
|---|---|
| Scope | [BIZ] business-driven, [TECH] technically-driven, [BOTH] cross-cutting |
| Domain/area | Which module, subsystem, or business domain does this touch? |
| Type | feature, bug fix, refactor, infrastructure, documentation, QA, GTM, compliance |
| Effort | S (< 1 day), M (1-3 days), L (3-5 days), XL (> 5 days, should be an epic) |
| Impact | critical path, quality of life, nice-to-have, revenue-blocking, scale-blocking |
| Dependencies | What must come first? (both technical and business dependencies) |
Launch one sub-agent per research domain below concurrently using the Task tool with subagent_type: "generalPurpose". Each receives the full context from Steps 1-2.
Both sub-agent prompts must include:
Prompt context: Full project context, business specs, company stage, market pressures, KPIs.
Task: Research and recommend business-driven prioritization using web search for market intelligence.
Output structure:
## Business Priority Intelligence
### Market Timing
| Window | Deadline | Items Affected | Priority Impact |
|--------|----------|---------------|----------------|
| {window} | {date} | {items} | {how it changes priority} |
### Competitive Urgency
| Feature/Area | Competitor Activity | Urgency | Recommendation |
|-------------|-------------------|---------|----------------|
| {area} | {what competitors are doing} | high/med/low | {action} |
### Revenue Impact Ordering
| Rank | Feature/Area | Revenue Mechanism | Impact Estimate | Evidence |
|------|-------------|-------------------|-----------------|----------|
| 1 | {feature} | {conversion/retention/expansion/new segment} | {high/med/low} | {benchmark or reasoning} |
### Regulatory Timeline
| Requirement | Deadline | Effort | Blocking |
|------------|----------|--------|----------|
| {requirement} | {date} | {S/M/L/XL} | {what it blocks} |
### Channel Requirements
| Channel | Required Capabilities | Priority | Expected ROI |
|---------|---------------------|----------|-------------|
| {channel} | {what needs to be built} | {P0-P3} | {high/med/low} |
### Recommended Business Milestones
1. {milestone}: {date target} — {what it unlocks}
2. ...
Prompt context: Full project context, technical specs, health report, company stage.
Task: Evaluate technical readiness and recommend infrastructure prioritization. Use web search for industry benchmarks and best practices.
Output structure:
## Technical Readiness Intelligence
### Debt Velocity Impact
| Debt Item | Affected Areas | Velocity Impact | Fix Effort | ROI |
|-----------|---------------|----------------|-----------|-----|
| {item} | {modules} | {estimated slowdown} | {S/M/L/XL} | {high/med/low} |
### Infrastructure Milestones
| User Milestone | Prerequisites | Current State | Gap | Lead Time |
|---------------|--------------|--------------|-----|-----------|
| 1K users | {list} | {status} | {missing} | {days} |
| 10K users | {list} | {status} | {missing} | {days} |
| 100K users | {list} | {status} | {missing} | {days} |
### Production Readiness Blockers
| Blocker | Business Impact | Fix Effort | Deadline |
|---------|----------------|-----------|----------|
| {blocker} | {what it blocks} | {S/M/L/XL} | {when needed} |
### Technical → Business Dependency Map
| Business Priority | Technical Prerequisites | Status |
|------------------|----------------------|--------|
| {business item} | {technical items that must come first} | {ready/blocked} |
### Performance Benchmarks
| Metric | Industry P50 | Industry P90 | Current | Gap |
|--------|-------------|-------------|---------|-----|
| {metric} | {value} | {value} | {value or unknown} | {gap} |
### Recommended Technical Milestones
1. {milestone}: {deadline} — {what it enables}
2. ...
Wait for all sub-agents to complete before proceeding.
Merge the categorized work items from Step 2 with the research intelligence from Step 3 to build a roadmap with two parallel dimensions.
Map business-driven milestones across the timeline:
| Milestone Type | Examples |
|---|---|
| Revenue milestones | Launch, first paying customer, MRR targets, break-even |
| User acquisition milestones | Beta launch, public launch, growth targets, market expansion |
| Market timing milestones | Competitive windows, seasonal peaks, conference launches |
| Compliance milestones | Certifications, audits, regulatory deadlines |
| Fundraising milestones | Metrics needed for next round, demo-ready state |
Map technically-driven milestones across the timeline:
| Milestone Type | Examples |
|---|---|
| Infrastructure readiness | MVP infra (solo tier), scaling infra (team/scaleup tier), multi-region, enterprise tier per CONSTITUTION §6 Decision 4 |
| Production hardening | Monitoring, alerting, incident response, SLA readiness |
| Technical debt paydown | Prioritized by business impact (velocity improvement) |
| Platform capabilities | APIs, integrations, extensibility, developer experience |
| Security & compliance | Auth hardening, vulnerability scanning, audit trails |
| Phase | Label | Business Criteria | Technical Criteria |
|---|---|---|---|
| P0 | Critical / Launch Blockers | Revenue-blocking features, regulatory deadlines, market timing windows | Security fixes, data integrity, core infrastructure dependencies |
| P1 | Core Features | Primary value-delivering features, conversion-critical flows, first GTM channel enablement | Essential integrations, performance baselines, CI/CD, compound system integrity checks |
| P2 | Important | Secondary features, retention improvements, additional GTM channels | Quality improvements, significant refactors, testing gaps, monitoring |
| P3 | Nice to Have | Polish, upsell features, market expansion preparation | Optimizations, non-critical enhancements, developer experience |
| P4+ | Future Ideas | Long-term market plays, new segments, platform strategy | Long-term architecture evolution, experimental technology |
Roadmap Overview:
P0: N items (N BIZ, N TECH, N BOTH) — estimated effort: X days
P1: N items (N BIZ, N TECH, N BOTH) — estimated effort: X days
P2: N items (N BIZ, N TECH, N BOTH) — estimated effort: X days
P3: N items (N BIZ, N TECH, N BOTH) — estimated effort: X days
Future: N items
Business Milestones:
{date/phase}: {milestone} — requires: {items}
{date/phase}: {milestone} — requires: {items}
Technical Milestones:
{date/phase}: {milestone} — enables: {business items}
{date/phase}: {milestone} — enables: {business items}
Parallel Lanes:
Lane A (Business): {theme} — P0 items 1-3, P1 items 4-5
Lane B (Technical): {theme} — P0 items 6-7, P1 items 8-10
Lane C (Cross-cutting): {theme} — P0 items 11-12
Critical Path: item 1 → item 3 → item 5 → item 8
Business-Critical Path: {biz milestone 1} → {biz milestone 2} → {launch}
ASK: "Here is the proposed dual-lens roadmap with business and technical milestones. Review:
Write todo.md in the canonical Todo Grammar defined in hatch3r-board-shared — the single source of truth that hatch3r-board-fill Step 1 parses. Emit ## P{N} — {Label} priority headers and - [ ] **[BIZ|TECH|BOTH] {title}**: {description}. Ref: {path}. item lines exactly as the grammar specifies; the template below is the authoring example for this command.
Format specification:
## P0 — Critical / Launch Blockers
- [ ] **[TECH] {Infrastructure item}**: {Description. Scope: {what's in}. Enables: {business milestone}.} Ref: docs/specs/technical/{spec}.md.
- [ ] **[BIZ] {Market-driven item}**: {Description. Revenue impact: {impact}. Deadline: {if time-sensitive}.} Ref: docs/specs/business/{spec}.md.
- [ ] **[BOTH] {Cross-cutting item}**: {Description}. Ref: docs/specs/{spec}.md.
## P1 — Core Features
- [ ] **[TECH] {Feature title}**: {Description}. Ref: docs/specs/technical/{spec}.md.
- [ ] **[BIZ] {Business feature}**: {Description. Conversion/retention impact: {impact}.} Ref: docs/specs/business/{spec}.md.
## P2 — Important
- [ ] **[TECH] {Refactor/improvement title}**: {Description. Velocity impact: {improvement}.} Ref: docs/adr/{adr}.md.
- [ ] **[BIZ] {Business requirement}**: {Description}. Ref: docs/specs/business/{spec}.md.
## P3 — Nice to Have
- [ ] **[TECH] {Enhancement title}**: {Description}.
- [ ] **[BIZ] {Business enhancement}**: {Description}.
## Future Ideas
- [ ] **[TECH] {Long-term technical item}**: {Description}.
- [ ] **[BIZ] {Long-term business item}**: {Description}.
Format requirements:
- [ ] **[BIZ/TECH/BOTH] {bold title}**: {description}.Ref: with source spec/ADR path when the item was derived from a specific document. Use docs/specs/business/ or docs/specs/technical/ paths matching the item's category.## P{N} — {Label} headers.If todo.md already exists:
ASK: "todo.md already exists with {N} items. (a) Replace entirely, (b) Append new items, (c) Merge (deduplicate and reorganize)"
[BIZ]/[TECH]/[BOTH] tags if present.hatch3r-docs-writer sub-agent via the Task tool (subagent_type: "generalPurpose") to write todo.md to the project root. The docs-writer receives the confirmed roadmap output from Step 4 and the format specification from Step 5, and follows the hatch3r-docs-writer agent protocol..hatch3r-session.json with roadmap context (if company stage and business context were gathered fresh in this run):{
"timestamp": "{ISO timestamp}",
"command": "hatch3r-roadmap",
"companyStage": { ... },
"businessContext": { ... },
"scope": "{full / specific parts}",
"roadmapGoals": { ... }
}
Roadmap Written: todo.md
Total items: N (X epics, Y standalone)
By scope: BIZ: N, TECH: N, BOTH: N
By priority: P0: N, P1: N, P2: N, P3: N, Future: N
Estimated total effort: ~X days
Recommended parallel lanes: N
Team capacity: {N} devs × {hours}/week = ~{available days}
Estimated duration: ~{weeks} weeks at current capacity
Business Milestones:
{milestone 1}: {target date/phase}
{milestone 2}: {target date/phase}
Technical Milestones:
{milestone 1}: {target date/phase}
{milestone 2}: {target date/phase}
ASK: "Generate or update the root-level AGENTS.md with a project summary derived from the roadmap and specs? This file serves as the 'README for agents' — consumed by OpenCode, Windsurf, and other AI coding tools so they understand your project's business context, architecture, and conventions from the first interaction.
(a) Yes — generate it, (b) No — skip, (c) Let me review the content first."
If yes or review-first: spawn a hatch3r-docs-writer sub-agent via the Task tool (subagent_type: "generalPurpose") to generate AGENTS.md at the project root following the hatch3r-docs-writer agent protocol. The docs-writer receives the roadmap context and spec references. The generated AGENTS.md should follow this structure:
# {Project Name} — Agent Instructions
> Auto-generated by hatch3r-roadmap on {today's date}. Review and adjust before use.
## Project Purpose
{One-paragraph vision/purpose from business overview}
## Business Context
- **Business model**: {type}
- **Revenue model**: {model}
- **Company stage**: {stage}
- **Target market**: {segments}
- **Key metrics**: {KPIs}
## Technology Stack
{Concise stack summary — languages, frameworks, databases, infrastructure}
## Architecture Overview
{Architecture style, key components, deployment topology — 3-5 sentences}
## Module Map
| Module | Purpose |
| ------ | ------- |
| {module} | {one-line description} |
## Key Business Rules & Domain Constraints
{Top 5-10 business rules that agents must respect when making changes}
- {rule}: {constraint}
## Conventions
{Key coding conventions agents should follow — naming, patterns, testing}
## Current Roadmap Focus
{What the team is currently working on — P0/P1 items from the roadmap}
- **Current phase**: {description}
- **Key milestones**: {next 2-3 milestones}
## Documentation Reference
- Business specs: `docs/specs/business/`
- Technical specs: `docs/specs/technical/`
- Architecture decisions: `docs/adr/`
- Roadmap: `todo.md`
If the user chose "review first," present the content and ASK for confirmation before writing.
If AGENTS.md already exists, ASK before overwriting: "Root AGENTS.md already exists. (a) Replace entirely, (b) Append hatch3r section, (c) Skip."
ASK: "Roadmap complete. Recommended next steps:
hatch3r-board-fill to create GitHub issues from the todo.mdhatch3r-board-pickup to start working on the highest-priority itemsWhich would you like to run next? (or none)"
Future command: hatch3r-test-plan — generates a test plan from the current task context (issue, spec references, acceptance criteria) covering unit, integration, and E2E test scenarios. Not yet implemented; tracked for a future release.
roadmap is long-running — a Tier 3 brownfield discovery fans out parallel researcher sub-agents across Business-Priority and Technical-Readiness intelligence (Steps 2–3), then generates a dual-lens phased roadmap, todo.md, AGENTS.md, and a cross-command handoff (Steps 4–8). Per hatch3r's workspace-checkpointed resumability contract, checkpoint progress so an interrupted run re-enters at the last completed step rather than re-running the multi-mode researcher fan-out.
Orchestration boilerplate: see
commands/shared/orchestration-frame.md→ Checkpoint Contract. Per-command slots: workspace.roadmap-workspace/; step range the Step 0 → Step 8 progression;wave= researcher-batch index across business + technical lenses; snapshot/rollback pathsdocs/roadmap/,todo.md, andAGENTS.md;metaaddsroadmapSlug. Write points: after Step 1 context + business discovery completes, after Step 2 categorization locks, after Step 3 researcher fan-out returns, after the Step 4 dual-lens roadmap synthesis is confirmed by ASK, and after each Step 5–7 file write (roadmap doc, todo.md, AGENTS.md) so already-generated artifacts survive a crash and are not regenerated on resume. Also after Step 8 cross-command handoff dispatch.
Orchestration boilerplate: see
commands/shared/orchestration-frame.md→ Per-Turn Pipeline-State Header. Phase mapping for roadmap:1= vision intake + horizon scoping,2= researcher/spec sub-agent dispatch (themes, milestones, dependencies),3= roadmap synthesis + sequencing,4= roadmap write + iteration-summary. Tier 1 runs are exempt per the Tier 1 exemption.
Orchestration boilerplate: see
commands/shared/orchestration-frame.md→ End-of-Turn Delegation Attestation. Per-command mutated-file slot: roadmap doc, milestone files, theme specs.
Close the run with the recap-contract Iteration Summary per rules/hatch3r-iteration-summary.md: a 1–2 line recap (status, outcome, files · sub-agents · gates · cost delta) plus every exception line whose firing condition holds — silence asserts the default. Omitting the recap fails that rule's Validation Gate (CONSTITUTION §6 Decision 37; Replaces: 28).
Orchestration boilerplate: see
commands/shared/orchestration-frame.md→ Cost Estimate for the 5-fieldcost_estimateschema and the post-executioncost_actuals+deltacontract; both land in the Iteration Summary recap (cost facet; full blocks on theCost:exception line beyond ±25%) perrules/hatch3r-cost-visibility.md.
This command emits cost transparency per rules/hatch3r-cost-visibility.md and CONSTITUTION §6 Decision 29:
cost_estimate — emitted in Step 0.5 before the first researcher dispatch (Step 3).cost_actuals + delta — appended to the Iteration Summary recap (cost facet; full blocks on the Cost: exception line beyond ±25%) per rules/hatch3r-cost-visibility.md.Per-tier expected_sa_count calibration (from frontmatter sub_agents_spawned.count: 2 × tier heuristic in rules/hatch3r-cost-visibility.md Pre-Execution Estimate): Tier 1 ≈ 1 (technical-readiness researcher only, condensed todo.md); Tier 2 ≈ 2-3 (both researchers + todo.md docs-writer); Tier 3 up to 3 (both researchers with deep web research + AGENTS.md docs-writer). This command is web-research-heavy at Tier 3 — estimated_web_research_queries typically dominates the cost delta. Deltas beyond 25% absolute value carry flagged_for_review: true. Token telemetry sources from src/pipeline/observability.ts; estimation primitives from src/pipeline/costEstimator.ts.
hatch3r-project-spec or hatch3r-codebase-map first.hatch3r-project-spec or hatch3r-codebase-map to create business specs.hatch3r supports 3 adapters as of 1.9.0 (Cursor, Claude Code, Copilot). Adapter parity within that supported set is enforced by capability-matrix tests; no adapter-parity work should land in roadmaps unless those tests detect a regression. If a regression is detected, track the gap as a [TECH] item at P2 priority or higher.
hatch3r-board-shared — the single source of truth hatch3r-board-fill Step 1 parses (## P{N} — {Label} headers; - [ ] **[BIZ|TECH|BOTH] {title}**: {description} items).docs/specs/business/ or docs/specs/technical/ paths matching the item's category.(estimate) suffix.AGENTS.md without explicit user confirmation.Close the run with the Plan-Execution Handoff block immediately after the Iteration Summary recap — a sanctioned post-recap trailer (when the Remaining Work terminal block also fires per rules/hatch3r-iteration-summary.md, it renders after this block as the run's very last output) (frontmatter plan_handoff: true; format + shapes: commands/shared/orchestration-frame.md → Plan-Execution Handoff (terminal block)).
Fill Shape B (chain) — the roadmap's todo.md IS the plan, so the first line is the canonical next command, not a --plan-file invocation: /hatch3r-board-fill (still a fenced copy-paste prompt with <one-line scope> from the roadmap's milestone summary and top-3 criteria from the P1 items), then /hatch3r-board-pickup to start delivery. Suppressed when this flow runs under /hatch3r-plan — the router emits one consolidated block.
npx claudepluginhub hatch3r/hatch3r --plugin hatch3r/roadmapGenerates a phased project roadmap from a vision statement through deep questioning, parallel research, and epic generation, materializing results as ideas or execution plans.
/roadmapBuilds or reviews a product roadmap with OKR alignment, Now/Next/Later structuring, dependency mapping, and stakeholder views. Pulls live state from Linear/Jira when connected.