/slide-deck β Draft, update, convert, and export branded React decks
Authors React/TypeScript decks for ${SLIDE_DECK_REPO:-$HOME/code/your-slide-deck-site}/src/app/slides/<slug>/page.tsx using the user's slide system. Branded output (no separate HTML pipeline) β when portable HTML/PDF is needed, export mode snapshots the rendered React deck via Playwright so the output is brand-perfect.
Modes (pick one before Step 1)
| Mode | Invocation | Goal |
|---|---|---|
| new | /slide-deck new <topic> (default) |
Draft a new deck from a brief |
| update | /slide-deck update <slug> |
Modify an existing deck (with overflow guards) |
| ppt | /slide-deck ppt <path-to-pptx> |
Convert a legacy PPTX into a React deck |
| export | /slide-deck export <slug> [html|pdf|vercel] |
Snapshot a deck to HTML, PDF, or Vercel URL |
For update, ppt, and export, skip to the corresponding mode section below. For new, continue through Steps 1β8.
Step 1 β Capture the brief (ask all at once)
Ask in one structured message. Don't round-trip on each.
- Topic / title β what's the deck about?
- Audience β who's in the room? (technical / executive / mixed / clients) Push for specificity: "founders" is too broad; "B2B SaaS founders at MicroConf" is workable.
- Length β rough slide count: 5β10 (lightning / short internal) / 10β15 (short keynote, pitch) / 20β25 (keynote) / 30+ (workshop β uncommon for branded decks).
- Density β speaker-led (1 idea/slide, big type, lots of breathing room, more slides if needed) or reading-first (4β6 bullets/slide, structured grids, self-contained for async review).
- CTA β what should the audience do/think/feel after?
- Slug β kebab-case (e.g.,
marketing-like-an-engineer). - Content state β all content ready / rough notes / topic only.
Remember density β it affects slide count, copy length per slide, and which primitives to favor. See references/narrative-and-voice.md for the density-specific rules.
Step 2 β Three narrative angles
Riff on zarazhangrui/frontend-slides' "show, don't tell" β but applied to story, not visuals (your visual system is fixed).
Pitch 3 angles in 1β2 sentences each:
- Safe β most likely to land. Conventional structure for the audience.
- Bold β contrarian or counterintuitive frame. Higher upside, slight risk.
- Wildcard β unexpected structure (story-first, single-question deck, anti-thesis, etc.).
The user picks one. If they reject all three, propose three more β don't force a path.
Step 3 β Outline
For the chosen angle:
- Sections β propose 3β7 named sections (e.g.,
Title,Hook,Problem,Framework,Examples,Close). The default 3-act structure is OPTIONAL; only use it if the user wants it or the deck is a keynote-length talk that benefits from one. - Slide titles within each section
- One-line takeaway per slide
Total slide count should match the duration estimate from Step 1.
Show the outline as a table. the user edits / approves before expand.
Step 4 β Expand to slide content
For each slide, write the full content using the user's primitives. Reference references/system.md for the primitive vocabulary and references/narrative-and-voice.md for hook patterns and voice rules.
Slide types and which primitives fit:
| Slide type | Primitives | Pattern |
|---|---|---|
| Title | Eyebrow + <h1> with <Accent> keyword |
First slide, sets brand and topic |
| Hook | Heading + Body |
A take, story open, contrarian frame, or specific stat |
| Section divider | Eyebrow + Heading (centered, large) |
Clean break between sections |
| Framework | Heading + BulletList or custom layout |
The thing the user's teaching |
| Two-column | TwoCol |
Comparison, before/after, problem/solution |
| Quote / pull-quote | Body (large) |
Authority or audience-recognition moment |
| Resource / link | Body + URL on its own line |
Outbound (rare β the user's voice says minimize) |
| Close / CTA | Heading + Body + BulletList for next steps |
What the audience should do |
Voice anchors β write for the ear, not the page (see narrative-and-voice.md for full rules):
- Decks are spoken aloud. Slide text + speaker notes both get said out loud. Write as you'd talk.
- Read every slide out loud before saving. If you stumble, if it sounds like a press release, rewrite.
- Contractions everywhere (don't, won't, you're, I'd). Strip them only on reading-first decks.
- "You" β never "the audience," "users," "people."
- Numbers said naturally ("a quarter" not "23.7%").
- Conviction-coded, listener-perspective, short sentences, specific nouns.
- No filler ("Today I want to talk aboutβ¦") β open with a take.
- (Reading-first density mode exception: written voice is fine since no one will speak the slides β see
narrative-and-voice.md.)
Step 5 β Speaker notes
Every slide gets 3β5 notes lines. Notes are the full spoken talk β write them the way you'd actually say them, pauses and asides included. Slide text is the headline; notes are the full thought.
Notes structure:
- The opener β what you say when the slide comes up
- The point β the one idea this slide is making
- The supporting beat β example, data, or color
- The transition β how this connects to the next slide
- (Optional) The aside β a quip or callback
For title slides and section dividers, 2β3 notes is fine.
Step 6 β Generate files
Write to ${SLIDE_DECK_REPO:-$HOME/code/your-slide-deck-site}/src/app/slides/<slug>/:
layout.tsxβ Next.js layout with<title>metadata (use the deck title)page.tsxβ the slide deck
Use the templates in references/template.md as the skeleton.
The <AUTHOR_HANDLE> / <AUTHOR_SITE> tokens (close-slide footer) come from ${MAKERSKILLS_CONFIG:-$HOME/.config/makerskills}/slide-deck/identity.yaml (keys: handle, site) if it exists. Otherwise ask the user for their handle and site once, offer to save them there, and use those. If they don't want a footer, drop the <p> entirely β never ship a deck with someone else's identity on it.
page.tsx must:
- Have
"use client"at the top - Import
SlideDeckandSlidetype from@/components/slides/slide-deck - Import
SectionRangefrom@/components/slides/sections(only if using sections) - Import the primitives the user uses from
@/components/slides/slide-primitives - Declare
const slides: Slide[] = [...] - (Optional) Declare
const sections: SectionRange[] = [...]with 0-indexedfrom/to - Export default a component that returns
<SlideDeck slides={slides} sections={sections} />
Step 7 β Preview
After writing the files, check if your slide-deck dev server is running.
lsof -i :3000-3099 2>/dev/null | grep -E "LISTEN" | headIf a port is in use (portless-compatible β check package.json for the dev script naming):
# Suggested URL pattern
echo "Preview at: http://${SLIDE_DECK_DEV_HOST:-localhost:3000}/slides/<slug>"If no dev server is running, tell the user:
cd ${SLIDE_DECK_REPO:-$HOME/code/your-slide-deck-site} && npm run dev
# then visit http://${SLIDE_DECK_DEV_HOST:-localhost:3000}/slides/<slug>Don't auto-start the dev server (might disrupt other work).
Step 8 β Archive
The archive lives in ${MAKERSKILLS_CONFIG:-$HOME/.config/makerskills}/slide-deck/archive/ (create the directory if missing). Never write the archive inside the skill's own folder β skill installs and upgrades re-sync from source and wipe anything saved there. Migration: if this skill's folder contains an old references/decks-archive.md with user entries, move it to <archive dir>/INDEX.md first.
Append a one-liner to <archive dir>/INDEX.md (create if missing):
- 2026-06-17 β [<title>](${SLIDE_DECK_REPO:-$HOME/code/your-slide-deck-site}/src/app/slides/<slug>/page.tsx) β <audience> β <one-line angle>This compounds β future decks can grep "what talks have I done about X" to avoid repetition and find reusable patterns.
Mode: update
Modify an existing deck without breaking it. Risks: overflowing slides, exceeding density limits, breaking the section ranges.
Before modifying, check:
- Read the existing
page.tsx - Count slides + identify the section ranges
- For each modification, apply the right guard:
| Change | Guard |
|---|---|
| Adding bullets | Max 6 per BulletList in reading-first; 3 in speaker-led. If exceeded β split into two slides. |
| Adding text | If <Body> paragraph >2 sentences in speaker-led β split. >5 sentences in reading-first β split. |
| Adding images | Images must fit in the 1920Γ1080 stage. If the slide already has heavy content, move image to its own slide. |
| Adding slides | Update sections array β increment from/to for all sections after the insertion point. |
| Removing slides | Decrement from/to for sections after the removal. Watch for orphaned id references. |
| Rewriting a slide | Preserve the id (used for anchors). Only change content and notes. |
After modifying:
- Re-count slides and verify section ranges sum correctly
- Spot-check the visual in the dev server before committing
Mode: ppt
Convert a legacy PPTX (client deck, conference template) into the user's React system.
Extract content via
python3andpython-pptx:pip install python-pptx 2>/dev/null python3 -c " from pptx import Presentation import json, sys p = Presentation(sys.argv[1]) out = [] for i, s in enumerate(p.slides): title = next((sh.text for sh in s.shapes if sh.has_text_frame and sh.shapes_element.tag.endswith('}sp') == False), '') texts = [sh.text for sh in s.shapes if sh.has_text_frame] notes = s.notes_slide.notes_text_frame.text if s.has_notes_slide else '' out.append({'i': i, 'texts': texts, 'notes': notes}) print(json.dumps(out, indent=2)) " "<path-to-pptx>"See
references/ppt-conversion.mdfor the full extraction + mapping recipe.Show the user the extracted summary β slide titles, content excerpts, image count. Confirm before proceeding.
Map to React primitives:
- First slide β title pattern (Eyebrow + h1 + Accent)
- Content slides with bullets β
Heading + BulletList - Comparison slides β
TwoCol - Section breaks (title-only slides in PPTX) β section divider pattern
- Speaker notes from PPTX β
notesarray on each slide
Images β copy referenced images from PPTX assets to
${SLIDE_DECK_REPO:-$HOME/code/your-slide-deck-site}/public/slide-assets/<slug>/, reference them in slides via<img src="/slide-assets/<slug>/<filename>" />inside thecontent.Write
page.tsx+layout.tsxper the new-deck flow (Step 6).Preserve the original PPTX β never modify in place. Save under
~/Documents/slide-conversions/<slug>-from-pptx/with the original file + extracted JSON for audit.
Mode: export
Snapshot a deck rendered in your slide-site dev server to portable HTML / PDF / Vercel URL. Output is brand-perfect because it's screenshots of your actual rendered React deck.
Output options:
htmlβ standalone HTML file with snapshots as inline<img>, keyboard nav (arrow keys) baked inpdfβ combined slide snapshotsvercelβ push standalone HTML to a Vercel project for a shareable URL
Flow (full details in references/export.md):
- Verify dev server: confirm
${SLIDE_DECK_DEV_HOST:-localhost:3000}/slides/<slug>loads. If not, prompt the user tocd ${SLIDE_DECK_REPO:-$HOME/code/your-slide-deck-site} && npm run dev. - Count slides: read
page.tsx, count entries in theslidesarray. - Run Playwright snapshot:
bash references/export.md script: snapshot-deck <slug> <count>- Launches headless Chromium at 1920Γ1080
- Loads
http://${SLIDE_DECK_DEV_HOST:-localhost:3000}/slides/<slug>?present=1(presenter mode hides chrome) - Sets
localStorage["slides:/slides/<slug>"] = "0"to start at slide 0 - Loops: screenshot β keyboard ArrowRight β wait β for N slides
- Saves PNGs to
~/Documents/slide-exports/<slug>-<YYYY-MM-DD>/slide-<n>.png
- Combine per output type:
htmlβ wrap snapshots in a minimal HTML shell with arrow-key navigationpdfβ usemagick(ImageMagick) orimg2pdfto combine PNGsvercelβvercel deploy ~/Documents/slide-exports/<slug>-<date>/
- Report path / URL.
Caveats (mention to the user):
- Animations and presenter view are not preserved β exports are static snapshots.
- For interactive demo, present the React version live; for sharing/PDF/portable, use exports.
- Snapshots are 1920Γ1080 β high-quality on any device, but file size scales with slide count.
Modes (quick invocations)
| Invocation | Mode | Behavior |
|---|---|---|
/slide-deck new <topic> |
new | Full pipeline (Steps 1β8) |
/slide-deck angles <topic> |
new | Stop at Step 2 (just the 3 angles) |
/slide-deck outline <topic> |
new | Stop at Step 3 (outline only) |
/slide-deck expand <slug> |
new | Skip to Step 4 from an existing outline |
/slide-deck notes <slug> |
update | Rewrite speaker notes for an existing deck |
/slide-deck rewrite <slug> <slide-id> |
update | Edit one slide |
/slide-deck update <slug> |
update | General modification with overflow guards |
/slide-deck ppt <pptx-path> |
ppt | Convert legacy PPTX β React deck |
/slide-deck export <slug> html |
export | Snapshot to standalone HTML |
/slide-deck export <slug> pdf |
export | Snapshot to PDF |
/slide-deck export <slug> vercel |
export | Snapshot + Vercel deploy β shareable URL |
/slide-deck preview <slug> |
β | Just check the deck URL |
Composes with
business-brainstormβ if a pitch deck, brainstorm the offer first; deck draws from the briefdecideβ for talks that hinge on a decision (e.g., "should I take VC money?"), /decide firstdeep-researchβ for talks needing data the deck doesn't have yetsecond-brainβ pull relevant[[wiki]]pages as content sources; the deck can cite themwatch-videoβ turn a podcast episode, Loom, or talk recording into a deck outline (run invisualmode to also capture key moments + slides shown)jab-hookβ once delivered, the talk becomes promo angles for the BIP rotationfrontend-skills(external) β for non-branded HTML decks where your React deck repo isn't the home
Notes on quality
- Show, don't tell β applied to narrative. Present 3 different angles for the deck (not one polished draft); let the user pick. Committing to a narrative before the alternatives are surfaced produces decks that are workmanlike, not memorable.
- Density modes matter more than aesthetic. A speaker-led deck has 3-word slides and 5-line speaker notes. A reading-first deck (leave-behind, async) reverses it. Same content, opposite artifact. Ask which mode before drafting.
- Slide text is abbreviated spoken. Both pass the read-aloud test. If a slide reads like a memo, it's wrong. If speaker notes read like slides, they're wrong.
- Overflow guards on update mode. Don't blindly cram more content into an existing slide β if the addition tips the slide over its target word count or line count, propose splitting the slide or trimming existing content. Silently overflowing produces cramped decks.
- Presenter-view stripped for exports. Playwright snapshots the
?present=0mode so the export is clean. Never export the presenter view. - Brand-perfect > portable. The React deck is the source of truth. HTML/PDF/Vercel exports are snapshots for sharing β animations, interactions, presenter view live only in the React version.
- 1920Γ1080 default, 1280Γ720 for previews. Full-res snapshots run 30-50 MB for a 20-slide deck; low-res halves that at minimal visual loss.
- Deploy is a real-money operation. Export mode's
vercelpath prompts before deploying. Auto-renew is on for domains + Vercel projects.