react-flow

react-flow is a skill for Claude Code, Codex from existential-birds/beagle. It costs 66 tokens per session (2,376 once invoked), scanned A, a copy of react-flow, Apache-2.0.

A guide for building React Flow interfaces with @xyflow/react, a library for interactive diagrams made from nodes and links. It focuses on workflow visualizations, custom nodes and links, labels, and control of the canvas view.

In plain words
What is it for?
Use it to build workflow diagrams, graph views, visual editors, and other React screens with custom nodes, links, or viewport controls.
Why use it?
It gives a starting point for connecting React Flow components so a diagram can render and respond to user interaction.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to build workflow diagrams, graph views, visual editors, and other React screens with custom nodes, links, or viewport controls.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/existential-birds/beagle/react-flow
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add existential-birds/beagle --skill react-flow
Clone the repo
git clone --depth 1 https://github.com/existential-birds/beagle

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for react-flow

README.md
[![agentmods](https://agentmods.dev/badge/skills/existential-birds/beagle/react-flow/github.svg)](https://agentmods.dev/skills/existential-birds/beagle/react-flow)
Your own site
<a href="https://agentmods.dev/skills/existential-birds/beagle/react-flow"><img src="https://agentmods.dev/badge/skills/existential-birds/beagle/react-flow/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for react-flow

Your own site · 80×15
<a href="https://agentmods.dev/skills/existential-birds/beagle/react-flow"><img src="https://agentmods.dev/badge/skills/existential-birds/beagle/react-flow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,376 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 26 Nov 2026
  • Snyk pass 26 Nov 2026
How audits are shown
Origin 88% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00066 $0.02376
Opus 5.5 $0.00026 $0.00950
Sonnet 5.5 $0.00013 $0.00475
Haiku 4.5 $0.00007 $0.00238

Measured 4d ago against content hash 058e97af7fe1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

react-flow scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

88% identical to react-flow — 517 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/react-flow/SKILL.md · 200 lines

How it starts

The opening of the file, as written. The whole thing — 200 lines — stays where its author put it; the contents beside it link to each section on GitHub.

React Flow (@xyflow/react)

Implement interactive node-based graphs and workflow editors using @xyflow/react (v12 and v13, React 18/19).

Implementation Gates

Run these checks in order before treating any integration as complete:

  1. CSS & container dimensions — Import @xyflow/react/style.css (v13, wrapped in @layer xyflow for Tailwind v4 precedence) or @xyflow/react/dist/style.css (v12), and give the wrapper element explicit dimensions (width and height).
  2. Stable nodeTypes / edgeTypes — Define nodeTypes and edgeTypes at module scope or memoize with useMemo; never create inline object literals on every render (causes full node/edge remounting).
  3. Provider boundary — Any component calling useReactFlow(), useNodesData(), useNodeConnections(), or store hooks must be a descendant of <ReactFlowProvider> (or rendered inside <ReactFlow />).
  4. Measured vs SSR dimensions — Read DOM-measured node sizes from node.measured?.width / node.measured?.height (falling back to node.width ?? defaultWidth). For SSR/SSG, provide static width/height or initialWidth/initialHeight on nodes so fitView and initial layout work without DOM measurement.

Quick Start & TypeScript Unions

import { useCallback } from 'react';
import {
  ReactFlow,
  ReactFlowProvider,
  Background,
  Controls,
  useNodesState,
  useEdgesState,
  addEdge,
  type Node,
  type Edge,
  type BuiltInNode,
  type BuiltInEdge,
  type OnConnect,
} from '@xyflow/react';
import '@xyflow/react/style.css'; // v13 (@layer xyflow); use '@xyflow/react/dist/style.css' on v12

export type TaskNode = Node<{ label: string; active: boolean }, 'task'>;
export type AppNode = BuiltInNode | TaskNode;

export type WeightedEdge = Edge<{ weight: number }, 'weighted'>;
export type AppEdge = BuiltInEdge | WeightedEdge;

const nodeTypes = { /* task: TaskNodeComponent */ };
const edgeTypes = { /* weighted: WeightedEdgeComponent */ };

const initialNodes: AppNode[] = [
  { id: '1', type: 'input', position: { x: 0, y: 0 }, data: { label: 'Start' } },
  { id: '2', position: { x: 240, y: 80 }, data: { label: 'Process' } },
];
const initialEdges: AppEdge[] = [{ id: 'e1-2', source: '1', target: '2' }];

function FlowCanvas() {
  const [nodes, setNodes, onNodesChange] = useNodesState<AppNode>(initialNodes);
  const [edges, setEdges, onEdgesChange] = useEdgesState<AppEdge>(initialEdges);

  const onConnect: OnConnect = useCallback(
    (connection) => setEdges((eds) => addEdge(connection, eds)),
    [setEdges]
  );

  return (
    <div style={{ width: '100%', height: '100vh' }}>
      <ReactFlow
        nodes={nodes}
        edges={edges}
        nodeTypes={nodeTypes}
        edgeTypes={edgeTypes}
        onNodesChange={onNodesChange}
        onEdgesChange={onEdgesChange}
        onConnect={onConnect}
        fitView
      >
        <Background />
        <Controls />
      </ReactFlow>
    </div>
  );
}

export default function App() {
  return (
    <ReactFlowProvider>
      <FlowCanvas />
    </ReactFlowProvider>
  );
}

Read the full file on GitHub · 200 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago Changed · -251 lines · +1 tokens per session 058e97af7fe1
  2. 2mo ago First seen · 451 lines · 65 tokens per session scan A 3b8630e5037a

Subscribe to this mod's changes

react-flow is a skill published in the GitHub repository existential-birds/beagle (91 stars, last pushed 4d ago), licensed Apache-2.0. It adds 66 tokens to every session and 2,376 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 88% identical to react-flow, differing in 517 lines, and is treated as a copy.

Related

react-flow compared with skills from other repositories

react-flow next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
react-flowexistential-birds/beagleSkill914d agoApache-2.0A66Claude Code, Codex
docs-decisionsComposioHQ/composioSkill31ktodayMITA72Claude Code, Codex
bmad-loop-resolvemmornati/leanproxy-mcpSkill5yesterdayMITA97Claude Code, Codex
code-reviewbestdeejay-design/agent-skillsSkill52mo agoMITA159Claude Code
dev-git-workflowBlueSkyXN/Codex-is-all-you-needSkill2217d agoGPL-3.0A57Claude Code, Codex
karpathy-guidelinesZandereins/schliffSkill18yesterdayMITA46Claude Code
git-push-workflowaishajv/claude-everythingSkill71mo agononeA87Claude Code