pptx-html-fidelity-audit
Qué hace
Esta herramienta compara una presentación de PowerPoint (.pptx) creada a partir de un archivo HTML con ese HTML original. Encuentra y corrige diferencias visuales, como texto recortado o estilos perdidos.
Cuándo usarla
- ✓Cuando la presentación de PowerPoint no se ve igual que el HTML de origen.
- ✓Si falta texto o aparece cortado en el PowerPoint.
- ✓Cuando estilos como la cursiva o los colores no aparecen en el PowerPoint.
Link de la skill
https://github.com/nexu-io/open-design/blob/main/plugins/_official/examples/pptx-html-fidelity-audit/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Compara este archivo PPTX con el HTML que lo generó y corrige las diferencias visuales.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La herramienta analiza por separado el HTML y el PowerPoint. Después compara los elementos de cada uno, detecta dónde son diferentes y genera un nuevo PowerPoint con las correcciones aplicadas.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
PPTX ↔ HTML Fidelity Audit
A repeatable workflow for catching the ways a python-pptx export silently drifts from its HTML source — and fixing them with a layout discipline that prevents the same regressions on the next pass.
When this skill applies
The user has:
A source HTML slide deck (typically a single-file deck with
<section class="slide">blocks):<section class="slide light"> <div class="chrome">2026 · Q2 review</div> <span class="kicker">Pillar 03</span> <h2 class="h-xl">Shipping <em>velocity</em> doubled</h2> <p class="lead">…</p> <div class="foot">page 5 / 14</div> </section>A PPTX file generated from that deck via python-pptx (or similar).
A suspicion (or visible evidence) that the PPTX doesn't match the HTML — text bleeding into the footer, italic words gone flat, hero slides not centered, sections cropped, tag styling lost.
If the user only has one of those two artifacts, this skill doesn't apply yet — first generate the missing one, or ask the user to provide it.
Why this is hard (and why a skill helps)
PPTX is a fixed-canvas, absolute-positioned medium. HTML is a fluid, flow-based medium. A naive python-pptx export pins each block at hand-picked (top, left) coordinates, which works for the first slide it was tested on and silently fails for every other slide whose content has different intrinsic height. The result is the most common drift modes:
- Footer overflow — content's
top + heightcrosses into the footer row. - Off-canvas content — bottom of last block exceeds
7.5"(16:9 canvas). - Italic loss —
<em>in HTML never getsrun.font.italic = True. - Hero slides not centered — vertical-stack slides use
MARGIN_TOPinstead of computing center. - Box bounds intruding — the text fits, but the shape's bounding box is oversized and visually crosses the rail.
- Tag/styling loss — colored chrome rows, kicker uppercase tracking, mono-vs-serif assignments quietly fall back to defaults.
Every one of these is a layout discipline problem, not a content problem. Once you adopt the discipline, they stop happening.
Workflow
The audit is five steps. Don't skip any of them — the discipline only works if the audit produces a real list of issues to drive the re-export. A fix-without-audit pass tends to leave half the issues alive.
Step 1 — Extract ground truth from the PPTX
Run scripts/extract_pptx.py <path-to.pptx> > pptx_dump.json. The script walks every shape on every slide and dumps text, position (top / left), size (width / height), and per-run typography (font name, size pt, bold, italic, color). This is the actual state of the export — don't trust the export script's intent, trust the dump.
For 14-slide decks, the dump is ~30–60 KB and human-readable.
Step 2 — Walk the HTML structure
Read the source HTML and enumerate <section class="slide"> blocks. For each, note:
- The slide's theme (
light/dark/hero light/hero dark). - The
chromerow text (top metadata). - The
kicker(small uppercase eyebrow above the headline). - The headline (h-hero / h-xl / etc.) and any sub-head.
- The body copy and any structured blocks (pipeline steps, cards, pillars, observation cards).
- The
footrow (bottom metadata). - Any
<em>or italic-styled spans — italic is the silent regression.
Map each HTML slide to a PPTX slide index. For decks following the convention "slide 1 = cover, slide N = closing", the mapping is positional.
Step 3 — Build the audit table
For each slide, walk shapes from the dump and check against expected layout rules. Use this exact table format — the severity column is what drives the fix priority:
| Slide | Issue | Severity |
|---|---|---|
| 1 cover | meta-row 底端 6.95" 蓋過 footer (6.7") | 🔴 |
| 5 checklist | row B 步驟描述底端 7.2" 切到 footer | 🔴 |
| 8 3E | 收束段落直接坐在 footer 起點 | 🔴 |
| 9 on-day | step 描述底端剛好碰 footer,無安全距 | 🟠 |
| 多處 | em (Playfair italic) 未保留 | 🟡 |
Severity rubric:
- 🔴 critical — content cropped, text invisible, footer overlap, off-canvas. Must fix.
- 🟠 high — content visible but visual hierarchy broken, no breathing room, hero not centered. Should fix.
- 🟡 medium — italic/em missing, font fallback wrong, color drift. Fix in this pass.
- 🟢 low — minor spacing/alignment, sub-pixel offsets. Note but don't block.
…
Preguntas frecuentes
¿Qué es la "disciplina de diseño"?
Es un conjunto de reglas para asegurar que el contenido quepa bien en la diapositiva, evitando que se corte o quede mal colocado, sobre todo cerca del pie de página.
¿Necesito los archivos HTML y PPTX?
Sí, la herramienta necesita los dos para hacer la comparación y la corrección.
¿Qué significa "deriva"?
"Deriva" significa que el contenido o el estilo del PowerPoint se ha alejado de lo que había en el HTML original, provocando incoherencias visuales.
Detalles
Descripción original del autor
Audit a python-pptx export against its source HTML deck, identify layout/content drift (footer overflow, cropped content, missing italic/em, lost styling, off-rhythm spacing), and re-export with strict footer-rail + cursor-flow layout discipline. Use this skill whenever the user has a .pptx that was generated from an HTML slide deck and asks to compare/audit/verify/fix the export — including phras
repo: nexu-io/open-design
Popularidad
- Estrellas en GitHub
- 101 mil
- Posición en el ranking
- #1041
- Licencia
- Apache-2.0
- Actualizada
- 15/10/2026
Comentarios
- …
Más skills de este repositorio
sample-plugin
101 milHace que tu agente cree un archivo de metadatos para las pruebas. Ayuda a asegurar que el código funcione bien en distintas situaciones.
aster-atelier
101 milAyuda a tu agente a crear un sitio web artístico con aire clásico. Usa imágenes elegantes, cielos azules y tipografías con serifa para un aire cinematográfico.
audio-jingle
101 milHace que tu agente genere audio, como sintonías y efectos de sonido. Puede crear música y voces, y guardar el resultado como archivo de audio.
blog-post
101 milAyuda a tu agente a escribir artículos largos o entradas de blog. Incluye espacio para imágenes, citas y datos del autor.
Skills parecidas
feishu-doc
394 milAyuda a tu agente a leer, crear y editar documentos en la nube de Feishu, incluidos texto, imágenes y tablas, usando la herramienta de documentos.
feishu-drive
394 milPermite que tu agente explore, organice y comente archivos de una carpeta de la nube de Feishu que se haya compartido con el bot.
feishu-perm
394 milAyuda a tu agente a revisar y cambiar quién puede acceder a un archivo de Feishu, eligiendo el permiso más pequeño que cumpla tu petición.