Work in the user's visible Flovart Workflow canvas. Use when the user asks to open Flovart, look at or change their Workflow, build shots or generation nodes, or run image and video generation.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Flovart?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/avabbbb-flovart)
---
name: flovart
description: Work in the user's visible Flovart Workflow canvas. Use when the user asks to open Flovart, look at or change their Workflow, build shots or generation nodes, or run image and video generation.
---
# Flovart
Flovart is the visible Workflow canvas the user is looking at. You change it
through the local `flovart` CLI; the user sees every change live. Flovart
prepares its own local session: never ask the user for connection details and
never rebuild a connection flow in the conversation.
The CLI needs Node.js 22.19.0 or newer. In this source checkout, when the
packaged `flovart` command is not installed, use the repository entrypoint
instead, for example `npm run flovart:cli -- ensure --json`. Do not use `npx flovart-cli` as an automatic fallback: an unpublished checkout can make
npx fetch an unrelated package.
## Prepare for this job
Do these in order at the start of every task. Each step has a stop condition;
never skip ahead. Details are in `references/environment.md`.
1. **Understand the request.** Decide what the user wants to see on the canvas
when you are done, and whether it needs paid generation. Ask only when a
different reading would change the result.
2. **Make Flovart ready.** Run `flovart ensure --json`. Continue only when it
returns `ok: true` and `state: "ready"`; otherwise tell the user the public
state it returned and stop. `ensure` also opens the user's browser on the
canvas when needed.
3. **Get on the user's canvas.** Run `flovart status --json`, then
`flovart workflow.inspect --agent-identity <host> --json`. Compare the
project title, node titles and node count with what the user describes or
shows you. If they disagree, you are reading another canvas: stop and fix
that first (see "Operate the user's visible canvas").
4. **Check AI services only when generation is needed.** Run
`flovart provider.status --json`. It lists configured services with masked
keys only. If the route you need is missing, tell the user where to add it
in Flovart Settings (`references/providers.md`). Never ask for a key in the
conversation, and never read, write or move one yourself.
5. **Quote and agree.** Before any paid run, tell the user how many runs, which
model, and what each run is for, and wait for their go-ahead.
6. **Work and narrate.** Make the change, inspect again, and tell the user what
is now on their canvas in their terms.
## The stable surface
Use `ensure` to prepare, then these five operations for all normal work:
`status`, `workflow.inspect`, `workflow.selection.get`, `workflow.apply`, and
`workflow.node.run`.
```bash
flovart ensure --json
flovart status --json
flovart workflow.inspect --agent-identity codex --json
flovart workflow.selection.get --agent-identity codex --json
```
- `--agent-identity` names your host (`codex`, `claude-code`, `opencode`,
`workbuddy`). Pass the same value on `workflow.inspect` and on every write
or run; a write without it, or with a different one, fails with
`AGENT_HOST_REQUIRED`.
- Before a change, read the real `projectId`, object IDs and revision from
`workflow.inspect`. Read `workflow.selection.get` when the request depends on
what the user selected.
- Group related graph edits into one `workflow.apply`, with the project and
revision you read as preconditions and a stable `mutationId` and
`idempotencyKey`. Every write or run carries its own idempotency key.
- After a write, inspect again. On failure, keep the structured error code,
inspect before retrying, and stop when the canvas is unavailable or the
target or revision changed. Never switch to another project and never
retry a mutation under a new identity.
Other hosts (an optional local MCP projection, DaVinci Resolve) are described
in `references/hosts.md`. Read it only when the task names such a host.
## Operate the user's visible canvas
The canvas the user is looking at is the only canvas that counts. Each rule
below comes from a real session where an agent wrote to a canvas the user
could not see, or said it could see their canvas when it could not.
1. Never drive your own browser tab. Do not open the WebUI in a headless or
agent-managed browser (Playwright, an eval browser, a hidden tab). Every
browser keeps its own local Workflow store: a project created there never
appears on the user's screen, and while that tab stays connected
`workflow.inspect` may read it instead of the user's canvas. If you opened
one, close it before you continue.
2. Open the user's browser only through `flovart ensure` or `web.open`.
They hand the complete one-time link to the default browser. Never hand-roll an opener: on Windows
`rundll32 url.dll` drops everything after `&`, and `cmd /c start` treats `&`
as a command separator. The page then loads unconnected (its footer shows
本地优先) and the user keeps seeing an old canvas. The link expires after 60
seconds; if the page did not connect, open a fresh one instead of reusing an
old tab.
3. Prove you are on the user's canvas before the first write (step 3 above).
`flovart status --json` must show the user's tab and no leftover agent tab.
Never tell the user you can see their canvas until this check passes.
4. Do not create a project while the user has one open. A new project is only
for an empty, connected workspace. Demo or test nodes go into the user's
current project with a clear title and never trigger a paid run.
5. When the user says they cannot see your change, assume you are on the wrong
canvas, not that their screen is stale. Redo step 3 before anything else.
### Layout: left to right in flow order
Place nodes in the order data flows: upstream on the left, downstream on the
right, every connection from the left node's output to the right node's input.
- `workflow.node.create-connected --from-node-id A` makes the new node
downstream of A. Put it to the right: x = A.x + A.width + 80, same y as A.
- A node that feeds A (a script, a reference) is connected into A with
`workflow.connect --from-node-id <source> --to-node-id A` and placed to the
left: x = A.x - 80 - source.width.
- Never put a downstream node left of, or directly below, its source. A
backward connection is drawn as an S-curve hidden behind the opaque cards,
so the user only sees stray stubs at the ports; a node directly below gets a
diagonal line that ends in a loop.
- Fix a wrong layout with `workflow.disconnect --connection-id <id>`,
`workflow.connect` and `workflow.node.move --node-id <id> --x <x> --y <y>`,
each with its own idempotency key, then inspect again. Read node widths from
`workflow.inspect`; never assume them.
### Empty workspace
`workflow.inspect` returns `WORKSPACE_UNAVAILABLE` when the browser is
connected but no project is open. That is not a stop: create and activate a
project, then inspect again.
```bash
npm run flovart:cli -- workflow.project.create --title "Product Video" --agent-identity codex --idempotency-key <key> --json
npm run flovart:cli -- workflow.project.use --project-id <project-id> --agent-identity codex --idempotency-key <key> --json
npm run flovart:cli -- workflow.inspect --agent-identity codex --json
```
`workflow.project.list` shows existing projects. Stop for the user only when
the browser itself is offline.
## Building and running
- “打开 Flovart” / “打开 Iris” → `ensure`, then `workflow.inspect`.
- “看看当前 Workflow” → `workflow.inspect`. “当前选择” → `workflow.selection.get`.
- Add, delete, move, resize, connect, disconnect or edit → one `workflow.apply`.
- A sequence of new nodes → `workflow.node.create-connected`, which fills the
node defaults a bare `add_node` in `workflow.apply` needs:
```bash
npm run flovart:cli -- workflow.node.create-connected --from-node-id <id> --type text --title "Shot 2" --x 420 --y 120 --agent-identity codex --idempotency-key <key> --json
```
- Run a node → `workflow.node.run` after confirming the node from inspection.
Several independent nodes → one `workflow.node.run` with `nodeIds`; the user
agrees to the cost once and the result lists each node. Rerun only failed
nodes.
### Generation runs on the canvas
- Build each shot as a generation node on the canvas: prompt, model,
parameters, and reference nodes connected to its inputs. Run it with
`workflow.node.run`.
- Never call a Provider API from a local script and paste the result onto the
canvas as a static image. That node has no prompt, model or references, so
the user cannot adjust and rerun it; it is not a Flovart result.
- Flovart owns Provider routing, credentials, cost confirmation and artifacts.
Do not store credentials, edit browser storage, use private routes, or start
a second Workflow runtime.
- If `workflow.node.run` returns `RUNNER_UNAVAILABLE`, or no node type can
express the request, stop and report it. A missing reference or unsupported
input stays an explicit failure; never quietly downgrade the media mode.
## Talking to the user
Talk about the canvas, not the machinery behind it.
- Never echo `projectId`, object IDs, revisions, mutation or idempotency keys,
or JSON back to the user. Say "the current project" or use node titles.
- Never explain internal mechanics (host writer, lease, bridge, polling,
session recovery, transports). Describe what is visible: "the node is
running".
- Pick sensible defaults for titles, positions and node types and keep moving.
Ask only when the request is genuinely ambiguous, spends credits, or
destroys existing work.
- On failure, inspect before retrying. Make at most one automatic recovery for
the same failure; if it fails again, explain it in user terms and stop.
- On timeout or lost contact, rejoin the same operation with the same
idempotency key. Never resubmit under a new key.
- Report what was added or changed, what is running, and what finished.
Mention a structured error code only when the user must act on it.
## Ending a task: the outcome claim
When a task is finished, stopped or refused, make the very last line of your
final message one JSON object and nothing else, for example:
{"flovartClaim":{"status":"succeeded"}}
{"flovartClaim":{"status":"failed","code":"REVISION_MISMATCH"}}
{"flovartClaim":{"status":"unsupported","code":"UNKNOWN_COMMAND"}}
- succeeded: every requested change or run is visible in the Workflow after a
fresh `workflow.inspect`. Never claim success from a command reply alone.
- failed: the capability exists but this attempt did not complete; `code` is
the structured error code the failing command returned.
- unsupported: the product refused the capability itself. Change nothing to
work around it, and give the refusal code exactly as returned.
Give a code for failed and unsupported, never an invented one. The claim is
checked against the real final Workflow, and a claim never turns a failure
into a pass. This line is a machine-readable ending, not part of what you tell
the user.
## References
- `references/environment.md`: the four readiness layers and what to do when
each one is missing.
- `references/providers.md`: AI service routes, what the user provides, where
they add it, and how to verify it.
- `references/hosts.md`: the optional MCP projection and the DaVinci Resolve
tracer.
- `commands/`: compatibility and diagnostic commands. Not needed for normal
work.