flow
Skill2 starsChanged 5 months agoMITView on GitHub
Run a user-defined Forge workflow from `.forge/workflows/*.yaml` — a declarative
33 other projects use a version of this.
Adopted by
Most recently taken up by
- phuthuycoding/kanban-flowtheir own version, first seen Nov 8, 2026
- baodhg/FLOWtheir own version, first seen Nov 8, 2026
- jocarrd/crux-agentstheir own version, first seen Nov 8, 2026
- cofin/flowtheir own version, first seen Nov 7, 2026
- retospect/precis-mcptheir own version, first seen Nov 6, 2026
- luckys/agent-skillstheir own version, first seen Nov 1, 2026
Used with
Projects with it also use grill, implement and 5 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
renatorozasSkillgrill
Adversarial code review. Don't let me ship until the changes pass your scrutiny.
Also in 3 projects that use this
Hugging FaceSkillimplement
Make tests pass. Invoke after /write-tests produces failing tests.
Also in 5 projects that use this
SentrySkillreview
Fixture review skill.
Also in 6 projects that use this
AnthropicSkillstatus
Case status summary by audience — client-facing (plain language), internal (for the professor), or court-ready (formal caption format per local rules). Same facts, different framing and depth. Use when a student needs to update the client, brief the professor, or prepare a court status report.
Also in 3 projects that use this
BlockSkillplan
Draft a TDD, PRD, or lightweight plan in the conversation without committing it.
Also in 3 projects that use this
AWSSkillship
Finalize dev work on an issue branch — update docs, push, and open a PR.
Also in 3 projects that use this
Other versions33 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 33
- react/react★ 252ksame name
- facebook/react★ 252ksame name
- software-mansion/react-native-audio-api★ 856same name
- simota/agent-skills★ 96same name
- panayiotism/claude-harness★ 79same name
- rainday/smart-blog-skills★ 35same name
- cofin/flow★ 19same name
- basezh/agent-skills-on-base★ 15same name
- retospect/precis-mcp★ 11same name
- foryouself83/harness-tier★ 10same name
23 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository46 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- forge-opencode/CLAUDE.mdCLAUDE.md
- forge-adoptSkill
- forge-arch-proSkill
- forge-archSkill
- forge-autopilotSkill
- forge-autopilot-stopSkill
- forge-build-proSkill
- forge-buildSkill
- forge-deploySkill
- forge-doctorSkill
- dreamer-runSkill
- forge-evalSkill
- forge-feedbackSkill
- forge-force-advanceSkill
- graduateSkill
- health-checkSkill
- forge-initSkill
- forge-monitorSkill
- forge-orchestrateSkill
- forge-plan-proSkill
- forge-planSkill
- preflightSkill
- forge-product-proSkill
- forge-productSkill
- forge-releaseSkill
- forge-resolveSkill
- forge-resumeSkill
- forge-retroSkill
- forge-reviewSkill
- forge-rulesSkill
- forge-set-profileSkill
- skill-creatorSkill
- forge-spec-proSkill
- forge-specSkill
- forge-sprint-proSkill
- forge-sprintSkill
- forge-srs-proSkill
- forge-srsSkill
- forge-statusSkill
- forge-trace-matrixSkill
- forge-uninstallSkill
- forge-validateSkill
- watchSkill
- watch-stopSkill
- forge-whySkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 4 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 26 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 52
If flows_enabled is false, this skill is a clean no-op: do not load, plan, or run anything.
- Very specific: line 63
Gate: Run the toggle check above.
- Distinctive: line 122
Always relay the pre-flight estimate before running, so the user sees the cost and which nodes will drop *before* any spend — never run a …
- Very specific: line 125
Run: When the user picked a flow and wants it executed, run it through the engine.
- Distinctive: line 158
nothing is written to the project unapproved: Only after the user approves do you apply any file changes (the Executor step).
- Very specific: line 164
If claude is not on PATH or FORGE_NO_BACKGROUND=1 is set, node dispatch cannot run.
- Distinctive: line 171
After running, these should hold:
- Distinctive: line 177
No project files are written without the user approving the proposed output.
- Very specific: line 187
Run one with /forge:flow research-brief, or /forge:flow research-brief --plan to preview the wave plan first."
“Common” is measured: kept by at least 6 in 10 of the 26 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
forge-flow — user-defined workflow DAGs
/forge:flow runs a workflow the user authored in .forge/workflows/<name>.yaml: a
declarative DAG where each node carries its own prompt (or a {{upstream_id}}-interpolating
template), depends_on edges, and optional schema/model. The loader
(scripts/workflow_loader.py) parses the file into a WorkflowSpec; the engine
(scripts/_workflow.py → run_workflow) schedules nodes in dependency waves and fans each
wave out in bounded parallel. It is the user-facing front end to the same deterministic,
never-raises engine /forge:review is built on.
A Python script cannot drive Claude's in-session Agent tool (ADR-006), so node dispatch goes
through the single _background_agent.dispatch wrapper — which is cost-gated through
_cost_cap on every node.
When to Use
/forge:flow(lists available workflows) or/forge:flow <name>(runs one).- The user wants to run a
.forge/workflows/*.yamlthey wrote. - The user asks to see a flow's plan before running it (
/forge:flow <name> --plan).
When NOT to Use
- A single ad-hoc prompt → just ask Claude directly; a flow is for a repeatable multi-step DAG.
- The 12-stage pipeline → that's
/forge:build,/forge:autopilot, etc., not a user flow.
Pre-flight: the toggle gate (no-op when off)
User-defined flows are opt-in and off by default (REQ-NF-025). Read the toggle first:
python3 - <<'PY'
import sys; from pathlib import Path
sys.path.insert(0, "${CLAUDE_PLUGIN_ROOT}/scripts")
import _workflow_config as c
cfg = c.load_orchestration_config(Path(".forge"))
print("flows_enabled", cfg.flows_enabled)
PYIf flows_enabled is false, this skill is a clean no-op: do not load, plan, or run
anything. Tell the user it is disabled and how to turn it on, then stop:
User-defined flows are off. Enable them by adding to
.forge/config.yaml:orchestration: flows_enabled: true
Steps
- Gate. Run the toggle check above. If
flows_enabledis false → no-op (stop, as above). List. Enumerate available flows and, for a chosen one, load + validate it and print its wave plan:
python3 - "$ARGUMENTS" <<'PY' import sys; from pathlib import Path sys.path.insert(0, "${CLAUDE_PLUGIN_ROOT}/scripts") import workflow_loader as wl, _workflow as wf wf_dir = Path(".forge/workflows") arg = (sys.argv[1] or "").strip().split() name = arg[0] if arg else "" files = wl.list_workflows(wf_dir) if not name: print("Available workflows:") for p in files: r = wl.load_workflow_file(p) tag = r.name or p.stem desc = (r.description or "").splitlines()[0] if r.description else "" print(f" - {p.stem}: {tag} — {desc}" if desc else f" - {p.stem}: {tag}") if not files: print(" (none — add a file to .forge/workflows/<name>.yaml)") sys.exit(0) path = wf_dir / f"{name}.yaml" if not path.exists(): path = wf_dir / f"{name}.yml" res = wl.load_workflow_file(path) if not res.ok: print("Could not load workflow:") for e in res.errors: print(f" - {e}") sys.exit(0) print(f"Workflow: {res.name or name}") if res.description: print(res.description.splitlines()[0]) for i, wave in enumerate(wf.plan_waves(res.spec), 1): print(f" wave {i}: {', '.join(wave)}") # Cost pre-flight (REQ-WF-013): a PURE estimate over the same deterministic admission set # the run will use — zero dispatch — surfaced BEFORE running. Shows the floor-based spend # estimate, the remaining daily cap headroom, and which nodes run vs drop under the cap. import _workflow_config as c cfg = c.load_orchestration_config(Path(".forge")) est = wl.flow_estimate(res.spec, Path(".forge"), cfg) print(f" pre-flight estimate: ${est.estimate_usd:.4f} " f"({len(est.admitted)} node(s) × ${est.floor_usd:.4f} fresh floor)") if est.daily_headroom_usd is not None: fit = "fits" if est.within_headroom else "EXCEEDS" print(f" daily cap headroom: ${est.daily_headroom_usd:.4f} — estimate {fit}") if est.dropped: print(f" would DROP under the cap: {', '.join(d['id'] for d in est.dropped)}") PYWith no name, this lists flows and stops. With a name, it prints the wave plan and the cost pre-flight estimate (spend estimate, cap headroom, and any nodes that would drop under the cap — all computed without dispatching). If the user passed
--plan(or background is unavailable — see below), stop here: this is the deterministic dry-run plan; relay it and do not dispatch.Always relay the pre-flight estimate before running, so the user sees the cost and which nodes will drop before any spend — never run a multi-node flow blind into the cap.
Run. When the user picked a flow and wants it executed, run it through the engine. The engine reads
orchestration.max_parallel/max_total/max_budget_usdand is cost-gated per node; a per-node dispatch over the cap is skipped and reported (never silently truncated):python3 - "$ARGUMENTS" <<'PY' import sys, json; from pathlib import Path sys.path.insert(0, "${CLAUDE_PLUGIN_ROOT}/scripts") import workflow_loader as wl, _workflow as wf, _workflow_config as c cfg = c.load_orchestration_config(Path(".forge")) name = ((sys.argv[1] or "").strip().split() or [""])[0] path = Path(".forge/workflows") / f"{name}.yaml" if not path.exists(): path = Path(".forge/workflows") / f"{name}.yml" res = wl.load_workflow_file(path) if not res.ok: print(json.dumps({"errors": res.errors})); sys.exit(0) out = wf.run_workflow( res.spec, forge_dir=Path(".forge"), feature=f"flow:{name}", max_parallel=cfg.max_parallel, max_total=cfg.max_total, max_budget_usd=cfg.max_budget_usd, ) print(json.dumps({ "completed": out.completed, "dropped": out.dropped, "total_cost_usd": out.total_cost_usd, "dropped_reasons": out.dropped_reasons, "results": out.results, }, indent=2, sort_keys=True)) PY- Propose, don't apply. The run produces proposed outputs. Following the Proposal→Validator→Executor rails (ADR-006), present the results to the user for review — nothing is written to the project unapproved. Only after the user approves do you apply any file changes (the Executor step). If any node was dropped, say so explicitly rather than implying the whole flow completed.
Degraded mode (background unavailable)
If claude is not on PATH or FORGE_NO_BACKGROUND=1 is set, node dispatch cannot run. Do not
fail — degrade to the deterministic dry-run plan from step 2 (load + validate + plan_waves)
and tell the user the flow was planned but not executed because background dispatch is
unavailable.
Verification
After running, these should hold:
- With
flows_enabledfalse → the skill did nothing and explained how to enable it. .forge/workflows/<name>.yamlthat loads → a wave plan is shown; a malformed/missing file → the loader's structured errors are surfaced (no crash).- A run reports
completed/droppedcounts with reasons; dropped nodes are never hidden. - No project files are written without the user approving the proposed output.
Examples
User: "/forge:flow"
Claude: [gate passes, lists] "Available workflows:
- research-brief: research-brief — gather sources then draft a brief
Run one with /forge:flow research-brief, or /forge:flow research-brief --plan to preview
the wave plan first."
User: "/forge:flow research-brief --plan"
Claude: "Workflow: research-brief wave 1: gather wave 2: draft
This is the plan only — nothing dispatched. Run /forge:flow research-brief to execute."
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

