Skip to content
Skillpedia
Websites & UI (frontend)48k · #3962

react-flow-node-ts

Lets your agent create node components for React Flow in an organized way. It uses TypeScript to ensure quality and integrates with state management.

What it does

This tool helps create visual components for a program called React Flow. It provides templates and instructions for you to build new blocks (called 'nodes') in an organized way with correct definitions.

When to use it

  • ✓When you need to create a new type of visual block for a diagram.
  • ✓When adding specific functionalities to an existing block.
  • ✓To ensure your diagram blocks follow a consistent pattern.

Example of what to ask your AI

“Create a new node to display user information in a diagram, with fields for name and email.”

Want more? Open the sections below.

How to use

The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.

Skill link

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/react-flow-node-ts/SKILL.md

Ready-to-paste message

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/react-flow-node-ts/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
How it works

You copy ready-made templates and replace information like the block's name and the data it will display. Then, you follow the steps to integrate this new block into the main program.

Installation

Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.

In the terminal (Claude Code, Codex, Cursor), in your project folder:

npx skills add sickn33/agentic-awesome-skills --skill react-flow-node-ts

Or download just the file:

curl -L https://raw.githubusercontent.com/sickn33/agentic-awesome-skills/main/plugins/agentic-awesome-skills-claude/skills/react-flow-node-ts/SKILL.md -o SKILL.md
Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Bundled upstream support

Supporting files are included at skill-relative paths. See UPSTREAM-NOTICE.md for their pinned sources, licenses, hashes, and import changes.

React Flow Node

Create React Flow node components following established patterns with proper TypeScript types and store integration.

Quick Start

Copy templates from assets/ and replace placeholders:

  • {{NodeName}} → PascalCase component name (e.g., VideoNode)
  • {{nodeType}} → kebab-case type identifier (e.g., video-node)
  • {{NodeData}} → Data interface name (e.g., VideoNodeData)

Templates

  • assets/template.tsx - Node component
  • assets/types.template.ts - TypeScript definitions

Node Component Pattern

export const MyNode = memo(function MyNode({
  id,
  data,
  selected,
  width,
  height,
}: MyNodeProps) {
  const updateNode = useAppStore((state) => state.updateNode);
  const canvasMode = useAppStore((state) => state.canvasMode);
  
  return (
    <>
      <NodeResizer isVisible={selected && canvasMode === 'editing'} />
      <div className="node-container">
        <Handle type="target" position={Position.Top} />
        {/* Node content */}
        <Handle type="source" position={Position.Bottom} />
      </div>
    </>
  );
});

Type Definition Pattern

export interface MyNodeData extends Record<string, unknown> {
  title: string;
  description?: string;
}

export type MyNode = Node<MyNodeData, 'my-node'>;

Integration Steps

  1. Add type to src/frontend/src/types/index.ts
  2. Create component in src/frontend/src/components/nodes/
  3. Export from src/frontend/src/components/nodes/index.ts
  4. Add defaults in src/frontend/src/store/app-store.ts
  5. Register in canvas nodeTypes
  6. Add to AddBlockMenu and ConnectMenu

When to Use

This skill is applicable to execute the workflow or actions described in the overview.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
FAQ

What are 'nodes' in React Flow?

Nodes are the individual blocks that make up a diagram or visual flow in a React Flow application.

What does 'TypeScript types' mean?

TypeScript is a language that helps prevent errors by clearly defining what kind of information each part of the code expects to receive or return.

What is 'store integration'?

It means connecting the new block to the application's main system so it can save and retrieve information, as well as interact with other blocks.

Details

Original description by the author

Create React Flow node components following established patterns with proper TypeScript types and store integration.

repo: sickn33/agentic-awesome-skills

Popularity

GitHub stars
48k
Ranking position
#3962
License
MIT
Updated
10/15/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills