Slide Deck Builder
Build presentation slide decks as HTML pages with fixed dimensions and layout.
Installation
- Make sure Claude is on your device and in your terminal.
Skills load from
~/.claude/skills/when Claude Code starts up β so you need it on your machine first. If you don't have it yet, install it once with the command below, then runclaudein any terminal to verify.One-time setupnpm i -g @anthropic-ai/claude-codeAlready have it? Skip ahead.
- Paste into Claude Code or into your terminal.
This copies the whole skill folder into
~/.claude/skills/slides-fergana-labs/β the SKILL.md plus any scripts, reference docs, or templates the skill ships with. Safe default: works for every skill.Faster alternative (instruction-only skills)
Skips the clone and grabs only the SKILL.md file. Don't use this if the skill ships Python scripts, reference markdowns, or asset templates β they won't be downloaded and the skill will fail when it tries to load them.
Quick install (SKILL.md only)Sign up to copy - Restart Claude Code.
Quit and reopen Claude Code (or any other agent that loads from
~/.claude/skills/). New skills are picked up on startup. - Just ask Claude.
Skills auto-activate when your request matches the skill's description β no slash command needed. Trigger phrases live in the skill's own frontmatter; you can read them in the βWhat this skill doesβ section above.
Prefer to read the source first? Open on GitHub.
When Claude uses it
How to build presentation slide decks as HTML pages. Covers the slide format, canvas dimensions, and recommended libraries.
What this skill does
Building slide decks
A slide deck is a single HTML page with html_layout: "fixed-aspect" whose
<body> contains one <section class="slide"> per slide.
The canvas β 1920 Γ 1080 (16:9)
Every slide is a fixed 1920 Γ 1080 px canvas with overflow:hidden.
Stay inside a 64 px safe-area margin (working area 1792 Γ 952 px).
Nothing should scroll inside a slide; the viewer scales the canvas to fit
the viewport, and the exporter renders at native 1920Γ1080.
Required structure
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Deck title</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6/css/all.min.css" rel="stylesheet">
<style>
/* Belt-and-suspenders β the viewer enforces these too. */
section.slide {
width: 1920px; height: 1080px;
overflow: hidden; position: relative;
box-sizing: border-box;
padding: 64px;
}
</style>
</head>
<body>
<section class="slide" data-type="cover">β¦</section>
<section class="slide" data-type="content">β¦</section>
<section class="slide" data-type="content">β¦</section>
<section class="slide" data-type="final">β¦</section>
</body>
</html>
Page types (data-type, optional but recommended)
coverβ title slide.tocβ table of contents.chapterβ section divider.contentβ regular content slide.finalβ thanks / Q&A / contact slide.
These let presenter view and future templates target slides by role.
Typography
- Title text: β₯ 56 px.
- Body text: β₯ 28 px.
- Footnotes / captions: β₯ 20 px.
- Use the system font stack or one CDN font (Inter, Geist).
Avoid
@font-faceβ it adds latency in export.
Recommended libraries (all CDN-loadable)
| Need | Use |
|---|---|
| Charts | Chart.js for 1β2 charts per slide; ECharts for dashboards; D3 only when custom |
| Tables | Plain <table> + Tailwind classes. No DataTables. |
| Icons | Font Awesome 6 (CDN) or Lucide |
| Code | Shiki (preferred, vector-clean) or highlight.js |
| Math | KaTeX with auto-render (never MathJax inside iframe) |
| Diagrams | Mermaid via CDN, render once on load |
Render charts at load time (inline <script> in the slide) so screenshot
exporters capture them. Don't rely on interactivity in PPTX/PDF.
Anti-patterns
- More than ~40 words of body text per slide.
- Low contrast (white text on light backgrounds, etc.).
vh/vwunits β usepx. The canvas is fixed-pixel.- Images without
max-width: 100%(they'll overflow). - Fixed-positioned elements depending on viewport (
position: fixed). - Custom fonts loaded via
@font-facefrom arbitrary URLs. - Multiple
<section class="slide">nested inside each other.
Editing
Users can touch up text inline with the Edit button on the page.
Keep markup semantic β use <h1>, <h2>, <p>, <ul> rather than a
sea of <div>s β so the WYSIWYG editor's text selection and the
exporter's text-overlay extraction both work cleanly.
Export
The PDF export is vector text. The PPTX and Google Slides exports embed each slide as a high-DPI image plus an invisible text overlay so users can select, copy, and search the text in PowerPoint / Keynote / Slides. Don't ship interactive controls β they won't survive the export.
Related skills
React & Next.js Performance
vercel-labs
Optimize React and Next.js code following Vercel's performance best practices.
React Composition Patterns
vercel-labs
Build flexible, maintainable React components using composition techniques.
Senior Frontend Engineer
alirezarezvani
Build and optimize React and Next.js applications with performance analysis and accessibility.
UI Design Guidelines Reviewer
vercel-labs
Review UI code for compliance with web interface best practices and accessibility standards.