/flow:flow-setupfrom flow
Initializes or aligns Flow in a repository, migrates legacy .agents/ layouts, and scaffolds OKF v0.2 bundles with project skills. Use when setting up a new project or upgrading an existing Flow structure.
Ships in flow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use for /flow:setup. Follow ../flow/references/setup.md.
.agents/setup-state.json and .agents/bundles/index.md. If .agents/ already exists, offer Align & Sync (Recommended), Full Re-Setup, or Exit..beads/, .agents/specs/, .agents/tracks/, .agents/transactions/, flat knowledge/patterns.md, un-promoted bundles/research/). Ensure subdirectory index.md files and log.md have no YAML frontmatter or standalone --- body rules. Inspect fragmented specs via flow setup audit (or flow status --json) and migrate active work with flow setup apply --migrate-specs after user confirmation.uv, python3, cargo, go, bun, pnpm, npm, make, just, pwsh, powershell) alongside repository manifests. Fan out parallel read-only @researcher workers (type_name="self" with agents/researcher.md on Google Antigravity; model="inherit")..agents/bundles/):
.agents/bundles/index.md (okf_version: "0.2") and frontmatter-free .agents/bundles/log.md, product/index.md, knowledge/index.md, research/index.md, and specs/index.md.<= 40-line <!-- truth: start --> blocks and zero body --- separators. Include product/product.md, product/product-guidelines.md, product/tech-stack.md, and knowledge/workflow.md using verified host commands from ../../templates/agent/workflow.md.knowledge/{architecture,patterns,domains,testing,gotchas,decisions}/ with sources: [{ id, resource, title }], [^id]: footnotes, and verified: [{ by, at }]. Use parallel domain workers when >= 2 domains exist.../multi-harness-plugins/SKILL.md and ../flow-docs/references/agent-context.md..agents/skills/<domain>/SKILL.md <= 200 lines + references/*.md), review skills (.agents/skills/review-<domain>/SKILL.md + references/checklist.md + references/false-positive-suppressions.md), and .agents/skills/index.md. Pair them with project subagents (.agents/agents/<domain>-reviewer.md and .agents/agents/<domain>-specialist.md) using H1 headings, mainAgent: false, subagent: true, model: inherit, and commandExecutionPolicy: sandbox.Stop Hooks, AGENTS.md, & Setup State:
.agents/ is shared (tracked in Git, Recommended) or local-only (stealth mode via .git/info/exclude). In linked git worktree checkouts, edit worktree .agents/ when shared or the primary checkout's .agents/ when local-only, and verify .venv / node_modules symlinks..claude/settings.local.json with backup, Codex writable_roots, .cursor/hooks.json, opencode.json). Update root AGENTS.md (preserving <!-- project-customization: start --> blocks) and write .agents/setup-state.json (workflow_preferences.ignore_policy, workflow_preferences.model_routing: "auto").flow, flow-*, okf, debloat, multi-harness-plugins) into .agents/skills/, so repositories stay on one version without stale duplicates.path/to/file::Symbol) in sources: and [^id] footnotes for every knowledge chapter so claims remain checkable against code.<!-- project-customization: start --> and <!-- truth: start --> blocks during alignment so re-running setup never drops team rules.flow setup audit --json
flow setup apply --migrate-specs --policy shared
Return the initialized or aligned .agents/bundles/ tree, generated .agents/skills/ and .agents/agents/ inventory, verified host commands, and next command (/flow:spec or /flow:prd).
Confirm root index.md declares okf_version: "0.2", all links in index.md and .agents/skills/index.md resolve on disk, every non-reserved .md file has valid OKF frontmatter, and .agents/setup-state.json records setup_status: "complete".
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub cofin/flow --plugin flow11 skills in this plugin
/debloatUse when reviewing or simplifying code, tests, prose, or repository checks through behavior-preserving cuts while keeping typing, performance, and conventions intact. Don't use for adding new features, planning specs (use flow-planning), or running full workflow closeouts (use flow-completion)./flowUse when a repository has .agents, or when routing Flow lifecycle tasks (setup, prd, spec, plan, revise, research, implement, status, dispatch, delegate, coordinate, learn, refresh, sync, docs, pr, review, simplify, finish, archive, cleanup, revert, validate, studio). Don't use for direct coding without specs or standalone plugin authoring (use multi-harness-plugins)./flow-completionUse when running independent code, spec, or subtraction-only simplify reviews, finishing and syncing completed specs, archiving into knowledge bundles, cleaning up, reverting, or validating Flow bundles. Don't use for planning new specs (use flow-planning) or implementing open tasks (use flow-execution).Other plugins' skills for the same job