html-ppt
БесплатноЗапускает вложенные скриптыНе проверенGenerate a hand-crafted, zero-dependency single-file HTML slide deck (no CDN, works offline, double-click to open) with viewport-safe layouts, inline…
от tsaol★ 69 звёзд на GitHubОб этом скилле
HTML PPT Skill
Invoke with
/html-ppt(or#html-ppt) + your topic. Generates a single-file HTML deck with zero dependencies.
Positioning
Not reveal.js / Slidev / Spectacle. A hand-crafted single HTML file — zero dependencies, zero network, double-click to open.
Good for: rehearsal, internal sharing, offline presentations, one-shot decks.
Not for: complex animations, React components, long-term team maintenance. Use #reveal-ppt for those.
Detect Mode
Determine what the user wants:
- Mode A: New Presentation — Create from scratch. Go to Step 1.
- Mode B: PPT Conversion — Convert a .pptx file. Go to PPT Conversion section.
- Mode C: Enhancement — Improve an existing HTML presentation. Follow Mode C rules below.
Mode C: Modification Rules
When enhancing existing presentations, viewport fitting is the biggest risk:
- Before adding content: Count existing elements, check against density limits
- Adding images: Must have
max-height: min(50vh, 400px). If slide already has max content, split into two slides - Adding text: Max 4-5 bullets per slide. Exceeds limits? Split into continuation slides
- After ANY modification, verify:
.slidehasoverflow: hidden, new elements useclamp(), images have viewport-relative max-height, content fits at 1280x720 - Proactively reorganize: If modifications will cause overflow, automatically split content and inform the user. Don't wait to be asked
When adding images to existing slides: Move image to new slide or reduce other content first. Never add images without checking if existing content already fills the viewport.
Core Principles
- Zero Dependencies — Single HTML file, all CSS/JS inline. No npm, no CDN.
- Viewport Fitting (NON-NEGOTIABLE) — Every slide MUST fit exactly in 100vh. No scrolling within slides. Content overflows? Split into multiple slides.
- Distinctive Design — Avoid generic "AI slop." Choose fonts and colors that feel custom-crafted.
- Show, Don't Tell — When user is unsure of style, generate visual previews (save to
~/tmp/slide-previews/).
Required Slide Structure
Every deck (slide-deck or rehearsal) MUST include these slides:
| Slide | Position | Purpose |
|---|---|---|
| Cover | First | Title, subtitle, audience, date/context |
| Agenda | Second | Outline of what the deck covers (3-6 items) |
| Takeaway | Second-to-last | Key points the audience should remember (3-5 bullets) |
| Thank You / End | Last | Closing — "Questions?", contact info, or CTA |
These four slides are non-negotiable. The content slides go between Agenda and Takeaway.
Minimum deck structure: Cover → Agenda → [Content slides] → Takeaway → Thank You
Viewport Fitting Rules
These apply to EVERY slide:
- Every
.slidemust haveheight: 100vh; height: 100dvh; overflow: hidden; - ALL font sizes and spacing must use
clamp(min, preferred, max)— never fixed px alone - Include the full contents of viewport-base.css in every presentation
- Include
prefers-reduced-motionsupport - Never negate CSS functions directly (
-clamp()is silently ignored) — usecalc(-1 * clamp(...))
Content Density Limits Per Slide
| Slide Type | Maximum Content |
|---|---|
| Title/Cover | 1 heading + 1 subtitle + optional tagline |
| Bullet | 1 heading + 4-5 bullet points |
| Layers/Grid | 1 heading + 3 cards (3-column grid) |
| Stats | 1 heading + 4 stat boxes |
| Quote | 1 quote (max 3 lines) + attribution |
| Punch-line | 1 large text block (2-3 lines) |
| Code | 1 heading + 8-10 lines of code |
Content exceeds limits? Split into multiple slides. Never cram, never scroll.
Your Task
When user invokes #html-ppt:
Step 1: Confirm Intent
Ask (if not already specified):
- Topic / content — What is this about?
- Deck type:
rehearsal— Speaker notes in dark right panel, timer (N to toggle notes, T for timer)walkthrough— Scrollable long-page document (no pagination)slide-deck— Multi-page presentation with keyboard navigationsingle-slide— Single 1280x720 poster slide
- Target audience — Self / team / client (determines tone)
- Slide count / sections — Default: 8-12 slides
If user says "up to you", default to slide-deck + 8-12 slides.
Step 2: Choose Style
Ask user's style preference:
Option A: Amazon Brand — Orange + dark blue, professional corporate. Skip to Step 3. Option B: Pick a preset — Choose from 12 curated presets directly. See STYLE_PRESETS.md. Option C: Show me options (recommended for custom) — Generate 3 visual previews based on mood.
"Show me options" flow:
- Ask the mood: Impressed/Confident | Excited/Energized | Calm/Focused | Inspired/Moved
- Based on mood, pick 3 presets from the mood-to-preset table in STYLE_PRESETS.md
- Generate 3 single-sl
Установить html-ppt в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл html-ppt?
Generate a hand-crafted, zero-dependency single-file HTML slide deck (no CDN, works offline, double-click to open) with viewport-safe layouts, inline rehearsal timer/notes, and optional PDF export or Vercel deploy; also converts .pptx to HTML and enhances existing HTML decks. Use when the user wants an HTML presentation / PPT for rehearsal, internal sharing or offline use. Prefer reveal-ppt when they need reveal.js transitions, vertical sub-slides, presenter mode or code highlighting, and beautiful-hackathon-slides for hackathon / demo-day pitch decks.
Как установить скилл html-ppt?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл html-ppt запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic