Skip to content
existential-birds avatar

React Flow Implementation

Node-based UI toolkit for React built on @xyflow/react, covering nodes, edges, handles, and viewport control.

CCM score
54 of 100
skills.sh installs
382
GitHub stars
91
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers custom nodes and edges, multiple handles, controlled state with change handlers, and viewport control through useReactFlow
  • Includes TypeScript typing patterns, connection validation via isValidConnection, and a props reference with interaction CSS classes like nodrag and nowheel
  • Enforces stable nodeTypes and edgeTypes outside render and ReactFlowProvider wrapping for useReactFlow callers
  • Designed for developers building flow charts, diagrams, and visual editors with React

Install

$ npx -y skills add existential-birds/beagle --skill react-flow-implementation -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

React Flow Implementation

Quick Start

import { useCallback } from 'react';
import { ReactFlow, useNodesState, useEdgesState, addEdge } from '@xyflow/react';
import '@xyflow/react/dist/style.css';

const initialNodes = [
  { id: '1', position: { x: 0, y: 0 }, data: { label: 'Node 1' } },
  { id: '2', position: { x: 200, y: 100 }, data: { label: 'Node 2' } },
];

const initialEdges = [{ id: 'e1-2', source: '1', target: '2' }];

export default function Flow() {
  const [nodes, setNodes, onNodesChange] = useNodesState(initialNodes);
  const [edges, setEdges, onEdgesChange] = useEdgesState(initialEdges);

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

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

Implementation gates

Run these in order; do not skip ahead on “looks fine.”

Details

Repository
github.com/existential-birds/beagle
Category
Frontend & UI Code
First seen
Jun 3, 2026

Questions

What does the react-flow-implementation skill do?

The react-flow-implementation skill helps an agent build node-based UIs correctly with @xyflow/react. It covers nodes, edges, handles, custom components, state management, and viewport control for flow charts, diagrams, and visual editors.

How do I install the react-flow-implementation skill?

Run npx -y skills add existential-birds/beagle --skill react-flow-implementation -y in your project. Once installed, the agent loads this skill automatically when you build React flow diagrams or node-based applications.

Which other skills lead the Frontend and UI Code category?

This skill sits in the Frontend and UI Code category on Claude Marketplaces, alongside vercel-react-best-practices, web-design-guidelines, design-taste-frontend, vercel-composition-patterns, and lark-apps. It stands out by focusing on @xyflow/react node-based editors rather than general frontend guidance.

Who is react-flow-implementation for?

It is for React developers building flow charts, diagrams, visual editors, or other node-based applications who want an agent to use @xyflow/react correctly. The skill is part of the beagle repository on GitHub.

More from existential-birds/beagle

All 37

Similar to React Flow Implementation

More Frontend & UI Code