本文へスキップ
Skillpedia
WebサイトとUI(フロントエンド)48k · #5576

react-flow-node-ts

できること

このツールは、React Flowというプログラム用のビジュアルコンポーネントを作るのに役立ちます。テンプレートと手順を提供し、正しい定義に沿って「ノード」と呼ばれる新しいブロックを整理された形で作れるようにします。

使う場面

  • ✓図に表示する新しい種類のビジュアルブロックを作る必要があるとき。
  • ✓既存のブロックに特定の機能を追加するとき。
  • ✓図のブロックが一貫したパターンに従うようにしたいとき。

スキルのリンク

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

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/react-flow-node-ts/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“図の中にユーザー情報を表示する新しいノードを作ってください。名前とメールアドレスの項目を持たせてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

用意されたテンプレートをコピーし、ブロックの名前や表示するデータなどの情報を置き換えます。そのうえで手順に従って、この新しいブロックをメインのプログラムに組み込みます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)を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.
よくある質問

React Flowの「ノード」とは何ですか?

ノードは、React Flowアプリケーションで図やビジュアルフローを構成する個々のブロックのことです。

「TypeScriptの型」とはどういう意味ですか?

TypeScriptは、コードの各部分が受け取る、または返す情報の種類を明確に定義することで、エラーを防ぐのに役立つ言語です。

「ストアとの連携」とは何ですか?

新しいブロックをアプリケーションのメインの仕組みにつなげ、情報を保存・取得したり、他のブロックとやり取りしたりできるようにすることを意味します。

詳細

作者による元の説明

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

repo: sickn33/agentic-awesome-skills

人気

GitHubのスター
48k
ランキング
#5576
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル