Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计通过

dag-visual-editor-designdag 可视化编辑器设计

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

269

周安装

11

GitHub Stars

98

下载量

87
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:dag-visual-editor-design(dag 可视化编辑器设计)
来源仓库:https://github.com/erichowens/some_claude_skills
仓库路径:skills/dag-visual-editor-design
安装命令:
npx skills add https://github.com/erichowens/some_claude_skills --skill dag-visual-editor-design
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/erichowens/some_claude_skills --skill dag-visual-editor-design

简介

DAG 可视化编辑器设计专注于现代工作流编辑器的 UI/UX 架构,强调清晰性与易用性。

  • 适用于构建直观的流程设计界面,参考 n8n、ComfyUI 等成熟产品范式。
  • 采用模块化乐高式组合理念,支持渐进式复杂度披露与响应式布局适配。
  • 需结合具体平台特性定制交互细节并持续验证可用性与一致性标准。
  • dag-visual-editor-design 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

DAG Visual Editor Design

Design modern, intuitive DAG and workflow visual editors. This skill captures best practices from industry leaders like n8n, ComfyUI, Retool Workflows, and React Flow — prioritizing clarity over complexity.

Philosophy: LEGO, Not LabView

Traditional node editors (LabView, Max/MSP, older VFX tools) suffer from:

  • Dense, cluttered interfaces
  • Overwhelming port/connection complexity
  • Steep learning curves
  • "Spaghetti" wire syndrome

Modern DAG editors take a different approach:

  • LEGO-like composability — snap blocks together
  • Progressive disclosure — show complexity only when needed
  • Clear data flow — left-to-right or top-to-bottom
  • Minimal chrome — the content IS the interface

Core Design Principles

1. Nodes as First-Class Components

Nodes should feel like self-contained units, not wiring terminals.

┌─────────────────────────────┐
│ 🔄 Transform Data           │  ← Clear title with icon
├─────────────────────────────┤
│ Input: users.json           │  ← Inline config, not ports
│ Output: filtered_users      │
├─────────────────────────────┤
│ ▶ Run  │ ⚙ Config │ 📋 Docs │  ← Actions in footer
└─────────────────────────────┘

Bad (LabView style):

    ●─┬─●     ●─●
      │       │
  ┌───┴───┐ ┌─┴─┐
  │ Node  │─│ N │
  └───┬───┘ └─┬─┘
      │       │
    ●─┴─●   ●─┴─●

Good (Modern style):

┌──────────┐      ┌──────────┐
│  Input   │ ───▶ │ Process  │ ───▶ [Output]
└──────────┘      └──────────┘

2. Connection Semantics

PatternWhen to UseVisual
ImplicitSequential flowsVertical stack, no lines
Explicit minimalBranching logicSingle clear edge
BundledMultiple data channelsGrouped/labeled edges
AnimatedExecution/data flowParticles along edges

Key insight from ComfyUI: Show data flowing through edges during execution. Users understand what's happening.

3. Handle Design

Avoid: Multiple tiny ports crammed on node sides

Prefer:

  • Single input handle (top or left)
  • Single output handle (bottom or right)
  • Type indicators via color/shape only when needed
  • Handle reveals on hover for clean default state

4. Layout Algorithms

Auto-layout is critical. Users shouldn't manually arrange nodes.

// Dagre layout (hierarchical, left-to-right)
const layout = dagre.graphlib.Graph()
  .setGraph({ rankdir: 'LR', ranksep: 80, nodesep: 40 })
  .setDefaultEdgeLabel(() => ({}));

// ELK (more sophisticated, handles complex graphs)
const elk = new ELK();
await elk.layout(graph, {
  algorithm: 'layered',
  'elk.direction': 'RIGHT',
  'elk.layered.spacing.nodeNodeBetweenLayers': 100,
});

5. Minimap & Navigation

Essential for complex workflows:

  • Minimap in corner (toggleable)
  • Fit-to-view on double-click background
  • Breadcrumbs for nested/grouped nodes
  • Search to jump to nodes

Technology Stack

React Flow (Recommended)

import ReactFlow, {
  Background,
  Controls,
  MiniMap,
  useNodesState,
  useEdgesState,
} from 'reactflow';

function WorkflowEditor() {
  const [nodes, setNodes, onNodesChange] = useNodesState(initialNodes);
  const [edges, setEdges, onEdgesChange] = useEdgesState(initialEdges);

  return (
    <ReactFlow
      nodes={nodes}
      edges={edges}
      onNodesChange={onNodesChange}
      onEdgesChange={onEdgesChange}
      fitView
    >
      <Background variant="dots" gap={16} />
      <MiniMap />
      <Controls />
    </ReactFlow>
  );
}

Custom Node Template

const SkillNode = ({ data, selected }) => (
  <div className={cn(
    "rounded-lg border-2 bg-white shadow-md min-w-[200px]",
    selected ? "border-blue-500" : "border-gray-200"
  )}>
    {/* Header */}
    <div className="flex items-center gap-2 px-3 py-2 bg-gray-50 rounded-t-lg">
      <span className="text-lg">{data.icon}</span>
      <span className="font-medium">{data.label}</span>
    </div>

    {/* Body - preview of config */}
    <div className="px-3 py-2 text-sm text-gray-600">
      {data.preview}
    </div>

    {/* Handles */}
    <Handle type="target" position={Position.Left} />
    <Handle type="source" position={Position.Right} />
  </div>
);

Interaction Patterns

Edge Drawing

  1. Click source handle → drag → release on target handle
  2. Show valid drop targets while dragging
  3. Snap to nearest compatible handle
  4. Allow edge deletion via backspace or context menu

Node Creation

  1. Context menu — Right-click on canvas
  2. Quick add — Type / to search nodes (like Notion)
  3. Drag from library — Sidebar with categorized nodes
  4. Connection drop — Drop edge on empty space → node picker

Keyboard Shortcuts

KeyAction
Delete / BackspaceRemove selected
Cmd/Ctrl + DDuplicate
Cmd/Ctrl + GGroup selected
Cmd/Ctrl + ZUndo
/Quick node search
Space + DragPan canvas
ScrollZoom

Visual Hierarchy

Node States

/* Default */
.node { border: 2px solid #e5e7eb; }

/* Selected */
.node.selected { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,0.3); }

/* Running */
.node.running { border-color: #f59e0b; animation: pulse 1s infinite; }

/* Completed */
.node.completed { border-color: #10b981; }

/* Error */
.node.error { border-color: #ef4444; background: #fef2f2; }

Edge Animation During Execution

.edge-animated path {
  stroke-dasharray: 5;
  animation: dash 0.5s linear infinite;
}

@keyframes dash {
  to { stroke-dashoffset: -10; }
}

Anti-Patterns to Avoid

  1. Too many handle types — Color-code sparingly, not per data type
  2. Wire spaghetti — Use auto-layout, not manual positioning
  3. Hidden complexity — Don't collapse essential config into modals
  4. No execution feedback — Show what's running and what's waiting
  5. Monolithic nodes — Break complex operations into composable pieces
  6. Ignoring touch — Support touch/pen for tablet users

Case Studies

n8n

  • Clean card-based nodes
  • Inline parameter editing
  • Execution visualization with timing
  • Excellent error highlighting

ComfyUI

  • Familiar to VFX/3D artists
  • Lazy evaluation (only runs changed nodes)
  • Shareable workflow JSON files
  • Preview widgets inside nodes

Retool Workflows

  • Conditional branching UI
  • Loop visualization
  • Strong typing with visual indicators
  • Enterprise-grade error handling

Implementation Checklist

  • React Flow or similar graph library
  • Auto-layout with Dagre/ELK
  • Custom node components with consistent design
  • Edge animation during execution
  • Minimap for navigation
  • Keyboard shortcuts
  • Undo/redo system
  • Node search/quick add
  • Save/load workflow state
  • Export to JSON/image

Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.22%
按下载量换算32

Claude

31.82%
按下载量换算28

Cursor

18.43%
按下载量换算16

Gemini CLI

11.05%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills