/flow:initfrom flow
Onboards users to flow after /flow init with a walkthrough of roles, pre-flight, Flow pane, inbox, approvals, checks, and resume/clean commands. Includes a demo and Core settings via MCP tools.
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: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The user ran /flow init. The command already gave you the detected facts (base branch, remote, gh, test and
check command candidates, and what each settings layer holds). Do the part you were told: all (walkthrough,
then demo, then settings), settings, or live (only the real demo). Keep steps short and let the user skip ahead ("skip", "next", "settings"). Do not start managers or workers for anything except the real demo, and only after the user confirms.
Some tools are deferred: load mcp__flow__settings and mcp__flow__demo with ToolSearch first
(select:mcp__flow__settings,mcp__flow__demo).
Give these as a few short messages. After each, ask whether to go on or skip to the demo or settings. Say only what is true in the README ("A day with flow"); do not invent commands.
/flow): who is doing what, and what needs you first. /flow close closes it./flow inbox lists them; /flow ok keeps decisions (or takes a question's
default), /flow no <id> [what instead] undoes one, /flow answer <id> <choice> answers a question,
/flow inbox archive lists what is answered. In the pane press i for the inbox; pressing a row opens a
large card with the full text and every option as a button.merge_mode: confirm the reviewer waits for /flow approve <pr>; /flow reject <pr>
turns a PR down. With push_mode: confirm the reviewer checks a batch and stops; /flow push pushes it./flow checks./flow resume picks up unfinished work after a restart; /flow clean lists leftover
worktrees and branches (--yes removes them)./context all to see what each costs,
then override per project in .claude/settings.local.json (usually git-ignored): "skillOverrides": {"<skill>": "off"}
for personal and claude.ai-synced skills (not plugin skills), "enabledPlugins": {"<name>@<marketplace>": false}
for plugins (claude.ai-synced ones are <name>@synced; claude plugin list shows ids), and
"deniedMcpServers": [{"serverName": "..."}] for MCP servers. /mcp and /skills toggle these per project.
/plugin may write to your user (global) settings, so prefer the local file. Then /reload-plugins or restart.Offer two kinds and say which costs tokens:
mcp__flow__demo {"action":"start"} (the user can also type
/flow init demo; /flow init demo stop or x in the pane ends it). Tell the user it is running, that it
is labelled DEMO, and to say "done" when they have seen it; then end your turn.If the user skips the demo, go on to settings.
mcp__flow__settings {"action":"show"} to refresh the facts. If a layer says INVALID JSON, show the
user the file and error and stop the settings part: flow never overwrites a file it cannot parse. If the repo
is not a git repository, say flow needs one.test_command: what a worker runs to check its package (suggest detected test candidates). Empty: the
tests covering the changed files.full_check_command: what the reviewer runs once per batch before pushing (suggest check or a
lint/typecheck/build candidate). Empty: no full check, and the reviewer says so.deploy_command: what the reviewer runs after pushing. Default none.merge_mode: auto (the reviewer merges approved PRs) or confirm (it waits for /flow approve <pr>).push_mode: auto or confirm (/flow push).release: on or off (a merged batch bumps the version and cuts a changelog section). release_github
and pushing need a remote: if there is none, say so.manager_model, worker_model, max_workers (workers per manager, default 3)..claude/flow.json (committed, shared with the team) or the personal file
(uncommitted, only this clone's user). Personal values override repo values.mcp__flow__settings {"action":"write","layer":"repo"|"personal","values":{...}}. It merges into
the file, keeps other keys, and null removes a key. It refuses unknown keys, wrong kinds, values outside the
allowed choices, and anything that looks like a secret. Never put API keys or tokens in settings: they stay in
env variables or files under ~/.config. Report what it answered. Values apply within seconds, no restart. If the repo file was written, tell the user to commit it.docs/reference.md: size_model and the decision API (its keys live in env, never in settings),
deploy_targets (several deploy targets with gates), guard_tests (tests required for matching files),
standing answers (/flow inbox suggests rules for questions you keep answering the same way; the conservative
rule is on by default, so non-blocking questions take their default, and conservative_default: false turns it off).
Suggest decision_api jev for worker model sizing: it halved under-sized spawns in flow's own history, and it
sends the brief text to the provider (api.typesafe.ai).Finish with the next step: ask for work in this session (for example "Add CSV export to the reports page"), and
/flow to watch it. Running /flow init again shows the current settings and lets them change any.
Say first: this starts a real manager and a real worker, so it uses tokens like any flow task. Nothing is pushed, no PR is opened, nothing is merged, and your base branch is not touched. Confirm before starting.
mcp__flow__demo {"action":"status"}. If a demo agent is running, say so and stop. If an earlier demo left a
worktree or branch, {"action":"cleanup"} first.subagent_type: flow:manager, name: flow-demo,
run_in_background: true. Its prompt (use these lines, adapted only for the file name):
Pre-flight: skip
Size: small - a throwaway one-line file
This is the flow init demo. Start one worker named flow-demo-hello with this brief: add the file
flow-demo.md containing one line, "Hello from the flow demo". The worker first runs
`git switch -c flow/flow-demo-hello` in its own worktree, then commits that one file (a single commit on
top of the base). The worker must NOT push, must NOT open a PR and must NOT call mcp__flow__handover; it
reports the branch and the commit sha. You (the manager) review the diff (it must be exactly that one file),
then report to main. Do NOT call mcp__flow__handover or open or merge a PR: this demo has no reviewer step.
/flow) where flow-demo and flow-demo-hello appear like any agents.
The inbox archive may get a worker-size decision, filed already kept; that is normal.full_check_command once for the batch, cut the release, push (or wait for /flow push),
and deploy.mcp__flow__demo {"action":"cleanup"} removes the demo's worktree and its flow/flow-demo*
branch, and nothing else. It also takes a demo worker's worktree that kept another branch name or a detached
HEAD, but only when it is clean and its one commit adds exactly flow-demo.md; anything else it cannot tie to
the demo is left alone. Run it even if the demo was interrupted. Tell the user the file flow-demo.md never
reaches their main checkout (it stays as it was), so there is nothing to revert.gh is installed and logged in and the repo has a remote, offer an extra opt-in: a real draft PR.
The worker pushes its branch and opens a DRAFT PR titled "flow demo (safe to close)"; show it; then close the
PR and delete the remote branch (gh pr close <n> --delete-branch). Still no merge and no handover. Skip this
unless the user asks for it.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 skills in this plugin
Other plugins' skills for the same job
npx claudepluginhub ying-kai-liao/flow --plugin flow