react-flow-architect – skill Lập trình cho agent AI
Xây dựng ứng dụng ReactFlow sẵn sàng production với điều hướng phân cấp, tối ưu hiệu năng và quản lý state nâng cao.
Cài skill react-flow-architect bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/react-flow-architect-a6919.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /react-flow-architect – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/react-flow-architect-a6919.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $react-flow-architect – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/react-flow-architect-a6919.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /react-flow-architect – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/react-flow-architect-a6919.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /react-flow-architect – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
ReactFlow Architect
Build production-ready ReactFlow applications with hierarchical navigation, performance optimization, and advanced state management.
Detailed Guide
Read [the detailed guide](references/detailed-guide.md) before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.
Minimal Controlled Graph Example
Target React Flow v12 (@xyflow/react); use matching docs for older reactflow v11 projects. This is a starting component, not an implementation of hierarchy/history/persistence.
import { ReactFlow, useNodesState, useEdgesState, addEdge, type Connection } from '@xyflow/react';
import { useCallback } from 'react';
import '@xyflow/react/dist/style.css';
const initialNodes = [
{ id: '1', position: { x: 0, y: 0 }, data: { label: 'Start' } },
{ id: '2', position: { x: 250, y: 0 }, data: { label: 'Next' } },
];
export default function InteractiveGraph() {
const [nodes, , onNodesChange] = useNodesState(initialNodes);
const [edges, setEdges, onEdgesChange] = useEdgesState([]);
const onConnect = useCallback((connection: Connection) =>
setEdges(previous => addEdge(connection, previous)), [setEdges]);
return <div style={{ width: '100%', height: 500 }}>
<ReactFlow nodes={nodes} edges={edges} onNodesChange={onNodesChange}
onEdgesChange={onEdgesChange} onConnect={onConnect} fitView />
</div>;
}Install the reviewed compatible package version in the host project and run its typecheck/browser checks. Hooks such as useReactFlow need a ReactFlowProvider ancestor outside the component invoking them; the minimal example avoids that hook. No compile or browser execution is asserted here.
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.
Skill liên quan
- react-flow-node-ts – Tạo component node cho React Flow theo các mẫu đã thiết lập, với kiểu TypeScript phù hợp…
- react-modernization – Thành thạo việc nâng cấp phiên bản React, chuyển từ class sang hooks, áp dụng các tính…
- react-native-architecture – Các mẫu kiến trúc và tích hợp cho React Native với Expo, bao gồm navigation, quản lý…
- react-native-skills – Review việc render, danh sách, animation, navigation và native UI của React Native và…
- react-nextjs-development – Phát triển ứng dụng React và Next.js 14+ với App Router, Server Components, TypeScript…
- react-patterns – Các mẫu và nguyên tắc React hiện đại. Hooks, composition, hiệu năng, thực hành…
- react-state-management – Thành thạo quản lý state React hiện đại với Redux Toolkit, Zustand, Jotai và React…
- receiving-code-review – Review code cần đánh giá kỹ thuật, không phải màn trình diễn cảm xúc.