/fff:adopt-ffflowfrom fff
Onboards a new or existing project onto FFFlow by composing init-ffflow, stack-init, and plan-roadmap. Detects greenfield vs brownfield state and supports resume after interruption.
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.
A single entry point for "I want this project on FFFlow." Coordinates the bootstrap sequence and hands off to phase-level planning.
This skill delegates. It doesn't reimplement any step — it composes init-ffflow, stack-init, and plan-roadmap. The roadmap takes it from there (and figures out per-phase whether to invoke characterize, plan-chat, or audit --plan).
Not for a project already on FFFlow that needs to catch up with a newer plugin version — that's /fff:upgrade-ffflow. Adoption onboards; upgrade reconciles.
--greenfield or --brownfield to skip the detection prompt.--vision-doc <path> to pre-select the vision file the roadmap will read.--ui (with optional --lane react|web-components) to adopt the view-layer-purity structure on a project that's already on FFFlow. This is the "make our UI follow the ffflow structure, as a sibling to our hex discipline" verb — see "UI adoption mode" below..ffflow/config.yaml, stack scaffolding, hooks, CI, and a sealed roadmap in <plan-dir>/.Heuristics for greenfield vs. brownfield (asked, never assumed silently):
README.md / project.md / VISION.md → greenfield.Show the user the heuristic result and confirm before proceeding.
The greenfield/brownfield split only affects the bootstrap steps. The roadmap handles both cases internally — it just produces different phase shapes (greenfield starts with foundation; brownfield often starts with characterize phases).
Adoption is multi-step and frequently interrupted (a day, a week, a sprint). On invocation, the skill detects partial state before doing anything:
| Detected state | Adoption is at |
|---|---|
No .ffflow/config.yaml | step 0 — run /init-ffflow |
.ffflow/config.yaml exists; no stack scaffolding (no justfile or recently-installed CI) | step 1 — run /stack-init |
Stack scaffolding present; no roadmap in <plan-dir>/ | step 2 — run /plan-roadmap |
Roadmap exists with phase: roadmap-incomplete | step 2 — resume /plan-roadmap |
Roadmap sealed (roadmap-complete); no first-phase handoff yet | step 3 — invoke the first phase's tier-2 entry point (which the roadmap names) |
| Roadmap sealed; at least one phase complete | adoption complete; user is in the steady-state cadence |
The skill prints a briefing like:
Adoption resume — your project is at step 2 of 3.
Last step: stack-init complete (justfile + hooks + CI installed).
Next: /plan-roadmap to phase out the work.
Continue from here? (y/n)
Each sub-skill is already resumable on its own; this skill just surfaces the right one to invoke and offers continuity.
Greenfield and brownfield share the same flow at this level — the divergence is inside plan-roadmap, not here.
/init-ffflow — write .ffflow/config.yaml, prompt for level/stack/capture.
1a. Cartridge-availability check. Before running /stack-init, verify cartridges exist for the configured stack(s):
skills/stack/cartridges/<stack>.md exists. If missing, refuse to proceed with a clear list of available cartridges.polyglot.subprojects[].stack and verify each. For any missing, prompt: abort, downgrade subproject to a supported stack, or proceed with custom (in which case stack-init will install only the baseline justfile/hooks/CI for that subproject; the user fills in the language-specific bits).level is at or below each cartridge's declared max_level. If the user requested L3 but the cartridge tops out at L2, surface the same gap-handling prompt from init-ffflow §2a (drop level, use polyglot, or proceed with silent skip)./stack-init — install stack deps + justfile + git hooks + CI workflow (idempotent; non-destructive on existing projects)./plan-roadmap — read the vision (project.md / README / prompt) or survey the existing codebase, produce an ordered phase list. The roadmap will:
characterize the touched surface, then build phases on the characterized base.<plan-dir>/phases/phase-1.md says the work is.--ui)For a project already on FFFlow that wants to adopt view-layer purity (§2.9) — the frontend sibling of the hexagonal discipline the project already runs. This is the one-invocation path behind "FFFlow is opinionated about UI; apply that structure here as a sibling to our hex religion." Also triggered by that intent in natural language, not just the flag.
This mode delegates just like the main flow — it composes existing skills, reimplements nothing:
.ffflow/config.yaml exists (project is already adopted). If not, tell the user to run plain /adopt-ffflow first — UI purity sits on top of an adopted project, it doesn't bootstrap one.typescript-ui. If stack: typescript, propose the switch to stack: typescript-ui and write the lane to .ffflow/stack.yaml (ui_baseline: react | web-components) — detected from package.json signals (React vs. Lit/Web Awesome), asked if ambiguous. If already typescript-ui, skip. Delegates to /init-ffflow (re-run, single-field diff). Non-TypeScript stacks: explain UI purity ships as the typescript-ui cartridge today and stop./stack-init. Idempotent and non-destructive — adds Storybook, browser-mode component tests, style-dictionary tokens, the justfile recipes, and the sample Button triple without touching existing components./audit --type ui --plan. This is the heart of adoption: it inventories the current components against the philosophy — story-less components, presentational components reaching into store/api, raw hex/px bypassing tokens, app imports of unproven components — and converts the findings into a plan (plan-breakdown → plan-capture → work-issue). The plan is the migration backlog: each task storifies + tests one component to the standard.hexagonal-architecture on the backend (domain ← app ← infra) and component-driven-ui on the frontend (components ← containers ← app). Same dependency rule, same dial, same audit machinery. Point at component-driven-ui as the rulebook to read.The result: the project is set up so new UI work self-enforces the ordering (via work-issue/tdd-loop/self-review, all already stack-aware), and existing UI has a concrete, prioritized plan to reach the standard — exactly parallel to how characterize backfills a spec safety net for legacy backend code.
project.md✓ FFFlow installed at level L1, stack python.
✓ Stack scaffolding written (pyproject.toml, justfile, hooks, CI).
✓ Roadmap sealed: 5 phases (slug=mvp).
Phase 1 — Foundation (verify scaffolding) → /plan-chat
Phase 2 — Core pricing domain → /plan-chat (depends on 1)
Phase 3 — Discount logic → /plan-chat (depends on 2)
...
Next: /plan-chat (reads <plan-dir>/mvp/phases/phase-1.md)
✓ FFFlow installed at level L1, stack typescript.
✓ Stack scaffolding present (already had pnpm + vitest; added missing hooks).
✓ Roadmap sealed: 5 phases (slug=oauth-rollout).
Phase 1 — Characterize auth surface (src/auth/) → /characterize src/auth/
Phase 2 — Refactor session storage → /plan-chat (depends on 1)
Phase 3 — Add OAuth provider integration → /plan-chat (depends on 2)
Phase 4 — Add OAuth flow to UI → /plan-chat (depends on 3)
Phase 5 — Deprecate password auth → /plan-chat (depends on 4)
Note: Phase 1 is non-trivial — src/auth/ has 6 modules and ~30% test coverage.
Expect ~2 weeks before reaching Phase 2 at typical cadence.
Next: /characterize src/auth/ (reads <plan-dir>/oauth-rollout/phases/phase-1.md)
Don't sugar-coat. The user needs to know the scale.
--ui), existing React app already on FFFlow✓ Stack promoted: typescript → typescript-ui (lane: react).
✓ Wrote .ffflow/stack.yaml (ui_baseline: react).
✓ Scaffolding added (Storybook, browser-mode vitest, style-dictionary tokens,
justfile: storybook/test-stories/tokens, sample Button triple). Existing
components untouched.
✓ /audit --type ui --plan → 23 findings, planned as slug=ui-purity:
· 14 components with no story
· 5 presentational components importing from src/store or src/api
· 3 raw-color literals bypassing tokens
· 1 app import of an untested component
View-layer purity is now a sibling to your hexagonal discipline:
backend: domain ← application ← infrastructure (hexagonal-architecture)
frontend: components ← containers ← app (component-driven-ui)
Same dependency rule, same L0–L3 dial, same audit machinery.
Current level L1 → UI gate is ADVISORY. Raise to L2 to make /audit --type ui
blocking and enforce "no app import of an unproven component" in work-issue.
Next: /plan-breakdown (reads the ui-purity plan) — then work the component
backlog like any other chess moves. Read component-driven-ui first.
The skill asks the user only when:
/init-ffflow (level / stack / capture)./stack-init (per-item plan confirmation, unless --yes)./plan-roadmap (vision input, phase shape, decision resolutions).Everything else is hands-off. If the user invokes via /autopilot adopt-ffflow, the autopilot stands in for the routine answers based on project signals — but flags the high-stakes decisions (level choice, capture backend, phase ordering) for explicit user confirmation.
autopilot)..ffflow/config.yaml present and valid.just check-all passes (or, if failing, the failure is surfaced to the user explicitly).<plan-dir>/<slug>/metadata.json shows roadmap-complete).<plan-dir>/<slug>/phases/phase-N.md for each phase)./plan-roadmap before /stack-init. Roadmap needs to know the stack to propose phases sensibly.characterize — let the roadmap decide that./plan-roadmap and going straight to /plan-chat. Single-slice work doesn't need a roadmap, but adoption-time work always benefits from phase-level orientation.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub zerotechdebt/ffflow --plugin fff38 skills in this plugin
/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./contract-enforcementMocks must be anchored to verifiable contracts — typed mocks against ports, adapter tests on the same interface, OpenAPI schema generation, consumer-driven contracts. L2+ reference rulebook.