Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

powerpoint

БесплатноЗапускает вложенные скриптыНе проверен

Build, read, edit .pptx decks and report layouts.

jiayaoqijiaот jiayaoqijia★ 81 звезда на GitHub

Об этом скилле

Powerpoint Skill

Create, inspect, and edit PowerPoint (.pptx) presentations using the python-pptx library. Five helper scripts cover deck creation from a JSON spec, structured read-back, in-place edits, template-driven brand decks, and slide rendering — all offline, no PowerPoint installation required.

When to Use

  • The user asks to build a slide deck, report presentation, or pitch deck.
  • You need to extract text, notes, tables, chart data, or images from a .pptx someone shared.
  • You need to update an existing deck: replace text, refresh or patch chart data, swap a logo, duplicate/remove/reorder slides, set backgrounds, footers, hyperlinks, or speaker notes.
  • You must produce an on-brand deck from a company .pptx template.
  • Do NOT use this for .ppt (legacy binary) files — convert them first with soffice --convert-to pptx old.ppt if LibreOffice is available.

Prerequisites

  • Python 3.10+ with python-pptx installed (pip install python-pptx).
  • Optional: LibreOffice (soffice) plus poppler (pdftoppm or pdftocairo) for rendering slides to PNGs and for PDF export. pptx_render.py detects both with shutil.which and degrades gracefully (reports {"rendered": false, "missing": [...]}, exit 0) when absent — all create/read/edit operations work without them.
  • Check availability via terminal: python -c "import pptx; print(pptx.__version__)" and which soffice pdftoppm.
  • Host note (this box): the Hermes venv has NO python-pptx; use ~/.hermes/tools/pptx-venv/bin/python (3.12, python-pptx 1.0.2, made with uv venv + uv pip install --python ...). soffice IS installed here; pdftoppm/pdftocairo often are not. Install the rasterizer once into that venv: uv pip install --python ~/.hermes/tools/pptx-venv/bin/python pymupdf, then render soffice --headless --convert-to pdf --outdir ./out deck.pptx and page→PNG with PyMuPDF (fitz.open(pdf)[i].get_pixmap(dpi=110).save(...)) so each slide can go through vision_analyze. Never skip the visual check on the assumption that rendering is impossible.

How to Run

All scripts live in scripts/, take --help, print JSON to stdout, and exit non-zero on failure. Run them with terminal:

python scripts/pptx_create.py deck.json out.pptx
python scripts/pptx_read.py deck.pptx --outline      # full JSON outline
python scripts/pptx_read.py deck.pptx --notes        # speaker notes
python scripts/pptx_read.py deck.pptx --images ./img # export pictures
python scripts/pptx_edit.py deck.pptx --replace-text "Old Corp" "New Corp"
python scripts/pptx_edit.py deck.pptx --chart-data update.json
python scripts/pptx_edit.py deck.pptx --duplicate-slide 2
python scripts/pptx_edit.py deck.pptx --remove-slide 3 --move-slide 2 0
python scripts/pptx_from_template.py brand.pptx out.pptx --values vals.json
python scripts/pptx_render.py deck.pptx --outdir ./render  # slide PNGs

Author JSON specs with write_file; inspect script output and generated JSON with read_file.

Quick Reference

Task Command
New deck from spec pptx_create.py spec.json out.pptx
16:9 vs 4:3 "slide_size": "16:9" or "4:3" in the spec
Outline as JSON pptx_read.py deck.pptx --outline
Export images pptx_read.py deck.pptx --images DIR
Replace text pptx_edit.py deck.pptx --replace-text OLD NEW
Replace chart data pptx_edit.py deck.pptx --chart-data spec.json
Patch one series same flag, spec with "ops" (see below)
Swap picture pptx_edit.py deck.pptx --swap-image N NAME new.png
Duplicate slide pptx_edit.py deck.pptx --duplicate-slide N
Remove slide pptx_edit.py deck.pptx --remove-slide N
Reorder slide pptx_edit.py deck.pptx --move-slide FROM TO
Slide background pptx_edit.py deck.pptx --set-background N RRGGBB
Hyperlink runs pptx_edit.py deck.pptx --hyperlink N TEXT URL
Slide number on pptx_edit.py deck.pptx --enable-slide-number N
Footer text pptx_edit.py deck.pptx --set-footer N TEXT
Set notes pptx_edit.py deck.pptx --set-notes N TEXT
Append notes pptx_edit.py deck.pptx --append-notes N TEXT
Fill template pptx_from_template.py tpl.pptx out.pptx --values v.json
Render slide PNGs pptx_render.py deck.pptx --outdir DIR

Procedure

1. Create a deck

Write a JSON spec (see pptx_create.py --help for the full format), then run pptx_create.py. Per slide you can set: layout (title, title_content, section, two_content, title_only, blank), title, subtitle, bullets (strings, or dicts with level 0-4, size pt, bold, italic, font, color hex, link URL for a hyperlink), background (solid hex), footer (text; enables the layout's footer placeholder), slide_number (true; enables the layout's slide-number placeholder), images (path + left/top/width/height in inches), tables (rows as list-of-lists), shapes (rectangle, rounded_rectangle, oval, diamond

Полный SKILL.md на GitHub

Установить powerpoint в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

LICENSESOURCE.mdTRUST.auto.yamlreferences/research-deck.mdreferences/screenshot-deck.mdscripts/measure_render_geometry.pyscripts/pptx_create.pyscripts/pptx_edit.pyscripts/pptx_from_template.pyscripts/pptx_read.pyscripts/pptx_render.py

FAQ

Что делает скилл powerpoint?

Build, read, edit .pptx decks and report layouts.

Как установить скилл powerpoint?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл powerpoint запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить powerpoint с