Harness roadmap

From Intense-Visions/harness-engineering · View interactive version

Harness roadmap is an AI agent skill from the GitHub repository Intense-Visions/harness-engineering. > Create and manage a unified project roadmap from existing specs and plans. Interactive, human-confirmed, always valid.

How to use this skill

Skill file

Harness Roadmap

Create and manage a unified project roadmap from existing specs and plans. Interactive, human-confirmed, always valid.

When to Use

Process

Iron Law

Never write docs/roadmap.md without the human confirming the proposed structure first.

If the human has not seen and approved the milestone groupings and feature list, do not write the file. Present. Wait. Confirm. Then write.

Prompt the human in plain text — every (y/n), "which feature?", and similar prompt in this skill is plain text only. Do not elevate them to AskUserQuestion: feature lists routinely exceed its 4-option cap, and natural header choices ("Pick feature", "Remove feature") exceed its 12-char cap, causing the call to render as ERR.


Storage mode: monolith vs sharded

The roadmap has two physical layouts, auto-detected (not configured) by the presence of docs/roadmap.d/:

In sharded mode a write patches a single shard (conflict-free by construction) and regenerates the aggregate — so when committing a roadmap change, stage both docs/roadmap.d/ and the regenerated docs/roadmap.md. Read/write only through manage_roadmap / the RoadmapStore; never parse the aggregate for content (read-source invariant R, ADR 0050). Subcommands:

Stop hand-marking rows done — rows reach done automatically when the implementing PR merges (auto-done reconciler; see knowledge CODE2). See also the adoption guide CODE3.


Command: `--create` -- Bootstrap Roadmap

Phase 1: SCAN -- Discover Artifacts
  1. Check if docs/roadmap.md already exists.
  1. Scan for specs:
  1. Scan for plans:
  1. Match plans to specs:
  1. Infer feature status from artifacts:
  1. Detect project name from harness.config.json project field, or package.json name field, or directory name as fallback.

Present scan summary:

SCAN COMPLETE

Project: <name>
Found: N specs, N plans
Matched: N spec-plan pairs
Unmatched specs: N (backlog candidates)
Unmatched plans: N (flag for review)
Phase 2: PROPOSE -- Interactive Grouping
  1. Present discovered features in default milestone groupings:

```

Proposed Roadmap Structure:

## Current Work

## Backlog

```

  1. Offer choices:
  1. Ask: "Are there additional features not captured in specs that should be on the roadmap?"
  1. Repeat until the human selects (A) Accept.
Phase 3: WRITE -- Generate Roadmap
  1. Build the roadmap structure:
  1. Write via manage_roadmap MCP tool if available. If MCP is unavailable, write directly using the roadmap markdown format and warn: "External sync skipped (MCP unavailable). Run manage_roadmap sync when MCP is restored to push changes to GitHub."

```markdown


project: <name>

version: 1

created: YYYY-MM-DD

updated: YYYY-MM-DD


# Roadmap

## Current Work

### Feature A

```

  1. Write to docs/roadmap.md.
Phase 4: VALIDATE -- Verify Output
  1. Read back docs/roadmap.md.
  2. Verify via manage_roadmap show if MCP is available -- confirms round-trip parsing.
  3. Run harness validate.
  4. Present summary to human:

```

Roadmap created: docs/roadmap.md

Milestones: N

Features: N

harness validate: passed

```


Command: `--add <feature-name>` -- Add a Feature

Phase 1: SCAN -- Load Existing Roadmap
  1. Check if docs/roadmap.md exists.
  1. Parse the roadmap (via manage_roadmap show or direct read).
  2. Check for duplicate feature names. If <feature-name> already exists: error with message. "Feature '<feature-name>' already exists in milestone '<milestone>'. Use a different name or edit the existing feature."
Phase 2: PROPOSE -- Collect Feature Details

Ask the human for each field interactively:

  1. Milestone: "Which milestone should this feature belong to?" List existing milestones plus a [NEW] option. If [NEW]: ask for the new milestone name.
  2. Status: "What is the current status?" Offer: backlog, planned, in-progress, blocked.
  3. Spec: "Is there a spec for this feature?" If yes, ask for the path. If no, leave as none.
  4. Summary: "One-line summary of the feature."
  5. Blockers: "Any blockers?" If yes, collect. If no, set to none.
  6. Plan: "Is there a plan for this feature?" If yes, ask for the path. If no, leave as none.

Present the collected details for confirmation:

New feature to add:

  Milestone: Current Work
  Name: Feature E
  Status: planned
  Spec: docs/changes/feature-e/proposal.md
  Summary: Add feature E to the system
  Blockers: none
  Plan: none

Confirm? (y/n)

Wait for confirmation before proceeding.

Phase 3: WRITE -- Add Feature to Roadmap
  1. Add via manage_roadmap add MCP tool if available. If MCP is unavailable, parse the roadmap, add the feature to the specified milestone, and serialize back. Warn: "External sync skipped (MCP unavailable). Run manage_roadmap sync when MCP is restored to push changes to GitHub."
  2. If the milestone is [NEW]: create the milestone section, then add the feature.
  3. Write to docs/roadmap.md.
Phase 4: VALIDATE -- Verify Output
  1. Read back docs/roadmap.md.
  2. Verify the new feature appears in the correct milestone.
  3. Run harness validate.
  4. Confirm to human:

```

Feature added: Feature E -> Current Work

Total features: N

harness validate: passed

```


Command: _(no args)_ -- Show Roadmap Summary

Phase 1: SCAN -- Load Roadmap
  1. Check if docs/roadmap.md exists.
  1. Parse the roadmap (via manage_roadmap show or direct read).
Phase 2: PRESENT -- Display Summary
  1. Display a compact summary of the roadmap:

```

ROADMAP: <project-name>

Last synced: YYYY-MM-DD HH:MM

## <Milestone 1> (N features)

## <Milestone 2> (N features)

Total: N features | N done | N in-progress | N planned | N blocked | N backlog

```

  1. If any features have stale sync timestamps (last_synced older than 24 hours), append a note:

```

Hint: Roadmap may be stale. Run --sync to update statuses from plan execution state.

```

  1. No file writes. This is a read-only operation. No harness validate needed.

Command: `--sync` -- Sync Statuses from Execution State

Phase 1: SCAN -- Load Roadmap and Execution State
  1. Check if docs/roadmap.md exists.
  1. Parse the roadmap (via manage_roadmap show or direct read).
  2. For each feature with linked plans, scan execution state:
Phase 2: PROPOSE -- Present Status Changes
  1. Infer status for each feature:
  1. Check the human-always-wins rule: if last_manual_edit is more recent than last_synced for a feature, preserve the manually set status. Report it as "skipped (manual override)".
  1. Present proposed changes:

```

SYNC RESULTS

Changes detected:

Unchanged:

Skipped (manual override):

Apply these changes? (y/n)

```

  1. Wait for human confirmation before applying.
Phase 3: WRITE -- Apply Changes
  1. Apply via manage_roadmap sync MCP tool if available, or via manage_roadmap update for each changed feature. If MCP is unavailable, parse the roadmap, update statuses, and serialize back. Warn: "External sync skipped (MCP unavailable). Run manage_roadmap sync when MCP is restored to push changes to GitHub."
  2. Update last_synced timestamp in frontmatter.
  3. Write to docs/roadmap.md.
Phase 4: VALIDATE -- Verify Output
  1. Read back docs/roadmap.md.
  2. Verify changes applied correctly via manage_roadmap show if MCP is available.
  3. Run harness validate.
  4. Present summary:

```

Sync complete: docs/roadmap.md

Updated: N features

Skipped: N (manual override)

Unchanged: N

harness validate: passed

```


Command: `--edit` -- Interactive Edit Session

Phase 1: SCAN -- Load Existing Roadmap
  1. Check if docs/roadmap.md exists.
  1. Parse the roadmap (via manage_roadmap show or direct read).
  2. Present current structure:

```

Current roadmap: <project-name>

## <Milestone 1>

1. Feature A (in-progress)

2. Feature B (planned)

## <Milestone 2>

3. Feature C (done)

4. Feature D (backlog)

```

Phase 2: EDIT -- Interactive Modifications

Offer edit actions in a loop until the human is done:

  1. Reorder features within a milestone:
  1. Move a feature between milestones:
  1. Update blockers:
  1. Update status:
  1. Rename a feature:
  1. Remove a feature:
  1. Rename a milestone:
  1. Done:

Present the menu after each action:

Edit actions:
  (1) Reorder features within a milestone
  (2) Move feature to different milestone
  (3) Update blockers
  (4) Update status
  (5) Rename feature
  (6) Remove feature
  (7) Rename milestone
  (D) Done -- save and exit

Choice?
Phase 3: WRITE -- Save Changes
  1. Present a diff summary of all changes made during the edit session:

```

Changes to apply:

Apply? (y/n)

```

  1. Wait for confirmation before writing.
  2. Apply all changes via manage_roadmap update / manage_roadmap remove MCP tool calls, or direct file manipulation if MCP is unavailable. If falling back to direct manipulation, warn: "External sync skipped (MCP unavailable). Run manage_roadmap sync when MCP is restored to push changes to GitHub."
  3. Update last_manual_edit timestamp in frontmatter (since this is a human-driven edit).
  4. Write to docs/roadmap.md.
Phase 4: VALIDATE -- Verify Output
  1. Read back docs/roadmap.md.
  2. Verify changes applied correctly.
  3. Run harness validate.
  4. Present summary:

```

Edit complete: docs/roadmap.md

Changes applied: N

harness validate: passed

```


Command: `--query <filter>` -- Query Features by Filter

Phase 1: SCAN -- Load Roadmap
  1. Check if docs/roadmap.md exists.
  1. Parse the roadmap (via manage_roadmap query or direct read).
Phase 2: FILTER -- Apply Query
  1. Accept filter patterns:
  1. Display matching features with their milestone context:

```

QUERY: <filter>

Results (N matches):

Total: N matches

```

  1. No file writes. This is a read-only operation.

Command: `--groom` -- Tidy the Roadmap

Keeps the roadmap manageable over time. Milestones are themes; statuses are lifecycle stages -- grooming enforces that separation so the backlog never decays back into an undifferentiated dump.

Phase 1: SCAN -- Detect Untidiness
  1. Check if docs/roadmap.md exists. If missing: error and direct the user to --create.
  2. Run manage_roadmap (action: "groom") in a dry-run frame, or call checkRoadmapHealth from @harness-engineering/core, to surface the four health signals:
Phase 2: PROPOSE -- Present the Plan

Show the human exactly what grooming will do, in plain text:

GROOM PLAN

Demote to backlog (planned with no spec/plan):
  - Feature A (Theme X)
  - Feature B (Theme Y)

Archive to docs/roadmap-archive.md (completed):
  - Feature C (Theme X)

Flagged for manual routing (not auto-changed):
  - Intake lane has 3 items awaiting a theme
  - "Theme Z" has 28 features (cap 25) -- consider splitting

Apply? (y/n)

Wait for confirmation. The mechanical changes (demote, archive) are safe and automated; draining the Intake lane into themed milestones and splitting oversized milestones are human decisions -- propose, do not auto-apply.

Phase 3: WRITE -- Apply
  1. Run manage_roadmap (action: "groom"). It demotes unactionable planned rows to backlog and moves done features into docs/roadmap-archive.md under a Shipped milestone, returning the list of changes.
  2. For Intake-draining or milestone-splitting the human approved, follow up with --edit (move features between milestones).
Phase 4: VALIDATE -- Verify
  1. Run harness validate and confirm the roadmapHealth check passed -- checks.roadmapHealth === true in --json, not merely "not false" (no RMH003 errors; RMH001/002/004 warnings cleared or acknowledged). If validate exits 3 or reports the check under "Checks that could not run", the roadmap could not be parsed and NO health rule ran: fix the reported section and re-run. A check that did not run is not a check that passed.
  2. Summarize:

```

Groom complete.

Demoted: N | Archived: N -> docs/roadmap-archive.md | Flagged for manual routing: N

harness validate (roadmapHealth): passed

```


Harness Integration

Success Criteria

  1. --create discovers all specs (docs/changes/*/proposal.md) and plans (docs/changes/*/plans/*.md and legacy docs/plans/*.md)
  2. --create proposes groupings and waits for human confirmation before writing
  3. --create produces a valid docs/roadmap.md that round-trips through parseRoadmap/serializeRoadmap
  4. --add collects all fields interactively (milestone, status, spec, summary, blockers, plan)
  5. --add rejects duplicate feature names with a clear error message
  6. --add errors gracefully when no roadmap exists, directing the user to --create
  7. Default (no args) displays a compact status summary with feature counts by status
  8. Default (no args) suggests --create when no roadmap exists
  9. Default (no args) hints at --sync when roadmap may be stale
  10. --sync scans .harness/state.json and .harness/sessions/*/autopilot-state.json for execution state
  11. --sync respects the human-always-wins rule -- manually edited statuses are preserved
  12. --sync presents proposed changes and waits for human confirmation before applying
  13. --sync errors gracefully when no roadmap exists, directing the user to --create
  14. --edit offers reorder, move, blocker update, status update, rename, and remove actions
  15. --edit presents a diff summary and waits for confirmation before writing
  16. --edit updates last_manual_edit timestamp (since changes are human-driven)
  17. Output matches the roadmap markdown format exactly (frontmatter, H2 milestones, H3 features, 5 fields each)
  18. harness validate passes after all operations
  19. --query filters features by status or milestone and displays results with milestone context
  20. --query errors gracefully when no roadmap exists, directing the user to --create

Rationalizations to Reject

| Rationalization | Reality |

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

| "The feature list looks correct, so I can skip the PROPOSE phase and write the roadmap directly" | The Iron Law: never write docs/roadmap.md without the human confirming the proposed structure first. |

| "This sync detected a status change and the inference is clearly correct, so I can apply it without confirmation" | The sync PROPOSE phase requires presenting proposed changes and waiting for human confirmation. The human-always-wins rule applies. |

| "The existing roadmap is outdated, so I will recreate it with --create to get a fresh start" | No overwriting an existing roadmap without explicit user consent. Silent overwrites destroy prior manual edits and status tracking. |

| "There is no roadmap yet but the user asked me to add a feature, so I will create one as a side effect of --add" | When the roadmap does not exist, --add must error with a clear message directing the user to --create. |

Examples

Example: `--create` -- Bootstrap a Roadmap from Existing Artifacts

Context: A project with 3 specs and 2 plans. Two specs have matching plans (in-progress), one spec has no plan (backlog).

Phase 1: SCAN

SCAN COMPLETE

Project: my-project
Found: 3 specs, 2 plans
Matched: 2 spec-plan pairs
Unmatched specs: 1 (backlog candidates)
Unmatched plans: 0

Phase 2: PROPOSE

Proposed Roadmap Structure:

## Current Work
- Unified Code Review (in-progress) -- spec: docs/changes/unified-code-review/proposal.md
- Update Checker (in-progress) -- spec: docs/changes/update-checker/proposal.md

## Backlog
- Design System (backlog) -- spec: docs/changes/design-system/proposal.md

Options:
  (A) Accept this structure
  (B) Rename milestones or features
  (C) Reorganize -- move features between milestones
  (D) Add milestones

Any additional features not captured in specs? (y/n)

Human selects (A) Accept.

Phase 3: WRITE

Writing docs/roadmap.md...
  2 milestones, 3 features

Phase 4: VALIDATE

Roadmap created: docs/roadmap.md
Milestones: 2 (Current Work, Backlog)
Features: 3
harness validate: passed

Example: `--add` -- Add a Feature to an Existing Roadmap

Context: A roadmap exists with 2 milestones and 3 features. Adding a new feature.

Phase 1: SCAN

Roadmap loaded: docs/roadmap.md
Milestones: 2 (Current Work, Backlog)
Features: 3
No duplicate found for "Notification System"

Phase 2: PROPOSE

Which milestone? [1] Current Work  [2] Backlog  [NEW] Create new
> 1

Status? [backlog] [planned] [in-progress] [blocked]
> planned

Spec? (path or "none")
> docs/changes/notification-system/proposal.md

One-line summary:
> Real-time notification delivery with WebSocket and email channels

Blockers? (or "none")
> none

Plan? (path or "none")
> none

New feature to add:

  Milestone: Current Work
  Name: Notification System
  Status: planned
  Spec: docs/changes/notification-system/proposal.md
  Summary: Real-time notification delivery with WebSocket and email channels
  Blockers: none
  Plan: none

Confirm? (y/n)

Human confirms y.

Phase 3: WRITE

Adding feature to Current Work...

Phase 4: VALIDATE

Feature added: Notification System -> Current Work
Total features: 4
harness validate: passed

Gates

These are hard stops. Violating any gate means the process has broken down.

Escalation

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.