Skip to content
Back to skills

Flow

ASecurity

Use 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).

  • 20 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 15, 2026
ai-agentsgobashrailsgitdocumentation

Works with

  • cli
  • mcp

Security analysis

A100/100

Pro scans all 19 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add cofin/flow --skill flow --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Flow?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Flow
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cofin-flow/badge)](https://www.skillsdirectory.com/skills/cofin-flow)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: flow
description: "Use 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 Router

<!-- lifecycle-ownership: owner=flow; operations= -->

## Trigger

Use Flow when `.agents/` exists (in the workspace or linked primary Git worktree), spec bundles live under `.agents/bundles/specs/`, or the user requests a Flow action. Pair interactive `/flow:*` skills with the `flow` CLI (`bin/flow.mjs`, or install to `~/.local/bin/flow` via `flow install-cli`) for sync, multi-branch spec discovery, review notes, setup alignment, and catalog linting.

## Workflow

Route the requested operation directly to its owning lifecycle skill:

- `setup` &rarr; [`flow-setup`](../flow-setup/SKILL.md) ([`references/setup.md`](references/setup.md), [`multi-harness-plugins`](../multi-harness-plugins/SKILL.md))
- `prd` | `spec` (alias `plan`) | `revise` (alias `refine`) | `research` (alias `task`) &rarr; [`flow-planning`](../flow-planning/SKILL.md) ([`references/prd.md`](references/prd.md), [`references/spec.md`](references/spec.md), [`references/revise.md`](references/revise.md), [`references/research.md`](references/research.md))
- `implement` | `status` &rarr; [`flow-execution`](../flow-execution/SKILL.md) ([`references/implement.md`](references/implement.md), [`references/status.md`](references/status.md))
- `dispatch` | `delegate` | `coordinate` &rarr; [`flow-dispatch`](../flow-dispatch/SKILL.md) ([`references/orchestration.md`](references/orchestration.md))
- `learn` (aliases `refresh`, `sync`) &rarr; [`flow-learn`](../flow-learn/SKILL.md) ([`references/learn.md`](references/learn.md), [`multi-harness-plugins`](../multi-harness-plugins/SKILL.md))
- `docs` | `pr` &rarr; [`flow-docs`](../flow-docs/SKILL.md) ([`prose-and-documentation.md`](../flow-docs/references/prose-and-documentation.md), [`agent-context.md`](../flow-docs/references/agent-context.md), [`prs-commits-and-changelogs.md`](../flow-docs/references/prs-commits-and-changelogs.md))
- `review` | `simplify` | `finish` | `archive` | `cleanup` | `revert` | `validate` &rarr; [`flow-completion`](../flow-completion/SKILL.md) ([`references/review.md`](references/review.md), [`references/finish.md`](references/finish.md), [`references/archive.md`](references/archive.md), [`references/cleanup.md`](references/cleanup.md), [`references/revert.md`](references/revert.md), [`references/validate.md`](references/validate.md))

The router owns no disk mutations directly; it resolves the target lifecycle skill and reference procedure immediately.

## Example

```bash
flow status --branches
flow sync --dry-run --json
```

## Guardrails

- Load only the selected lifecycle skill and its reference procedure so unrelated prompt budgets stay free.
- Keep root specifications (`specs/<flow_id>/spec.md`), chapter catalogs (`chapters/index.md`), chapter specs (`chapters/<ch_id>/spec.md`), and task worksheets (`tasks/<id>-<slug>.md`) synchronized in place in present tense ([`references/state.md`](references/state.md)). This prevents spec drift from live Git state; validate OKF writes with `/flow:validate`.
- Scale process and models proportionally ([`orchestration.md`](references/orchestration.md), [`skills-subagents-and-mcp-limits.md`](../multi-harness-plugins/references/skills-subagents-and-mcp-limits.md)). Call shipped workflows (`flow-scout`, `flow-spec-planning`, `flow-chapter-pipeline`, `flow-dual-review`) with `type_name="self"` on Google Antigravity so tools stay active.
- Keep planning and spec review on the `strong` model role and warn when `planning_quality: degraded`. Use briefs and let `flow sync` update checklists between steps. Never mark chapters or tasks `deferred` without `deferred_by: "user"`.
- In linked `git worktree` checkouts, reuse the symlinked `.venv` via `uv run --no-sync` to avoid redundant environment builds. Edit worktree `.agents/` when `ignore_policy` is `shared`, and edit the primary checkout's `.agents/` when `local-only`.
- Preserve Git history and tag immutability to protect release provenance. Never push or open remote PRs without explicit user instruction.

## Output

Identify the selected lifecycle skill and reference procedure and execute the requested stage.

## Validation

Confirm one lifecycle owner matches the requested operation and that the active harness loads the corresponding skill and reference document.

## References

- [Archive](references/archive.md) — Capture completed specs into knowledge before removing the spec directory.
- [Cleanup](references/cleanup.md) — Run groundskeeping and debloat across touched files.
- [Discipline](references/discipline.md) — Verify tests against the real module and enforce bug diagnosis rules.
- [Finish](references/finish.md) — Complete release checks, ADR filtering, and one-pass closeout.
- [Implement](references/implement.md) — Execute chapter task worksheets in parallel or sequential steps.
- [Interaction](references/interaction.md) — Format structured decision prompts and multi-choice options.
- [Learn](references/learn.md) — Sync specs with Git, catch up across harnesses, and update knowledge.
- [Orchestration](references/orchestration.md) — Scale workflows, model roles, and bounded parallel workers.
- [PRD](references/prd.md) — Author multi-chapter product requirement documents.
- [Research](references/research.md) — Run source-verified research spikes and promote findings.
- [Revert](references/revert.md) — Revert task, chapter, phase, or flow commits safely.
- [Review](references/review.md) — Plan and run isolated conformance, quality, and simplify reviews.
- [Revise](references/revise.md) — Update specs, chapters, or task worksheets when scope shifts.
- [Setup](references/setup.md) — Initialize or align `.agents/bundles/` and project skills.
- [Spec](references/spec.md) — Draft single-chapter or multi-chapter implementation specs.
- [State](references/state.md) — Reference the canonical YAML frontmatter and task state contract.
- [Status](references/status.md) — Report active specs, ready tasks, and cross-branch visibility.
- [Studio](references/studio.md) — Operate the Flow Studio sidecar panel and local catalog views.
- [Validate](references/validate.md) — Check OKF bundles, manifests, workflows, hooks, and links.
- [Vocabulary](references/vocabulary.md) — Enforce plain wording and avoid retired terms.

Files in this skill

  • SKILL.md4.7 KB
  • references/archive.md4.8 KB
  • references/cleanup.md2.9 KB
  • references/discipline.md11.7 KB
  • references/finish.md6.2 KB
  • references/implement.md18 KB
  • references/interaction.md8.3 KB
  • references/learn.md10.6 KB
  • references/prd.md5.6 KB
  • references/research.md6.8 KB
  • references/revert.md2.7 KB
  • references/review.md10.8 KB
  • references/revise.md3.7 KB
  • references/setup.md15.4 KB
  • references/spec.md12 KB
  • references/state.md9.5 KB
  • references/status.md2.3 KB
  • references/studio.md6 KB
  • references/validate.md6.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.