cli-anything-anygen
它能做什么
这个技能让智能体通过 AnyGen 服务,根据一段自然语言提示创建演示文稿、文档、网站和图表。适合需要快速获得成品文件的人。
适用场景
- ✓当你想根据一段简短的文字描述生成幻灯片的时候。
- ✓当你想根据提示创建文档或网站的时候。
- ✓当你想查看生成任务的进度或下载其文件的时候。
技能链接
https://github.com/HKUDS/CLI-Anything/blob/main/anygen/agent-harness/cli_anything/anygen/skills/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请生成一份关于我们季度业绩的五页幻灯片,并在完成后下载文件。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能会把你的提示作为任务发送到 AnyGen 服务,检查其状态直到完成,然后下载文件和缩略图。你的电脑上必须先安装 anygen 工具。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
cli-anything-anygen
A stateful command-line interface for AnyGen OpenAPI — generate professional slides, documents, websites, diagrams, and more from natural language prompts. Designed for AI agents and power users.
Installation
This CLI is installed as part of the cli-anything-anygen package:
pip install cli-anything-anygen
Prerequisites:
- Python 3.10+
- anygen must be installed on your system
Usage
Basic Commands
# Show help
cli-anything-anygen --help
# Start interactive REPL mode
cli-anything-anygen
# Create a new project
cli-anything-anygen project new -o project.json
# Run with JSON output (for agent consumption)
cli-anything-anygen --json project info -p project.json
REPL Mode
When invoked without a subcommand, the CLI enters an interactive REPL session:
cli-anything-anygen
# Enter commands interactively with tab-completion and history
Command Groups
Task
Task management — create, poll, download, and run tasks.
| Command | Description |
|---|---|
create |
Create a generation task |
status |
Query task status (non-blocking) |
poll |
Poll task until completion (blocking) |
download |
Download the generated file for a completed task |
thumbnail |
Download thumbnail image for a completed task |
run |
Full workflow: create, poll, download |
list |
List locally cached task records |
prepare |
Multi-turn requirement analysis before creating a task |
File
File operations — upload reference files.
| Command | Description |
|---|---|
upload |
Upload a reference file to get a file_token |
Config
Configuration management — API key and settings.
| Command | Description |
|---|---|
set |
Set a configuration value |
get |
Get a configuration value (or show all) |
delete |
Delete a configuration value |
path |
Show the config file path |
Session
Session management — history, undo, redo.
| Command | Description |
|---|---|
status |
Show session status |
history |
Show command history |
undo |
Undo last command |
redo |
Redo last undone command |
Examples
Create a New Project
Create a new anygen project file.
cli-anything-anygen project new -o myproject.json
# Or with JSON output for programmatic use
cli-anything-anygen --json project new -o myproject.json
Interactive REPL Session
Start an interactive session with undo/redo support.
cli-anything-anygen
# Enter commands interactively
# Use 'help' to see available commands
# Use 'undo' and 'redo' for history navigation
State Management
The CLI maintains session state with:
- Undo/Redo: Up to 50 levels of history
- Project persistence: Save/load project state as JSON
- Session tracking: Track modifications and changes
Output Formats
All commands support dual output modes:
- Human-readable (default): Tables, colors, formatted text
- Machine-readable (
--jsonflag): Structured JSON for agent consumption
# Human output
cli-anything-anygen project info -p project.json
# JSON output for agents
cli-anything-anygen --json project info -p project.json
For AI Agents
When using this CLI programmatically:
- Always use
--jsonflag for parseable output - Check return codes - 0 for success, non-zero for errors
- Parse stderr for error messages on failure
- Use absolute paths for all file operations
- Verify outputs exist after export operations
More Information
- Full documentation: See README.md in the package
- Test coverage: See TEST.md in the package
- Methodology: See HARNESS.md in the cli-anything-plugin
Version
1.0.0
常见问题
我需要安装什么吗?
需要。你的系统必须安装 anygen 工具,还需要 Python 3.10 或更新版本。
我可以不等待就查看进度吗?
可以。该技能可以不阻塞地检查任务状态,也可以一直等待到任务完成。
它能创建什么?
它可以根据文字提示创建幻灯片、文档、网站和图表。
详情
作者的原始描述
Command-line interface for Anygen - A stateful command-line interface for AnyGen OpenAPI — generate professional slides, documents, webs...
repo: HKUDS/CLI-Anything
热度
- GitHub 星标
- 58k
- 排名
- #3182
- 许可证
- 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-audacity
58k帮你的智能体使用 Audacity 从命令行编辑音频,包括管理音频项目和音轨。