跳到正文
Skillpedia
PDF、Word 与幻灯片58k · #3182

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

可直接粘贴的消息

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

可以这样问 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 (--json flag): 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:

  1. Always use --json flag for parseable output
  2. Check return codes - 0 for success, non-zero for errors
  3. Parse stderr for error messages on failure
  4. Use absolute paths for all file operations
  5. 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能