pptx

Extract, edit, and repack .pptx slide decks with XML validation.

641|104|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/eastreams/loong --skill pptx-eastreams
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pptx
Source: https://github.com/eastreams/loong/tree/main/skills/anthropic-office/pptx
Command: npx skills add https://github.com/eastreams/loong --skill pptx-eastreams

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires defusedxml, lxml, Pillow, and includes scripts (resource) components.

What problem does it solve?

It consolidates the end-to-end PPTX workflow so teams no longer must manually inspect, hack, or visually rework presentation files: extract text and assets, adapt templates, update slide XML, run visual QA, and repack into a valid .pptx in a reproducible way.

Core Features & Use Cases

  • Read & Extract: Extract slide text, speaker notes, and visual thumbnails for quick content review and placeholder detection.
  • Template-based Editing: Unpack a template, duplicate or map slides, edit slide XML, clean orphaned resources, and repack reliably.
  • Create from Scratch: Guidance and examples for programmatic slide generation using PptxGenJS and code-driven layouts.
  • Thumbnailing & Visual QA: Convert slides to images for visual inspection and run an iterative fix-and-verify loop.
  • Validation & Safety: XML/XSD validation, relationship and content-type checks, and durable-id repairs to prevent corrupt outputs.
  • Use Case: Redesign a pitch deck by analyzing template thumbnails, mapping content to layouts, replacing placeholders, running visual QA, and producing a validated presentation file.

Quick Start

Analyze presentation.pptx to extract text and thumbnails, prepare the unpacked folder for edits, perform template-based updates, and repack a validated output presentation.

Frequently Asked Questions about pptx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract text and thumbnails from a .pptx presentation?

This Skill extracts text, speaker notes, and visual thumbnails from .pptx files by unpacking the slide deck. It enables quick content review and placeholder detection for presentation analysis.

What is the best way to edit slide XML in a template-based presentation?

Editing slide XML involves unpacking a template, duplicating or mapping slides, modifying the XML, cleaning orphaned resources, and repacking reliably into a validated .pptx output.

Does this workflow support generating .pptx files from scratch using PptxGenJS?

Yes, it supports creating .pptx files from scratch using PptxGenJS. It provides guidance and examples for programmatic slide generation and code-driven layouts to build presentations.

How do I validate XML and prevent corrupt .pptx outputs after repacking?

To prevent corrupt .pptx outputs, apply XSD validation with lxml, run relationship and content-type checks, and perform durable-id repairs to ensure the repacked file is valid.

Can I convert .pptx slides to images for visual QA?

Yes, you can convert .pptx slides to images for visual QA. The workflow uses LibreOffice soffice and pdftoppm to generate images for visual inspection and iterative fix-and-verify loops.

Do I need Python libraries to unpack and repack .pptx files?

Yes, you need Python libraries including lxml for XML validation, Pillow for image processing, and defusedxml for safe XML parsing to unpack and repack .pptx files deterministically.