跳到正文
Skillpedia
智能体58k · #3200

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/HKUDS/CLI-Anything/blob/main/dify-workflow/agent-harness/cli_anything/dify_workflow/skills/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  • 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.
常见问题

我需要先安装什么吗?

需要,在封装能够工作之前,你必须先安装上游的 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能