Skip to content
Back to skills

Slides

ASecurity

Make a slide deck, presentation or talk as a reveal.js web page shown in Loom's canvas. Use when the user asks for slides, a deck, a presentation, a PPT, "幻灯片", "做个 slide", "演示文稿", "做个 PPT" — and there is no existing .pptx/.key file to edit (editing one of those is a different job).

  • 11 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 6, 2026
ai-agentspythongo

Works with

  • cursor
  • cli

Security analysis

A100/100

Scanned November 6, 2026

npx -y skills add EthanLLL/loom --skill slides --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Slides?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Slides
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ethanlll-slides/badge)](https://www.skillsdirectory.com/skills/ethanlll-slides)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: slides
description: Make a slide deck, presentation or talk as a reveal.js web page shown in Loom's canvas. Use when the user asks for slides, a deck, a presentation, a PPT, "幻灯片", "做个 slide", "演示文稿", "做个 PPT" — and there is no existing .pptx/.key file to edit (editing one of those is a different job).
---

# slides: a reveal.js deck in the canvas

A deck is one self-contained page, `<output dir>/<deck-name>/index.html`, which
opens in the canvas. The user presents from there: the canvas has a full-window
button that hides the chat and sidebar.

reveal.js and KaTeX are served by Loom itself under `/vendor/`, so a deck works
whenever Loom does. **Load them only from there — never from a CDN** — and pull
in nothing else from the network (no Google Fonts, no remote images): the deck
must open on a bad connection.

## Start from this

```html
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Deck title</title>
<link rel="stylesheet" href="/vendor/reveal.js/reset.css">
<link rel="stylesheet" href="/vendor/reveal.js/reveal.css">
<link rel="stylesheet" href="/vendor/reveal.js/theme/white.css">
<link rel="stylesheet" href="/vendor/reveal.js/plugin/highlight/monokai.css">
<style>
  /* The themes' fonts have no CJK glyphs; fall back to the system's. */
  .reveal { font-family: "Source Sans Pro", -apple-system, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; }
  .reveal h1, .reveal h2, .reveal h3 { font-family: inherit; text-transform: none; }
  /* Export button: reveal's own ?print-pdf view, then the browser's print dialog. */
  .export-pdf { position: fixed; left: 16px; bottom: 14px; z-index: 30; padding: 7px 12px;
    font: 600 13px/1 -apple-system, "PingFang SC", sans-serif; color: #555; cursor: pointer;
    background: rgba(255,255,255,.85); border: 1px solid rgba(0,0,0,.15); border-radius: 8px; opacity: .45; }
  .export-pdf:hover { opacity: 1; }
  html.print-pdf .export-pdf { display: none; }
</style>
</head>
<body>
<button class="export-pdf" type="button" title="导出 PDF">PDF</button>
<div class="reveal"><div class="slides">

  <section>
    <h1>Title</h1>
    <p>Subtitle</p>
  </section>

  <section>
    <h2>One idea per slide</h2>
    <ul>
      <li class="fragment">Points appear one at a time</li>
      <li class="fragment">Inline math $e^{i\pi} + 1 = 0$</li>
    </ul>
    <aside class="notes">Speaker notes go here.</aside>
  </section>

  <section>
    <h2>Code</h2>
    <pre><code class="language-elixir" data-trim data-line-numbers>
Process.send_after(self(), :tick, 1_000)
    </code></pre>
  </section>

</div></div>

<script src="/vendor/reveal.js/reveal.js"></script>
<script src="/vendor/reveal.js/plugin/highlight.js"></script>
<script src="/vendor/reveal.js/plugin/math.js"></script>
<script src="/vendor/reveal.js/plugin/zoom.js"></script>
<script>
  Reveal.initialize({
    width: 1280,
    height: 720,
    hash: true,
    slideNumber: "c/t",
    pdfSeparateFragments: false,
    // Keep the slides at any canvas width; see Rules.
    scrollActivationWidth: null,
    katex: { local: "/vendor/katex" },
    plugins: [RevealHighlight, RevealMath.KaTeX, RevealZoom],
  })

  // PDF: reload as reveal's print view, print once it has laid out, come back.
  document.querySelector(".export-pdf").onclick = () =>
    location.replace(location.pathname + "?print-pdf")
  if (/print-pdf/.test(location.search)) {
    Reveal.on("pdf-ready", () => setTimeout(() => window.print(), 300))
    addEventListener("afterprint", () => location.replace(location.pathname))
  }
</script>
</body>
</html>
```

## Rules

- **Keep `scrollActivationWidth: null`.** Below 435px wide reveal switches
  to a scrolling view, and the canvas is that narrow with its file tree open;
  widening it again (the tree closed, full window, `F`) then leaves only the
  backgrounds, the text gone.
- **Themes**: only `white`, `black`, `serif`, `dracula`, `white-contrast`,
  `black-contrast`. The others import Google Fonts and break offline.
- **Plugins**: `highlight`, `math` (KaTeX, always with
  `katex: { local: "/vendor/katex" }`), `zoom`, `search`, `markdown`. Not
  `notes`: the canvas is sandboxed, so the speaker-notes window comes up blank.
  `<aside class="notes">` is still fine to write — it is just not shown.
- **Images and other assets** go beside `index.html` and are referenced
  relatively (`img/arch.png`), never by absolute path or URL.
- **Charts**: draw them as inline SVG or plain HTML/CSS. There is no charting
  library under `/vendor/`. Give each slide's `<svg>` its own `<defs>` (arrow
  markers, gradients) with ids unique in the page: reveal hides the other
  slides, and a `url(#id)` pointing into a hidden one renders nothing.
- **Content**: one idea per slide, at most about six short bullets, no
  paragraphs. Use `class="fragment"` to build a slide up step by step, and
  nested `<section>`s (vertical slides) only for optional detail.
- **Fit**: everything must fit in 1280×720 without scrolling. Split a slide
  rather than shrink its text.

## Revising

Edit the same `index.html` in place; the canvas shows the newest version.
`hash: true` keeps the URL on the current slide, so after the canvas reloads
the user stays where they were.

## Exporting

Keep the template's **PDF** button (bottom left) in every deck. It reloads the
deck as reveal's print view, opens the browser's print dialog, and comes back
when the dialog closes — the user picks "Save as PDF", in their own browser, so
nothing is rendered on the server. One page per slide, fragments shown
(`pdfSeparateFragments: false`). Tell them: margins "None", "Background
graphics" on. On a dark theme, restyle the button so it stays visible.

Only when they explicitly ask for a .pptx: convert the finished deck into a
native, editable one — load each slide with Playwright, measure every element's
box and style, and rebuild it with python-pptx (1 CSS px = 9525 EMU on a
1280×720 page). If `~/annual-review/scripts/to_pptx.py` exists, start from it.
Check the result with `soffice --headless --convert-to pdf` and `pdftoppm`; for
layout only, since the fonts differ from PowerPoint's.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.