
Dify Dsl Generator
This generates complete Dify workflow DSL/YML files from plain language descriptions of what you want to build. It's trained on 86+ real workflow examples and knows the full node vocabulary: start, LLM, code execution, HTTP requests, if-else branches, tools, parameter extractors. You describe your business logic and it outputs valid YAML with proper node connections, variable references, and plugin dependencies. Useful if you're building Dify workflows regularly and tired of hand-writing the DSL structure. The source shows it handles vision-enabled OCR flows, HTML generation pipelines, and complex multi-node chains. Saves time on boilerplate but you'll still need to understand Dify's node system to verify the output makes sense.
- skills.sh installs
- 377
- GitHub stars
- 294
- last updated
- Aug 21, 2026
Install
$ npx -y skills add wwwzhouhui/skills_collection --skill dify-dsl-generator --agent claude-codeInstalls into .claude/skills of the current project.
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 导出器- 其他市场插件根据需求添加
Sponsors
Details
- Repository
- github.com/wwwzhouhui/skills_collection
- Category
- Automation & Workflows
- First seen
- Jun 3, 2026