/fw:setupfrom fw
Diagnose and bootstrap repo-local setup. Use for onboarding, workflow readiness, host posture, or missing tool checks.
Ships in fw. 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.
$fw:setup is the environment and workflow bootstrap pass for Flywheel.
After Flywheel is installed, this should usually be the first command run in a new repository.
It is also Flywheel's update and recovery path: if a later stage discovers a missing CLI, service, local config, or proof surface, route back here with the relevant focus instead of improvising setup inside that other stage.
Use it to answer:
.flywheel/config.local.yaml for this repo?This skill is repo-grounded. It should not guess a toolchain from memory when the repository, its instructions, or its scripts can prove the answer.
When the repo has observability or optimization surfaces, setup should also clarify which measurement backends and environments, if any, are available to future Flywheel runs.
Setup should also clarify the host security posture Flywheel should assume:
Follow ../references/host-interaction-contract.md.
Call the exact host question tool named in
../references/host-interaction-contract.md when that tool is available. Do
not ask for raw 1/2/3 replies when the host already offers a choice surface.
When the workflow spans multiple material steps, use the host task-tracking
tool named in ../references/host-interaction-contract.md to create and
maintain a short task list.
Ask one question at a time. When multiple setup postures are viable, present a short predicted choice list with the recommended label first and rely on the host's native freeform final path when it exists.
<setup_focus> #$ARGUMENTS </setup_focus>
Interpret a provided argument as optional emphasis:
project or blank -> full repo setup passsecurity -> host security posture, trusted MCP inventory, and isolation readinessworktrees -> isolate branch and worktree readinessbrowser -> browser-proof and acceptance-test readinessreview -> GitHub CLI, diff, and review-surface readinesscommit -> commit, push, PR, and branch-safety readinessdoctor -> repo-owned health checks, recovery wrappers, and Flywheel-local readinessevals -> local harness and comparison-tool readinessoptimize -> telemetry access, measurement paths, and optimization readinessDo not load support files until needed:
references/setup-ledger-template.md only when the user wants a durable
local setup note under .context/flywheel/.references/config-template.yaml only when the user wants Flywheel's
structured local config bootstrapped under .flywheel/..flywheel/config.local.yaml rather than relying on chat memory.$fw:setup <focus> instead of
teaching every downstream stage to bootstrap itself differently.Build a setup ledger from the current repo:
AGENTS.md when presentCLAUDE.md only when present or still used as compatibility contextpackage.json,
go.mod, pyproject.toml, Cargo.toml, Gemfile, Makefile, justfile,
docker-compose.yml, .github/workflows/*, or repo-local scriptstools/evals/, scripts/, and Flywheel support directories when
they exist.mcp.json, .claude/settings.json, .claude/settings.local.json,
.devcontainer/, devcontainer.json, or similar local host-security config
when present.flywheel/config.local.yaml or
.flywheel/config.local.example.yaml already existscripts/,
tools/, or nearby docsFrom that pass, determine:
Classify setup needs into these buckets:
Typical surfaces to check, but only when repo evidence supports them:
gitghjqnode, npm, pnpm, yarn, or bunpython, pip, uv, or poetryruby, bundlegocargojava, javac, mvn, gradle, or ./gradlewzigdocker / docker composemake or justplaywright-cli, local npx playwright-cli, or repo-native Playwright test surfacespsql, redis-cli, or kcat only when repo evidence suggests those local
debugging surfaces matter$fw:worktreeAlso check workflow-specific readiness:
playwright-cli.worktrees/ ignore coverage and env-file strategytools/evals/ install and doctor commands when presentRun the smallest factual checks that answer the setup question:
command -v for required CLIs--version when the tool exists and version mattersgh auth status only when GitHub workflows are relevantgit check-ignore .worktrees when worktree-local isolation is expectedcommand -v playwright-cli or npx --no-install playwright-cli --version
when browser proof or acceptance checks are likely to matterDo not run installs speculatively. Do not recommend bypass-style autonomy or untrusted MCP additions by default.
If observability surfaces are present, also determine which usable read surfaces exist for future optimization work:
Also determine browser-proof readiness when the repo has a web surface:
playwright-cli is globally availablenpx playwright-cli is available@playwright/cli or another browser-proof
install pathIf browser-proof work is relevant and neither playwright-cli nor the local
npx --no-install playwright-cli path is available, say so plainly:
Browser proof is currently blocked: `playwright-cli` was not found.
Treat that as a concrete setup gap, not a vague recommendation.
When fixes are needed, call the host question tool with a short choice surface:
For each missing item, give:
If the user wants you to make changes, do so conservatively:
.flywheel/config.local.yaml for durable machine-local workflow
settings$fw:worktree for worktree bootstrap rather than ad hoc git commandsWhen Flywheel will be used repeatedly in this repo, offer to bootstrap structured local config:
.flywheel/config.local.example.yaml from references/config-template.yaml
when the repo would benefit from a visible example for future users.flywheel/config.local.yaml from the same template for machine-local
preferences.gitignore coverage for .flywheel/*.local.yaml when missingTypical config values worth persisting:
playwright-cli)headed or headless)When browser-proof work is likely for this repo, offer setup for
playwright-cli in this order:
@playwright/cli, a package
script, or another proven install path, use that firstnpx --no-install playwright-cli --version
works, keep using that pathIf a pinned global fallback is chosen, prefer:
npm install -g @playwright/cli@<pinned-version>
playwright-cli install --skills
If no pinned version is available and the repo has no local path, call the host
question tool with a short choice surface instead of silently defaulting to
@latest.
When the user wants you to fix the browser gap now, $fw:setup browser should
offer to run the chosen install path directly instead of merely documenting it.
When optimization is likely to matter for this repo, ask whether the user wants
to persist a local setup ledger under .context/flywheel/setup-ledger.md.
If yes, use references/setup-ledger-template.md and record:
When security focus is relevant, ask whether the user wants to persist a security posture section in the setup ledger. If yes, record:
Return a setup brief with:
.flywheel/ local config or example readinessplaywright-cli, repo Playwright surfaces, and
likely local URL or dev commandIf browser proof is blocked because playwright-cli is missing, say that
explicitly in both Required now and Browser proof readiness, and include
the next runnable setup command.
If the repo is already ready, say so clearly and name the next usable workflow
surface, such as $fw:plan, $fw:work, $fw:review, or $fw:commit.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub mopeyjellyfish/flywheel --plugin flywheel32 skills in this plugin
/architecture-strategyAssess repo-grounded architecture choices and improvements. Use for boundaries, service splits, dependency direction, or distributed posture./brainstormExplore requirements and approaches. Use for a fuzzy idea, open scope, or one direction that needs sharper behavior before planning./browser-testRun browser acceptance checks with playwright-cli. Use when browser-visible behavior needs fresh proof before review or commit./commitFinish a branch cleanly. Use to verify readiness, make logical commits, push, and create or refresh a PR with evidence./commit-messageDraft Conventional Commit messages. Use when choosing a commit header, body, footer, or breaking-change marker./debugInvestigate hard bugs, regressions, stack traces, or broken behavior with evidence, a repro loop, causal proof, and a fix path.