Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

skills-to-dify-workflow

A Claude Code plugin that converts skill definitions into Dify-importable workflow DSL (YAML files). It also generates a React Artifact for visual preview before export.

What It Does

Skill logic is written as Markdown prose, making parallel execution, loops, conditionals, and LLM usage invisible to non-engineers. This plugin translates that prose into a Dify workflow diagram, turning personal automation into a shareable organizational asset.

Given a Claude Code skill folder, it:

  1. Reads the entire skill directory — SKILL.md, scripts/, references/, assets/
  2. Reviews for security risks — dangerous scripts, prompt injection, hardcoded secrets
  3. Analyzes the processing flow — extracts LLM usage, tool calls, branches, loops, and parallelism
  4. Determines the Dify mode — workflow (single-shot) or advanced-chat (conversational)
  5. Builds a Dify DSL YAML following the exact structure that Dify expects
  6. Previews as a React Artifact — color-coded nodes, click-to-inspect, exportable
  7. Exports a .yml file ready to import via Dify's "Import DSL File"

Installation

# Add the marketplace
/plugin marketplace add r-hashi01/skills-to-dify-workflow

# Install the plugin
/plugin install skills-to-dify-workflow@skills-to-dify-workflow

Usage

Once installed, trigger the skill by saying:

  • "Convert this skill to Dify"
  • "Visualize this skill as a workflow"
  • "Show this skill in Dify"

The skill will walk you through the conversion interactively, including a security review of the source skill and confirming your Dify model provider/name before generating the YAML.

Plugin Structure

skills-to-dify-workflow/
├── .claude-plugin/
│   └── plugin.json                          # Plugin manifest
├── marketplace.json                         # Marketplace definition
├── skills/
│   └── skills-to-dify-workflow/
│       ├── SKILL.md                         # Main skill instructions
│       └── references/
│           └── dify-node-types.md           # Dify DSL schema reference
├── CLAUDE.md                                # Dev guidance for contributors
├── LICENSE                                  # Apache 2.0
└── README.md

Node Type Mapping

Pattern in Skill Dify Node Type Artifact Color
Claude decides / generates llm Purple
Script / API / file ops code, tool Blue
if/else branching if-else Yellow
Loop over list iteration Orange
Conditional loop (while) loop Orange
Text formatting template-transform Green
Input / Output start / end / answer Gray

Requirements

  • Claude Code CLI
  • A Dify instance to import the generated YAML

License

Apache 2.0

About

Skills for replacing "skills" with Dify workflows

Resources

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors