Reverse-engineer a PowerPoint design system and build a matching clean template
Session from clean-slides-sessions on Hugging Face by thomasmustier · MIT · condensed by Coders Talk
Click a segment to jump to that moment
1h 53msession
1interventions
GOAL
Extract a formal design system from two existing PowerPoint presentations, then apply that design system to produce a reusable clean template PPTX.
- +0Prompt · +0Review two example PowerPoint presentations in ./data and infer the design system used for templates and slide documents.
- +0mAgent did · +0mUnzipped both .pptx files as XML archives, compared themes, layouts, masters, fonts, colors, positions and produced a first design system summary.
- Break · 1h 04m away, not counted
- +2mPrompt · +2mCorrected and refined the color palette, fonts, sizes, and described the header/table formatting from an example slide image.
- +3mAgent did · +3mWrote DESIGN-SYSTEM.md, generated a color palette chart, then dug into placeholder text box spacing and named master elements (moons, legends, sticker, grid, on-page tracker) to fill out the doc.
- +14mPrompt · +14mPointed out that TopLine/BottomLine elements vary by layout (left/right variants, different widths) and asked for exact measurements per layout.
- +15mAgent did · +15mExtracted precise line widths/positions per layout fraction, updated the doc, removed 'Pactio' branding, committed and pushed to GitHub, then added an MIT license.
- Break · 3h 01m away, not counted
- +20mAgent did · +20mBuilt a gap analysis comparing the Tiber template to the design system, then stripped all slides from a copy of Tiber and rewrote theme colors/metadata to create a clean template pptx.
- +1h 1mFail · +1h 1mThe stripped-down template with zero/blank slides came back from PowerPoint as corrupted, even after re-saving via python-pptx.
- +1h 31mIntervention · +1h 31mReported that PowerPoint's repair also failed, ruling out a PowerPoint-only glitch and forcing a different fix approach.Why: I needed to make clear the file itself was broken, not just a PowerPoint quirk, so we'd stop re-saving the same bad structure.
- +1h 31mAgent did · +1h 31mKept all original slides intact while only changing theme colors and metadata, confirmed it opened, then used python-pptx to properly delete all slides and add one blank Default-layout slide.
- Break · 3h 46m away, not counted
- +1h 52mAgent did · +1h 52mMoved the template, design system doc and color palette into a slide-template/ directory, wrote an AGENTS.md guide, and committed the reorganisation.
- +1h 53mOutcome · +1h 53mDelivered a working clean-slides-template.pptx (1 slide, 27 layouts) plus DESIGN-SYSTEM.md and AGENTS.md, organized in slide-template/, committed across multiple pushes to github.com/tmustier/clean-slides.
VERDICT
Next time I'd start by asking the agent to validate any pptx it produces by actually opening it (via the PowerPoint MCP tool) rather than trusting raw XML surgery — the corrupted file cost the most time. What actually worked was keeping all original slides intact while only touching theme colors, confirming that opened cleanly, and then using python-pptx's proper slide-deletion API instead of manually stripping XML nodes.