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.
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:
- Reads the entire skill directory —
SKILL.md,scripts/,references/,assets/ - Reviews for security risks — dangerous scripts, prompt injection, hardcoded secrets
- Analyzes the processing flow — extracts LLM usage, tool calls, branches, loops, and parallelism
- Determines the Dify mode —
workflow(single-shot) oradvanced-chat(conversational) - Builds a Dify DSL YAML following the exact structure that Dify expects
- Previews as a React Artifact — color-coded nodes, click-to-inspect, exportable
- Exports a
.ymlfile ready to import via Dify's "Import DSL File"
# Add the marketplace
/plugin marketplace add r-hashi01/skills-to-dify-workflow
# Install the plugin
/plugin install skills-to-dify-workflow@skills-to-dify-workflowOnce 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.
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
| 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 |
- Claude Code CLI
- A Dify instance to import the generated YAML