Skip to content

yoloyolo8/dify-workflow-writer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Dify Workflow Writer Skill

A Claude Code skill for writing production-ready Dify workflow DSL files.

Overview

This skill teaches Claude Code how to create, modify, and debug Dify workflow DSL (YAML) files. It covers variable syntax, node configuration, common pitfalls, and workflow patterns.

Installation

Claude Code (Recommended)

# Copy to your Claude skills directory
cp -r skills/dify-workflow-writer ~/.claude/skills/

Project-Local

Keep in your project's skills/ directory for project-specific usage.

Features

  • Variable Syntax Expert: Correct {{#NODE_ID.VAR#}} patterns
  • Node Configuration: Templates for all Dify node types
  • Common Gotchas: Top mistakes and how to avoid them
  • Workflow Patterns: 4 proven architectural patterns
  • Code Node Guide: Python code with proper outputs schema

Structure

dify-workflow-writer/
├── SKILL.md                    # Main skill file
├── README.md                   # This file
├── references/
│   ├── variable-syntax.md      # Variable reference syntax
│   ├── common-gotchas.md       # Troubleshooting guide
│   └── node-templates.md       # All node type templates
└── templates/
    ├── minimal-workflow.yaml   # Starter template
    ├── llm-chain-workflow.yaml # Multi-LLM pattern
    └── http-llm-workflow.yaml  # API + LLM pattern

Usage Examples

Creating a New Workflow

User: Create a Dify workflow that analyzes articles using GPT-4
Claude: [Uses dify-workflow-writer skill to generate complete DSL]

Debugging DSL Issues

User: My Dify workflow import fails, here's the DSL...
Claude: [Identifies variable syntax errors, missing outputs schema, etc.]

References & Sources

This skill was created by synthesizing information from the following sources:

Official Documentation

Community Resources

GitHub Issues & Discussions

  • #22389 - Output variable "error" causes JS execution error
  • #6871 - Failed to parse result in Code node
  • #3643 - DSL import workflow loading issues
  • #7598 - DSL export missing features
  • #4168 - HTTP request save issues

Inspiration

MCP Servers

Context7 Documentation

  • /websites/docs_dify_ai-zh-hans - 1617 code snippets
  • /langgenius/dify - 743 code snippets
  • /langgenius/dify-docs-mintlify - 1208 code snippets

Project-Specific Examples

This skill was developed using real DSL files from the BestBlogs.dev project:

  • flows/Dify/dsl/BestBlogs 文章初评流程.yml - Article filtering workflow
  • flows/Dify/dsl/BestBlogs 文章分析流程.yml - Article analysis workflow
  • flows/Dify/dsl/BestBlogs 文章分析结果翻译.yml - Translation workflow

Version Compatibility

Dify Version Supported Features
0.10.0+ Basic DSL import
0.13.0+ Parallel tasks, session variables, forms
1.5.0+ Real-time debugging, Last Run feature
1.8.0+ LLM prompt optimization, Code auto-fix

Contributing

To improve this skill:

  1. Add new gotchas to references/common-gotchas.md
  2. Add node templates to references/node-templates.md
  3. Add workflow patterns to SKILL.md
  4. Update this README with new sources

License

MIT - Feel free to use and modify.

Author

Created with Claude Code, inspired by the n8n-skills project structure.

About

Claude Code Skill for writing Dify workflow DSL files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published