Token导航 LogoToken导航

Agent Skill · 效率

ppt-generator-skill(ppt 生成技巧)

ppt-generator-skill 用于辅助 Python 项目开发、测试和数据处理,适合在 OpenClaw 中需要阅读 Python 代码、运行测试或整理脚本流程时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

ppt-generator-skill 是效率类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为需要联网;许可证为 MIT-0,第三方扫描已通过,按安装量在效率类的 21,003 个 Skill 里排第 10,250。

总安装 5,316周安装 226GitHub Stars 公开资料未说明下载 1,862核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
4.3.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ppt-generator-skill(ppt 生成技巧)
来源仓库:https://github.com/yuchentsai-design/ppt-generator-skill
安装命令:
openclaw skills install ppt-generator-skill
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install ppt-generator-skill

这个 Skill 是做什么的

效率类 Skill 把重复的整理、汇总、转换工作交给助手完成,减少手工复制粘贴。

从主题或文档自动生成专业 .pptx 演示文稿。支持自定义模板填充和视觉设计。适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。适用于快速产出汇报或培训材料。需确认模板可用性和内容准确性。建议人工复核关键数据和图表。

ppt-generator-skill 属于效率类 Skill,可作为该场景下的辅助能力补充。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install ppt-generator-skill;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

ppt-generator-skill 怎么安装?

在终端执行 openclaw skills install ppt-generator-skill。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

ppt-generator-skill 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

ppt-generator-skill 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

ppt-generator-skill 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

ppt-generator-skill 用的人多吗?

公开数据是累计安装 5,316 次,近一周安装 226 次,下载 1,862 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

ppt-generator-skill 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理效率类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

效率类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
github

GitHub 代码协作 · OpenClaw

7,632,918545需要联网MIT-0通过
nano-pdf

Nano PDF 文档 · OpenClaw

4,249,476231需要联网MIT-0通过
auto-updater

自动更新程序 · OpenClaw

2,964,063386操作浏览器MIT-0通过
video-frames

视频帧 · OpenClaw

2,621,304112需要联网MIT-0通过
gemini

Gemini 助手 · OpenClaw

2,547,39648需要联网MIT-0有提醒
ppt-generator-skill

ppt 生成技巧 · 本页

5,316—需要联网MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
ppt-generator
description
Generate professional .pptx presentations from any topic, uploaded documents, or reference materials. Supports custom PPT templates (filled via python-pptx, not XML editing). Works with any LLM configured in OpenClaw. Real chart rendering, smart content chunking, guided conversation flow.
metadata
openclaw
emoji
📊
requires
bins
["python3", "node"]
pip
["markitdown[pptx]", "pypdf", "python-pptx"]
npm
["pptxgenjs"]

PPT Generator Skill

Generate polished .pptx presentations using the LLM configured in OpenClaw. No external PPT API required — everything runs locally.


Phase 0 — Environment Check (First-Time Setup)

Run once after installing the skill, before anything else.

python3 scripts/check_env.py

The script checks all required and optional dependencies and prints a clear report:

══════════════════════════════════════════════════════
  PPT Generator Skill — Environment Check
══════════════════════════════════════════════════════
  ✅  Python 3.9+      (3.11.4)
  ✅  Node.js          (v20.11.0)
  ✅  npm              (10.2.4)
  ✅  pptxgenjs        (installed)
  ✅  markitdown       (0.4.1)
  ✅  pypdf            (4.2.0)
  ✅  python-pptx      (0.6.23)
  ⚠️   LibreOffice      (not found)
  ⚠️   pdftoppm         (not found)
──────────────────────────────────────────────────────

  ⚠️  OPTIONAL — QA features will be unavailable:

  ▸ LibreOffice  — Optional, needed for QA visual inspection
      $ sudo apt install libreoffice       # Ubuntu/Debian
      $ brew install --cask libreoffice    # macOS

  ▸ pdftoppm  — Optional, needed for QA visual inspection
      $ sudo apt install poppler-utils     # Ubuntu/Debian
      $ brew install poppler               # macOS
══════════════════════════════════════════════════════

If required (❌) items are missing, exact platform-specific install commands are shown. Fix all required items before proceeding.

Auto-install missing Python packages:

python3 scripts/check_env.py --fix

Machine-readable output (for CI / automated setup):

python3 scripts/check_env.py --json

Phase 1 — Requirements Gathering

Do not run any scripts yet. First collect everything needed through a short conversation.

Fast-path — Skip questions when info is already provided

Before asking questions, check whether the user's first message already contains sufficient information. If at least two of the following can be inferred from their message, skip the corresponding question steps and proceed directly to Phase 2:

Info neededExample signalsMaps to
Purpose/topic"AI 趋势", "年度总结", "产品发布"{purpose}, {raw_topic}
Content sourceUploaded files, or detailed description{uploaded_files} or {raw_topic}
Slide count or style"10 页", "科技风", "简约风"{slide_count}, {style}

Example: User says "帮我做一个 10 页的 AI 趋势科技风 PPT" → purpose=科技主题, raw_topic=AI 趋势, slide_count=10, style=未来科技. Skip to Phase 2 style confirmation with pre-filled values.

If information is insufficient, proceed with the question steps below.

Step 1.1 — Understand purpose and topic

Ask the user:

请问这个 PPT 的主题和用途是什么?比如: - 📚 学术报告 / 论文答辩 - 📊 工作汇报 / 季度总结 / 年终总结 - 🎓 培训课程 / 教学课件 - 💼 商业提案 / 投资路演 - 🚀 产品发布 / 项目介绍 - 🎨 活动策划 / 创意方案 - 其他(请描述)

Record the answer as {purpose}.

Step 1.2 — Collect content and reference materials

Ask the user:

请提供这次 PPT 的具体内容或参考资料,可以是: - 直接描述主题要点(文字说明) - 上传文档(支持 .txt / .md / .pdf / .docx / .pptx / .csv / .json) - 两者都有也没问题,内容越详细,PPT 质量越高

Wait for the user's response:

  • Text description → record as {raw_topic}
  • Uploaded files → record as {uploaded_files}
  • Both → use both

Step 1.3 — Ask about PPT template

Ask the user:

您有现成的 PPT 模板文件吗? - 有 → 请上传(.pptx 格式) - 没有 → 我来为您推荐合适的风格

If a .pptx file is uploaded, ask a follow-up:

请问这个 .pptx 文件的用途是: - 🎨 模板文件 — 保留它的视觉风格(背景、配色、字体、版式),填入新内容 - 📄 参考内容 — 提取其中的文字内容作为素材,视觉风格另行选择

Record the answer as {pptx_role}: "template" or "content".


Phase 2 — Style and Structure

If no template: suggest style (Step 2.1)

Run style analysis from what was collected in Phase 1:

# Topic description only:
python3 scripts/suggest_style.py --query "{raw_topic}"

# Uploaded files only:
python3 scripts/analyze_content.py {uploaded_files} > content_analysis.json
python3 scripts/suggest_style.py --content-file content_analysis.json

# Both:
python3 scripts/analyze_content.py {uploaded_files} > content_analysis.json
python3 scripts/suggest_style.py --query "{raw_topic}" --content-file content_analysis.json

Present the suggestion to the user:

根据您的需求,推荐方案如下: | 项目 | 建议 | |------|------| | 风格分类 | {suggested_category} | | 预计页数 | {slide_count_estimate} 页 | | 建议章节 | {key_sections(逗号分隔)} | 配色方案(3 选 1): | # | 方案名 | 主色 | 辅色 | 强调色 | |---|--------|------|------|--------| | 1 | {palette_candidates[0].name} | ⬛ {primary} | ⬜ {secondary} | ◻ {accent} | | 2 | {palette_candidates[1].name} | ⬛ {primary} | ⬜ {secondary} | ◻ {accent} | | 3 | {palette_candidates[2].name} | ⬛ {primary} | ⬜ {secondary} | ◻ {accent} | 字体搭配: 标题 {font_heading} / 正文 {font_body} 请选择配色方案(输入 1/2/3),或直接确认使用推荐方案 1。也可以告诉我需要调整的地方(换风格、增减页数等)。

Wait for confirmation. Record the chosen palette as {palette_hex} and update {slide_count} / {style} per feedback.

Important: After confirmation, add "style_category": "{suggested_category}" to the slide plan JSON (Step 3.2). This field controls which visual layout renderer is used during PPTX generation — each category produces a visually distinct slide structure.

Style categories quick reference:

分类适合场景
企业商务商业提案、投资路演、季度汇报
未来科技AI/科技主题、数字化转型
年终总结年度/季度/工作总结
扁平简约数据报告、产品设计
中国风传统文化、国学、非遗
卡通手绘教学课件、培训、儿童内容
文艺清新生活方式、旅行
文化艺术展览、人文、艺术项目
创意趣味头脑风暴、工作坊
学术研究论文答辩、学术报告

If template uploaded (pptx_role = "template"): analyze it (Step 2.2)

python3 scripts/analyze_template.py uploaded_template.pptx

Inform the user:

已分析您的模板文件,检测到: - 配色:primary={primary}, secondary={secondary} - 字体:标题={heading_font},正文={body_font} - 可用版式({n} 种):{layout_names} 我将保留这套视觉风格,只需您确认大致的页数即可。

Phase 3 — Content Analysis and PPT Generation

All information is now confirmed. Run scripts in sequence without further interruption.

Step 3.1 — Analyze content files

python3 scripts/analyze_content.py {content_files} > content_analysis.json

# For large docs (>40k chars):
python3 scripts/analyze_content.py large_doc.pdf --max-chars 80000 > content_analysis.json

# Structure-only mode for very long docs:
python3 scripts/analyze_content.py large_doc.pdf --summary-only > content_analysis.json

If truncated_files is non-empty in the output, inform the user and offer --max-chars adjustment.

Step 3.1b — Content sizing for LLM (token optimization)

Before sending content to the LLM, apply these rules to control token usage:

Content sizeStrategyExpected tokens
< 5,000 charsSend full content as-is~1.5k
5,000 – 20,000 charsSend content, strip structural summary appendix if present~3-6k
20,000 – 40,000 charsSend structural summary + first 5,000 chars of body content~3k
> 40,000 charsRe-run with --summary-only, send summary only~1-2k

Implementation: When reading content_analysis.json, check each file's total_chars. If content exceeds the threshold, extract only the needed portion before inserting into the LLM prompt. Do NOT blindly paste the entire content field into the prompt.

Step 3.2 — Generate slide plan (LLM)

You are a professional presentation designer. Generate a complete slide plan in JSON format.

PRESENTATION PURPOSE: {purpose}

CONTENT SOURCES:
{content from content_analysis.json, or raw_topic if no files}

STYLE REQUIREMENTS:
- Category: {suggested_category}
- Palette: primary={primary_hex}, secondary={secondary_hex}, accent={accent_hex}
- Font heading: {font_heading}, Font body: {font_body}
- Tone: {suggested_tone}
- Target slides: {slide_count}
- Language: Match the language of the content sources

OUTPUT FORMAT — respond ONLY with valid JSON, no markdown fences:
{
  "title": "Presentation Title",
  "style_category": "{suggested_category}",
  "palette": {
    "primary": "HEX_NO_HASH",
    "secondary": "HEX_NO_HASH",
    "accent": "HEX_NO_HASH"
  },
  "font_heading": "Calibri",
  "font_body": "Calibri",
  "slides": [
    {
      "index": 1,
      "layout": "title",
      "title": "Main Title",
      "subtitle": "Subtitle / tagline / date",
      "body": [],
      "notes": "Speaker notes for this slide",
      "chart": null,
      "visual_hint": ""
    },
    {
      "index": 5,
      "layout": "content",
      "title": "Sales Performance 2024",
      "subtitle": "Year-over-year comparison",
      "body": ["Revenue grew 23% YoY", "NPS score reached 87"],
      "notes": "Emphasize the Q4 recovery story",
      "chart": {
        "type": "bar",
        "title": "Quarterly Revenue (万元)",
        "data": [
          {"label": "Q1", "value": 120},
          {"label": "Q2", "value": 145},
          {"label": "Q3", "value": 98},
          {"label": "Q4", "value": 200}
        ]
      },
      "visual_hint": ""
    },
    {
      "index": 8,
      "layout": "content",
      "title": "Team Highlights",
      "body": ["Cross-functional collaboration", "30% headcount growth"],
      "notes": "Show the team photo here",
      "chart": null,
      "visual_hint": "image:Team photo from 2024 annual offsite"
    }
  ]
}

LAYOUT TYPES:
- "title"      → Cover/conclusion, dark background (slide 1 and last slide)
- "section"    → Section divider, dark background (between major topics)
- "content"    → Standard slide: title + optional subtitle + bullets (max 8)
- "two-column" → Comparison split; body split left/right (max 10 total)
- "quote"      → Large pull quote; body[0] is the quote text (max 1)
- "stat"       → 1-3 big numbers; each body item: "Number|Label" e.g. "85%|Satisfaction" (max 3)

CHART FIELD — use for any slide with numeric data:
  chart.type:  "bar" | "line" | "pie" | "doughnut" | "area"
  chart.title: optional string shown above the chart
  chart.data:  array of {"label": string, "value": number}
               values must be plain numbers — no units, no % signs, no commas
               (e.g. use 85 not "85%" or "85万")
  Set chart to null when no chart is needed.
  When chart is present with body bullets, bullets go left and chart fills right.

VISUAL_HINT FIELD — image/icon placeholders only:
  "image:<description>"  → gray dashed placeholder box (photos, KV art, etc.)
  "icon:<name>"          → small colored accent shape
  ""                     → nothing
  DO NOT put chart data in visual_hint. Use the chart field instead.

RULES:
1. Every slide must have a clear, specific title
2. Body points: max 15 words each
3. Use varied layouts — avoid repeating "content" every slide
4. Use "section" dividers between major topic groups
5. First slide: layout "title". Last slide: "title" or "section"
6. NEVER use "#" prefix in hex colors — "1E2761" not "#1E2761"
7. index must be sequential starting from 1
8. Add chart field for slides with numeric data
9. Use visual_hint only for image/icon placeholders
10. Derive all content faithfully from the provided source materials

Save as slide_plan_raw.json.

Step 3.3 — Validate

python3 scripts/validator.py --plan slide_plan_raw.json --out slide_plan.json 2>validation_report.json
cat validation_report.json

Step 3.4 — Generate PPTX

No template:

python3 scripts/generate_ppt.py --plan slide_plan.json --output presentation.pptx

With template:

python3 scripts/generate_ppt.py \
  --plan slide_plan.json \
  --output presentation.pptx \
  --mode from-template \
  --template uploaded_template.pptx \
  --skip-validation

Patch mode — modify specific slides without regenerating the full plan:

python3 scripts/generate_ppt.py \
  --plan slide_plan.json \
  --output presentation.pptx \
  --patch '{"slides": [{"index": 3, "title": "Updated Title", "body": ["New bullet 1", "New bullet 2"]}]}'

Patch merges specified fields into matching slides by index. Unspecified fields and other slides are preserved. Use this when the user requests changes to specific slides — it avoids a full LLM re-generation of the slide plan.

Step 3.5 — QA

python3 -m markitdown presentation.pptx
python3 -m markitdown presentation.pptx | grep -iE "\bx{3,}\b|lorem|ipsum|\bTODO"

# Visual inspection (requires LibreOffice + pdftoppm):
python3 scripts/office/soffice.py --headless --convert-to pdf presentation.pptx
rm -f slide-*.jpg && pdftoppm -jpeg -r 150 presentation.pdf slide
ls -1 "$PWD"/slide-*.jpg

Full Flow at a Glance

Phase 0 ─── check_env.py ──────────────────── First install only
               │
Phase 1.1 ─── Ask: purpose & topic type
               │
Phase 1.2 ─── Ask: content / upload files
               │
Phase 1.3 ─── Ask: PPT template?
               │                    │
              YES                   NO
               │                    │
          Ask: template          Phase 2.1
          or content?            suggest_style.py
               │                 present → confirm
          template                    │
               │                      │
          Phase 2.2               confirmed
          analyze_template            │
          present info                │
               └──────────┬──────────┘
                           │
Phase 3 ─── analyze_content.py
               │
           LLM → slide_plan_raw.json
               │
           validator.py
               │
           generate_ppt.py
               │
           QA → output .pptx ✅

Script Reference

ScriptPurposeKey flags
check_env.pyVerify all dependencies (first install)--fix, --json
analyze_content.pyParse reference docs--max-chars, --summary-only
analyze_template.pyExtract template design system—
suggest_style.pyInfer style from content--lang, --slides
validator.pySanitize LLM slide plan--out, --strict
generate_ppt.pyBuild PPTX (both modes)--mode, --template, --skip-validation, --patch
template_builder.pyFill template via python-pptx--template, --plan, --output
chart_builder.pychart dict → PptxGenJS chart code(imported by generate_ppt.py)

Design Principles

  • Every data slide needs a chart — use the chart field for any numeric data
  • Dark title slides, light content slides — "sandwich" structure
  • Vary layouts — never repeat the same layout 3+ times in a row
  • Left-align body text, center titles only
  • Minimum 0.5" margins — never crowd edges
  • Never use accent lines under titles — use whitespace instead
  • NEVER # prefix in hex colors — PptxGenJS file corruption
  • NEVER reuse PptxGenJS option objects — use makeShadow() factory pattern

Platform Notes

This skill works in both OpenClaw (agent framework with external LLM) and AI IDEs (Claude Code, Cursor, Windsurf, etc.).

Script paths

All script references use relative paths (scripts/xxx.py). When running in an AI IDE, resolve them relative to the skill installation directory. Example:

# If skill is installed at /path/to/ppt-generator/
python3 /path/to/ppt-generator/scripts/suggest_style.py --query "AI trends"

Step 3.2 in AI IDEs

In Claude Code, Cursor, and similar environments, the agent itself IS the LLM. Step 3.2's slide plan prompt should be treated as a self-instruction: generate the JSON directly and write it to slide_plan_raw.json. No external API call is needed.

Dependency installation in sandboxed environments

Some AI IDEs run in sandboxed containers. If check_env.py --fix fails due to permission issues, try:

pip install "markitdown[pptx]" pypdf python-pptx --break-system-packages --user

Dependencies

# Python (required)
pip install "markitdown[pptx]" pypdf python-pptx --break-system-packages

# Node.js (required)
npm install -g pptxgenjs

# System (optional — QA visual inspection only)
# Linux:  sudo apt install libreoffice poppler-utils
# macOS:  brew install --cask libreoffice && brew install poppler
# Windows: see check_env.py output for download links

平台分布

OpenClaw

80.46%
按下载量换算1,498

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills