Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

dify-workflow-builderdify 工作流程构建器

Agent Skill

dify-workflow-builder 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

408

周安装

17

GitHub Stars

4

下载量

136
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:dify-workflow-builder(dify 工作流程构建器)
来源仓库:https://github.com/r3flector/dify-workflow-builder
仓库路径:skills/dify-workflow-builder
安装命令:
npx skills add https://github.com/r3flector/dify-workflow-builder --skill dify-workflow-builder
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/r3flector/dify-workflow-builder --skill dify-workflow-builder

简介

dify-workflow-builder 生成生产级 Dify DSL 工作流文件,基于 Pydantic 模型定义精准建模。

  • 提供节点索引与连线规则参考,确保生成的 YAML 符合 v1.12+ 版本规范要求。
  • 区分入口节点与输出节点配置,支持按需加载特定类型的节点 schema 文件。
  • 建议结合 references/nodes/ 目录下的详细说明进行定制化开发与调试。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Dify Workflow Builder

Expert skill for generating production-quality Dify DSL workflow files. Generates valid YAML configurations for Dify v1.12+ with precise node schemas derived from Pydantic source models.

Reading Strategy

Always read:

  1. This file (SKILL.md) — process, patterns, quality standards
  2. Node Index — base fields + pick which node files to load
  3. Entry nodes + Output nodes — every workflow needs these

Read on demand (only the files relevant to your task):

  • Node type files from references/nodes/ — only for node types used in the workflow
  • Edge Types — when connecting nodes (sourceHandle rules)
  • Variables — when using system/env/conversation variables
  • Workflow Structure — for features, conversation_variables, environment_variables
  • Node Positioning — for layout constants
  • Enums — for exact enum values
  • API Reference — for import/export API calls

Example workflows in assets/ — read the most relevant one as a template before generating.

Mode Selection

ChooseWhen
workflowOne-shot execution, batch processing, API-triggered tasks. Uses start →... → end.
advanced-chatConversational UI, multi-turn dialogue, memory needed. Uses start →... → answer.

Key differences:

  • workflow mode: No sys.query, no conversation memory, uses end node with explicit outputs
  • advanced-chat mode: Has sys.query, sys.conversation_id, sys.dialogue_count, uses answer node for streaming response
  • Only advanced-chat supports conversation_variables for session-persistent state

Workflow Generation Process (5 Steps)

Step 1: Define Type and Inputs

app:
  mode: workflow | advanced-chat
  name: "Workflow Name"
  description: "What this workflow does"
  icon: "🤖"
  icon_background: "#FFEAD5"
kind: app
version: "0.5.0"

Define start node variables based on user requirements:

- data:
    type: start
    title: Start
    variables:
      - type: text-input | paragraph | select | number | file | file-list
        variable: input_name
        label: "Human-readable label"
        required: true

Step 2: Design the Node Graph

Map the business logic to node types. Read the relevant files from references/nodes/:

  • AI processing: ai.md — llm, agent, question-classifier, parameter-extractor
  • Data: data.md — knowledge-retrieval, datasource, document-extractor
  • Logic: logic.md — if-else, code, template-transform, http-request, tool, list-operator
  • Flow control: flow.md — iteration, loop, human-input
  • Variables: variables_nodes.md — variable-aggregator, assigner

Step 3: Generate Unique IDs

Every node needs a unique ID. Use the timestamp-based format:

node_id = str(int(time.time() * 1000))[-10:]  # e.g. "1732456789"

Step 4: Configure Edges

Connect nodes with edges. Read Edge Types for full sourceHandle rules.

- data:
    sourceType: llm
    targetType: end
    isInIteration: false
    isInLoop: false
  id: "source_id-target_id-sourceHandle-targetHandle"
  source: "source_node_id"
  sourceHandle: source        # "source" | "{case_id}" | "false" | "success-branch" | "fail-branch"
  target: "target_node_id"
  targetHandle: target        # always "target"
  type: custom

Step 5: Add Positioning

See Node Positioning for full layout constants.

Linear chain: each node at x += 300 (NODE_WIDTH_X_OFFSET), starting at {x: 80, y: 282}.

  position:
    x: 80
    y: 282
  width: 244
  height: 98  # varies by node type

Common Workflow Patterns

Pattern 1: Simple LLM Chain

start → llm → end/answer

See assets/simple_llm_workflow.yml or assets/simple_llm_chatflow.yml.

Pattern 2: RAG (Retrieval-Augmented Generation)

start → knowledge-retrieval → llm → answer

See assets/knowledge_rag_chatflow.yml.

Pattern 3: Conditional Branching

start → if-else → [branch A: llm-1] → variable-aggregator → end
               → [branch B: llm-2] ↗

See assets/conditional_workflow.yml.

Pattern 4: Error Handling

start → llm (error_strategy: fail-branch)
          → [success-branch] → end
          → [fail-branch] → variable-aggregator → end

See assets/error_handling_workflow.yml.

Pattern 5: Iteration

start → iteration [llm → code] → end

See assets/iteration_workflow.yml.

Pattern 6: Loop with Break

start → loop [code → if-else → loop-end] → end

See assets/loop_workflow.yml.

Pattern 7: Agent with Tools

start → agent(tools: [web-search, calculator]) → answer

See assets/agent_chatflow.yml.

Pattern 8: Human-in-the-Loop

start → llm → human-input → code → end

See assets/human_approval_workflow.yml.

Quality Standards

Required (MUST)

  1. version: "0.5.0" — current DSL version
  2. mode: workflow | advanced-chat — not agent-chat
  3. Every node has unique id (string, timestamp-based)
  4. Every edge references existing source and target node IDs
  5. workflow mode uses end node, advanced-chat uses answer node
  6. All variable_selector paths resolve to existing node outputs or system variables
  7. sourceHandle matches node type pattern (see Edge Types)
  8. error_strategy only uses "fail-branch" or "default-value" (NOT "abort" or "retry")
  9. Container nodes (iteration, loop) have start_node_id pointing to internal start node
  10. assigner (v2) has version: "2" field

Recommended (SHOULD)

  1. Use descriptive title for each node
  2. Enable retry_config for unreliable external calls (http-request, tool)
  3. Use error_strategy: "fail-branch" for non-critical paths
  4. Set is_parallel: true for iteration when items are independent
  5. Keep parallel_nums ≤ 10 to avoid rate limits
  6. Validate with scripts/validate_workflow.py before import

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

31.34%
按下载量换算43

Claude

30.55%
按下载量换算42

Cursor

19.47%
按下载量换算26

Gemini CLI

9.21%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills