extracting-presets

Extract colors, typography, and assets from brand material into reusable presentation presets.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/pgoell/pgoell-claude-tools --skill extracting-presets-pgoell
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: extracting-presets
Source: https://github.com/pgoell/pgoell-claude-tools/tree/main/plugins/presentations/skills/extracting-presets
Command: npx skills add https://github.com/pgoell/pgoell-claude-tools --skill extracting-presets-pgoell

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python-pptx, pymupdf, Pillow, imagehash.

What problem does it solve? Turning a client's brand material (PowerPoint templates, PDF brand guidelines, portal downloads) into a reusable design preset is slow and error-prone when done by hand. This Skill automates the extraction of palettes, type scales, slide skeletons, and official artwork into a structured preset that future decks can consume. ## Core Features & Use Cases - Brand Extraction: Reads PPTX theme XML, slide masters, and PDF guidelines to produce colors.css, typography.css, and guidelines.md with semantic variable mapping. - Slide Rebuilding: Rebuilds shortlisted slides as self-contained 1920x1080 HTML files, verified with headless-browser screenshots against source renders. - Asset & Icon Handling: Extracts official logos, imagery, and PPTX icon libraries into preset assets with QA gates (XML parsing, perceptual-hash dedupe, aspect-ratio checks). - Use Case: Given a client's corporate PowerPoint template and brand portal PDF, produce a complete preset under .pgoell/presentations/presets/<client>/ that the creating-presentations skill can apply to every future deck. ## Quick Start Extract our corporate design from this template.pptx and add it as a preset named acme.

Frequently Asked Questions about extracting-presets

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

FAQPage Schema
How do I extract a color palette from a PowerPoint template?

Unzip the PPTX and read ppt/theme/theme1.xml, which carries the exact color scheme (a:clrScheme) and font scheme (a:fontScheme). Use python-pptx via uv for structured access when raw XML parsing is impractical.

How do I convert brand guidelines into a reusable presentation preset?

Extract hex values into colors.css as raw brand variables, then map them to semantic variables like --bg and --accent. Rebuild a shortlist of structural slides as self-contained HTML and record provenance and gaps in manifest.md.

What tools are needed to extract design from PPTX files?

Three tools cover the workflow: uv for Python work (python-pptx, pymupdf, Pillow), a Chromium-based browser for headless slide screenshots, and a container runtime (podman, docker, or nerdctl) running LibreOffice to render source decks for comparison.

Can I extract presets without a container runtime installed?

Yes. The container runtime is only needed to render source PPTX decks for side-by-side comparison. PDF-only or portal-only extractions never use it, and when no runtime exists the missing render is recorded as a manifest gap instead of blocking.

Why do rebuilt slides look wrong when opened standalone?

Slides must embed a copy of the preset's variable blocks in their inline style, since standalone opening has no external file access. Verify with a grep pass of var(-- references against declarations and diff the embedded block against colors.css for drift.

When should brand icons be normalized to currentColor?

Normalize an icon to currentColor only when it is provably monochrome, checking both stroke and fill. Genuinely multicolor icons and official brand marks stay as found, since mark artwork is immutable and carries brand-locked colors.