Make slide

From Kuneosu/make-slide · View interactive version

Make slide is an AI agent skill from the GitHub repository Kuneosu/make-slide. Generate single-file HTML presentations with 10 professional themes and speaker notes. Use this skill whenever the user mentions presentations, slides, deck, talk, keynote, pitch, slideshow, or wants to turn any content into a visual presentation — even if they don't explicitly say 'slide'. Also tri

How to use this skill

Skill file

make-slide — AI Presentation Skill

Overview

Generate single-file HTML presentations with speaker notes. The output is always a standalone .html file with all CSS and JS inlined — no build step, no framework, no dependencies beyond font CDNs.

Repository: github.com/kuneosu/make-slide

Theme Gallery: make-slide.vercel.app


When to Use

Activate this skill when the user's request matches any of these patterns:


Input Modes

Determine which mode applies based on the user's input:

Mode A: Topic Only

The user provides a topic and optionally a duration or audience.

"Make a 15-min talk about AI trends"
"Create a presentation on microservices architecture"

→ Design the structure, content, and speaker notes from scratch.

Mode B: Content/Material Provided

The user provides source material (documents, notes, data, articles).

"Turn this document into a presentation"
"Create slides based on these meeting notes"

→ Organize and distill the material into slides + speaker notes.

Mode C: Script Provided

The user provides a written speech or speaking script.

"Create slides for this speech script"
"Make a visual deck that accompanies this talk"

→ Analyze the script's structure and create matching visual slides. The script becomes the speaker notes.


Workflow

Follow these steps in order:

Step 1: Analyze Input

> Which output format would you like?

> - HTML — Interactive single-file presentation you can open in a browser (navigation, animations, speaker notes built-in)

> - PPTX — PowerPoint file for Office, Google Slides, or Keynote

Step 2: Choose a Theme

Present the user with the theme gallery link for browsing:

Browse themes here: https://make-slide.vercel.app

Read references/themes.md for the full theme list with GitHub raw URLs and recommendations by context.

If the user doesn't choose a theme, recommend one based on context:

Step 2.5: Choose a Layout

Ask the user which layout style they prefer:

Which layout style would you like?

Browse layouts here: https://make-slide.vercel.app (Layouts section)

- Centered (default) — Classic centered content, clean and balanced

- Wide — Full-width content, great for data-heavy slides

- Split — Two-column with text + visuals side by side

- Editorial — Magazine-style asymmetric, dramatic typography

If the user doesn't choose, default to centered.

Read references/layouts.md for layout descriptions and layouts/{name}/reference.html for the layout reference code.

When generating HTML, combine the chosen theme (colors, fonts, design) with the chosen layout (content positioning, spacing, structure).

Step 3: Image Options

Ask the user which image approach they prefer:

How would you like to handle images in your slides?

A) No images — Use styled CSS placeholders (emoji, icons, shapes) that match the theme. Clean and lightweight.

B) I'll provide URLs — I'll mark image positions in the outline, and you provide the image URLs.

C) Auto-search — I'll search the web for relevant, high-quality images and place them automatically.

1. NOT every slide needs an image. Only add images to slides where a visual genuinely enhances understanding (e.g., concept slides, example slides, section dividers). Skip images for quote slides, code slides, data/chart slides, comparison slides, and agenda slides.

2. Aim for roughly 30-40% of slides having images — not all of them.

3. Determine a relevant English search keyword based on the slide content.

4. Use Unsplash direct photo URLs: https://images.unsplash.com/photo-{PHOTO_ID}?w=800&h=600&fit=crop

5. After collecting image URLs, verify each one actually returns an image (HTTP 200) before inserting. Replace any 404 URLs with CSS placeholders.

6. Insert as <img src="URL" alt="description" loading="lazy">

7. Inform the user that images are from Unsplash (Unsplash License, free for commercial use).

Step 4: Generate Outline

Create a slide-by-slide outline with:

Read references/slide-types.md for the 12 available slide type patterns.

Present the outline to the user for confirmation. Wait for approval or modifications before proceeding.

Step 5: Fetch Theme Reference

Fetch the chosen theme's reference files from GitHub:

  1. reference.html — The complete example presentation with all slide types, styles, navigation, and interactive features. This is the primary template.
  2. README.md — Design guidelines including color palette, typography, spacing rules, and design philosophy.

Use the raw GitHub URLs listed in references/themes.md.

Step 6: Generate HTML

Using the theme's reference.html and the layout's reference.html as templates:

Read references/core-features.md and use the exact JavaScript code provided for navigation, fullscreen, speaker notes popup, progress bar, and slide counter. Do not rewrite these features — copy the code directly. This ensures consistent behavior across all AI models.

Read references/html-spec.md for the full HTML requirements including navigation, fullscreen, PDF export, CDN dependencies, image handling, and code blocks.

Step 7: Generate Speaker Notes

Add speaker notes as data-notes attributes on each slide's <div>:

<div class="slide" data-notes="Welcome everyone. Today I'll be talking about...">

Speaker Notes Panel must be a separate popup window using window.open(). Do NOT render notes inline at the bottom of the slide — this breaks the slide layout. The S key should toggle a popup window that shows the current slide's notes and auto-updates on slide change. See references/html-spec.md for the implementation pattern.

Step 8: Generate Script (Mode A and B only)

For Mode A and B, also generate a separate script.md file containing:

For Mode C, the user already has a script — skip this step.

Step 9: Save and Deliver


PPTX Output Mode

When the user selects PPTX output, follow this modified workflow:

PPTX Step 1: Generate HTML Slides (PPTX-Compatible)

Follow the standard HTML generation workflow (Steps 1-7) but with these constraints from the PPTX spec. Read references/pptx-spec.md for the complete PPTX conversion rules before generating HTML.

PPTX Step 2: Convert HTML to PPTX

Use the screenshot-based conversion pipeline with Puppeteer + PptxGenJS:

  1. Install dependencies if not present: npm install pptxgenjs puppeteer
  2. Write a conversion script that:

a. Navigate to that slide (set it as active, remove active class from others)

b. Disable animations and force visibility — inject CSS to disable all animations/transitions AND force .a elements visible: * { animation: none !important; transition: none !important; } .slide.active .a, .a { opacity: 1 !important; transform: none !important; }. Also wait for font loading with document.fonts.ready.

c. Hide all other slides completely — ensure only the current slide is visible (opacity:1, display:flex) and all others are hidden (opacity:0, display:none). This prevents ghost/residue from previous slides.

d. Take a full-page screenshot of the viewport at 2x resolution (deviceScaleFactor: 2) for crisp text

  1. Save as .pptx

Critical: Preventing ghost slides and small content

// Before each screenshot, inject CSS to disable animations AND force animated elements visible
await page.addStyleTag({ content: '*, *::before, *::after { animation: none !important; transition: none !important; animation-delay: 0s !important; } .slide.active .a, .a { opacity: 1 !important; transform: none !important; }' });

// Wait for fonts to load
await page.evaluateHandle('document.fonts.ready');

// Hide all slides, then show only current
await page.evaluate((idx) => {
  document.querySelectorAll('.slide').forEach((s, i) => {
    s.style.display = i === idx ? 'flex' : 'none';
    s.style.opacity = i === idx ? '1' : '0';
    s.classList.toggle('active', i === idx);
  });
}, slideIndex);

// Wait for layout to settle
await new Promise(r => setTimeout(r, 500));

// Screenshot at 2x for crisp text
await page.screenshot({ path: outputPath, type: 'png' });

PPTX Step 3: Validate and Deliver


Output Rules

  1. Always output a single .html file with all CSS and JS inlined
  2. Only allowed external dependencies: Font CDNs (Pretendard, JetBrains Mono) + Prism.js CDN (conditional)
  3. Speaker notes embedded as data-notes attributes on each slide <div>
  4. Optionally output script.md for full speaking script (Mode A and B)
  5. Generate content in the user's language — detect from the conversation context
  6. Filename: index.html by default, or as specified by the user
  7. Vanilla JS only — no JavaScript frameworks
  8. Vanilla CSS only — no CSS frameworks

Tips for Best Results

Content

Design

Speaker Notes

Data Visualization

Performance

Accessibility


Quick Start Example

If the user says: "Make a 10-minute presentation about Python best practices"

  1. Mode: A (Topic only)
  2. Slides: ~15 slides
  3. Theme recommendation: minimal-dark or neon-terminal (developer topic)
  4. Ask: Theme preference + image needs
  5. Generate outline → Get confirmation
  6. Fetch: minimal-dark/reference.html + minimal-dark/README.md
  7. Generate: index.html + script.md
  8. Offer: Local server preview

Skill version: 2.0 | Repository: kuneosu/make-slide | Gallery: make-slide.vercel.app

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.