<< All versions

Skill v1.0.0

currentLLM-judged scan90/100
benord-labs/frink/frink-flows
──Details
PublishedOctober 22, 2026 at 04:30 PM
Content Hashsha256:862a86c23fd6e128...
Git SHAd2edd3d8321e
──Files
Files (1 file, 4.8 KB)
SKILL.md4.8 KBactive
SKILL.md · 53 lines · 4.8 KB

version: "1.0.0" name: frink-flows description: Design, edit, validate, and inspect Frink Flows and batch stages. Read before frink_flows_patch, frink_flows_define_stages, or frink_register_node.


Frink Flows

A Flow is a graph: one trigger starts action/logic nodes connected by edges. Use MCP tools for live state and changes; this skill explains the contracts. Do not edit flow YAML on disk.

Authoring workflow

  1. For an existing flow, read it with frink_flows_get (discover with frink_flows_list). Discover projects, integrations, commands and installed nodes with frink_flows_list_catalog; use returned ids/names.
  2. Choose the trigger and required blocks. Every Agent needs an upstream Start Task (a session; see Sessions); Chat Reply needs upstream Start Task or Post-Task trigger chat context.
  3. Wire data deliberately: trigger.* lasts the run, previous.* is one hop, loop.* lasts the fan-out body. Only Condition passes predecessor data through; Start Task and Agent replace it.
  4. Save via frink_flows_patch. Create with name and no flowId; modify with flowId. Read returned errors/warnings and correct the cause. Save checks topology; run/define_stages also check execution config. If a patch result is missing, cut short, or replaced by a note such as "saved to <path>", the call may have finished: check with frink_flows_get (or frink_flows_list after a create) before retrying, and never resend a create.
  5. Run only within the user's requested scope; inspect the returned run id with frink_flows_get_run. Batch work follows plan → user confirmation → define → start.

Graph and patch essentials

  • Exactly one trigger, ≤50 nodes, unique node/edge ids; edges reference existing ids. Prefer lowercase-hyphen ids. End has no outgoing edges.
  • Edge: { "id":"e1", "source":"a", "target":"b" }. Condition requires true/false sourceHandle branches. Fan-out uses contained linear branches and a shared continuation; read its contract before wiring.
  • Nodes may omit position for auto-layout. Before placing nodes yourself, read Canvas layout in Graph and logic: nodes are 320px wide, so columns closer than 368px overlap.
  • Patch operations: add/remove/update node or edge, update_settings, and auto_layout (resets the canvas layout). update_node.config merges recursively (JSON Merge Patch); null removes a key.
  • Create projectId seeds settings.defaultProjectId (otherwise current session project when resolvable). Nodes inherit it; Start Task may set config.projectId explicitly.
  • Fan-out continuation receives previous.results[itemIndex][branchRootNodeId] plus totalCount. Generic convergence outside it is OR, not an all-predecessors barrier.

Sessions (Start Task)

Each Start Task that runs opens a sidebar chat (plus a worktree when startInWorktree) — on every run, so a schedule multiplies it. Every later Agent and Chat Reply continues that chat.

  • Default to ONE Start Task per flow. Place it before the first node whose output a later block needs (Start Task replaces predecessor data); if most runs exit at a gate, place it after the gate and have agents read trigger.* or re-read data.
  • Fan-out body agents with no Start Task of their own continue the session opened before the fan-out.
  • Add another Start Task only for a different project, a separate branch that becomes its own PR, per-item isolated context or clean tree (a shared session is one conversation and one tree), or when the user asked for separate chats.
  • A Start Task inside a fan-out opens one chat (and worktree) per item, every run.
  • Never add a Start Task just to hold a report; reply in the session that did the work.

Read only what the task needs

All paths are bundled relative to this file; no source checkout is needed. Config and generated output fields are colocated in the block guides.

TaskReference
Choose/configure trigger and its dataTrigger contracts
Bind friendly webhook fieldsProvider aliases
Create tasks/agents, run commands, call HTTP/integrations, reply in text/HTMLAction contracts
Wire condition, fan-out, approval or end; position nodes on the canvasGraph and logic
Carry data between blocks; templates and shared briefingTemplates and context
Start from a complete validated patch or common patternExamples
Plan many tickets, stages, dependencies, branches and concurrencyBatch orchestration
Run, inspect, diagnose pauses/failuresRun inspection
Register/test a custom block, including multi-file packagesCustom nodes
All versions