react-flow-advanced

Implement advanced React Flow graphs with sub-flows, custom connections, and undo/redo.

75|9|Updated Dec 21, 2025
One-click install
npx skills add https://github.com/anderskev/beagle --skill react-flow-advanced
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-flow-advanced
Source: https://github.com/anderskev/beagle/tree/main/skills/react-flow-advanced
Command: npx skills add https://github.com/anderskev/beagle --skill react-flow-advanced

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires react, @xyflow/react.

What problem does it solve?

This Skill provides advanced React Flow implementations for complex use cases like sub-flows and custom connections.

Frequently Asked Questions about react-flow-advanced

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build nested sub-flows in React Flow?

Sub-flows use parent-child node relationships with auto-expanding parent groups. React Flow's node system enables nesting by grouping child nodes within parent containers that automatically resize and reposition as content changes, creating hierarchical workflow structures.

Can I style custom edges based on connection status in React Flow?

Yes, custom edges support status-based styling through custom edge components. React Flow allows rendering connection lines with conditional styling applied via edge data properties, enabling visual indicators for different connection states.

How do I implement drag-and-drop from external sources into a React Flow diagram?

External drag-and-drop integrates by converting screen coordinates to flow coordinates, then creating nodes programmatically. React Flow's coordinate conversion utilities and node-creation API handle placement of externally-dragged items onto the canvas.

What's the best way to add undo/redo history to a React Flow editor?

Undo/redo maintains a history stack of graph state snapshots. Implement history management by capturing node and edge changes, storing them in a stack, and restoring previous states when undo or redo actions fire.

How do I arrange nodes automatically in a React Flow layout?

Programmatic layout uses dagre for hierarchical graph arrangement. Dagre calculates node positions based on graph structure, then React Flow applies those coordinates to achieve organized, collision-free layouts without manual positioning.

Do I need prior React Flow experience to implement advanced patterns?

Advanced patterns build on React Flow fundamentals—familiarity with basic node and edge management helps, but the implementation covers sub-flows, custom rendering, and state management for complex use cases like workflow designers and diagram editors.