← 返回
未分类 中文

PPT生成器

Use this skill any time a .pptx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations;...
当涉及 .pptx 文件时(无论是作为输入、输出还是两者)使用此技能。包括:创建幻灯片、演示文稿、路演稿等;...
yinfeihaaaaaaaaaaa yinfeihaaaaaaaaaaa 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 210
下载
💾 0
安装
1
版本
#latest

概述

PPTX Skill (Localized for WorkBuddy)

Original: anthropics/skills

Localized for WorkBuddy by 非宜

Quick Reference

TaskGuide
-------------
Read/analyze contentpython -m markitdown presentation.pptx
Edit or create from templateRead editing.md
Create from scratchRead pptxgenjs.md

Reading Content

# Text extraction
python -m markitdown presentation.pptx

# Visual overview (requires LibreOffice + Poppler)
python scripts/thumbnail.py presentation.pptx

# Raw XML
python scripts/office/unpack.py presentation.pptx unpacked/

Editing Workflow

Read editing.md for full details.

  1. Analyze template with thumbnail.py
  2. Unpack → manipulate slides → edit content → clean → pack

Creating from Scratch

Read pptxgenjs.md for full details.

Use when no template or reference presentation is available.

Uses pptxgenjs (Node.js) to programmatically generate .pptx files.


Design Ideas

Don't create boring slides. Plain bullets on a white background won't impress anyone. Consider ideas from this list for each slide.

Before Starting

  • Pick a bold, content-informed color palette: The palette should feel designed for THIS topic.
  • Dominance over equality: One color should dominate (60-70% visual weight), with 1-2 supporting tones and one sharp accent.
  • Dark/light contrast: Dark backgrounds for title + conclusion slides, light for content. Or commit to dark throughout for a premium feel.
  • Commit to a visual motif: Pick ONE distinctive element and repeat it.

Color Palettes

ThemePrimarySecondaryAccent
-----------------------------------
Midnight Executive1E2761 (navy)CADCFC (ice blue)FFFFFF (white)
Forest & Moss2C5F2D (forest)97BC62 (moss)F5F5F5 (cream)
Coral EnergyF96167 (coral)F9E795 (gold)2F3C7E (navy)
Warm TerracottaB85042 (terracotta)E7E8D1 (sand)A7BEAE (sage)
Ocean Gradient065A82 (deep blue)1C7293 (teal)21295C (midnight)
Charcoal Minimal36454F (charcoal)F2F2F2 (off-white)212121 (black)

Typography

Header FontBody Font
------------------------
GeorgiaCalibri
Arial BlackArial
CalibriCalibri Light
CambriaCalibri
Trebuchet MSCalibri
ElementSize
---------------
Slide title36-44pt bold
Section header20-24pt bold
Body text14-16pt
Captions10-12pt muted

Avoid (Common Mistakes)

  • Don't repeat the same layout across slides
  • Don't center body text — left-align paragraphs and lists; center only titles
  • Don't default to blue — pick colors that reflect the specific topic
  • Don't create text-only slides — add images, icons, charts, or visual elements
  • NEVER use accent lines under titles — use whitespace or background color instead

QA (Required)

Assume there are problems. Your job is to find them.

Content QA

python -m markitdown output.pptx

Check for missing content, typos, wrong order.

When using templates, check for leftover placeholder text:

python -m markitdown output.pptx | grep -iE "xxxx|lorem|ipsum|this.*(page|slide).*layout"

Visual QA

Convert slides to images, then inspect visually:

# Convert to PDF first (requires LibreOffice)
python scripts/office/soffice.py --headless --convert-to pdf output.pptx

# Convert PDF to JPEG images (requires Poppler - pdftoppm)
pdftoppm -jpeg -r 150 output.pdf slide

This creates slide-01.jpg, slide-02.jpg, etc.


Dependencies

Install these once (managed under ~/.workbuddy/binaries/):

# Python: text extraction
pip install "markitdown[pptx]" Pillow defusedxml

# Node.js: create presentations from scratch
npm install -g pptxgenjs

# Optional (for visual QA):
# - LibreOffice (soffice) for PDF conversion
# - Poppler (pdftoppm) for PDF-to-image conversion

> Windows Note: soffice.py in this localized version skips the AF_UNIX socket shim

> (Linux-only). It simply runs soffice directly via subprocess.run.

> Make sure LibreOffice is installed and soffice is in your PATH, or set the

> SOFFICE_PATH environment variable to the full path of soffice.exe.


Localization Notes (vs. upstream)

  1. scripts/office/soffice.py — Removed AF_UNIX / LD_PRELOAD shim logic.

Windows never blocks AF_UNIX, so the script just delegates to soffice directly.

  1. scripts/office/unpack.py / pack.py — Use defusedxml.minidom (same as upstream).

No changes needed.

  1. Node.js path — Use the managed Node path:

C:\Users\Administrator\.workbuddy\binaries\node\versions\node-v20.18.0-win-x64\node.exe

and the managed npm global prefix for pptxgenjs.

  1. pdftoppm — On Windows, install Poppler for Windows

or use png output from LibreOffice directly as a fallback.


Scripts Overview

ScriptPurpose
-----------------
scripts/office/unpack.pyExtract and pretty-print PPTX
scripts/add_slide.pyDuplicate slide or create from layout
scripts/clean.pyRemove orphaned files
scripts/office/pack.pyRepack with validation
scripts/thumbnail.pyCreate visual grid of slides
scripts/office/soffice.pyRun LibreOffice (Windows-compatible)

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-26 23:48

安全检测

腾讯云安全 (Keen)

队列中

腾讯云安全 (Sanbu)

队列中

🔗 相关推荐

office-efficiency

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 458 📥 152,811
office-efficiency

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 929 📥 186,996
office-efficiency

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 382 📥 145,302