Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot

cli-anything-dify-workflow — Claude Code skill: install guide

A skill that hands the agent commands for building, checking and editing Dify workflow YAML. Useful when a hand-written workflow breaks on import.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add HKUDS/CLI-Anything --skill cli-anything-dify-workflow -a claude-code
Open on GitHub

What cli-anything-dify-workflow does

The skill gives an agent command groups for Dify files: create, inspect, validate, edit, config, export, import, diff, layout. All of it runs against local YAML and JSON. Nothing is pushed to a Dify instance.

It is a wrapper, not the engine. The real logic lives in the dify-ai-workflow-tools package pulled from a git URL, so that has to be in place first. The wrapper calls the dify-workflow binary; if the binary is missing from PATH but the dify_workflow package exists, it falls back to python -m dify_workflow.cli. That fallback is your clue when every command fails at once.

Ask for -j and the output arrives as JSON, which the agent reads more reliably than prose. The checklist group tells you what a file still lacks. Edits go through edit add-node, remove-node, add-edge, and a node of type code drops into an existing workflow without opening the Dify editor.

What it helps with

  • scaffold a workflow file from the llm template
  • validate YAML before importing into Dify
  • insert a code node into an existing workflow
  • switch the model in app.yaml
  • diff two versions of the DSL

Example prompts for the agent

  • Scaffold a workflow from the template: `cli-anything-dify-workflow create -o workflow.yaml --mode workflow --template llm`
  • Check `workflow.yaml` and show me the errors as JSON: `cli-anything-dify-workflow validate workflow.yaml -j`
  • Add a `code` node titled Process to `workflow.yaml`: `cli-anything-dify-workflow edit add-node -f workflow.yaml --type code --title "Process"`

How to install cli-anything-dify-workflow

1Skills CLI (Vercel)

npx skills add HKUDS/CLI-Anything --skill cli-anything-dify-workflow -a claude-code

2Manually: put the files in place

~/.claude/skills/cli-anything-dify-workflow/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/cli-anything-dify-workflow/

From the same set18

The whole set →
cli-hub-meta-skill HKUDS A skill that gives agents a catalog of professional command-line tools built for AI. Search, install, and run CLIs for video, design, AI, and development without leaving your editor. Claude Code CX Codex Cursor +1 5,300installs cli-anything HKUDS Builds a Python harness with Click commands for any GUI application or repository. Generates REPL, tests, and docs following the CLI-Anything methodology. Claude Code CX Codex Cursor +1 2,100installs cli-anything-blender HKUDS A skill that adds a stateful command-line interface for editing Blender 3D scenes. Use it when an agent needs to assemble a scene, assign materials, or render a frame without manual clicking. Claude Code CX Codex Cursor +1 941installs cli-anything-obsidian HKUDS Manage an Obsidian vault from the terminal: read, create, search, and update notes or run editor commands. It suits agents that need to work without the GUI. Claude Code CX Codex Cursor +1 917installs cli-anything-notebooklm HKUDS Experimental harness to manage Google NotebookLM through a local CLI. It lets agents list notebooks, query sources, generate artifacts, and download files. Claude Code CX Codex Cursor +1 801installs cli-anything-libreoffice HKUDS Skill for creating and editing Writer, Calc, and Impress documents from the CLI without a GUI. Produces real ODF files (ZIP with XML) — useful when an AI agent needs to assemble a report, spreadsheet, or presentation programmatically. Claude Code CX Codex Cursor +1 669installs cli-anything-drawio HKUDS A command-line harness over Draw.io: the skill hands your agent commands to build a diagram step by step and export it to PNG, PDF or SVG. Claude Code CX Codex Cursor +1 666installs cli-anything-freecad HKUDS Turns FreeCAD into a scriptable CLI for your agent: 258 commands for primitives, sketches, PartDesign features and headless export. Claude Code CX Codex Cursor +1 643installs

Similar

seedance-20 Emily2040 A skill that steers the agent through Seedance 2.0 video work: brief, surface checks, then a compact prompt for the mode you asked for. Claude Code CX Codex Cursor +1 481installs serve-sim EvanBacon A skill that teaches an agent to control a booted iOS, iPad or Apple Watch Simulator through npx serve-sim: taps, gestures, buttons, rotation, camera. Claude Code CX Codex Cursor +1 1,100installs develop jsmastery-pro Turns approved specs and AGENTS.md rules into working UI and backend code. Helpful when architectural choices are settled and code generation needs strict guardrails. Claude Code CX Codex Cursor +1 4,400installs threejs-game-director majidmanzarpour A director skill for Three.js browser games: it runs the work from a playable loop to graphics, UI and browser checks by handing phases to sibling skills. Claude Code CX Codex Cursor +1 3,000installs okx-dapp-discovery okx A routing skill: it spots a supported DApp such as Aave, Hyperliquid or Pendle in your request and hands the work to the matching OKX plugin. It never signs or broadcasts anything itself. Claude Code CX Codex Cursor +1 14,400installs setup-matt-pocock-skills Matt Pocock This skill configures a repository for Matt Pocock's engineering skills by setting its issue tracker, triage labels, and domain docs layout. Run it before using the other skills. Claude Code 1,052,851installs to-tickets Matt Pocock Turns a plan, spec, or conversation into small end-to-end tickets with explicit blockers. Use it to agree on the work breakdown before tickets go to a tracker. Claude Code 711,230installs writing-plans Jesse Vincent This skill turns requirements for a multi-step task into an implementation plan before code changes begin. It helps when another engineer needs exact files, interfaces, and checks. Claude Code CX Codex 282,859installs

Questions about cli-anything-dify-workflow

How do I install cli-anything-dify-workflow in Claude Code?

Run npx skills add HKUDS/CLI-Anything --skill cli-anything-dify-workflow -a claude-code. The skill lands at ~/.claude/skills/cli-anything-dify-workflow/SKILL.md.

What does cli-anything-dify-workflow do?

It gives the agent commands to create a Dify workflow file, inspect its structure, validate it, edit nodes and edges, and export or import the DSL.

What needs to be installed first?

The dify-ai-workflow-tools package from the git URL, installed with pip. Every command in the wrapper forwards to it.

Source text

SKILL.md · Apache-2.0
---
name: "cli-anything-dify-workflow"
description: Wrapper for the Dify workflow DSL CLI. Create, inspect, validate, edit, and export Dify workflow files through a CLI-Anything harness.
---

# Dify Workflow CLI Skill

## Installation

Install the upstream Dify workflow CLI first:

```bash
python -m pip install "dify-ai-workflow-tools @ git+https://github.com/Akabane71/dify-workflow-cli.git@main"
```

Then install the CLI-Anything harness:

```bash
pip install git+https://github.com/HKUDS/CLI-Anything.git#subdirectory=dify-workflow/agent-harness
```

## Usage

The harness forwards to the upstream `dify-workflow` CLI.

```bash
cli-anything-dify-workflow guide
cli-anything-dify-workflow list-node-types
cli-anything-dify-workflow create -o workflow.yaml --mode workflow --template llm
cli-anything-dify-workflow inspect workflow.yaml -j
cli-anything-dify-workflow validate workflow.yaml -j
cli-anything-dify-workflow edit add-node -f workflow.yaml --type code --title "Process"
cli-anything-dify-workflow config set-model -f app.yaml --provider openai --name gpt-4o
```

## Command Groups

- `guide`
- `list-node-types`
- `create`
- `inspect`
- `validate`
- `checklist`
- `edit add-node|remove-node|update-node|add-edge|remove-edge|set-title`
- `config set-model|set-prompt|add-variable|set-opening|add-question|add-tool|remove-tool`
- `export`
- `import`
- `diff`
- `layout`

## Agent Guidance

- Prefer `-j` / `--json-output` on upstream commands when available.
- The harness itself is a wrapper. Real workflow logic is provided by the upstream project.
- If `dify-workflow` is not on PATH but the `dify_workflow` Python package is installed, the wrapper falls back to `python -m dify_workflow.cli`.
- All operations are local file edits on Dify YAML/JSON DSL files.

© HKUDS · Apache-2.0 · HKUDS/CLI-Anything

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor