Skip to content
Back to skills

Filament Flows

ASecurity

Flows in Filament — the person's saved agents and teams run in steps beside a chat (plan, build, check, hunt), drafted by the agent with /flow and the `flow` tool, started only by the person, beside the chat or in place, with gates, reviews, a worktree of its own and saved flows. Load it when the person asks about a flow, wants work run in steps by several agents or teams, asks how to make, start, drive, stop or save one, or when you draft or drive one.

  • 35 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentsgoshellawsgit

Works with

  • cursor
  • mcp

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add invertibleMatrix/filament --skill filament-flows --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Filament Flows?

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

Security grade badge for Filament Flows
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/invertiblematrix-filament-flows/badge)](https://www.skillsdirectory.com/skills/invertiblematrix-filament-flows)

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: filament-flows
description: Flows in Filament — the person's saved agents and teams run in steps beside a chat (plan, build, check, hunt), drafted by the agent with /flow and the `flow` tool, started only by the person, beside the chat or in place, with gates, reviews, a worktree of its own and saved flows. Load it when the person asks about a flow, wants work run in steps by several agents or teams, asks how to make, start, drive, stop or save one, or when you draft or drive one.
---

# Flows

## In seven lines

1. A flow runs the person's saved agents and teams in **steps** beside a chat. A step's boxes run side by side; the
   next step starts once every box of the step before it is done.
2. A box is an **agent** (one of the person's saved agents), a **team** (one of their teams, in a chat of its own) or
   **You** (the person's review). An agent box can be a **gate**, which checks what it needs.
3. Each box is handed the person's words and the results of the boxes it **needs**, nothing else: each up to 60,000
   characters, 120,000 in all.
4. The agent drafts a flow only when the person's message is `/flow …`, or after their press on **Run as a flow**.
   It never starts one: only the person's **Start** runs it.
5. Started **beside the chat**, the chat stays the person's; the agent hears the flow at its start and its end.
   Started **In place**, the agent drives it in a turn of its own, with the flow tool's `box` and `stop`.
6. The first team box that writes, in a git project, makes a worktree of the flow's own; nothing is merged.
7. Limits: 10 steps, 6 boxes a step, 24 boxes in all, 12 needs a box; the title 120 characters, a box's words 2,000,
   a step's why 300.

## How the person makes one, in the app

**Ask the agent:**
1. Type `/flow` and what it is for, for example: `/flow build a small game engine: plan it, mock the editor, check
   both, then build it`. Send.
2. The agent designs it with its `flow` tool and says why each step is where it is. It uses only the person's own
   agents and teams: one named that is not there, it swaps for the nearest or asks. The draft stands over the message
   box: its steps with their whys, each box with what it needs (orange where a need is no longer before it), its size
   and the seats it takes, and why it cannot start where it cannot. While a turn runs, `/flow` waits in the queue;
   `/flow` alone, or in a team's own chat, is refused in words.
3. Change it by telling the agent (*make the review come before the build*), or by hand:
   - The ↑ and ↓ arrows on a box (tips *Move … up*, *Move … down*) take it into the step beside it, or into a step of
     its own past either end.
   - The bin (tip *Remove …*) takes it out; the boxes that needed it need what it needed.
   - A box opens its sheet: who it is, what it is asked, **It needs** (a tick for each box before it), what it sees of
     the chat, the model it runs on and how hard it thinks (*As its card says*, *As its team says*), gate or reads
     only, **Remove the box**.
   - **Edit…** gives the flow's name and the person's words as fields; **Add a box** at each step's end, **Add a step**
     under them.
4. **Tell my agent when done** is on unless turned off. **Discard** puts the words back in the box.
5. **Start** runs it beside the chat; **Start ▾** offers **Beside your chat** and **In place**. Nothing runs before.

**Draw one without the agent:** the Agents tab › **Flows** row: what it is for, then **Start from** nothing or a saved
flow, then **New flow**; the same draft and sheets follow.

**Run as a flow:** where the person's message lays out three or more steps in order, or a point where they would review,
the agent may answer it as usual and put a **Run as a flow** button under its reply (`flow` `offer`, once a reply). The
press sends `/flow` with that message's words. Not on a `/flow`, a command, an answer to the agent's question, a stopped
turn, or in a team's own chat.

## Boxes, gates and reviews

- **Agent box**: a saved agent at its own level (one that edits may edit), or **Reads only**. Its report is what it
  hands on; pages it publishes are artifacts. Agent boxes are sub-agents: they take seats under their models' limits and
  wait for one, never failing for want of one.
- **Team box**: the team runs as a team on the side does, in a chat of its own; it writes unless the team or the box
  reads only. A team box whose lead asks the person, or whose reply ends on a question, asks: **Open its chat to
  answer**; where its reply ends on a question, **Hand on anyway** too (that reply goes on as its result).
- **You** (the person's review): the flow holds and asks over the message box, with an alert: **Go on** (with a line
  handed to the boxes that need it), **Send back to** a box it needs (with a line; the person reviews again), or **Stop
  the flow**.
- **Gate**: an agent box, never in the first step, that checks the boxes it needs; Filament reads its answer's last
  line that begins `Verdict:`, either `Verdict: go` or `Verdict: not yet — why`. Not yet, or no verdict, holds the flow
  and asks: **Send back to** a box it needs (the person's line goes with the gate's answer; the gate reads again), **Go
  on anyway**, or **Stop the flow**. Nothing loops by itself.
- Two boxes that write are never in one step.

## While it runs

- The header says where it is (*Flow · step 2 of 3*; orange while it waits for the person, gray after a restart).
- The Agents tab has a **Flow** row with its boxes under it. Pick a box for what it was asked, what it was handed and its
  answer (**Read it whole**), **Open its thread** or **Open its chat**, **Stop**, **Skip**, **Retry**.
- **Edit the steps to come…** changes a box of a step that has not started.
- A box that fails or is stopped holds the flow: **Retry**, **Skip** (the boxes after it are told) or **Stop the flow**.
- Beside the chat, the agent hears the flow at **Start** (with the person's next message) and, with **Tell my agent
  when done** on, one message at the end: a line per box and the last step's results whole. Where it was not sent,
  **Send its end**.

## In place: the agent drives it

**Start ▾ › In place** opens a turn of the agent (refused while a turn runs or a question waits). Each box's end reaches
the agent in that turn as Filament's word, its result whole. With the `flow` tool it may, each with a `why` the person
reads on the flow's card:
- `{"action":"box","box":"<id>","do":"stop"|"skip"|"retry"}`;
- at a gate that says not yet, `"do":"go"` (go on past it) or `"do":"back","to":"<id>"` (send a box it needs back);
- `{"action":"edit","steps":[…]}` with every step: those that started, as they stand, then the new steps to come (a
  title is not changed on a flow driven in place); `{"action":"stop"}` the flow;
- or leave a gate to the person: its alert says *your agent decides, or you do*.

The person's review stays theirs: it waits for them, and the agent hears what they decide. A message the person types
meanwhile steers the turn or waits in the queue. No end message follows: the agent hears the end in its turn, which
then ends. **Stop** on the turn stops the flow. A turn that fails or ends first leaves the flow holding (*Your agent
stopped driving it*): the boxes at work go on and nothing new starts; **Go on beside** runs the rest beside the chat, or
**Stop the flow**. After a restart the agent's turn goes on by itself and is told what the restart cut: each cut box is
its to retry or skip.

## Where it writes

- In a git project, the first team box that writes makes a **worktree of the flow's own** as it starts: the folder
  `<repo>-flow-<title>` beside the repository's main folder, on branch `flow-<title>` (the title in lower case with
  dashes, at most 24 characters; a taken name gets `-2`, `-3`…), from the folder's last commit, the project's worktree
  template copied in. Every box after it works there; never in the chat's folder.
- The card says *Works in its own worktree · branch flow-…*; the end message says where the changes are and that
  **nothing is merged**: the branch is the person's to merge or let go.
- **Bring my uncommitted edits** (off unless switched on, shown where the folder has uncommitted files): the worktree is
  given a copy of them as it is made, left uncommitted. The person's folder keeps its files and index as they were.
- In a folder with no git repository or no commit yet, the box writes in the folder, said in orange. In a git project,
  a worktree git will not make fails the box in words; nothing is written in the person's folder instead.

## Saved flows, restarts, where they live

- **Save as a flow…** keeps the steps, their whys and the boxes with their needs under a name, without the person's
  words. The Flows row lists them with the one Filament ships, *Plan, check, build, hunt* (Product → a Builder's
  architecture and Product's mocks → the Reviewer's gate → Builders → BugHunters). **Forget** takes one of the person's
  away.
- **From a shell**, for the person: `filament library flows` lists the saved flows, `show <key>` one's steps and
  boxes; `filament library flows draft <key> --chat <id> <what it is to do>` puts it in that chat as a draft with those
  words, whose **Start** stays the person's, on its card; `remove <key> --yes` forgets one of the person's.
- After a restart nothing goes on by itself: the flow says **Stopped by a restart**; **Go on** is the one press. A flow
  that waited at a gate or a review still waits.
- A chat's flows are in Filament's data folder, `flows/<chat>.json`; saved flows in `flows-saved.json`. **Remove** takes
  an ended flow off its chat's list. Deleting the chat deletes its flows, each box at work stopped first.
- The Agents tab's **Your agent's work** row draws the agents the chat's agent sent by itself as a flow's steps: a
  picture of what happened; nothing in it runs.

## The `flow` tool

| Action | What it does |
| --- | --- |
| `read` | How this chat's flows stand, whether a draft may be made now, and the person's agents and teams |
| `draft` | Draws a flow (`title`, `steps`), only while the person's newest message is `/flow` |
| `edit` | Changes a draft of yours (one your `draft` drew) while it stands, as the person asks (`flow`, `steps`, `title`); a draft the person drew or took from a saved flow is theirs. On a flow driven in place: every step again, the started ones as they stand (`steps`) |
| `offer` | Puts **Run as a flow** under the reply, without `/flow`; draws nothing; once a reply |
| `box` | On a flow driven in place: `box`, `do` (stop, skip, retry, go, back), `to` (sending back), `why` |
| `stop` | Ends a flow driven in place, with `why` |

A step is `{"why": "…", "boxes": [ … ]}`, its boxes side by side. A box is one of these (`gate` an agent box's alone,
never in the first step; `needs` the ids of earlier steps' boxes):

```
{"id": "plan", "agent": "<tag>", "words": "…", "needs": [], "gate": false, "readOnly": true}
{"id": "build", "team": "<key>", "words": "…", "needs": ["plan"], "readOnly": false}
{"id": "look", "review": true, "words": "what the person looks at", "needs": ["build"]}
```

Only the person's agents and teams can be named: `read` lists them. A refusal says what to fix: fix it and call again.

Who has it: a harness chat's own agent, from its first message (coding agents over Filament's MCP server, Cursor as a
custom tool). A team's lead, a worker, a sub-agent and a team's own chat have none. The Start's Tools card's **Flows**
switch takes it out of a chat (`flow` in the map `loop.tools`); a `/flow` then tells the agent so, and it says what it
would draw.

## Common questions

- **"Make me a flow that plans, builds and checks."** Ask the person to type `/flow` with what it is for (or offer
  **Run as a flow** under your reply); then draft it with the person's own agents and teams.
- **"Start it."** Only the person's **Start** does: say where it is, over the message box.
- **"Where did the flow's changes go?"** The branch `flow-<title>`, in the worktree `<repo>-flow-<title>` beside the
  repository's main folder; nothing is merged.
- **"It stopped after a restart."** The person presses **Go on** on the flow's card.
- **"My review is waiting."** It is the person's: **Go on**, **Send back to** or **Stop the flow** over the box.

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.