html-presentations
Create beautiful HTML presentations from markdown specs. Use when user asks to create a presentation or slideshow.
What this skill does
# HTML Presentations
Convert a markdown spec file into an HTML presentation using the Poimandres-themed template.
## Files
- **Template**: `{SKILLBASE}/template/index.html`
- **Example spec**: `{SKILLBASE}/examples/spec.md`
- **Build script**: `{SKILLBASE}/scripts/create_standalone.sh`
## Instructions
1. Read the spec markdown file (e.g., `spec.md`)
2. Read the template at `{SKILLBASE}/template/index.html`
3. Parse the spec file:
- Split on `* * *` to get individual slides
- `# Title` = title slide (use `<h1>`)
- `## Heading` = slide heading (use `<h2>`)
- `- item` = bullet list (use `<ul><li>`)
- `**bold**` = emphasis (use `<span class="accent">` or `<span class="green">`)
- `> quote` = blockquote (use `<blockquote class="quote">`)
- `<img src="...">` = image (keep as-is, add `class="shadow"` if appropriate)
- `` ```mermaid ``` `` = mermaid diagram (wrap in `<div class="mermaid-wrapper"><pre class="mermaid">`)
- `<!-- image gallery - VERTICAL -->` = split images into separate slides (one per slide)
- `<!-- comment -->` = other layout hints (e.g., `<!-- big quote -->`)
4. Generate HTML slides:
- Each slide is a `<section class="slide">` (add `centered` class for title/image slides)
- Preserve the template's head section (styles, scripts, mermaid config)
- Preserve the navigation and script at the bottom
5. Write output to `index.html` in the same directory as the spec, offer to `open` it using Bash for the user
6. OPTIONAL Create standalone shareable HTML:
- Run the build script to embed all PNG images as base64 data URIs
- Output: `FOLDERNAME-standalone.html` (e.g., `2026-01-05-luciq-presentation-standalone.html`)
- Creates a single self-contained file (~2-3MB) that opens in any browser
```bash
{SKILLBASE}/scripts/create_standalone.sh /path/to/presentation/folder
```
## Slide Type Examples
### Title Slide
```html
<section class="slide centered">
<h1>Presentation Title</h1>
<p class="subtitle">Subtitle here</p>
</section>
```
### Bullet Points
```html
<section class="slide">
<h2>Slide Title</h2>
<ul>
<li>Point with <span class="accent">emphasis</span></li>
<li>Another point</li>
</ul>
</section>
```
### Big Quote
```html
<section class="slide centered">
<blockquote class="quote">
"The quote text here"
</blockquote>
</section>
```
### Mermaid Diagram
```html
<section class="slide centered">
<h2>Diagram Title</h2>
<div class="mermaid-wrapper">
<pre class="mermaid">
graph LR
A[Start] --> B[End]
</pre>
</div>
</section>
```
### Image
```html
<section class="slide centered">
<h2>Image Title</h2>
<img src="./image.png" alt="Description" class="shadow" />
</section>
```
### Image Gallery (2 images side by side)
```html
<section class="slide">
<h2>Gallery Title</h2>
<div class="columns">
<div class="column">
<p class="muted">Caption 1</p>
<img src="./image1.png" alt="Image 1" />
</div>
<div class="column">
<p class="muted">Caption 2</p>
<img src="./image2.png" alt="Image 2" />
</div>
</div>
</section>
```
### Vertical Image Gallery (one image per slide)
When spec contains `<!-- image gallery - VERTICAL -->`, split each image into its own slide:
```html
<section class="slide centered">
<h2>Section Title</h2>
<p class="muted">Caption 1</p>
<img src="./image1.png" alt="Image 1" class="shadow" style="max-height: 55vh;" />
</section>
<section class="slide centered">
<h2>Section Title</h2>
<p class="muted">Caption 2</p>
<img src="./image2.png" alt="Image 2" class="shadow" style="max-height: 55vh;" />
</section>
```
## Available CSS Classes
### Slide Classes
- `.slide` - base slide
- `.slide.centered` - center content
- `.slide.top` - align to top
### Color Classes
- `.accent` - light blue (#ADD7FF)
- `.green` - mint green (#5DE4c7)
- `.yellow` - soft yellow (#fffac2)
- `.pink` - pink (#d0679d)
- `.cyan` - cyan (#89ddff)
- `.muted` - dim gray
### Layout Classes
- `.columns` - two-column grid
- `.split` - image + text side by side
- `.gallery` - flex gallery for multiple images
### Element Classes
- `.subtitle` - smaller subtitle text
- `.small` - smaller text
- `.quote` - styled blockquote
- `.big-number` - large stat/number
- `.badge` - tag/badge element
- `.reveal` - progressive reveal item (use with `data-progressive`)
## Progressive Reveal
Add `data-progressive` to a slide to reveal content one item at a time on advance.
**How it works:**
- Slide starts with title visible, all `<li>` and `.reveal` elements hidden
- Each advance (→, Space, or Next button) reveals the next item
- When all items are visible, next advance goes to the next slide
- Going back shows previous slide with all items visible
**Note:** Progressive slides use `padding-top: 15vh` instead of vertical centering to prevent layout shift as items reveal.
### Progressive Bullet Points
```html
<section class="slide" data-progressive>
<h2>Key Points</h2>
<ul>
<li>First point (revealed on first advance)</li>
<li>Second point (revealed on second advance)</li>
<li>Third point (revealed on third advance)</li>
</ul>
</section>
```
### Progressive Custom Elements
Use `.reveal` class for non-list items:
```html
<section class="slide centered" data-progressive>
<h2>Before & After</h2>
<div class="reveal">
<p class="muted">Before</p>
<div class="mermaid-wrapper">
<pre class="mermaid">graph LR; A-->B</pre>
</div>
</div>
<div class="reveal">
<p class="muted">After</p>
<div class="mermaid-wrapper">
<pre class="mermaid">graph LR; A-->B-->C-->D</pre>
</div>
</div>
<p class="reveal muted">Summary text revealed last</p>
</section>
```
### Progressive Image Gallery
```html
<section class="slide centered" data-progressive>
<h2>Feature Walkthrough</h2>
<div style="display: flex; gap: 30px; justify-content: center;">
<div class="reveal" style="text-align: center;">
<p class="muted">Step 1</p>
<img src="./step1.png" class="shadow" />
</div>
<div class="reveal" style="text-align: center;">
<p class="muted">Step 2</p>
<img src="./step2.png" class="shadow" />
</div>
<div class="reveal" style="text-align: center;">
<p class="muted">Step 3</p>
<img src="./step3.png" class="shadow" />
</div>
</div>
</section>
```
Related in Web Dev
generating-lwc-components
IncludedLightning Web Components with PICKLES methodology and 165-point scoring. Use this skill when the user creates or edits LWC components, builds wire service patterns, or writes Jest tests for LWC. TRIGGER when: user creates/edits LWC components, touches lwc/**/*.js, .html, .css, .js-meta.xml files, or asks about wire service, SLDS, or Jest LWC tests. DO NOT TRIGGER when: Apex classes (use generating-apex), Aura components, or Visualforce.
tanstack-query
IncludedManage server state in React with TanStack Query v5. Set up queries with useQuery, mutations with useMutation, configure QueryClient caching strategies, implement optimistic updates, and handle infinite scroll with useInfiniteQuery. Use when: setting up data fetching in React projects, migrating from v4 to v5, or fixing object syntax required errors, query callbacks removed issues, cacheTime renamed to gcTime, isPending vs isLoading confusion, keepPreviousData removed problems.
document-processor-api
IncludedProcess documents with Nutrient DWS. Use when the user wants to generate PDFs from HTML or URLs, convert Office/images/PDFs, assemble or split packets, OCR scans, extract text/tables/key-value pairs, redact PII, watermark, sign, fill forms, optimize PDFs, or produce compliance outputs like PDF/A or PDF/UA. Triggers include convert to PDF, merge these PDFs, OCR this scan, extract tables, redact PII, sign this PDF, make this PDF/A, or linearize for web delivery.
nutrient-document-processing
IncludedProcess documents with Nutrient DWS. Use when the user wants to generate PDFs from HTML or URLs, convert Office/images/PDFs, assemble or split packets, OCR scans, extract text/tables/key-value pairs, redact PII, watermark, sign, fill forms, optimize PDFs, or produce compliance outputs like PDF/A or PDF/UA. Triggers include convert to PDF, merge these PDFs, OCR this scan, extract tables, redact PII, sign this PDF, make this PDF/A, or linearize for web delivery.
tanstack-query
IncludedManage server state in React with TanStack Query v5. Covers useMutationState, simplified optimistic updates, throwOnError, network mode (offline/PWA), and infiniteQueryOptions. Use when setting up data fetching, fixing v4→v5 migration errors (object syntax, gcTime, isPending, keepPreviousData), or debugging SSR/hydration issues with streaming server components.
accelint-nextjs-best-practices
IncludedNext.js performance optimization and best practices. Use when writing Next.js code (App Router or Pages Router); implementing Server Components, Server Actions, or API routes; optimizing RSC serialization, data fetching, or server-side rendering; reviewing Next.js code for performance issues; fixing authentication in Server Actions; or implementing Suspense boundaries, parallel data fetching, or request deduplication.