Communitygithub.com

Dify 工作流程 CLI 技能

CLI-Anything 框架對 Dify 工作流程 DSL CLI 的封裝。可用於創建、檢查、驗證、編輯和匯出 Dify 工作流程檔案。

Dify 工作流程 CLI 技能 是什麼?

此技能提供一個 CLI-Anything 框架,作為 Dify 工作流程 CLI 的封裝,讓 AI 代理能透過命令列與 Dify 的 YAML/JSON DSL 檔案互動。支援建立、檢視、驗證、編輯以及匯出/匯入工作流程定義,並涵蓋節點類型清單、圖形佈局與差異比對等進階功能。此技能支援上游『dify-ai-workflow-tools』CLI 的多數指令,並在執行時自動尋找『python -m dify_workflow.cli』作為備用執行方式。使用此技能,代理可直接操作本機 Dify 工作流程檔案,進行結構化編輯(如新增/移除節點或邊、設定模型參數、提示詞及工具),而無需手動解析 YAML。

相容平台~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 參數。
  • 此框架僅為封裝器,實際工作流程邏輯由上游專案提供。
  • 若系統 PATH 中找不到 dify-workflow,但已安裝 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

>-

相關技能