AI Skills
AI SkillsΒ are Claude Code skill files that provide AI-assistant reference guides for Reagraph. Skills contain component APIs, usage patterns, theming details, and code examples derived from source code and stories.
When installed, Claude Code automatically loads the relevant skill files when it encounters Reagraph components in your code, giving it deep knowledge of the component APIs, props, and usage patterns.
Available Components
| Category | Components |
|---|---|
| Graph | GraphCanvas, Sphere, SphereWithIcon, SphereWithSvg, Svg, Badge, Edge, Arrow, Label, Cluster |
| Layout | forceDirected2d/3d, circular, concentric, tree, radial, hierarchical, nooverlap, forceatlas2, custom |
| Interaction | useSelection, Lasso, CameraControls, useCenterGraph, RadialMenu, useCollapse |
| Styling | lightTheme, darkTheme, SizingType (pagerank, centrality, attribute) |
Installation
The simplest way to install Reagraph skills is with the skills CLI β run it from your project root:
npx skills add reaviz/skillsThis downloads the Reagraph skill tree into your projectβs .claude/skills/ directory, where Claude Code will pick it up automatically.
You can also browse and grab the skill from the Skills MarketplaceΒ .
If you prefer to manage the files manually, choose one of the methods below instead.
Option 1: Project-level (recommended for teams)
Copy or symlink the Reagraph skills into your projectβs .claude/skills/ folder:
# From your project root
mkdir -p .claude/skills
# Symlink the reagraph skill tree
ln -s /path/to/reaviz/skills/reagraph .claude/skills/reagraphSkills placed in .claude/skills/ are committed to version control and shared with all team members.
Option 2: User-level (personal, all projects)
Copy or symlink skills into ~/.claude/skills/ to make them available across all your projects:
mkdir -p ~/.claude/skills
# Symlink the library
ln -s /path/to/reaviz/skills/reagraph ~/.claude/skills/reagraphUser-level skills are not shared with other team members.
Option 3: --add-dir flag (per-session)
Point Claude Code to the skills repository at launch. Skills inside .claude/skills/ of added
directories are discovered automatically:
claude --add-dir /path/to/reaviz/skillsThis grants file access for the current session only.
Verifying Installation
Once installed, Claude Code will automatically load the relevant skill files when it encounters Reagraph components in your code. You can verify by asking Claude Code about a specific component:
> How do I use the reagraph GraphCanvas component?Claude Code should respond with API details, props, and examples sourced from the skill files.
Skill Structure
Skills are organized into category directories with per-component skill files:
reagraph/
βββ SKILL.md # Library overview, data shapes, setup
βββ graph/
β βββ SKILL.md # Graph category overview
β βββ graph-canvas/SKILL.md # GraphCanvas (main entry, all props, ref methods)
β βββ nodes/SKILL.md # Sphere, SphereWithIcon, SphereWithSvg, Svg, Badge
β βββ edges/SKILL.md # Edge config, arrows, dashed, curved, aggregation
β βββ labels/SKILL.md # Label visibility, fonts, styling
β βββ clusters/SKILL.md # Cluster grouping, custom rendering
βββ layout/
β βββ SKILL.md # Layout category overview
β βββ layouts/SKILL.md # 16 layout algorithms + custom + overrides
βββ interaction/
β βββ SKILL.md # Interaction category overview
β βββ selection/SKILL.md # useSelection, lasso, single/multi/path
β βββ camera/SKILL.md # CameraControls, modes, centering, zoom
β βββ context-menu/SKILL.md # RadialMenu, RadialSlice
β βββ collapse/SKILL.md # useCollapse, expand/collapse hierarchies
βββ styling/
βββ SKILL.md # Styling category overview
βββ themes/SKILL.md # lightTheme, darkTheme, Theme interface
βββ sizing/SKILL.md # SizingType: pagerank, centrality, attributeFor more details, see the skills repository on GitHubΒ .