/fff:stack-initfrom fff
Bootstraps a full project stack: installs dependencies, writes configs, sets up justfile, git hooks, and CI. Idempotent and safe for existing projects.
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.
Install the toolchain a project needs to operate at its declared level. Two modes:
Absorbs the former justfile-init skill — justfile bootstrapping happens here as part of the install.
.ffflow/config.yaml — read for level, stack. If absent, run init-ffflow first.--stack <name> to override the configured stack.--check — dry-run, report-only. Compute the plan and print it without writing anything. Useful for "what would change?" preview.--yes — skip per-item confirmation. The skill still computes and reports the plan; it just applies without asking. Useful for refresh re-runs after the user has already vetted the diff.--check and --yes are mutually exclusive. If both are passed, --check wins (read-only is safer than write-without-asking).
pyproject.toml, tsconfig.json, etc.).justfile with level-appropriate recipes (justfile baseline + level patterns)..git/hooks/pre-commit and pre-push (via git-hooks skill)..github/workflows/ffflow-ci.yml (via ci-gates skill)..ffflow/config.yaml if anything was inferred.stack skill (specifically the cartridge matching .ffflow/config.yaml stack:).justfile skill (baseline + tier-appropriate cartridges).git-hooks and ci-gates for hooks and CI workflow.Hard rule: re-running must be safe.
ffflow-ci.yml exists; merge with other workflows fine..ffflow/config.yaml. If absent, halt with Run /init-ffflow first.justfile.git/hooks/.github/workflows/Build a list of actions, each marked create | update | skip:
- create pyproject.toml (stack config, level-aware baseline)
- update justfile (add Tier 1 patterns: complexity, loc, duplicates)
- create .git/hooks/pre-commit
- skip .github/workflows/ci.yml (existing custom workflow)
- create specs/ directory
Present the plan. Ask for confirmation or per-item override:
Proposed changes:
[+] pyproject.toml (new)
[~] justfile (add 4 recipes from Tier 1 cartridge)
[+] .git/hooks/pre-commit (new)
[-] .github/workflows/ci (existing custom workflow — skip)
[+] specs/ (new)
Apply (a), edit per-item (e), abort (x)?
Apply in this order:
uv pip install -e ".[dev]" or pnpm install).
At L3, also verify npx is on PATH (npx --version). specdrive — the RID-traceability CLI — is a language-agnostic tool distributed on npm and run via npx specdrive, regardless of the project's stack. It audits the Gherkin specs + JUnit XML, not the source, so a Python/Java/Rust project needs Node/npm available only to run specdrive. If npx is missing, surface:
L3 needs specdrive for the RID-traceability gate. specdrive is a
language-agnostic CLI run via `npx specdrive` — it audits your .feature
specs, not your <stack> source — so it needs Node.js/npm on PATH.
Install Node (e.g. via your package manager or nvm), then re-run.
This is the only Node dependency L3 adds to a non-JS project.
Do not treat this as a reason to drop the project below L3 — install Node instead. (For TypeScript projects npx/pnpm is already present.)
justfile skill — baseline + tier cartridges).git-hooks).ci-gates).After each step, run a smoke verification — for stack config, run <tool> --version; for justfile, run just --list; for hooks, run pre-commit --version or stat the file.
The dependency-install step is the most common failure point — pnpm install, uv pip install, cargo install, mvn install all reach the network. When this step fails:
ENOTFOUND, ECONNREFUSED, Could not resolve host, Failed to fetch, DNS errors, TLS errors, proxy mentioned).Dependency install failed at the network step.
If you're in a container, corporate network, or behind a proxy, check:
- HTTPS_PROXY / HTTP_PROXY / ALL_PROXY (and their lowercase forms)
- NO_PROXY allowlists
- Registry-specific config (npm: ~/.npmrc; pip: ~/.config/pip/pip.conf; cargo: ~/.cargo/config.toml)
A common trap: a proxy env var set in a parent shell that points at an
unreachable host (`*.internal`, `localhost:N`, container-only addresses).
Try `env | grep -i proxy` to see what's set, then unset what's wrong.
If you're not behind a proxy, this is probably an actual network issue.
The underlying error follows:
Then show the tool's actual output. The hint short-circuits 30 minutes of debugging for users who don't know to check env vars.
When this run created a directory that meets the claude-md cartridge's significance criteria — a spec directory, a .storybook/, a new source-layout skeleton, .ffflow/ itself — seed a short CLAUDE.md in it. Two or three lines is the target: what lives here, and the rule that governs it.
This is invariant §2.10 applied at the moment of creation. A directory scaffolded without its CLAUDE.md becomes an audit finding on the very next /fff:audit --type claude-md run; writing it now costs nothing and closes the loop.
Don't seed for directories that already have one, and don't seed for directories this run didn't create — retrofitting existing coverage gaps belongs to /fff:audit --type claude-md --fix, not here.
Run just check-all. Report results. If it fails, surface the failure clearly — don't claim success.
✓ stack-init complete (level=L1, stack=python)
pyproject.toml written
justfile updated (added: complexity, loc, duplicates, slowtests)
pre-commit hook installed
pre-push hook installed
.github/workflows/ffflow-ci.yml written
specs/ created (+ CLAUDE.md)
.ffflow/CLAUDE.md seeded
Verification: just check-all → PASS
Next:
/plan-chat # start designing a change
/characterize # (brownfield) extract specs from existing code
When level is being raised (e.g., L1 → L2), invoke stack-init again:
.ffflow/config.yaml.Replaces the former /justfile-init upgrade <pattern> flow:
/stack-init # apply current level fully
/stack-init upgrade <pattern> # add one specific pattern without full upgrade
<pattern> is one of the justfile tier cartridges: quality (Tier 1), security (Tier 2), advanced (Tier 3), polyglot (Tier 4). Each loads its cartridge from the justfile skill.
dev-install-style verification..ffflow/config.yaml as a license to assume defaults. Tell the user to init-ffflow first./fff:audit --type claude-md --fix.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
project-bootstrap, stack-setup, justfile, git-hooks, ci-setup
npx claudepluginhub zerotechdebt/ffflow --plugin fff38 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.