Use when a file of slides is to be shown as a presentation - asked for a deck, a presentation, slides to open in a browser - or when slides are to be saved as pictures for a chat such as Slack.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Render Presentation?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ydmitry-render-presentation)
---
name: render-presentation
description: Use when a file of slides is to be shown as a presentation - asked for a deck, a presentation, slides to open in a browser - or when slides are to be saved as pictures for a chat such as Slack.
---
# render-presentation
A presentation is the slides, shown: one screen for each slide, with its figure in place. It is made by a script, so the presentation cannot say something the slides do not.
**The slides stay the source.** To change the presentation, change the file of slides and make it again. Never edit the page.
## Before making it
**Make it from slides that are finished.** `slide-writing` says what a slide holds and how the file is written: a `# ` title, a `## ` heading for each slide, and in each slide a `Takeaway:` line.
- A `Figure:` line needs its figure drawn first: that is `draw-figures`. The script refuses a mark with no figure file.
- A slide with no `Takeaway:` line is refused, with its line.
## Make and check
`SLIDES` is the Markdown file of slides. `DIR` is `${CLAUDE_SKILL_DIR}/scripts`.
1. **`python3 DIR/present.py SLIDES`** writes the presentation beside the slides, with the same name and `.html`. `-o PAGE` writes it elsewhere.
2. **`python3 DIR/presentation_check.py PAGE SLIDES`** until its last line starts with `OK`. Fix a line that starts `WARN` too, or say why it stays.
3. **Open the page** and look at it once, when you have a way to look.
When the script prints `ERROR line N`, it wrote no page. Fix that line of the slides: the message says how.
## Pictures of slides for a chat
**A chat shows a picture and no page, so a slide posted there is saved as a PNG.** Add `--png` to step 1:
| Option | Slides saved |
|---|---|
| `--png key` | those marked `Key: yes` in the file |
| `--png 2,5,7` | the ones with these numbers |
| `--png all` | every slide |
- **Save the few key slides, not all of them.** About four tell the story in a thread; more is a burden on its readers. Use `all` only when asked.
- **A picture is 1366 by 1000, saved at twice that size.** That is the proportion Slack shows whole in a thread. The slide is laid out again for it: the same words and figure in another frame.
- **A picture stands alone, so it carries the title and the figure.** It has no slide number: that number counts slides the chat does not show. The pictures are still read in the order posted, which is why `slide-writing` makes the key slides a series of their own. Where the slide has a figure, the takeaway is left off and its room goes to the figure. The script prints it as `card-N takeaway: ...`: give those lines to the user as the words of the message. A slide with no figure keeps its takeaway.
- **Its colours are fixed, on a light ground.** A picture cannot follow a dark screen.
- The files are `cards/<name of the slides>/card-N.png` beside the page, where `N` is the slide's number.
**The pictures need the `playwright` package.** Without it the script writes the page, prints `ERROR the pictures were not made` and that 0 cards were made. Say so in your report in plain words: a chat that was promised pictures has none.
## What the presentation holds
| On the page | Where it comes from |
|---|---|
| a title slide | the `# ` title and the lines under it |
| each slide's title, body and takeaway | the slides, word for word |
| each figure | `fig-N.svg`. Its sentence is the figure's accessible name and is not printed: the slide's title is its caption |
| each slide's place in the series | a line on the slide's bottom edge, as long as the part of the series shown so far. The number `n / N` stays in the page for a screen reader |
| a switch named Notes | shows the `Notes:` lines under their slides |
| a switch for a light or a dark screen | follows the system until the reader picks |
**The numbers and the two switches are the only words the page adds.** A slide has no frame of its own: no rule under the title, no box around the figure or the takeaway. It is one file, it carries its figures inside it, and it asks the network for nothing.
A slide fills the screen, whatever the screen's proportion. The arrow keys, the space bar and a scroll move between slides. On a phone held upright a slide is as tall as what it holds.
## What a clean check shows
A last line that starts with `OK` means four things:
- **The page is what the script makes of the slides now.** Nobody edited it, and neither the slides nor a figure changed since.
- **The words a reader sees are the words of the slides,** slide by slide.
- **The page asks the network for nothing,** and holds one figure for each mark.
- **Measured in a headless browser:** every slide fits a screen of 1366 by 1000 and one of 1280 by 720, no label of a figure is drawn under 9.5 pixels there, and on a phone the page is not wider than the screen.
A slide that holds more than fits is `slide-overflow`. **Fix it yourself, in the file of slides: split the slide into two or three,** each with the title and a takeaway, and make the page again. A split drops nothing, so it needs nobody's word. Cut words or rows only when the user says which. A line `WARN card-stale` means a picture is older than the slides: run step 1 with `--png` again.
The measured part needs the `playwright` package. Without it the last line says `sizes not measured`: say in your report that the slides were not measured.
**It does not show that a slide looks right.** Step 3 does.
## The look
**The colours and fonts are the tokens of `render-page`,** in its `assets/tokens.css`, so a page and a presentation of one text look alike. The layout is `assets/deck.html` here.
This skill reads Markdown with `render-page`'s script, so the two are installed side by side.
## With the other skills
**This skill owns the presentation and no word of it.** `slide-writing` owns the slides, `draw-figures` owns the figures, and the text the slides come from is checked before any slide is made.