SkilVaultSign inStart free

Catalogue / flow

flow

Apache-2.0SignedUse 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 wit…
---
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` (`references/setup.md`, `multi-harness-plugins`)
  • prd | spec (alias plan) | revise (alias refine) | research (alias task) &rarr; `flow-planning` (`references/prd.md`, `references/spec.md`, `references/revise.md`, `references/research.md`)
  • implement | status &rarr; `flow-execution` (`references/implement.md`, `references/status.md`)
  • dispatch | delegate | coordinate &rarr; `flow-dispatch` (`references/orchestration.md`)
  • learn (aliases refresh, sync) &rarr; `flow-learn` (`references/learn.md`, `multi-harness-plugins`)
  • docs | pr &rarr; `flow-docs` (`prose-and-documentation.md`, `agent-context.md`, `prs-commits-and-changelogs.md`)
  • review | simplify | finish | archive | cleanup | revert | validate &rarr; `flow-completion` (`references/review.md`, `references/finish.md`, `references/archive.md`, `references/cleanup.md`, `references/revert.md`, `references/validate.md`)

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

Example

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