← 返回 Skills 市场
66
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install anthropic-pptx
功能描述
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;...
使用说明 (SKILL.md)
\r \r
PPTX Skill\r
\r
Quick Reference\r
\r
| Task | Guide |\r
|------|-------|\r
| Read/analyze content | python -m markitdown presentation.pptx |\r
| Edit or create from template | Read editing.md |\r
| Create from scratch | Read pptxgenjs.md |\r
\r
---\r
\r
Reading Content\r
\r
# Text extraction\r
python -m markitdown presentation.pptx\r
\r
# Visual overview\r
python scripts/thumbnail.py presentation.pptx\r
\r
# Raw XML\r
python scripts/office/unpack.py presentation.pptx unpacked/\r
```\r
\r
---\r
\r
## Editing Workflow\r
\r
**Read [editing.md](editing.md) for full details.**\r
\r
1. Analyze template with `thumbnail.py`\r
2. Unpack → manipulate slides → edit content → clean → pack\r
\r
---\r
\r
## Creating from Scratch\r
\r
**Read [pptxgenjs.md](pptxgenjs.md) for full details.**\r
\r
Use when no template or reference presentation is available.\r
\r
---\r
\r
## Design Ideas\r
\r
**Don't create boring slides.** Plain bullets on a white background won't impress anyone. Consider ideas from this list for each slide.\r
\r
### Before Starting\r
\r
- **Pick a bold, content-informed color palette**: The palette should feel designed for THIS topic. If swapping your colors into a completely different presentation would still "work," you haven't made specific enough choices.\r
- **Dominance over equality**: One color should dominate (60-70% visual weight), with 1-2 supporting tones and one sharp accent. Never give all colors equal weight.\r
- **Dark/light contrast**: Dark backgrounds for title + conclusion slides, light for content ("sandwich" structure). Or commit to dark throughout for a premium feel.\r
- **Commit to a visual motif**: Pick ONE distinctive element and repeat it — rounded image frames, icons in colored circles, thick single-side borders. Carry it across every slide.\r
\r
### Color Palettes\r
\r
Choose colors that match your topic — don't default to generic blue. Use these palettes as inspiration:\r
\r
| Theme | Primary | Secondary | Accent |\r
|-------|---------|-----------|--------|\r
| **Midnight Executive** | `1E2761` (navy) | `CADCFC` (ice blue) | `FFFFFF` (white) |\r
| **Forest & Moss** | `2C5F2D` (forest) | `97BC62` (moss) | `F5F5F5` (cream) |\r
| **Coral Energy** | `F96167` (coral) | `F9E795` (gold) | `2F3C7E` (navy) |\r
| **Warm Terracotta** | `B85042` (terracotta) | `E7E8D1` (sand) | `A7BEAE` (sage) |\r
| **Ocean Gradient** | `065A82` (deep blue) | `1C7293` (teal) | `21295C` (midnight) |\r
| **Charcoal Minimal** | `36454F` (charcoal) | `F2F2F2` (off-white) | `212121` (black) |\r
| **Teal Trust** | `028090` (teal) | `00A896` (seafoam) | `02C39A` (mint) |\r
| **Berry & Cream** | `6D2E46` (berry) | `A26769` (dusty rose) | `ECE2D0` (cream) |\r
| **Sage Calm** | `84B59F` (sage) | `69A297` (eucalyptus) | `50808E` (slate) |\r
| **Cherry Bold** | `990011` (cherry) | `FCF6F5` (off-white) | `2F3C7E` (navy) |\r
\r
### For Each Slide\r
\r
**Every slide needs a visual element** — image, chart, icon, or shape. Text-only slides are forgettable.\r
\r
**Layout options:**\r
- Two-column (text left, illustration on right)\r
- Icon + text rows (icon in colored circle, bold header, description below)\r
- 2x2 or 2x3 grid (image on one side, grid of content blocks on other)\r
- Half-bleed image (full left or right side) with content overlay\r
\r
**Data display:**\r
- Large stat callouts (big numbers 60-72pt with small labels below)\r
- Comparison columns (before/after, pros/cons, side-by-side options)\r
- Timeline or process flow (numbered steps, arrows)\r
\r
**Visual polish:**\r
- Icons in small colored circles next to section headers\r
- Italic accent text for key stats or taglines\r
\r
### Typography\r
\r
**Choose an interesting font pairing** — don't default to Arial. Pick a header font with personality and pair it with a clean body font.\r
\r
| Header Font | Body Font |\r
|-------------|-----------|\r
| Georgia | Calibri |\r
| Arial Black | Arial |\r
| Calibri | Calibri Light |\r
| Cambria | Calibri |\r
| Trebuchet MS | Calibri |\r
| Impact | Arial |\r
| Palatino | Garamond |\r
| Consolas | Calibri |\r
\r
| Element | Size |\r
|---------|------|\r
| Slide title | 36-44pt bold |\r
| Section header | 20-24pt bold |\r
| Body text | 14-16pt |\r
| Captions | 10-12pt muted |\r
\r
### Spacing\r
\r
- 0.5" minimum margins\r
- 0.3-0.5" between content blocks\r
- Leave breathing room—don't fill every inch\r
\r
### Avoid (Common Mistakes)\r
\r
- **Don't repeat the same layout** — vary columns, cards, and callouts across slides\r
- **Don't center body text** — left-align paragraphs and lists; center only titles\r
- **Don't skimp on size contrast** — titles need 36pt+ to stand out from 14-16pt body\r
- **Don't default to blue** — pick colors that reflect the specific topic\r
- **Don't mix spacing randomly** — choose 0.3" or 0.5" gaps and use consistently\r
- **Don't style one slide and leave the rest plain** — commit fully or keep it simple throughout\r
- **Don't create text-only slides** — add images, icons, charts, or visual elements; avoid plain title + bullets\r
- **Don't forget text box padding** — when aligning lines or shapes with text edges, set `margin: 0` on the text box or offset the shape to account for padding\r
- **Don't use low-contrast elements** — icons AND text need strong contrast against the background; avoid light text on light backgrounds or dark text on dark backgrounds\r
- **NEVER use accent lines under titles** — these are a hallmark of AI-generated slides; use whitespace or background color instead\r
\r
---\r
\r
## QA (Required)\r
\r
**Assume there are problems. Your job is to find them.**\r
\r
Your first render is almost never correct. Approach QA as a bug hunt, not a confirmation step. If you found zero issues on first inspection, you weren't looking hard enough.\r
\r
### Content QA\r
\r
```bash\r
python -m markitdown output.pptx\r
```\r
\r
Check for missing content, typos, wrong order.\r
\r
**When using templates, check for leftover placeholder text:**\r
\r
```bash\r
python -m markitdown output.pptx | grep -iE "xxxx|lorem|ipsum|this.*(page|slide).*layout"\r
```\r
\r
If grep returns results, fix them before declaring success.\r
\r
### Visual QA\r
\r
**⚠️ USE SUBAGENTS** — even for 2-3 slides. You've been staring at the code and will see what you expect, not what's there. Subagents have fresh eyes.\r
\r
Convert slides to images (see [Converting to Images](#converting-to-images)), then use this prompt:\r
\r
```\r
Visually inspect these slides. Assume there are issues — find them.\r
\r
Look for:\r
- Overlapping elements (text through shapes, lines through words, stacked elements)\r
- Text overflow or cut off at edges/box boundaries\r
- Decorative lines positioned for single-line text but title wrapped to two lines\r
- Source citations or footers colliding with content above\r
- Elements too close (\x3C 0.3" gaps) or cards/sections nearly touching\r
- Uneven gaps (large empty area in one place, cramped in another)\r
- Insufficient margin from slide edges (\x3C 0.5")\r
- Columns or similar elements not aligned consistently\r
- Low-contrast text (e.g., light gray text on cream-colored background)\r
- Low-contrast icons (e.g., dark icons on dark backgrounds without a contrasting circle)\r
- Text boxes too narrow causing excessive wrapping\r
- Leftover placeholder content\r
\r
For each slide, list issues or areas of concern, even if minor.\r
\r
Read and analyze these images:\r
1. /path/to/slide-01.jpg (Expected: [brief description])\r
2. /path/to/slide-02.jpg (Expected: [brief description])\r
\r
Report ALL issues found, including minor ones.\r
```\r
\r
### Verification Loop\r
\r
1. Generate slides → Convert to images → Inspect\r
2. **List issues found** (if none found, look again more critically)\r
3. Fix issues\r
4. **Re-verify affected slides** — one fix often creates another problem\r
5. Repeat until a full pass reveals no new issues\r
\r
**Do not declare success until you've completed at least one fix-and-verify cycle.**\r
\r
---\r
\r
## Converting to Images\r
\r
Convert presentations to individual slide images for visual inspection:\r
\r
```bash\r
python scripts/office/soffice.py --headless --convert-to pdf output.pptx\r
pdftoppm -jpeg -r 150 output.pdf slide\r
```\r
\r
This creates `slide-01.jpg`, `slide-02.jpg`, etc.\r
\r
To re-render specific slides after fixes:\r
\r
```bash\r
pdftoppm -jpeg -r 150 -f N -l N output.pdf slide-fixed\r
```\r
\r
---\r
\r
## Dependencies\r
\r
- `pip install "markitdown[pptx]"` - text extraction\r
- `pip install Pillow` - thumbnail grids\r
- `npm install -g pptxgenjs` - creating from scratch\r
- LibreOffice (`soffice`) - PDF conversion (auto-configured for sandboxed environments via `scripts/office/soffice.py`)\r
- Poppler (`pdftoppm`) - PDF to images\r
安全使用建议
What to consider before installing:
- Missing dependency declarations: the skill runs soffice, pdftoppm, gcc and requires Python packages (Pillow, defusedxml, etc.) but the metadata lists no required binaries or packages. If you install this, ensure those tools are available and understand they will be invoked.
- Runtime compilation + LD_PRELOAD: the included office/soffice.py will write C source to a temp directory and compile a shared object with gcc, then set LD_PRELOAD for LibreOffice subprocesses. That changes how subprocess socket calls behave while the shim is loaded. Only run this skill in an environment you control (container or VM) and if you trust the code.
- Licensing/attribution mismatch: LICENSE.txt claims Anthropic ownership but the source/owner is unknown. Confirm you have the right to use these materials and that the license terms are acceptable for your use.
- Frequent/autonomous triggers: SKILL.md tells agents to trigger this skill whenever slides/presentations are mentioned. If the agent can invoke skills autonomously, this may cause the skill to run often; consider limiting invocation scope or requiring explicit user approval.
- Audit the code and run in isolation: review the provided scripts (they are readable) and test them in an isolated environment before giving the skill access to sensitive files. If you do not want on-host compilation or LD_PRELOAD behavior, remove or modify the soffice shim and ensure the environment has a normal soffice/pdftoppm setup.
If you trust the author and will run in a controlled environment (or update the metadata to declare dependencies), the skill appears coherent with its stated purpose; otherwise treat it cautiously.
功能分析
Type: OpenClaw Skill
Name: anthropic-pptx
Version: 1.0.0
The skill bundle is a comprehensive toolset for creating, reading, and editing PowerPoint presentations. It includes robust OOXML manipulation scripts (add_slide.py, clean.py, unpack.py, pack.py) that use defusedxml to prevent XML vulnerabilities. A notable technical component is soffice.py, which compiles a C shim at runtime to allow LibreOffice to function in restricted environments by redirecting AF_UNIX socket calls to socketpairs; while sophisticated, this behavior is well-documented within the code as a workaround for sandboxed VMs and lacks any malicious indicators like data exfiltration or reverse shells. The SKILL.md file provides detailed instructions for the AI agent, including a self-correction loop using subagents for visual QA, which is consistent with high-quality automated document generation.
能力评估
Purpose & Capability
The name/description (pptx handling) matches the included Python scripts and documentation: unpack, edit, thumbnail, and pack workflows for .pptx files. However, the LICENSE.txt claims Anthropic proprietary materials while the skill source/owner is unknown — a licensing/attribution mismatch that users should notice.
Instruction Scope
SKILL.md instructs running Python commands and the included scripts (thumbnail.py, unpack/pack/clean). Those scripts call external tools (soffice, pdftoppm) and expect Python modules (Pillow, defusedxml, etc.) that are not declared. The docs also instruct using subagents and an 'Edit tool' which could broaden file access. The guidance triggers whenever the user mentions slides/decks, increasing the chance of frequent invocation. The instructions therefore access system commands and files beyond what SKILL.md declares.
Install Mechanism
There is no install spec even though the skill includes many code files and XML schemas. At runtime scripts/soffice.py will write C source into a tempdir and invoke gcc to compile a shared object, then set LD_PRELOAD for subprocesses. That runtime compilation and LD_PRELOAD behavior is not called out in SKILL.md and is higher-risk than ordinary pure-Python scripts.
Credentials
The skill does not request credentials or environment variables in its metadata. The code copies os.environ and may set SAL_USE_VCLPLUGIN and LD_PRELOAD for soffice subprocesses, but it does not attempt to read or exfiltrate secrets. Still, the use of LD_PRELOAD and copying the environment is an environment-modifying action that should be acknowledged.
Persistence & Privilege
always:false and no skills/config modification are requested. However, the skill writes files (temp C source and a compiled .so) and may set LD_PRELOAD for subprocesses at runtime — this is not persistent across agent installs but does give the skill the ability to alter subprocess behavior on the host during use. That elevated runtime capability increases the attack surface compared with a pure-Python library.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install anthropic-pptx - 安装完成后,直接呼叫该 Skill 的名称或使用
/anthropic-pptx触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release with comprehensive PPTX presentation handling and design guidance.
- Triggers whenever any .pptx (presentation) file is to be created, edited, read, or used—including design, extraction, or modification tasks.
- Provides quick references and workflows for reading, editing, and creating slide decks from scratch.
- Includes practical design recommendations: color palettes, layouts, typography, and visual elements to avoid generic presentations.
- Emphasizes thorough QA: both content and visual, with recommended checks and instructions.
- Lists common mistakes to avoid for higher-quality, visually engaging slides.
元数据
常见问题
anthropic-pptx 是什么?
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;... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 66 次。
如何安装 anthropic-pptx?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install anthropic-pptx」即可一键安装,无需额外配置。
anthropic-pptx 是免费的吗?
是的,anthropic-pptx 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
anthropic-pptx 支持哪些平台?
anthropic-pptx 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 anthropic-pptx?
由 chang(@liberalchang)开发并维护,当前版本 v1.0.0。
推荐 Skills