About cli-anything-dify-workflow
cli-anything-dify-workflow is a command-line skill for Agents working with Dify workflows. It wraps the upstream CLI to create, inspect, validate, and edit local YAML/JSON DSL files and app configuration.
Key features
- 01Create and inspect workflows
- 02Validate and diff files
- 03Edit nodes and edges
- 04Configure models and prompts
- 05Import, export, and layout
Use cases
- 01Create a template-based workflow
- 02Inspect or validate Dify files
- 03Change nodes, edges, or titles
- 04Adjust app models and prompts
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ hkuds/ cli-anything --skill cli-anything-dify-workflowAfter installing, type/cli-anything-dify-workflowin Claude Code to confirm it loaded.
Details
From the project READMEDify Workflow CLI Skill
Installation
Install the upstream Dify workflow CLI first:
python -m pip install "dify-ai-workflow-tools @ git+https://github.com/Akabane71/dify-workflow-cli.git@main"
Then install the CLI-Anything harness:
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.
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
guidelist-node-typescreateinspectvalidatechecklistedit add-node|remove-node|update-node|add-edge|remove-edge|set-titleconfig set-model|set-prompt|add-variable|set-opening|add-question|add-tool|remove-toolexportimportdifflayout
Agent Guidance
- Prefer
-j/--json-outputon upstream commands when available. - The harness itself is a wrapper. Real workflow logic is provided by the upstream project.
- If
dify-workflowis not on PATH but thedify_workflowPython package is installed, the wrapper falls back topython -m dify_workflow.cli. - All operations are local file edits on Dify YAML/JSON DSL files.
Comments
Markdown supported