Skip to content

Generates complete Dify workflow DSL/YML files from business requirements, covering diverse node types and logic.

CCM score
52 of 100
skills.sh installs
380
GitHub stars
300
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers DSL generation for app, dependencies, and workflow sections, including nodes and edges for connected flows
  • Supports start, llm, answer, code, http-request, if-else, tool, variable-aggregator, and parameter-extractor nodes
  • Targets Dify 0.3.0 DSL conventions with advanced-chat, workflow, and agent-chat app modes
  • Designed for building chatflows, workflows, and agents from a written requirement description

Install

$ npx -y skills add wwwzhouhui/skills_collection --skill dify-dsl-generator -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Dify DSL 工作流生成器

专业的 Dify 工作流 DSL/YML 文件自动生成工具,基于对 86+ 实际工作流案例的深度学习,能够根据用户的业务需求自动生成符合 Dify 规范的完整工作流配置文件。

核心功能

  • ✅ 完整DSL生成: 自动生成包含 app、dependencies、workflow 的完整 YML 文件
  • ✅ 多节点支持: 支持 start、llm、answer、code、http-request、if-else、tool 等所有节点类型
  • ✅ 智能连接: 自动生成节点间的 edges 连接关系
  • ✅ 参数配置: 智能推荐模型参数、提示词配置
  • ✅ 插件集成: 自动识别并配置所需的 Dify 插件依赖
  • ✅ 规范格式: 严格遵循 Dify 0.3.0 版本的 DSL 规范

使用方法

基础用法

生成一个 Dify 工作流用于 [业务需求描述]

详细用法

帮我生成一个 Dify 工作流 DSL 文件:
- 功能: [工作流要实现的功能]
- 输入: [用户输入的内容]
- 处理步骤: [详细的处理逻辑]
- 输出: [期望的输出结果]
- 使用插件: [需要的插件,可选]

Dify DSL 文件结构

基于对 86+ 真实工作流案例的学习,Dify DSL YML 文件遵循以下结构:

1. App 配置

app:
  description: '工作流描述'
  icon: 🤖
  icon_background: '#FFEAD5'
  mode: advanced-chat  # 或 workflow, agent-chat
  name: 工作流名称
  use_icon_as_answer_icon: false

模式说明:

  • advanced-chat: 高级对话模式(chatflow)
  • workflow: 工作流模式
  • agent-chat: AI Agent 模式

2. Dependencies 依赖

dependencies:
- current_identifier: null
  type: marketplace
  value:
    marketplace_plugin_unique_identifier: 插件唯一标识符

常用插件:

  • langgenius/openai_api_compatible: OpenAI 兼容接口
  • bowenliang123/md_exporter: Markdown 导出器
  • 其他市场插件根据需求添加

Details

Repository
github.com/wwwzhouhui/skills_collection
Categories
AI Agents & LLM Apps, Workflow Automation
First seen
Jun 3, 2026

Questions

What does the dify-dsl-generator skill do?

dify-dsl-generator turns a business requirement into a complete Dify workflow DSL/YML file with app, dependencies and workflow sections. It supports start, llm, answer, code, http-request, if-else, tool and other node types, and builds the edges that connect them.

How do I install the dify-dsl-generator skill?

Run npx -y skills add wwwzhouhui/skills_collection --skill dify-dsl-generator -y in your project. After that, dify-dsl-generator can produce Dify workflow YML files from a description such as "生成一个 Dify 工作流用于 [业务需求描述]".

Which Dify DSL version does dify-dsl-generator target?

dify-dsl-generator follows the Dify 0.3.0 DSL specification. It can set the app mode to advanced-chat, workflow or agent-chat, and it adds the plugin dependencies that a generated workflow needs.

What inputs should I give dify-dsl-generator for a detailed workflow?

Describe the function, the user input, the processing steps, the expected output, and any plugins to use. dify-dsl-generator uses these details to choose node types, write LLM prompts and set variable references between nodes.

More from wwwzhouhui/skills_collection

All 5

Similar to Dify Dsl Generator

More AI Agents & LLM Apps