Cli Anything Dify Workflow

by hkuds34f519533bc1No license51K starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated 2 weeks ago

Wrapper for the Dify workflow DSL CLI. Create, inspect, validate, edit, and export Dify workflow files through a CLI-Anything harness.

Instructions onlyAI & Agents
AI-generated overview

Wrapper CLI for creating, inspecting, validating, editing and exporting Dify workflow DSL files.

What it does
This skill wraps the upstream Dify workflow DSL CLI through a CLI-Anything harness. It lets an agent create workflow files from templates, inspect and validate them, edit nodes and edges, configure models, prompts, variables and tools, and import, export, diff or lay out workflows. All operations are local edits to Dify YAML or JSON DSL files, and the harness forwards commands to the upstream dify-workflow CLI.
When to use it
Use it when working with Dify workflow definition files and needing to generate, check, modify or convert them. It suits tasks such as adding a node, validating a workflow, or exporting a workflow definition.
Requirements
Requires Python and installation of the upstream dify-ai-workflow-tools package plus the CLI-Anything harness, both from Git repositories, so network access is needed for installation. The upstream dify-workflow CLI must be on PATH, or the dify_workflow Python package installed so the wrapper can fall back to python -m dify_workflow.cli. Ships no scripts of its own; it is instructions only.

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 guidecli-anything-dify-workflow list-node-typescli-anything-dify-workflow create -o workflow.yaml --mode workflow --template llmcli-anything-dify-workflow inspect workflow.yaml -jcli-anything-dify-workflow validate workflow.yaml -jcli-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.

Source and attribution

Source:hkuds/cli-anythinginskills/cli-anything-dify-workflowat commit34f5195

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal