pptx-official
What it does
This skill handles PowerPoint files from start to finish. It covers new decks, template filling, reading slides, and converting decks. It is for people who build or update presentations.
When to use it
- βWhen you need a new deck, such as a pitch or training presentation.
- βWhen you have a PowerPoint template and want to fill it with values.
- βWhen you want a deck converted to PDF or images.
Skill link
https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/pptx-official/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βI want to fill my PowerPoint template with this quarter's sales numbers and export it as a PDF.β
5 new skills a week. 1 minute to read.
How it works
The agent picks a path: build with a Python or JavaScript library, fill placeholders in a template, edit the file structure, or read the text. It can render the slides to check how they look.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
PPTX Skill
An Apache-2.0 toolkit for producing, editing, and reading Microsoft PowerPoint
(.pptx) files. Written from scratch against the public
ECMA-376 / ISO/IEC 29500 (PresentationML)
specification and built on permissively-licensed tooling (python-pptx MIT,
pptxgenjs MIT, lxml BSD-3-Clause, Pillow MIT-CMU, optional external
binaries soffice MPL 2.0 and pdftoppm GPL) so it can be reused in
commercial projects without restriction.
Decision matrix
| Situation | Path | Read first |
|---|---|---|
| Build a deck from a prompt or dataset β no source file to start from | Author with python-pptx (structured / repeatable) or PptxGenJS (design-heavy, JS) |
create.md |
You have a .pptx template to fill in β keep its master, layouts, look |
Placeholder replacement via python-pptx |
edit.md β Template fill |
| Deep structural edits β reorder slides, splice XML, add unusual objects | Explode β edit XML parts β assemble | edit.md β Raw XML workflow |
Only need the text / speaker notes / structure out of a .pptx |
Extraction pipeline | read.md |
| Turn a deck into PDF or PNG images (visual QA, publishing) | scripts/render_pdf.py / scripts/render_slides.py via LibreOffice |
see QA below |
| Grid of slide thumbnails for previewing a template | scripts/contact_sheet.py (Pillow) |
read.md β Thumbnails |
If the task mixes several of these, do them in this order: read β plan slide-by-slide β edit/create β validate β visual QA.
One-time environment setup
Bundled runtime: when the
MIMO_PYTHONenvironment variable is set, skipuv/pip installs β run every Python command below withuv runreplaced by"$MIMO_PYTHON"(python-pptx/Pillow/lxml preinstalled; pip console scripts unavailable, use"$MIMO_PYTHON" -m <module>). A bundled LibreOffice is exposed asMIMO_SOFFICE(picked up automatically bysoffice_bridge.py/render_pdf.py), and slide rasterisation automatically falls back to pypdfium2 in that interpreter when Poppler (pdftoppm) is absent. For the PptxGenJS authoring path, bundled Node.js is exposed asMIMO_NODE, with pptxgenjs/react/react-dom/sharp/react-icons/mathjax-full preinstalled inMIMO_NODE_MODULESβ run scripts asNODE_PATH="$MIMO_NODE_MODULES" "$MIMO_NODE" <script.js>instead ofnpm install.
Prerequisites
If uv or bun are not yet installed:
# Install uv (Python package/project manager)
# macOS / Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# Windows: powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
# Install bun (TypeScript runtime, replaces Node.js for this workflow)
# macOS / Linux
curl -fsSL https://bun.sh/install | bash
# Windows: powershell -c "irm bun.sh/install.ps1|iex"
Only if the user explicitly refuses uv / bun, substitute pip (in a venv you manage yourself) for uv, and npm/pnpm + npx tsx for bun β everything else in this skill stays the same.
Python (uv)
Python dependencies are managed by uv. Do not use pip directly.
# Initialize project (if no pyproject.toml exists)
uv init -p 3.12
# Add dependencies
uv add python-pptx lxml Pillow
uv add defusedxml # safe XML parsing (recommended for manual XML edits)
Rules:
- Never use
pipβ alwaysuv addfor packages. - Never run
python scripts/...directly β alwaysuv run scripts/.... - Don't manually manage environments with
python -m venvorsource .venv/bin/activate.
TypeScript (bun)
For PptxGenJS creation, use bun (project-local, not global installs):
# Initialize (if no package.json exists)
bun init -y
# Add dependencies
bun add pptxgenjs # core PPTX creation library
bun add react react-dom sharp # rasterization (icons + formulas)
bun add react-icons # icon library (FA, MD, etc.)
bun add mathjax-full # LaTeX formula rendering
# Type definitions (including Bun runtime types)
bun add -d @types/bun @types/react @types/react-dom
Create a tsconfig.json if one doesn't exist:
{
"compilerOptions": {
"lib": ["ESNext"],
"target": "ESNext",
"module": "Preserve",
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"noEmit": true,
"jsx": "react-jsx",
"strict":
FAQ
Does it keep my template's look?
Yes. Template filling uses placeholders, so the master and layouts stay as they are.
Can it show me how the slides look?
Yes. It can convert the deck to PDF or images for a visual check.
Does it need extra software?
Some rendering uses optional tools such as LibreOffice when they are installed.
Details
Original description by the author
Use this skill whenever a Microsoft PowerPoint (.pptx) file is being produced, opened, transformed, or read. That includes: authoring slide decks, pitch decks, executive readouts, training material, or any presentation deliverable; extracting text or structure from an existing .pptx; filling a .pptx template with values; converting a deck to PDF or images; splitting or merging decks; inspecting slides, layouts, masters, tables, images, charts, speaker notes, or comments. Trigger on words like 'deck', 'slides', 'presentation', 'pitch deck', 'keynote' (when a .pptx is expected as output), or any
repo: XiaomiMiMo/MiMo-Code
Popularity
- GitHub stars
- 14k
- Ranking position
- #11336
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
effect
14kHelps your agent answer questions about the Effect TypeScript framework by checking its source code and docs instead of relying on memory.
arxiv
14kHelps your agent search, read, cite, and track academic papers on arXiv, including abstracts, BibTeX citations, PDF downloads, and citation links.
claude-code
14kHelps your agent hand a coding task to the Claude Code command line tool, as a one-shot run, an interactive session, or a background job.
codex
14kHelps your agent run the OpenAI Codex command line tool without a chat window, for coding tasks, scripts, and automated pipelines.
Similar skills
feishu-doc
394kHelps your agent read, create, and edit Feishu cloud documents, including text, images, and tables, using the document tool.
feishu-drive
394kLets your agent browse, organize, and comment on files in a Feishu cloud folder that has been shared with the bot.
feishu-perm
394kHelps your agent check and change who can access a Feishu file, choosing the smallest permission that meets your request.