# xyflow-wasp-drone

xyflow-wasp-drone — a subagent for React Flow and Svelte Flow: editor setup, flow state, custom nodes and edges, connection rules, Dagre and ELK layout, theming, accessibility, performance, and version migrations.

- subagent · `type=agent` · Claude Code, Codex, Cursor · ★ 96 repo stars
- Author: Legion Code Inc.
- License: AGPL-3.0-or-later · policy=link-only · description only; the file stays with the author
- Source: https://github.com/legioncodeinc/vibe-coding-tools/tree/HEAD/plugins/web-development-tools/agents/xyflow-wasp-drone.md
- Updated: 2026-10-18
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/agents/xyflow-wasp-drone

## What it does

xyflow-wasp-drone handles the full lifecycle of a canvas built on React Flow or Svelte Flow—from library installation and container sizing through flow state management, custom node components, and connection rules. Includes stylesheet selection, SSR container handling in Next.js, state wiring via `useNodesState`, Zustand, or Svelte `$state.raw`, drag interactions, and layout algorithm integration (Dagre, ELK, d3-hierarchy).

Covers custom nodes, edges, and handle configuration, theming through `--xy-*` variables and `colorMode`, React Flow UI component adoption, version migrations (`reactflow` 11 → `@xyflow/react` 12, Svelte Flow 0.x → 1.x), accessibility, and testing. Out of scope: React architecture and routing, SvelteKit load functions and form actions, node visual design and tokens, saved-flow database schemas, browser end-to-end testing—those are handled by other subagents.

## Install

### Claude Code (native platform)

1. **Plugin marketplace**
In the agent chat (not a shell):
```text
/plugin marketplace add legioncodeinc/vibe-coding-tools
```
In the agent chat (not a shell):
```text
/plugin install web-development-tools@wasp-nest
```

2. **Manually: put the files in place**
- File: `.claude/agents/xyflow-wasp-drone.md` — For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

### Codex

**Manually: put the files in place**
- File: `.codex/agents/xyflow-wasp-drone.toml` — Codex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/

### Cursor

**Manually: put the files in place**
- File: `.cursor/agents/xyflow-wasp-drone.md` — Cursor also reads .claude/agents/

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/legioncodeinc/vibe-coding-tools/tree/HEAD/plugins/web-development-tools/agents/xyflow-wasp-drone.md

## When to use it
- set up a node editor with custom components and connection validation
- integrate auto-layout (Dagre, ELK) into a diagram editor
- optimize canvas performance for thousands of nodes
- migrate from React Flow 11 to @xyflow/react 12 or port an editor between React and Svelte
- wire flow serialization and restore with validation

## Example prompts
- Build a workflow editor on React Flow with custom nodes for filter, data source, and transform steps
- Render a diagram on Svelte Flow with auto-layout via Dagre, node drag, and Tailwind v4 theming
- Migrate a `reactflow` 11 editor to `@xyflow/react` 12 and verify accessibility tests

## Similar
- [reactflow-custom-nodes](https://affpapa.org/en/nevibecode/skills/reactflow-custom-nodes.md) — skill · 112 installs
- [react-flow-advanced](https://affpapa.org/en/nevibecode/skills/react-flow-advanced.md) — skill · 652 installs
- [react-flow-architecture](https://affpapa.org/en/nevibecode/skills/react-flow-architecture.md) — skill · 544 installs
- [reactflow-fundamentals](https://affpapa.org/en/nevibecode/skills/reactflow-fundamentals.md) — skill · 138 installs
- [agent-tool-call.workflow](https://affpapa.org/en/nevibecode/prompts/agent-tool-callworkflow.md) — prompt · ★ 98599 repo stars
- [sketch](https://affpapa.org/en/nevibecode/skills/makenotion-sketch.md) — skill · ★ 232 repo stars

From the same set: [legioncodeinc/vibe-coding-tools](https://affpapa.org/en/nevibecode/by/legioncodeinc/vibe-coding-tools.md) — 172 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
