pptx

pptx is a command for Claude Code from hamr0/agentic-toolkit. It costs 62 tokens per session (15,693 once invoked), scanned B, original, Apache-2.0.

A toolkit and workflow guide for creating, editing, and examining PowerPoint presentation files (.pptx).

In plain words
What is it for?
Building presentations, changing slides, extracting content, inspecting presentation structure, and working with notes or comments.
Why use it?
It provides different ways to handle ordinary slide text as well as comments, speaker notes, layouts, animations, and complex formatting.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python scripts/rearrange.py template.pptx working.pptx 0,34,34,50,52.

Good fit Building presentations, changing slides, extracting content, inspecting presentation structure, and working with notes or comments.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/hamr0/agentic-toolkit
agentmods
npx agentmods add commands/hamr0/agentic-toolkit/pptx

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pptx

README.md
[![agentmods](https://agentmods.dev/badge/commands/hamr0/agentic-toolkit/pptx/github.svg)](https://agentmods.dev/commands/hamr0/agentic-toolkit/pptx)
Your own site
<a href="https://agentmods.dev/commands/hamr0/agentic-toolkit/pptx"><img src="https://agentmods.dev/badge/commands/hamr0/agentic-toolkit/pptx/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pptx

Your own site · 80×15
<a href="https://agentmods.dev/commands/hamr0/agentic-toolkit/pptx"><img src="https://agentmods.dev/badge/commands/hamr0/agentic-toolkit/pptx.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 15,693 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00062 $0.15693
Opus 5.5 $0.00025 $0.06277
Sonnet 5.5 $0.00012 $0.03139
Haiku 4.5 $0.00006 $0.01569

Measured 1mo ago against content hash 5b8310a94675, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

pptx scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- **LibreOffice**: `sudo apt-get install libreoffice` (for PDF conversion)
ai/customize/skill-to-command/commands/pptx.md · 1,542 lines

How it starts

The opening of the file, as written. The whole thing — 1,542 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PPTX creation, editing, and analysis

Overview

A user may ask you to create, edit, or analyze the contents of a .pptx file. A .pptx file is essentially a ZIP archive containing XML files and other resources that you can read or edit. You have different tools and workflows available for different tasks.

Reading and analyzing content

Text extraction

If you just need to read the text contents of a presentation, you should convert the document to markdown:

# Convert document to markdown
python -m markitdown path-to-file.pptx

Raw XML access

You need raw XML access for: comments, speaker notes, slide layouts, animations, design elements, and complex formatting. For any of these features, you'll need to unpack a presentation and read its raw XML contents.

Unpacking a file

python ooxml/scripts/unpack.py <office_file> <output_dir>

Note: The unpack.py script is located at skills/pptx/ooxml/scripts/unpack.py relative to the project root. If the script doesn't exist at this path, use find . -name "unpack.py" to locate it.

Key file structures
  • ppt/presentation.xml - Main presentation metadata and slide references
  • ppt/slides/slide{N}.xml - Individual slide contents (slide1.xml, slide2.xml, etc.)
  • ppt/notesSlides/notesSlide{N}.xml - Speaker notes for each slide
  • ppt/comments/modernComment_*.xml - Comments for specific slides
  • ppt/slideLayouts/ - Layout templates for slides
  • ppt/slideMasters/ - Master slide templates
  • ppt/theme/ - Theme and styling information
  • ppt/media/ - Images and other media files
Typography and color extraction

When given an example design to emulate: Always analyze the presentation's typography and colors first using the methods below:

  1. Read theme file: Check ppt/theme/theme1.xml for colors (<a:clrScheme>) and fonts (<a:fontScheme>)
  2. Sample slide content: Examine ppt/slides/slide1.xml for actual font usage (<a:rPr>) and colors
  3. Search for patterns: Use grep to find color (<a:solidFill>, <a:srgbClr>) and font references across all XML files

Read the full file on GitHub · 1,542 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 1,542 lines · 62 tokens per session scan B 5b8310a94675

Subscribe to this mod's changes

pptx is a command published in the GitHub repository hamr0/agentic-toolkit (22 stars, last pushed today), licensed Apache-2.0. It adds 62 tokens to every session and 15,693 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.