/fff:plan-capturefrom fff
Captures a sealed plan into durable form: commits roadmap rationale to docs/roadmap/<slug>/ in the repo and pushes tasks to a configured issue tracker (GitHub Issues, Linear, Jira, or Markdown). Maintains bidirectional traceability between repo and tracker.
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.
Read when SKILL.md points to them.
This skill does NOT invoke Plan Mode. Issue creation and repo commits happen directly.
Capture a sealed plan into durable form. The plan directory in /tmp/ is transient; what comes out of this skill is permanent.
Two layers, two lifecycles:
| Layer | What it captures | Where it goes | Why |
|---|---|---|---|
| Roadmap layer | roadmap.md, decisions.md, phases/*.md | docs/roadmap/<slug>/ in the repo | Rationale — the "why we built it this way" — outlives task completion. Belongs near docs/specs/. |
| Task layer | tasks/task-N.md | Issue tracker (or docs/tasks/<slug>/ for markdown backend) | Chess moves — the transactional work-to-be-done. Belongs in the tracker. |
The roadmap layer always runs, regardless of which task backend is configured. Roadmap rationale is universal; only task representation varies by tracker.
plan-roadmap has sealed a roadmap, or plan-chat + plan-breakdown have sealed a single-slice plan.roadmap-complete state (contains roadmap.md + phases/).breakdown-complete state (contains plan.md + tasks/)..ffflow/config.yaml — read for capture backend choice.docs/roadmap/<slug>/ committed to the repo: roadmap.md, decisions.md, phases/phase-N.md (each phase placeholder).plan-chat → plan-breakdown → here):
docs/roadmap/ write (no roadmap exists).<plan-dir>/captured.json with the full identifier map (per-task, per-phase, per-roadmap).phases/phase-N.md (both in <plan-dir> and in docs/roadmap/) updated with a ## Captured tasks section after task capture completes (see Artifact contract below).docs/roadmap/<slug>/phases/phase-N.md (or <plan-dir>/plan.md for single-slice plans).The task-layer protocol is the same for all targets. API specifics live in cartridges under cartridges/:
| Config value | Cartridge | Task home |
|---|---|---|
github-issues (default) | cartridges/github-issues.md | GitHub Issues |
linear | cartridges/linear.md | Linear Projects + Issues |
jira | cartridges/jira.md | Jira Epic + Stories |
markdown | cartridges/markdown.md | docs/tasks/<slug>/ in the repo |
Load only the cartridge matching .ffflow/config.yaml capture:. If the configured backend's cartridge is missing or unreadable, refuse and tell the user.
The roadmap layer is not cartridge-specific — it always commits to docs/roadmap/<slug>/ regardless of which task backend is configured.
If capture: is unset, default to github-issues if gh auth status succeeds, otherwise markdown.
Phase placeholder files (phases/phase-N.md) have a two-write lifecycle:
plan-roadmap. Contains scope, success criteria, dependencies, kind, estimated tasks.plan-capture rewrites the file to add a ## Captured tasks section listing the created issues. After this update, the file freezes again.These are the only two writes. The phase placeholder is not generally editable — it's a versioned record of "what we decided this phase was" + "what we captured for it." If the user wants to change the phase's scope after capture, they re-run plan-roadmap (which produces a new phase or updates the existing one, then plan-capture re-syncs).
This contract matters because phases/phase-N.md is committed to the repo at docs/roadmap/<slug>/phases/phase-N.md. Treating it as freely-editable creates merge surprises and breaks the traceability story.
.ffflow/config.yaml. If missing, prompt user to run /init-ffflow.<plan-dir>/metadata.json. Acceptable phases:
roadmap-complete — has roadmap, will do both layers.breakdown-complete — single-slice plan, will do task layer only.roadmap.md, decisions.md, and every phases/phase-N.md.<plan-dir>/tasks/task-*.md (if any are present at this point — sub-roadmap phases may have tasks under phases/phase-N/tasks/).Read cartridges/<capture-value>.md. If missing, stop. Do not silently fall back — the user chose their backend for a reason.
If <plan-dir>/captured.json exists from a previous run:
docs/roadmap/<slug>/ files only if their content has changed. Don't churn commits on no-ops.Before touching the task layer:
docs/roadmap/<slug>/ if it doesn't exist.roadmap.md, decisions.md, and every phases/phase-N.md into it.git add docs/roadmap/<slug>/). Do not commit — the user owns the commit. Print a one-line summary at the end so they know to commit.Why no auto-commit: this skill might be invoked mid-PR for a related change; auto-committing surprises the user with a non-related diff. The repo write happens; the commit decision is theirs.
Walk each phase (for roadmap plans) or the plan as a whole (for single-slice plans), invoke the cartridge for each task:
For each phase that had tasks captured:
phases/phase-N.md in <plan-dir> with a ## Captured tasks section:
## Captured tasks
- #101 — Add password complexity validator
- #102 — Wire password validator into signup adapter
- #103 — Update CLI auth flow
docs/roadmap/<slug>/phases/phase-N.md and re-stage.Roadmap: docs/roadmap/<slug>/phases/phase-N.md. This is the cartridge's job — confirm it's present, fix if missing.For single-slice plans (no roadmap), back-link points at <plan-dir>/plan.md instead, but since <plan-dir> is transient, single-slice plans don't get repo-side back-links. This is the right asymmetry: the rationale isn't durable for one-off slices anyway.
Write <plan-dir>/captured.json:
{
"backend": "github-issues",
"roadmap": "docs/roadmap/<slug>/",
"phases": {
"phase-1": { "tasks": { "task-1": "https://github.com/org/repo/issues/101" } },
"phase-2": { "tasks": { "task-1": "https://github.com/org/repo/issues/102" } }
},
"captured_at": "2026-05-23T00:00:00Z"
}
(For single-slice plans, no roadmap key; phases collapses to a single implicit phase.)
Update metadata.json phase: captured.
Print:
✓ Captured 8 tasks across 4 phases → github-issues
Roadmap layer (staged in repo, not yet committed):
+ docs/roadmap/mvp/roadmap.md
+ docs/roadmap/mvp/decisions.md
+ docs/roadmap/mvp/phases/phase-1.md (+ Captured tasks section)
+ docs/roadmap/mvp/phases/phase-2.md (+ Captured tasks section)
...
Task layer (created in tracker):
Phase 1: #101 #102
Phase 2: #103 #104 #105
...
Next:
git commit docs/roadmap/ # land the durable roadmap record
/work-issue 101 # start phase 1's first chess move
By default, keep the plan directory in /tmp/. Users sometimes refer back during the same session. The durable record is in the repo regardless.
--cleanup deletes <plan-dir> after writing captured.json. Safe because everything important is now in the repo.Every cartridge implements the same contract. The protocol is defined here; each cartridge is just "the protocol, applied to its target system."
<plan-dir>.N.plan.md or the relevant phase placeholder.captured.json if it exists (for resume/update).docs/roadmap/<slug>/phases/phase-N.md) for back-link inclusion.Idempotency check. Read captured.json. For each task:
Create or update the epic-equivalent. For roadmap plans, this is per-phase — each phase gets an epic representing it, holding its tasks. For single-slice plans, one epic for the whole plan. Body shape:
Roadmap: docs/roadmap/<slug>/phases/phase-N.md (for roadmap plans only; omit for single-slice).Create or update each task work item. The work-item title carries the execution ordinal so work-epic can order on it: T<N> — <title> for both roadmap and single-slice plans. (Exact wire format per cartridge.) Body = the task file's contents verbatim, plus a ## Working notes section with:
task/<plan-slug>/task-N-<short-title>).Roadmap: docs/roadmap/<slug>/phases/phase-N.md./work-issue invocation hint.Set dependencies. For each task with depends_on: [task-X], create the appropriate link in the backend's native dependency mechanism.
Patch the epic body with real work-item identifiers (replacing the placeholders from step 2).
Return the map of phase → task-id → issue-id to plan-capture.
T<N> ordinal. After capture, verify each created/updated title matches ^T\d+ — and refuse — reporting the offenders — if any lack it. This is what makes titles ground truth for ordering; a missing prefix silently breaks work-epic.plan-capture which task is broken. The breakdown didn't slice cleanly./work-issue-time or manual./work-issue time.captured.json reflects the 3 that succeeded; resume picks up from there.Each cartridge describes only what's specific to its target: the API calls, the customfield handling, the label convention. The structural protocol is here.
/tmp/, evaporating when the container clears.phases/phase-N.md as freely-editable. Two writes total: roadmap-seal and post-capture. Surprising mid-file edits break the artifact contract.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./characterizeFor an unspec'd codebase, walk it module-by-module to extract an evergreen spec (committed immediately) and produce a plan for characterization-test backfill./ci-gatesGitHub Actions workflow templates for FFFlow projects — runs level-appropriate audits and quality gates as PR checks./component-driven-uiView-layer purity — presentational vs. connected components, the atoms→molecules→organisms→layouts ladder, story-as-vignette doctrine, design tokens, and the decompose→story→test→integrate ordering. The frontend sibling of hexagonal-architecture. L1+ reference rulebook.npx claudepluginhub zerotechdebt/ffflow --plugin fff