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.
npx skills add HKUDS/CLI-Anything --skill cli-anything-dify-workflow -a claude-codeWhat 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
llmtemplate - validate YAML before importing into Dify
- insert a
codenode 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-code2Manually: put the files in place
~/.claude/skills/cli-anything-dify-workflow/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/cli-anything-dify-workflow/
1Skills CLI (Vercel)
npx skills add HKUDS/CLI-Anything --skill cli-anything-dify-workflow -a codex2Manually: put the files in place
.agents/skills/cli-anything-dify-workflow/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add HKUDS/CLI-Anything --skill cli-anything-dify-workflow -a cursor2Manually: put the files in place
.cursor/skills/cli-anything-dify-workflow/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install HKUDS/CLI-Anything cli-anything-dify-workflow2Manually: put the files in place
.github/skills/cli-anything-dify-workflow/SKILL.md1Skills CLI (Vercel)
npx skills add HKUDS/CLI-Anything --skill cli-anything-dify-workflow -a gemini-cli2Platform CLI
gemini skills install https://github.com/HKUDS/CLI-Anything --path skills/cli-anything-dify-workflowManually: put the files in place
.devin/skills/cli-anything-dify-workflow/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add HKUDS/CLI-Anything --skill cli-anything-dify-workflow -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set18
The whole set →Similar
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