Skip to content
existential-birds avatar

Dagre React Flow

Automatic graph layout with dagre for React Flow, covering rankdir options, measured dimensions, and centered-to-corner conversion.

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

Own this skill? Claim it

What it does

  • Covers dagre-based positioning for React Flow nodes, including TB, BT, LR, and RL directions with spacing controls
  • Includes a reusable getLayoutedElements function, a useAutoLayout hook, and a React Flow integration example
  • Enforces center-to-top-left coordinate conversion and passes measured node dimensions to dagre
  • Designed for hierarchical graphs, trees, and dependency diagrams built with @xyflow/react

Install

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

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

Files

Automatic graph layout with dagre for React Flow, covering rankdir options, measured dimensions, and centered-to-corner conversion. Covers dagre-based positioning for React Flow nodes, including TB, BT, LR, and RL directions with spacing controls. Includes a reusable getLayoutedElements function, a useAutoLayout hook, and a React Flow integration example. Enforces center-to-top-left coordinate conversion and passes measured node dimensions to dagre. Designed for hierarchical graphs, trees, and dependency diagrams built with @xyflow/react.

Browse the repository on GitHub

Details

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

Questions

What does the dagre-react-flow skill do?

The dagre-react-flow skill gives your agent automatic graph layout using dagre with React Flow (@xyflow/react). It covers auto-layout, hierarchical layouts, tree structures, and arranging nodes programmatically through getLayoutedElements and rankdir settings.

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

Run npx -y skills add existential-birds/beagle --skill dagre-react-flow -y inside your project. Once installed, your agent loads the skill when you work on dagre, auto-layout, or hierarchical graph tasks.

Who is the dagre-react-flow skill for?

It is for developers building React Flow graphs who need nodes arranged automatically instead of placed by hand. It sits in the Frontend & UI Code category, next to vercel-react-best-practices and web-design-guidelines.

More from existential-birds/beagle

All 37

Similar to Dagre React Flow

More Frontend & UI Code