/fff:plan-roadmapfrom fff
Produces an ordered, dependency-aware roadmap of independently shippable phases from a vision doc or existing codebase. Each phase becomes a tier-2 planning session.
Ships in fff. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill does NOT invoke Plan Mode. It writes a roadmap artifact to disk and confirms with the user phase-by-phase.
plan-chat is sized for one slice. plan-roadmap is sized for everything above that — a vision, a multi-phase capability, a green-field build-out. It produces an ordered list of phases with dependencies and rationale. Each phase becomes a tier-2 planning session (/plan-chat, /characterize, /audit --plan, or recursively another /plan-roadmap).
You use this when:
project.md or a vision prompt.You don't use this for:
/plan-chat./plan-chat (or /debugging first)./audit --plan.project.md, README.md, VISION.md), free-form description, or "what we want next" prompt.--phase <N> to recurse on a specific phase from an existing roadmap.--vision-doc <path> to point at a specific file when there's ambiguity..ffflow/config.yaml — read for level, stack, capture backend.<plan-dir>/roadmap.md — the roadmap itself: ordered phases with rationale, scope, dependencies, success criteria.<plan-dir>/phases/phase-N.md — one placeholder per phase that becomes the starting point for that phase's tier-2 session.<plan-dir>/decisions.md — phase-level decisions made + open ones marked with ?.<plan-dir>/metadata.json — slug, phase, created date, level, source (vision-doc / prompt / recursion).Plans live in /tmp/ffflow-plans/<project-hash>/<slug>/ per the standard convention.
.ffflow/audit.yaml if present, to know what's already been characterized.Does not seal with any open ? markers in decisions.md. Same discipline as plan-chat: every phase-level decision gets resolved inline before the roadmap is handed off.
.ffflow/config.yaml. If absent, prompt the user to run /init-ffflow first and stop.--vision-doc <path> given, read that file.project.md, VISION.md, ROADMAP.md, then README.md in repo root. If found, ask: "use <path> as the vision?" If user confirms, read it.mvp, oauth-rollout, multi-tenant).<plan-dir>/. If one already exists for this slug, offer to resume rather than overwrite.roadmap.md with the section headings and the status header recorded at the top. The status header is composed from .ffflow/config.yaml:
Level: <L>, Stack: <stack>.Level: <L> (<subproject>: <override>, ...) for any subproject that has a level_override differing from the project-level level. Example: Level: L3 (Rust subproject overridden to L2). Compose from config — don't ask the user to write it manually.metadata.json with phase: roadmap-incomplete.Internal-only. Determine the project's starting state:
project.md + maybe README + nothing else)?.ffflow/audit.yaml auditors.spec.files.Report once to the user: "Greenfield project; vision asks for X, Y, Z. Surveying gave me
Based on greenfield vs. brownfield, draft an initial phase list.
stack-init), initial CLAUDE.md, module skeletons matching the architecture you'll need. No user-facing behavior. Success: just check-all passes against an empty domain.Each phase is one of these kinds (record per-phase in the roadmap):
| Kind | Handed off to | When |
|---|---|---|
design-slice | /plan-chat | Single chess move or small cluster |
characterize | /characterize | Phase needs spec extraction from existing code (brownfield) |
cleanup | /audit --plan | Phase is drift remediation |
roadmap | /plan-roadmap --phase <N> | Phase itself is too large; recurse |
characterize. Per-module within that surface.design-slice each.cleanup or design-slice.Per-phase content:
### Phase 2 — Core domain (the smallest end-to-end slice)
**Kind:** design-slice
**Scope:** the `pricing` bounded context, one happy-path scenario (calculate base price).
**Out of scope:** discount logic (Phase 4), tax (Phase 5), persistence (Phase 3).
**Success:** a user can request a base price for a configured product via the CLI; spec entry in `docs/specs/pricing.md` covers the happy path.
**Depends on:** Phase 1.
**Estimated tasks:** ~4 (one per spec scenario + one for the CLI wiring).
Present the draft phase list. Iterate with the user. Resolve ?-marked decisions inline (same discipline as plan-chat).
For each phase-level decision marker in decisions.md:
Examples of phase-level decisions:
audit-architecture), or staying L0?Don't seal with any open ?.
For each phase, double-check:
Iterate until each phase passes the check.
For each phase, write <plan-dir>/phases/phase-N.md:
# Phase N: <title>
**Kind:** <design-slice | characterize | cleanup | roadmap>
**Status:** not-started
**Roadmap:** <plan-dir>/roadmap.md
<copied from the roadmap entry — scope, out-of-scope, success, dependencies, estimated tasks>
## Handoff
When ready to execute this phase:
/plan-chat # for design-slice
/characterize <target> # for characterize
/audit --plan # for cleanup
/plan-roadmap --phase N # for roadmap (recursive)
The handoff skill will read this file as its starting point.
These files are what tier-2 sessions consume. They keep the roadmap context attached without forcing the user to recite it.
Roadmap is sealed when:
? in decisions.md is resolved.Before writing roadmap-complete to metadata.json, perform a self-check. Don't rely on the user (or the agent) to have manually tracked this:
Scan decisions.md for any line starting with ? (including ? (deferred):). If any found, refuse to seal. Print the unresolved questions verbatim:
Cannot seal: 2 open decisions remain in decisions.md:
? Should auth ship before or after data-import?
? (deferred): Stack choice for the worker subproject
Resolve each (step 3 of this skill) before sealing.
Return to step 3.
Scan each phases/phase-N.md for required fields (Kind:, Scope:, Success:, Depends on:). If any phase is missing a field, refuse to seal and list which.
Confirm with the user one last time: "Ready to seal?" — only after both scans pass.
Only after all three checks pass, update metadata.json:
{
"phase": "roadmap-complete",
"phases_total": 5,
"phases_complete": 0,
"next_phase": 1
}
The self-check makes the discipline stick across sessions. A user re-running mid-flow can't accidentally short-circuit to roadmap-complete.
Print:
✓ Roadmap sealed: <N> phases, slug=<slug>.
Phase 1: <title> (<kind>)
→ /plan-chat (or /characterize, or /audit --plan, or /plan-roadmap --phase 1)
Phase 2: <title> (<kind>) — blocked by Phase 1
...
Roadmap: <plan-dir>/roadmap.md
Next: invoke the handoff skill for Phase 1.
/plan-roadmap --phase <N> opens an existing roadmap, reads phases/phase-N.md, and produces a sub-roadmap for that phase. The sub-roadmap is its own <plan-dir> (slug-suffixed: <parent-slug>-phase-N) but its metadata.json records the parent.
When a recursive sub-roadmap is captured via plan-capture, its artifacts land under docs/roadmap/<parent-slug>/phases/phase-N/sub-roadmap/ in the repo — nested directory under the parent's phase placeholder. Bidirectional traceability preserved.
Use recursion only when a phase is genuinely too large for a single /plan-chat — usually meaning plan-chat would produce > 8 tasks.
Two-level ceiling (soft refuse). Recursing past two levels deep — i.e., a sub-roadmap that itself contains a phase that wants to be a sub-roadmap — is refused by default. The error names the structural problem:
Refusing third-level recursion.
You're recursing into <slug>/phase-3/sub-roadmap/phase-2, which would produce
a third-level sub-roadmap at docs/roadmap/<parent>/phases/phase-3/sub-roadmap/phases/phase-2/sub-roadmap/.
This usually signals the top-level roadmap was too ambitious. Options:
1. Re-scope the top-level — split into two top-level roadmaps.
2. Flatten — turn the third-level work into peer phases of the second-level roadmap.
3. Use --force if you genuinely want to proceed anyway.
--force overrides. The escape hatch exists; the default discourages.
phases/phase-N.md has a two-write lifecycle:
plan-capture, which appends a ## Captured tasks section listing the created issues.These are the only two writes. The phase placeholder is not freely editable. If a user wants to change a phase's scope after capture, they re-run /plan-roadmap (which produces an updated phase entry) and then re-run /plan-capture to re-sync.
This contract matters because the file is committed to docs/roadmap/<slug>/phases/phase-N.md in the repo. Treating it as freely-editable creates merge surprises and breaks traceability.
Re-running /plan-roadmap against an existing slug:
metadata.json.roadmap-complete: ask "this roadmap is sealed; do you want to (a) view status, (b) extend with new phases, (c) start a new roadmap?"roadmap-incomplete: read roadmap.md and decisions.md; pick up at the latest unresolved decision or unfinished phase block.plan-status (which scans /tmp/ffflow-plans/<project-hash>/*/) shows roadmap progress alongside in-flight plans:
<plan-dir>/mvp/
Phase: roadmap-complete
Roadmap: 5 phases (1 complete, 1 in-progress, 3 pending)
Next: /plan-chat (Phase 2 handoff)
When a phase's handoff plan reaches phase: captured, the roadmap entry for that phase advances to complete. When all phases complete, the roadmap moves to roadmap-shipped and can be archived.
cd ~/new-project && git init
# project.md exists
/adopt-ffflow
# → init-ffflow writes config; stack-init scaffolds. Hands off to /plan-roadmap.
/plan-roadmap
# "Use project.md as vision? (y/n)" → y
# Reads project.md, surveys empty repo, proposes:
# Phase 1 — Foundation (kind: design-slice; mostly verifying stack-init output)
# Phase 2 — Core domain: <smallest slice from the vision> (kind: design-slice)
# Phase 3 — <second capability> (depends on 2)
# Phase 4 — <third capability> (depends on 2)
# Phase 5 — <UI layer> (depends on 2, 3, 4)
# Walks decisions: "Are 3 and 4 actually independent, or does 4 need 3?"
# User answers; rejected alternatives recorded.
# Seals.
/plan-chat
# Phase 1 handoff. Reads <plan-dir>/phases/phase-1.md.
# Designs the foundation slice. Seals.
/plan-breakdown → /plan-capture → /work-issue <first issue>
cd ~/existing-app
# .ffflow/config.yaml exists from earlier adoption
/plan-roadmap
# "What's the vision?" → "Add OAuth login alongside existing password auth.
# Eventually deprecate passwords."
# Surveys: scans .ffflow/audit.yaml — auth surface is unspec'd.
# Proposes:
# Phase 1 — Characterize auth surface (kind: characterize, target: src/auth/)
# Phase 2 — Refactor session storage (kind: design-slice, depends on 1)
# Phase 3 — Add OAuth provider integration (kind: design-slice, depends on 2)
# Phase 4 — Add OAuth flow to UI (kind: design-slice, depends on 3)
# Phase 5 — Deprecate password auth (kind: design-slice, depends on 4; flag for stakeholder review)
# Seals.
/characterize src/auth/
# Phase 1 handoff. Extracts specs, queues backfill tasks.
adopt-ffflow ends at "next: /plan-chat" but the user doesn't know what to ask /plan-chat to do.Success: line that names a verifiable outcome.plan-chat time was a sub-roadmap in disguise.roadmap.md — don't keep executing against a stale plan. The roadmap is a versioned artifact, not a contract.plan-chat's job. Roadmap operates one level up.roadmap.md, confirmed by user.Kind:, Scope:, Out of scope:, Success:, Depends on:, Estimated tasks:.decisions.md has zero open ? markers (including deferred).<plan-dir>/phases/phase-N.md.metadata.json shows roadmap-complete.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
38 skills in this plugin
/adopt-ffflowEnd-to-end onboarding for a new FFFlow project. Runs init-ffflow, stack-init, then hands off to plan-roadmap to phase out the work (greenfield or brownfield — roadmap figures out the right per-phase entry point). Use `--ui` to adopt FFFlow's view-layer-purity structure (the frontend sibling of hexagonal) on an already-adopted project./auditRun the FFFlow keep-honest auditors against this project. Coordinator with per-type cartridges (CLAUDE.md freshness, spec drift, characterization tests, architecture conformance, complexity/refactor signals, and L3 RID traceability). Use --type to target one; --plan to convert findings into work./autopilotMeta-skill that wraps any interactive skill for unattended execution. Reads project context to stand in for the user on routine decisions, with a decision log.npx claudepluginhub zerotechdebt/ffflow --plugin fff