--- name: slidekit-templ description: "Convert PDF presentations to HTML slide templates using a visual reproduction approach. Pipeline: PDF → slide screenshots → Claude writes HTML matching each screenshot. Use when the user wants to convert a PDF to HTML slide templates, reproduce a presentation as HTML, or create reusable templates from existing decks. Triggers: 'pdf to html', 'convert pdf to template', 'reproduce this deck as html', 'create template from pdf'." --- # PDF to HTML Slide Converter Convert PDF presentations to high-fidelity HTML slides by visually reproducing each slide from screenshots. ## Pipeline ``` PDF → (pdftoppm) → Slide images ↓ Claude reads each image + writes HTML ↓ 001.html, 002.html, ... + print.html ``` ## Dependencies ```bash brew install poppler ``` ## Workflow ### Phase 1: Generate Slide Images ```bash python ~/.claude/skills/pdf-to-html/scripts/pdf_to_images.py input.pdf output_dir ``` This produces `output_dir/slide-01.jpg`, `slide-02.jpg`, etc. ### Phase 2: Analyze the Deck Before writing any HTML: 1. Read ALL slide images to understand the full deck 2. Identify the **color palette** (3-4 colors: primary dark, accent, secondary) 3. Identify the **font style** (serif/sans-serif, weight patterns) 4. Note the **header/footer pattern** used across content slides 5. Note the **overall style** (creative, elegant, modern, professional, minimalist) ### Phase 3: Load Design System Read these files to load the HTML design system rules: 1. `~/.claude/skills/slidekit-create/SKILL.md` — Mandatory constraints, PPTX conversion rules, anti-patterns, design guidelines, HTML boilerplate, pre-delivery checklist 2. `~/.claude/skills/slidekit-create/references/patterns.md` — 15 layout patterns with DOM trees, component snippets **All rules in slidekit-create apply.** Key constraints: - Slide size: 1280x720px - Tailwind CSS 2.2.19 + Font Awesome 6.4.0 + Google Fonts via CDN - No JavaScript - Root DOM: `
` → single wrapper `` / `