rendering-slides
Renders a Marp slide deck to HTML, a tagged PDF, and a speaker-notes script with a polished theme, installing the pinned tools it needs and checking the result. Use when a deck needs exporting, a look applied or changed, or a PDF, PowerPoint, or slide images made from Marp Markdown.
- License 许可
- MIT
- 所属仓库
- ken-guru/skills
- 最近更新
- 2026-11-01
- Stars
- ★ 1
- Forks
- 1
01 前言 Front Matter
- name
- rendering-slides
- metadata
- { "version": "3.1.0", "changelog": "https://github.com/ken-guru/skills/blob/main/skills/presentation/CHANGELOG.md" }
- description
- Renders a Marp slide deck to HTML, a tagged PDF, and a speaker-notes script with a polished theme, installing the pinned tools it needs and checking the result. Use when a deck needs exporting, a look applied or changed, or a PDF, PowerPoint, or slide images made from Marp Markdown.
02 资源文件 18
- 参考文档references/accessibility-bar.md3.5 KB
- 参考文档references/deck-folder.md2.9 KB
- 参考文档references/themes.md2.6 KB
- 脚本scripts/checks.mjs20.8 KB
- 脚本scripts/deck.mjs4.9 KB
- 脚本scripts/marp-cli/package-lock.json63.8 KB
- 脚本scripts/marp-cli/package.json388 B
- 脚本scripts/marp.config.json55 B
- 脚本scripts/rendering-slides.mjs30.2 KB
- 脚本scripts/timing.mjs1.9 KB
- 脚本scripts/tools.mjs5.0 KB
- 脚本tests/checks.test.mjs13.5 KB
- 参考文档tests/fixtures/minimal/deck.md783 B
- 脚本tests/rendering-slides.test.mjs6.2 KB
- 脚本tests/themes.test.mjs6.5 KB
- 脚本tests/timing.test.mjs1.8 KB
- 其他themes/editorial-inverse.css355 B
- 其他themes/editorial.css5.1 KB
03 SKILL.md 正文
Rendering slides
Turn a Deck Folder's deck.md into the Rendered Deck, in the deck's theme, and prove the result is readable and accessible.
Script paths below are relative to this skill's folder. Run each as one command with the folder's absolute path in front, never chained with &&, $(…), or heredocs. The Deck Folder layout is in references/deck-folder.md.
Workflow
- [ ] 1. Tools installed
- [ ] 2. Theme in place
- [ ] 3. Rendered
- [ ] 4. Slides looked at
- Tools. Run
node scripts/rendering-slides.mjs setup --status. If anything is missing, ask the person to runnode scripts/rendering-slides.mjs setuponce, outside the sandbox: it installs a pinned Marp CLI and browser with verified checksums into a shared cache. On Linux it may print one package-install command for the person to run; never runsudoyourself. - Theme. If the Deck Folder has no
theme.css, apply the look from the Brief:node scripts/rendering-slides.mjs theme --deck <folder> --name editorial(light) or--name editorial-inverse(dark), or a brand theme with--brand <brand.json>(see references/themes.md).deck.mdmust saytheme: deckin its front matter. To change the look later, runthemeagain. - Render. Run
node scripts/rendering-slides.mjs render --deck <folder>. It writesdist/deck.html(to present from, and the accessible version),dist/deck.pdf(tagged, with an outline), anddist/deck-notes.md(the speaker-notes script). Add--pptxonly when the person asks for PowerPoint, and say it is made of slide pictures, so it is neither editable nor accessible. Add--imagesfor PNG slide images. - Look. Render with
--imagesand look at every slide: text overflowing its slot, overlapping elements, unreadable contrast, a visual that misses its caption. Fix the source (deck.md,theme.css, ormedia/), neverdist/, and render again.
The Accessibility Bar
Every render ends with the scripted checks listed in the Accessibility Bar ("Who checks what"). A finding names the slide and the fix; correct the source and render again. Run node scripts/rendering-slides.mjs check --deck <folder> to check without rendering. It also prints the notes' speaking time as information, never a finding: it compares with the length in brief.md, or with --minutes <n> when there is no Brief, and says nothing about length when neither is given.
The judgement checks in that table need a person or a review; say so when reporting a passing render.
When the render fails
- The sandbox blocks the browser. The error says so and explains how to allow that one render command outside the sandbox for the harness in use. Pass this on to the person; never change their harness settings yourself.
- The browser's own sandbox cannot start. The error gives the fix; ask the person before setting
CHROME_NO_SANDBOX=1for that render. - An
asset-pathorraw-htmlfinding stops the render. The Deck Folder is untrusted input: copy the file intomedia/orfonts/, or write the markup as Markdown, then render again. - A tool is missing. The error names the exact
setupcommand.
Theme values for visuals
Diagrams and charts do not inherit the deck's CSS. Run node scripts/rendering-slides.mjs theme-values --deck <folder> and save its JSON output as the theme values file passed to creating-diagrams and creating-charts, together with the slot of the slide's Layout Class (--slot-split, --slot-visual, --slot-default).
When the deck is rendered and checked, the natural next step is a review: reviewing-presentation, if installed, checks facts, timing, and the rendered result.
04 同仓库更多 Skills
unslop
Load when the user asks to edit prose for a more natural voice while preserving meaning, tone, technical precision, and structured output.
setup-devcontainer
Generate a shared devcontainer (Ubuntu base image, Node, GitHub CLI, one persistent config volume) in the current repo — one container every AI CLI installs into, added independently via its four companion setup-<tool>-devcontainer skills — optionally layering on SSH deploy-key/signing-key automation for agent-driven git push and signed commits, and/or an opt-in default-deny network egress firewall (iptables+ipset, allowlist derived from a Network Manifest). Use when the user wants to add a devcontainer to a repo, add SSH key automation to an existing devcontainer, restrict a devcontainer's outbound network, or connect a Local Checkout to a real GitHub repo. Not for adding an AI CLI itself — run the matching setup-<tool>-devcontainer skill for that, after this one.
setup-copilot-devcontainer
Install GitHub Copilot CLI into an existing shared devcontainer generated by the setup-devcontainer skill — its own install step, optional YOLO guidance, and optional automatic skill sync, added idempotently without touching anything else in the container. Use when the user wants to add Copilot CLI to a devcontainer, or re-run this after the container definition already exists.
setup-codex-devcontainer
Install Codex into an existing shared devcontainer generated by the setup-devcontainer skill — its own install step, sandbox capability grant, optional YOLO alias, and optional automatic skill sync, added idempotently without touching anything else in the container. Use when the user wants to add Codex to a devcontainer, or re-run this after the container definition already exists.
setup-claude-devcontainer
Install Claude Code into an existing shared devcontainer generated by the setup-devcontainer skill — its own install step, optional YOLO alias, and optional automatic skill sync, added idempotently without touching anything else in the container. Use when the user wants to add Claude Code to a devcontainer, or re-run this after the container definition already exists.
setup-antigravity-devcontainer
Install Antigravity into an existing shared devcontainer generated by the setup-devcontainer skill — its own install step, optional YOLO alias, optional link making the shared skills directory visible to agy, and optional automatic skill sync, added idempotently without touching anything else in the container. Use when the user wants to add Antigravity to a devcontainer, or re-run this after the container definition already exists.