slides-extract

slides-extract is a skill for Claude Code, Codex from mpuig/agent-slides. It costs 71 tokens per session (1,277 once invoked), scanned A, original, MIT.

A PowerPoint template analysis tool that extracts the layouts, slide patterns, and design rules from a .pptx file. The results provide a structured starting point for building new slides.

In plain words
What is it for?
Use it to prepare a template before creating a deck, inspect a sample presentation, and produce layout previews and a reusable base template.
Why use it?
It prevents slide-generation work from guessing which layouts, colors, and structures the template supports.

Skill for Claude CodeCodex

Part of the agent-slides plugin — 7 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/mpuig/agent-slides/slides-extract
Any agent
npx skills add mpuig/agent-slides --skill slides-extract
Clone the repo
git clone --depth 1 https://github.com/mpuig/agent-slides

Made for: Claude Code, Codex.

Or install agent-slides, the plugin that ships this one along with the rest of its 7 skills.

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 slides-extract

README.md
[![agentmods](https://agentmods.dev/badge/skills/mpuig/agent-slides/slides-extract.svg)](https://agentmods.dev/skills/mpuig/agent-slides/slides-extract)
Your own site
<a href="https://agentmods.dev/skills/mpuig/agent-slides/slides-extract"><img src="https://agentmods.dev/badge/skills/mpuig/agent-slides/slides-extract.svg" alt="Measured on agentmods" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,277 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00071 $0.01277
Opus 5 $0.00036 $0.00639
Sonnet 5 $0.00014 $0.00255
Haiku 4.5 $0.00007 $0.00128

Measured 4d ago against content hash 00e1b5f31e69, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

slides-extract scanned grade A with 0 findings 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 4d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/slides-extract/SKILL.md · 133 lines

How it starts

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

Slides Extract

You are a template analyst. Your job is to extract structured contracts from PowerPoint templates so that downstream skills can generate pixel-perfect decks without guessing.

Extract template contracts from a .pptx template or sample deck.

When to Use

  • Before the first /slides-build for a given template
  • When the source template changes
  • When you need to analyze a template's layouts and capabilities

Prerequisites

  • A .pptx file (template or sample deck with example slides)

Process

Step 1) Create project directory

Create a dedicated directory for this project's artifacts:

mkdir -p output/<project-name>

All subsequent commands and outputs go in this directory.

Step 2) Run extraction

Use uvx --from agent-slides slides docs method:extract to verify the current contract, then:

uvx --from agent-slides slides extract <template_or_sample.pptx> \
  --output-dir output/<project> \
  --base-template-out output/<project>/base_template.pptx \
  --compact

Optional: add --layout-preview-dir output/<project>/layout_previews for per-layout PNGs (legacy override), or specific --*-out paths for one-off custom filenames.

Step 3) Verify outputs

Artifact Purpose
template_layout.json Physical layout families, placeholders, geometry
content_layout.json Archetype-to-layout compatibility map
archetypes.json Available archetypes with usage constraints
resolved_manifest.json Merged contract — theme palette, per-archetype resolved layout bindings. Primary reference for /slides-build.
slides_manifest.json Slide-by-slide inventory of the source
slide_analysis.json Deep per-slide structural analysis
slide_screenshots/ Visual reference screenshots
icons/ Vector icons extracted from template slides (freeform/group shapes). Available via add_icon when icon_pack_dir is set in design profile.
base_template.pptx Clean .pptx — all masters/layouts/theme, zero content slides

Read the full file on GitHub · 133 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. 4d ago First seen · 133 lines · 71 tokens per session scan A 00e1b5f31e69

Subscribe to this mod's changes

slides-extract is a skill published in the GitHub repository mpuig/agent-slides (10 stars, last pushed 5mo ago), licensed MIT. It adds 71 tokens to every session and 1,277 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

doc-review

Document review via Codex MCP. Use when: reviewing .md docs, tech spec audit, document quality check. Not for: code review (use codex-code-review), test review (use test-review). Output: 5-dimension rating table + gate.

sd0xdev/sd0x-harness · 56 tokens

obsidian-cli

Obsidian vault integration via official CLI. Use when: capturing dev artifacts to Obsidian vault, searching vault for context, appending to daily note, managing tasks in vault. Not for: general note-taking without Obsidian (use regular files), browsing Obsidian docs (use agent-browser). Output: vault search results…

sd0xdev/sd0x-harness · 78 tokens

de-ai-flavor

Remove AI artifacts from documents. Use when: cleaning AI-generated text, removing tool names, fixing boilerplate patterns. Not for: doc review (use doc-review), doc refactoring (use doc-refactor). Output: cleaned document preserving original intent.

sd0xdev/sd0x-harness · 55 tokens

draw-io-diagram-generator

Use when creating, editing, or generating draw.io diagram files (.drawio, .drawio.svg, .drawio.png). Covers mxGraph XML authoring, shape libraries, style strings, flowcharts, system architecture, sequence diagrams, ER diagrams, UML class diagrams, network topology, layout strategy, the hediet.vscode-drawio VS Code…

boshi-xixixi/TraeSkill · 94 tokens

ui-first-principles

First-principles UI/IA reasoning: turns a + API field set into JTBD analysis, principle-anchored field-priority decisions, anti-pattern findings, and a bidirectional UI↔API gap report. Trigger: UI、UX、資訊架構、IA、scenario-driven UI、欄位優先級、information hierarchy. Not for: visual/CSS work (use /frontend-design), post-build…

sd0xdev/sd0x-harness · 113 tokens

pptx-posters

Create and audit editable scientific posters in macro-free PowerPoint (.pptx) from author-approved local content and assets. Use when the requested deliverable is a PowerPoint research/conference poster and exact physical, printer, accessibility, provenance, and package-security checks are required.

K-Dense-AI/claude-scientific-writer · 59 tokens