Preface¶
The common approach to building Workflows or Chatflows in Dify involves dragging nodes, connecting edges, and configuring variables and tools within the console. As workflows become more complex, modifying the graph structure or comparing it against the official DSL for import/export often requires repeatedly opening nodes to verify fields. If you prefer describing requirements via conversation and directly generating importable YAML, you need a set of conventions for authoring and validating Dify DSL on the Agent side. Below is an introduction to what the Dify-workflow-dsl-skill (Auto-create Dify Workflows) on SkillHub does, how to install it, and how to use it.
What is this¶
Dify Workflow DSL Skill is a skill package (following the universal SKILL.md format) designed for AI Agents. It assists in writing, modifying, reviewing, and debugging Dify Workflow DSL YAML, producing outputs that can be directly imported into Dify.
- Coordinates:
@user_47abb51b/dify-workflow-dsl-skill - Version: 1.0.0 (Source: community)
- Category: ai-agent
- Publisher:
user_47abb51b(Listed as author Windom Yu on the SkillHub page) - Tags:
requires_api_key=false(According to SkillHub metadata, no additional API Key is required)
The goal emphasized in the official introduction is straightforward: describe requirements in natural language, and let the AI generate workflow files that can be imported into Dify.
Core Features¶
The following capabilities align with the SkillHub description and the skill’s English instructions, intended for tasks related to Dify applications and workflow DSL:
- Creation and Modification of Dify Workflow / Chatflow DSL YAML (including workflow YAML, advanced-chat YAML, and application-level Dify app DSL).
- Review and Debugging of existing DSL to reduce import failures or runtime configuration errors.
- Graph Structure and Data: Nodes and edges (graph nodes/edges), variables, and tool nodes.
- Dependencies and Integration: Plugin dependencies and database read/write tools.
- Import and Export: Handling issues related to Dify import/export formats and compatibility.
The skill itself does not replace the Dify console; it constrains how the Agent produces and rewrites YAML to ensure the results conform to Dify’s importable DSL structure.
Installation and Activation¶
The installation method provided on the SkillHub page is to let the AI handle it according to the official installation documentation and install the specified coordinates.
Method 1: Conversational Installation (SkillHub Page Prompt)
Send the following instruction to an Agent that supports Skills (requires access to SkillHub installation instructions):
Please install `@user_47abb51b/dify-workflow-dsl-skill` based on https://skillhub.cn/install/skillhub.md.
Method 2: SkillHub CLI
First, check if skillhub is available on your local machine:
command -v skillhub && skillhub --version
If not installed, you can perform a full installation (CLI + default Skills) following the SkillHub documentation:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
To install only the CLI:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
When installing the skill, you must use the --dir flag to point to the current Agent’s skills directory; installation to the default ./skills/ might not be recognized. Common path examples documented:
| Environment | Skills Directory (Example) |
|---|---|
| Cursor | ~/.cursor/skills/ |
| Claude Code | ~/.claude/skills/ |
| Codex | ~/.codex/skills/ or .agents/skills/ under the project |
| Gemini CLI | ~/.gemini/skills/ |
In Cursor, you can execute:
skillhub install @user_47abb51b/dify-workflow-dsl-skill --dir ~/.cursor/skills/
After installation, restart or refresh the Agent according to your client’s requirements to ensure the skill is loaded.
Typical Use Cases¶
Once the skill is enabled, simply describe your Dify-side goals in natural language, and the Agent will generate or modify YAML under the skill’s constraints. A reproducible interaction pattern is as follows (phrasing can be adjusted for your project; you do not need to fabricate specific business cases):
- Create New Workflow: Specify the application type (Workflow or Chatflow), inputs/outputs, and key nodes (e.g., LLM, tools, conditional branches). Request a complete DSL YAML output and note the Dify import method.
- Modify Existing DSL: Paste or reference the current YAML, explain the nodes, variables, or edges to be changed, and request that the modified version still conforms to the import format.
- Troubleshooting: Describe Dify import errors or node configuration questions. Request a review against the DSL structure and provide modification suggestions.
- Tools and Plugins: Describe the tool nodes, plugin dependencies, or database read/write tools to be integrated. Request correct declaration of dependencies and parameters in the DSL.
Following these steps, you should obtain a YAML file ready for import attempt in Dify. Whether the final import succeeds depends on the Dify version and instance configuration, while the skill handles the DSL structure and common compatibility issues.
Scope and Notes¶
Who is it for
- Developers already using Dify Workflow / Chatflow who want to minimize manual complex graph assembly in the UI and instead iterate on DSL via conversation.
- Maintainers who need to batch review, refactor workflow YAML, or troubleshoot issues against import/export specifications.
Limitations and Notes
- The skill guides the Agent to write YAML but does not guarantee coverage of private plugins or custom nodes not explicitly defined in the description; complex integrations still require verification within Dify.
- SkillHub metadata shows this skill is requires_api_key=false; model keys, tool credentials, etc., required for Dify runtime still need to be configured by you in Dify or your environment.
- Community source (community), version 1.0.0; upgrades and changes are subject to this coordinate on SkillHub.
SkillHub page statistics (at time of scraping): Rating 100000, Downloads 943; installation counts are subject to the platform’s display.
Conclusion¶
Dify-workflow-dsl-skill consolidates “writing, modifying, reviewing, and debugging Dify workflow DSL YAML” into a set of rules executable by an Agent, suitable for driving importable workflow files with natural language. To install or view instructions, you can open the SkillHub skill page or API entry:
- Skill Page: https://www.skillhub.cn/skills/user_47abb51b/dify-workflow-dsl-skill
- Official Address: https://api.skillhub.cn/user_47abb51b/dify-workflow-dsl-skill