---
name: anygen
description: When user needs AnyGenIO content generation → unified CLI for task execution with progressive disclosure.
triggers:
  intent_patterns:
    - "anygen|ppt|slides|生成文档|docx|storyboard|website|data analysis|smart_draw|diagram"
    - "帮我.*做个.*文档|create.*document|写.*报告|write.*report"
    - "分镜|storyboard|故事板|脚本.*可视化"
    - "生成.*网站|generate.*website|落地页|landing.*page"
    - "数据.*分析|data.*analysis|统计.*图表|statistical.*chart"
    - "智能.*绘图|smart.*draw|自动.*画图|auto.*diagram"
    - "word.*文档|word.*doc|文档.*模板|doc.*template"
  context_signals:
    keywords: ["anygen", "slide", "ppt", "doc", "website", "data_analysis", "smart_draw", "storyboard", "文档", "报告", "分镜", "落地页", "模板"]
  confidence_threshold: 0.6
priority: 7
requires_tools: [bash]
max_tokens: 260
cooldown: 20
output:
  format: markdown
  artifacts: true
  artifact_type: file
---

# AnyGen (CLI + Progressive Skills)

将上游仓库 `https://github.com/AnyGenIO/anygen-skills` 封装成 elephant.ai 可直接调用的统一入口：

- `help`：渐进式披露（overview → modules → module → action）
- `task`：执行 `task-manager` 的动作（`create/status/poll/download/run`）

## 快速前置

- 需要环境变量：`ANYGEN_API_KEY=sk-xxx`
- 入口命令：`python3 skills/anygen/run.py <command> [subcommand] [--flag value ...]`

## 渐进式披露（推荐顺序）

```bash
# 1) 顶层总览
python3 skills/anygen/run.py help

# 2) 模块清单
python3 skills/anygen/run.py help --topic modules

# 3) 查看模块说明
python3 skills/anygen/run.py help --topic module --module task-manager

# 4) 查看具体动作参数与示例
python3 skills/anygen/run.py help --topic action --module task-manager --action_name create
```

## task-manager 执行动作

支持 operation：`chat|slide|doc|storybook|data_analysis|website|smart_draw`

```bash
# 创建任务
python3 skills/anygen/run.py task create --operation slide --prompt 'Q2 roadmap deck' --style business

# 查询状态（单次）
python3 skills/anygen/run.py task status --task_id task_xxx

# 轮询直到结束（可自动下载）
python3 skills/anygen/run.py task poll --task_id task_xxx --output ./output

# 直接下载完成任务文件
python3 skills/anygen/run.py task download --task_id task_xxx --output ./output

# 一步式 create + poll (+可下载)
python3 skills/anygen/run.py task run --operation doc --prompt 'Technical design for notification service' --output ./output
```

## 模块边界

- `task-manager`：本封装可执行。
- `finance-report`：当前提供引导说明（help 可见），不在此 skill 内直接执行。

## 兼容说明

- 输入支持 `command` 或 `action` 作为顶层命令名。
- 当 `action=create/status/poll/download/run` 时，会自动路由到 `task` 命令。
