Roadmap Command
Create or update a project roadmap from unstructured input (brain dumps, notes, ideas).
This command:
- •Accepts unstructured input (ideas, notes, feature requests)
- •Structures it into phases with numbered items
- •Uses AskUserQuestion sparingly (only critical clarifications)
- •Supports both creation and update modes
Prerequisites
Check if .agent/ exists:
bash
ls -la .agent/ 2>/dev/null
If .agent/ doesn't exist, instruct user to run /setup first.
Step 1: Determine Mode
Check if ROADMAP.md exists:
bash
ls -la .agent/ROADMAP.md 2>/dev/null
- •If exists: Update mode
- •If not exists: Creation mode
Step 2: Gather Input
Creation Mode
If no argument provided, ask user to share their thoughts about the project.
Update Mode
Read existing roadmap and ask what to update:
- •Add new items
- •Update status of existing items
- •Reorganize phases
- •Full brain dump (merge with existing)
Step 3: Parse Unstructured Input
Analyze input to extract:
- •Vision/Goals - High-level project purpose
- •Feature Ideas - Specific capabilities
- •User Stories - Problems to solve
- •Technical Items - Infrastructure, architecture
- •Phases/Milestones - Groupings or sequencing hints
- •Constraints - Limitations, requirements
Identification patterns:
| Pattern | Extract As |
|---|---|
| "users should be able to..." | Feature idea |
| "first we should..." | Phase 1 item |
| "later..." / "eventually..." | Later phase or backlog |
| "the goal is..." | Vision |
Step 4: Ask Clarifying Questions (Sparingly)
Only ask when:
- •Input is too vague to structure
- •Critical ambiguity affects phase assignment
- •Multiple valid interpretations exist
Prefer making reasonable assumptions and noting them.
Step 5: Structure Into Roadmap Format
Assign items to phases:
| Phase | Criteria |
|---|---|
| Phase 1 | Core functionality, MVP, "must haves" |
| Phase 2 | Enhanced features, "should haves" |
| Phase 3 | Advanced features, "nice to haves" |
| Backlog | Ideas without clear phase |
Number items sequentially across all phases:
- •Use 001, 002, 003... format (three digits, zero-padded)
- •Numbering is global — continues across phases, not reset per phase
- •Example: Phase 1 might have 001-005, Phase 2 has 006-010, etc.
- •Backlog items also get numbers in sequence
Item format:
markdown
| 001 | [Brief Title] | [One-line description] | Planned |
Step 6: Validate Structure
Before writing, verify:
- •Vision is present
- •At least Phase 1 has items
- •No duplicate IDs
- •Items are actionable
- •Phases make logical sense
Step 7: Write/Update ROADMAP.md
Use template from ~/.claude/scaffolds/templates/agent/ROADMAP.md.template.
Step 8: Report Completion
Creation Mode
code
ROADMAP CREATED Location: .agent/ROADMAP.md Phase 1 - [Name]: X items Phase 2 - [Name]: X items Backlog: X items Assumptions Made: - [Any assumptions] Next Steps: 1. Review the roadmap 2. Run /feature [description referencing roadmap item]
Update Mode
code
ROADMAP UPDATED Changes: - Added X new items - Updated X statuses New Items: - 006: [Title] - 012: [Title]
Item Status Transitions
code
Future → Planned → Defined → In Progress → Implemented → Released
↓
(Feature created)
Linking Roadmap to Features
When creating a feature from a roadmap item:
- •Note the roadmap item ID (e.g., 003)
- •Run
/feature [description] - •Feature includes "Roadmap Reference" section
- •Update roadmap item status to "Defined"
Best Practices
DO:
- •Accept messy input and structure it
- •Make reasonable assumptions about phasing
- •Note assumptions for user to correct
- •Preserve all existing content on updates
- •Use brief, actionable item titles
DON'T:
- •Ask too many clarifying questions
- •Reject input as "too vague"
- •Create overly detailed roadmaps
- •Remove existing items without asking