본문으로 건너뛰기
Skillpedia
웹사이트 및 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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

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.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 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 타입'이란 무엇인가요?

각 코드 부분이 받거나 반환할 정보의 종류를 명확히 정의해 오류를 막는 언어입니다.

'스토어 연동'은 무엇인가요?

새 블록을 애플리케이션의 메인 시스템에 연결해, 정보를 저장하고 불러오며 다른 블록과 상호작용하게 하는 것입니다.

상세 정보

작성자의 원본 설명

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

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬