360 Secure SkillHub
360 安全技能中心

openclaw-ppt-generator

通过 scripts/generate_ppt.py 调用开源 python-pptx,在本地把标题与用 | : , 分隔的内容转换成 .pptx 演示文稿,支持项目符号列表和自定义输出路径,返回 JSON 结果,全程无网络与 API 依赖。

xiangzhanyou
xiangzhanyou
热度 93.25
最近更新 2026-05-11 17:30:52
分类:创作依赖:代码执行 / 读写文件应用场景:演示设计 / 文件转换 / 模板

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add openclaw-ppt-generator
Metadata
name
openclaw-ppt-generator
description
Generate PPT documents using Python and python-pptx. No third-party API calls, fully open source.
metadata
{"openclaw":{"emoji":"📊","requires":{"bins":["python3"],"env":[]}}}

OpenClaw PPT Generator

Generate PPT documents using open-source Python library (python-pptx). No third-party API calls required.

Features

  • Fully Open Source: Uses python-pptx library, no API keys needed
  • Simple & Fast: Local generation, no network dependency
  • Flexible Content: Supports titles, text, and bullet lists
  • Standard Templates: Uses built-in PowerPoint layouts

Scripts

  • scripts/generate_ppt.py - Main script to generate PPT from content

Usage Examples

# Generate PPT with title and content
python3 scripts/generate_ppt.py --title "My Presentation" --content "Slide 1 content|Slide 2 content"

# Generate PPT with bullet lists
python3 scripts/generate_ppt.py --title "Project Report" --content "Introduction|Features:Feature A,Feature B,Feature C|Conclusion"

# Specify output path
python3 scripts/generate_ppt.py --title "Meeting Notes" --content "Agenda|Discussion|Action Items" --output "meeting.pptx"

Agent Steps

  1. Get PPT title and content from user
  2. Run scripts/generate_ppt.py with parameters
  3. Return the generated PPT file path

Content Format

  • Use | to separate slides
  • Use : to separate slide title from bullet list
  • Use , to separate bullet items

Example: "Title|Slide1:Item1,Item2,Item3|Slide2:Content"

Output

{
  "status": "success",
  "ppt_path": "output.pptx"
}

Technical Notes

  • Library: python-pptx (open source)
  • No API calls: All processing done locally
  • Templates: Uses standard PowerPoint layouts
  • Output format: .pptx (Microsoft PowerPoint format)