cli-anything-dify-workflow
它能做什么
这个技能让你的智能体通过命令行封装在 Dify AI 平台上创建和编辑工作流。适合在 Dify 中设计 AI 工作流的开发者。
适用场景
- ✓当你想从模板创建一个新的 Dify 工作流的时候。
- ✓当你想检查或验证一个 Dify 工作流文件的时候。
- ✓当你想为 Dify 应用添加节点或设置模型的时候。
技能链接
https://github.com/HKUDS/CLI-Anything/blob/main/dify-workflow/agent-harness/cli_anything/dify_workflow/skills/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我根据 LLM 模板创建一个 Dify 工作流,添加一个代码节点,并验证这个文件。”
每周 5 个新技能,1 分钟读完。
工作原理
这个技能会把你的命令传递给上游的 Dify 工作流工具,由它完成实际工作。这个封装为你的智能体提供了一套统一的命令。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Dify 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.
常见问题
我需要先安装什么吗?
需要,在封装能够工作之前,你必须先安装上游的 Dify 工作流工具。
封装本身会完成工作吗?
不会,真正的工作流逻辑来自上游项目。
它可以导出我的工作流吗?
可以,这个技能支持导出和导入工作流文件。
详情
作者的原始描述
Wrapper for the Dify workflow DSL CLI. Create, inspect, validate, edit, and export Dify workflow files through a CLI-Anything harness.
repo: HKUDS/CLI-Anything
热度
- GitHub 星标
- 58k
- 排名
- #3200
- 许可证
- Apache-2.0
- 更新时间
- 2026/9/21
评论
- …
同一仓库的更多技能
cli-anything-3mf
58k帮你的智能体检查和修复 3D 打印文件,包括查找圆孔、调整孔径、修复网格,以及比较两个文件。
cli-anything-qgis
58k帮你的智能体在终端中打开、编辑和导出 QGIS 地图项目,包括图层、要素、打印布局和处理工具。
cli-anything-adguardhome
58k帮你的智能体管理 AdGuard Home,这是一款全网络广告拦截器,可管理过滤规则、DNS 重写、客户端和查询日志。
cli-anything-anygen
58k帮你的智能体借助 AnyGen 服务,根据文字提示生成幻灯片、文档、网站和图表。