Skip to content
thebushidocollective avatar

Reactflow Fundamentals

Setup, node and edge configuration, handles, and event handling for React Flow node-based editors and diagrams.

CCM score
49 of 100
skills.sh installs
140
GitHub stars
202
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers installation with npm, pnpm, or yarn, plus a basic controlled flow with node and edge state hooks
  • Includes built-in input, default, and output node types, with default, straight, step, and smoothstep edge types
  • Provides custom node handles with per-handle IDs, plus Background, Controls, MiniMap, and Panel plugin components
  • Designed for building workflow editors and interactive graphs that need node, edge, and selection event callbacks

Install

$ npx -y skills add thebushidocollective/han --skill reactflow-fundamentals -y

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

Files

React Flow Fundamentals

Build customizable node-based editors and interactive diagrams with React Flow. This skill covers core concepts, setup, and common patterns for creating flow-based interfaces.

Installation

# npm
npm install @xyflow/react

# pnpm
pnpm add @xyflow/react

# yarn
yarn add @xyflow/react

Basic Setup

import { useCallback } from 'react';
import {
  ReactFlow,
  useNodesState,
  useEdgesState,
  addEdge,
  Background,
  Controls,
  MiniMap,
  type Node,
  type Edge,
  type OnConnect,
} from '@xyflow/react';

import '@xyflow/react/dist/style.css';

const initialNodes: Node[] = [
  {
    id: '1',
    type: 'input',
    data: { label: 'Start' },
    position: { x: 250, y: 0 },
  },
  {
    id: '2',
    data: { label: 'Process' },
    position: { x: 250, y: 100 },
  },
  {
    id: '3',
    type: 'output',
    data: { label: 'End' },
    position: { x: 250, y: 200 },
  },
];

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

Details

Repository
github.com/thebushidocollective/han
Category
Frontend & UI Code
First seen
Jun 3, 2026

Questions

What does the reactflow-fundamentals skill help me build?

The reactflow-fundamentals skill helps build customizable node-based editors and interactive diagrams with React Flow. It covers setup, nodes, edges, controls, and interactivity for node-based UIs, flow diagrams, workflow editors, and interactive graphs.

How do I install the reactflow-fundamentals skill?

Run npx -y skills add thebushidocollective/han --skill reactflow-fundamentals -y in your project. Once installed, the agent can set up a React Flow canvas with nodes, edges, handles, and built-in background, controls, and minimap components.

Which other skills sit beside reactflow-fundamentals in its category?

It is listed in the Frontend & UI Code category with vercel-react-best-practices, web-design-guidelines, and design-taste-frontend. This skill focuses on React Flow graph and diagram work rather than general React or design guidance.

What do I need before using reactflow-fundamentals?

You need a React project and the @xyflow/react package, which the skill installs with npm, pnpm, or yarn. The skill works with TypeScript components and uses the React Flow stylesheet.

More from thebushidocollective/han

All 14

Similar to Reactflow Fundamentals

More Frontend & UI Code