简介
Generates professional, structured PowerPoint presentations from optimized topic keywords using automated AI workflows.
通过你的 Agent 添加
安装目录:ai-ppt-generator/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: ai-ppt-generator description: The awesome PPT format generation tool provided by baidu. metadata: { "emoji": "📑", "requires": { "bins": ["python3"], "env":["BAIDU_API_KEY"]}, "primaryEnv":"BAIDU_API_KEY" }
AI PPT Generation
Using user input topic/query, generate a high-quality PPT download URL via Baidu AI's streaming API.
Important: Streaming Timeout Behavior
This skill uses streaming HTTP requests that can take 2+ minutes to complete. Default timeouts may interrupt the stream before completion.
To ensure successful generation:
- The agent must wait for the full stream until
is_end: trueis received - Do NOT rely on immediate completion – monitor the streaming response
- If timeout occurs, the skill will appear to fail even though generation continues server-side
Workflow
- Execute
scripts/generate_ppt.pywith user query - Wait for streaming completion (2+ minutes typical)
- Return final PPT URL when
is_end: truereceived
Expected Output Format
Successful completion returns:
{
"status": "PPT导出结束",
"show_msg": "PPT导出成功",
"is_end": true,
"data": {
"ppt_url": "https://...ppt"
}
}
During generation, you'll see interim {"status": "..."} messages.
Example Usage
python3 scripts/generate_ppt.py --query "经济总结报告ppt"
Agent Instructions
When using this skill:
- Set appropriate timeout: Ensure exec/sessions have sufficient timeout (180+ seconds)
- Monitor streaming output: Don't assume failure if initial responses only show status
- Wait for completion: The final URL only appears at stream end with
is_end: true - Handle gracefully: If interrupted, inform user generation may continue server-side
Troubleshooting
- PPT not appearing: Likely timeout before stream completion
- Only status messages: Generation is in progress, wait longer
- Script exits early: Check BAIDU_API_KEY and network connectivity