Communitygithub.com

cli-anything-dify-workflow

Dify 工作流 CLI 的封装工具。通过 CLI-Anything 框架创建、检查、验证、编辑和导出 Dify 工作流文件。

cli-anything-dify-workflow 是什么?

cli-anything-dify-workflow 是一个基于 CLI-Anything 框架的 AI 智能体技能,它为 Dify 工作流 DSL 命令行工具提供了一个统一的封装接口。该技能允许开发者通过标准化的命令行操作来创建、检查、验证、编辑和导出 Dify 工作流文件,显著提升了工作流管理的效率与可编程性。它支持 Dify 工作流 CLI 的全部核心命令,包括 guide、list-node-types、create、inspect、validate、edit、config、export、import、diff 和 layout 等。你可以使用它来创建新工作流模板、检查现有工作流的 JSON 结构、验证语法正确性,并通过 add-node/remove-node/add-edge 等子命令直接编辑工作流。技能会自动检测上游 `dify-workflow` 命令是否可用,并在必要时回退到 `python -m dify_workflow.cli` 调用,确保在各种开发环境中都能稳定运行。所有操作均基于本地的 Dify YAML 或 JSON DSL 文件,无需依赖远程服务。

兼容平台~Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/HKUDS/CLI-Anything/tree/main/skills/cli-anything-dify-workflow

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Dify 工作流 CLI 技能

安装

首先安装上游的 Dify 工作流 CLI:

python -m pip install "dify-ai-workflow-tools @ git+https://github.com/Akabane71/dify-workflow-cli.git@main"

然后安装 CLI-Anything 框架:

pip install git+https://github.com/HKUDS/CLI-Anything.git#subdirectory=dify-workflow/agent-harness

用法

该框架会转发到上游的 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 "处理"
cli-anything-dify-workflow config set-model -f app.yaml --provider openai --name gpt-4o

命令组

  • 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

智能体指导

  • 在可用时,优先使用上游命令的 -j / --json-output 参数。
  • 该框架本身是一个封装层,真正的工作流逻辑由上游项目提供。
  • 如果 dify-workflow 不在 PATH 中,但已安装 dify_workflow Python 包,框架会回退到 python -m dify_workflow.cli。
  • 所有操作均为对本地 Dify YAML/JSON DSL 文件进行的本地文件编辑。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

cli-anything-adguardhome

>-

cli-anything-anygen

>-

cli-anything-audacity

>-

cli-anything-blender

>-

cli-anything-browser

Browser automation CLI using DOMShell MCP server. Maps Chrome

cli-anything-calibre

>-

cli-anything-ccswitch

CLI interface for CC Switch — manage AI coding tool configurations from the terminal

cli-anything-chromadb

>-

cli-anything-cloudanalyzer

Command-line interface for CloudAnalyzer — Agent-friendly harness for CloudAnalyzer, a QA platform for mapping, localization, and perception outputs. Supports 27 commands across 8 groups: point cloud evaluation, trajectory evaluation, ground segmentation QA, config-driven quality gates, baseline evolution, processing, visualization, and interactive REPL.

cli-anything-cloudcompare

Command-line interface for CloudCompare — Agent-friendly harness for CloudCompare, the open-source 3D point cloud and mesh processing software. Supports 41 commands across 9 groups: project management, session control, point cloud operations (subsample, filter, segment, analyze), mesh operations, distance computation (C2C, C2M), transformations (ICP, matrix), export (LAS/LAZ/PLY/PCD/OBJ/STL/E57), and interactive REPL.

cli-anything-comfyui

>-

cli-anything-drawio

>-

cli-anything-eez-studio

Use EEZ Studio from the command line: inspect and modify native .eez-project files, edit LVGL screens/widgets, manage SCPI commands, and invoke the real EEZ Studio backend for LVGL builds.

cli-anything-eth2-quickstart

>-

cli-anything-exa

>-

cli-anything-firefly-iii

Firefly III CLI - Personal finance management via CLI-Anything

cli-anything-freecad

Complete CLI harness for FreeCAD parametric 3D CAD modeler (258 commands). Covers ALL workbenches: Part (29 primitives + boolean + mirror + loft + sweep), Sketcher (26 cmds: geometry + constraints + editing), PartDesign (38 cmds: pad/pocket/groove/fillet/chamfer/patterns/hole/datum), Assembly (11 cmds), Mesh (16 cmds), TechDraw (15 cmds: views + dimensions + PDF/SVG), Draft (33 cmds: 2D shapes + arrays + transforms), FEM (12 cmds), CAM/CNC (10 cmds), Surface (6 cmds), Spreadsheet (7 cmds), Import (13 formats), Export (17 formats), Measure (12 cmds), Materials (21 presets). Headless FreeCAD export to STEP/IGES/STL/OBJ/DXF/PDF/glTF/3MF.

cli-anything-gimp

>-

cli-anything-godot

>-

cli-anything-inkscape

>-

相关技能