TopRank Skills

Home / Claw Skills / Autres / ai-ppt-generator
Official OpenClaw rules 15%

ai-ppt-generator

Generate PPT with Baidu AI. Smart template selection based on content.

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 ai-ppt-generator 技能。 若已安装,则直接安装 ai-ppt-generator 技能。

Overview

Skill Key
ide-rea/ai-ppt-generator
Author
ide-rea
Source Repo
openclaw/skills
Version
-
Source Path
skills/ide-rea/ai-ppt-generator
Latest Commit SHA
166913ea37913907a16c8e21b4527dc1e2541cf4

Extracted Content

SKILL.md excerpt

# AI PPT Generator

Generate PPT using Baidu AI with intelligent template selection.

## Smart Workflow
1. **User provides PPT topic**
2. **Agent asks**: "Want to choose a template style?"
3. **If yes** → Show styles from `ppt_theme_list.py` → User picks → Use `generate_ppt.py` with chosen `tpl_id` and real `style_id`
4. **If no** → Use `random_ppt_theme.py` (auto-selects appropriate template based on topic content)

## Intelligent Template Selection
`random_ppt_theme.py` analyzes the topic and suggests appropriate template:
- **Business topics** → 企业商务 style
- **Technology topics** → 未来科技 style  
- **Education topics** → 卡通手绘 style
- **Creative topics** → 创意趣味 style
- **Cultural topics** → 中国风 or 文化艺术 style
- **Year-end reports** → 年终总结 style
- **Minimalist design** → 扁平简约 style
- **Artistic content** → 文艺清新 style

## Scripts
- `scripts/ppt_theme_list.py` - List all available templates with style_id and tpl_id
- `scripts/random_ppt_theme.py` - Smart template selection + generate PPT
- `scripts/generate_ppt.py` - Generate PPT with specific template (uses real style_id and tpl_id from API)

## Key Features
- **Smart categorization**: Analyzes topic content to suggest appropriate style
- **Fallback logic**: If template not found, automatically uses random selection
- **Complete parameters**: Properly passes both style_id and tpl_id to API

## Usage Examples
```bash
# List all templates with IDs
python3 scripts/ppt_theme_list.py

# Smart automatic selection (recommended for most users)
python3 scripts/random_ppt_theme.py --query "人工智能发展趋势报告"

# Specific template with proper style_id
python3 scripts/generate_ppt.py --query "儿童英语课件" --tpl_id 106

# Specific template with auto-suggested category
python3 scripts/random_ppt_theme.py --query "企业年度总结" --category "企业商务"
```

## Agent Steps
1. Get PPT topic from user
2. Ask: "Want to choose a template style?" 
3. **If user says YES**:
   - Run `ppt_theme_list.py` to s...

Related Claw Skills