/flow:installfrom flow
Install or upgrade flow in the current repository (gate, config, PR template, rules), including migrating a flow 1.x repo. Use when the user runs /flow:install or asks to set up flow or "Shipping with AI" in a repo.
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 files live in ../../gate/ and ../../templates/, relative to this skill's directory. Work in a branch and deliver one PR. Never change branch protection, repository settings or production infrastructure: recommend them.
.github/ (workflows, PR template, CODEOWNERS), the test layout, the CI job names, and where migrations, auth, billing, workers and prompts live.One message, with your recommendation:
signers with each approver's SSH public key. A key that needs a touch (Secure Enclave, a YubiKey, the 1Password agent) keeps agents on the same machine from signing.approvers as GitHub logins, plus login#<numeric id> from gh api users/<login>. Only hard when agents have their own GitHub identity, listed in agents.flow.flow-hardened.yml explains the setup).reviewBots), if the repo has one whose approving review should count as the independent verification.../../gate/lib.mjs → .github/flow/lib.mjs and ../../gate/flow.mjs → .github/flow/flow.mjs.../../templates/github/workflows/flow.yml (or flow-hardened.yml) → .github/workflows/flow.yml. Set its workflow_run.workflows to this repo's CI workflow names, so the gate re-runs when CI finishes and CI checks can count as evidence.../../templates/config.json → .flow/config.json, tailored to this repo:
branches: the protected branches;risk paths matching where migrations, auth, billing, workers and prompts actually live; drop rules that can't apply, add repo-specific ones;verify: for each kind (unit, integration, failure_injection, e2e), the test paths and the CI check names that run them. Until a kind names a check, its tests can't prove a critical criterion: the gate can't see that the suite ran;ignore and codeFiles for the languages in use.Flow-Task: line and the ## Evidence section to .github/PULL_REQUEST_TEMPLATE.md, or copy ../../templates/github/PULL_REQUEST_TEMPLATE.md.../../templates/rules.md to CLAUDE.md, and to AGENTS.md if it exists. Replace an older "How agents work here (flow)" section rather than adding a second one..flow/tasks/*/.approved..flow/tasks/ with a .gitkeep..github/flow/* and the workflow, in a PR of their own, with no task-schema changes in the same PR. The old gate judges the PR, and changing the gate is high risk (flow-gate).
medium, signals ["flow-gate"], criteria such as "the gate's tests pass" with ci: evidence.override approval it needs; never ask for less.status.md, decisions.md, .github/flow/check.mjs):
node .github/flow/flow.mjs validate passes once approvers or signers are set.node .github/flow/flow.mjs check --pr <N> --config .flow/config.json shows what the gate will say. Before the merge no gate runs at all: the workflow isn't on the protected branch yet.| Layer | Strength | What |
|---|---|---|
flow check, required | Hard, once settings below are done | Tier from the diff; spec, evidence, eval, dependency and approval checks; fails closed |
| GitHub settings | Hard | Required check pinned to its source, up to date before merge, no admin or ruleset bypass for agents |
| Signed approvals | Hard even with a shared GitHub login | Only a listed SSH key can approve |
| Hooks | Best effort | Hold high-risk code until the spec is approved; refuse self-approval, --admin and protection changes |
| Rules in CLAUDE.md | Advisory | Everything else |
Human steps after merge:
flow a required check, with GitHub Actions (or the App) as its source.workflow scope.node .github/flow/flow.mjs doctor.List the files you created or changed.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
9 skills in this plugin
/buildA step of /flow:start (run it from there; the engineer doesn't call it). Build a flow task inside its approved boundaries - the walking skeleton first, failing tests as the finish line, a round shown at each milestone./challengeA step of /flow:start (run it from there; the engineer doesn't call it). Attack a high-risk design before any code is written - production evidence, a measured run of the risky part, alternatives, capacity and cost, failure modes, assumptions - with an independent reviewer. A light version for medium./learnTurn a recurring correction into a proven improvement to flow's skills or constraint rules - root cause, independently written regression cases, the smallest fix, baseline-vs-candidate proof, then a draft PR. Use for /flow:learn [cluster], or when the engineer asks to learn from a correction. With auto-learn on ("flow auto-learn on"), learn/auto.mjs runs these steps in the background after a correction./orchestrateA step of /flow:start for work that splits into several tasks, once its walking skeleton works. Coordinate several builder sessions on dependent tasks for hours, without coding yourself, and integrate their work into one verified release./shipA step of /flow:start (run it from there; the engineer doesn't call it). Open the PR with evidence, get the flow gate and CI green, merge, deploy through the normal pipeline and verify the result live./startUse for any non-trivial task in a repo that has .flow/config.json (a feature, a bug fix, an integration, a job), for /flow:start <goal>, and to continue a flow task on the branch. The one entry point of flow - it classifies the risk, then runs every step itself (prove the risky part first, the shortest real path, verify, ship) and comes back only at a human checkpoint or when it's done.npx claudepluginhub yassineldeeb/claude-skills --plugin flow