Cli Anything Dify Workflow

作者 hkuds34f519533bc1无许可证51K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库2周前更新

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

仅含说明AI & Agents
AI 生成的概览

用于创建、检查、验证、编辑和导出 Dify 工作流 DSL 文件的封装命令行工具。

功能
该技能通过 CLI-Anything 封装层调用上游的 Dify 工作流 DSL 命令行工具。它可以让智能体基于模板创建工作流文件、检查与验证文件、编辑节点和连线、配置模型、提示词、变量与工具,以及导入、导出、比较和布局工作流。所有操作都是对 Dify YAML 或 JSON DSL 文件的本地编辑,封装层会把命令转发给上游的 dify-workflow 命令行工具。
适用场景
适用于处理 Dify 工作流定义文件,需要生成、检查、修改或转换这些文件的场景。例如添加节点、验证工作流或导出工作流定义。
运行要求
需要 Python,并从 Git 仓库安装上游的 dify-ai-workflow-tools 包和 CLI-Anything 封装层,因此安装时需要网络访问。上游 dify-workflow 命令行工具需位于 PATH 中,或已安装 dify_workflow Python 包以便封装层回退到 python -m dify_workflow.cli。该技能本身不附带脚本,仅为说明文档。

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.

来源与署名

来源:hkuds/cli-anything位于skills/cli-anything-dify-workflow提交34f5195

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架