Communitygithub.com

cli-anything-anygen

任何生成式 AI 的狀態化命令列介面——透過自然語言提示生成專業簡報、文件、網站、圖表等。專為 AI 代理與進階使用者設計。

cli-anything-anygen 是什麼?

此技能提供一個狀態化的命令列介面,專門用於 AnyGen OpenAPI,允許使用自然語言提示來生成專業級簡報、文件、網站和圖表。它支援多種輸出格式,包括人類可讀的表格與文字,以及機器可解析的 JSON(使用 `--json` 標誌),使其成為 AI 代理和進階使用者的理想工具。此 CLI 包含完整的命令群組,用於任務管理(建立、輪詢、下載和執行任務)、檔案上傳、組態設定(API 金鑰與設定)以及工作階段管理(歷史記錄、復原和重做)。主要功能包括互動式 REPL 模式(提供標籤補全和歷史記錄)、無縫的復原/重做功能(最多 50 層級),以及專案狀態的 JSON 持久化。其設計專注於與 AI 代理的程式化互動,鼓勵使用 `--json` 輸出、檢查回傳碼,以及解析 stderr 以取得錯誤訊息。

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

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

cli-anything-anygen 是做什麼的?

一個狀態化的命令列介面,適用於 AnyGen OpenAPI——透過自然語言提示產生專業簡報、文件、網站、圖表等。專為 AI 代理與進階使用者設計。

安裝

此 CLI 是作為 cli-anything-anygen 套件的一部分安裝的:

pip install cli-anything-anygen

必要條件:

  • Python 3.10+
  • 系統上必須安裝 anygen

使用方式

基本指令

# 顯示幫助
cli-anything-anygen --help

# 啟動互動式 REPL 模式
cli-anything-anygen

# 建立新專案
cli-anything-anygen project new -o project.json

# 以 JSON 輸出執行(供代理使用)
cli-anything-anygen --json project info -p project.json

REPL 模式

在不帶子指令的情況下叫用時,CLI 會進入互動式 REPL 工作階段:

cli-anything-anygen
# 使用標籤補全和歷史記錄以互動方式輸入指令

指令群組

Task(任務)

任務管理——建立、輪詢、下載和執行任務。

指令說明
create建立生成任務
status查詢任務狀態(非阻塞)
poll輪詢任務直到完成(阻塞)
download下載已完成任務的生成檔案
thumbnail下載已完成任務的縮圖影像
run完整工作流程:建立、輪詢、下載
list列出本地快取的任務記錄
prepare在建立任務前進行多輪需求分析

File(檔案)

檔案操作——上傳參考檔案。

指令說明
upload上傳參考檔案以取得 file_token

Config(設定)

組態管理——API 金鑰與設定。

指令說明
set設定組態值
get取得組態值(或顯示所有)
delete刪除組態值
path顯示設定檔路徑

Session(工作階段)

工作階段管理——歷史記錄、復原、重做。

指令說明
status顯示工作階段狀態
history顯示指令歷史記錄
undo復原上一個指令
redo重做上一個復原的指令

範例

建立新專案

建立新的 anygen 專案檔案。

cli-anything-anygen project new -o myproject.json
# 或用 JSON 輸出供程式化使用
cli-anything-anygen --json project new -o myproject.json

互動式 REPL 工作階段

啟動支援復原/重做的互動式工作階段。

cli-anything-anygen
# 以互動方式輸入指令
# 使用 'help' 檢視可用指令
# 使用 'undo' 和 'redo' 進行歷史記錄導覽

狀態管理

CLI 會維護工作階段狀態,包含:

  • 復原/重做:最多 50 層級的歷史記錄
  • 專案持久化:將專案狀態儲存/載入為 JSON
  • 工作階段追蹤:追蹤修改與變更

輸出格式

所有指令都支援雙重輸出模式:

  • 人類可讀(預設):表格、顏色、格式化文字
  • 機器可讀(--json 標誌):結構化 JSON,供代理使用
# 人類輸出
cli-anything-anygen project info -p project.json

# 供代理使用的 JSON 輸出
cli-anything-anygen --json project info -p project.json

給 AI 代理的注意事項

以程式化方式使用此 CLI 時:

  1. 始終使用 --json 標誌 以取得可解析的輸出
  2. 檢查回傳碼 - 0 表示成功,非零表示錯誤
  3. 解析 stderr 以取得失敗時的錯誤訊息
  4. 使用絕對路徑 進行所有檔案操作
  5. 驗證輸出是否存在 在匯出操作後

更多資訊

  • 完整文件:請參閱套件中的 README.md
  • 測試覆蓋率:請參閱套件中的 TEST.md
  • 方法論:請參閱 cli-anything-plugin 中的 HARNESS.md

版本

1.0.0

Individual skills in this repo

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

cli-anything-adguardhome

>-

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-dify-workflow

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

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

>-

相關技能