/palladius-public-goodies:marp-slidesfrom palladius-public-goodies
Provides best practices for authoring, editing, testing layout bounds, and rendering previews of Marp Markdown presentations. Use when creating or editing Marp slides, testing for vertical/visual overflow, or generating slide preview artifacts.
Ships in palladius-public-goodies. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
This skill provides directives, testing methodologies, and automation tools for authoring and maintaining presentations built with Marp (Markdown Presentation Ecosystem).
In 16:9 Marp presentations (1280x720px), content that overflows vertically (scrollHeight > clientHeight) will be clipped or cause ugly scrolling.
line-height: 1.35).<div style="display: flex; gap: 24px; align-items: flex-start;">
<div style="flex: 1;">
<!-- Content / Bullets -->
</div>
<div style="text-align: center;">
<!-- QR code or image -->
</div>
</div>
max-height: 280px; or width: 190px; height: 190px;).font-size: 0.8em;) and minimal margins.marp <path-to-markdown> --images png --image-scale 1 --allow-local-files --html -o /tmp/slide.png
Inspect the bottom margin of the generated slide.XXX.png files. If the slide number footer or callout box touches or exceeds the bottom edge, it is overflowing.<section> in the compiled HTML:
const overflows = (sec.scrollHeight > sec.clientHeight + 2);
💡 Riccardo's Law of Slides: Whenever you create or modify Slide $N$ (e.g., Slide 3, Slide 13, etc.), always render and present the resulting slide visual directly in an Artifact!
Do not make the user open their browser or hunt for the file on disk. Provide immediate visual confirmation!
Render the Target Slide:
Use the bundled script in $SKILL_DIR/scripts/preview_slide.sh:
$SKILL_DIR/scripts/preview_slide.sh <path-to-markdown> <slide-number> <destination-png>
Example:
$SKILL_DIR/scripts/preview_slide.sh slides/index.md 3 /tmp/slide-3.png
Copy to Artifacts Directory: Copy the rendered image into the current conversation's artifact directory:
cp /tmp/slide-3.png <ARTIFACT_DIR>/slide_3_preview.png
Publish the Artifact:
Create or update a markdown artifact (e.g. slide_preview.md) referencing the image:
# Slide 3 Preview

When running marp directly via CLI:
--allow-local-files: Mandatory when slides reference local assets (images/*.png, .svg). Without this flag, Marp CLI blocks local file access.--html: Enables HTML tags (<div>, <style>, <img>, etc.) inside the markdown document.--images png: Renders each slide into a standalone numbered image (<name>.001.png, <name>.002.png, ...).These bugs were discovered the hard way during the Modena deck. Don't repeat them.
<!-- My comment -->
<div style="...">content</div>
Bug: Marp treats <!-- comment --> immediately before a <div> as a fenced code block delimiter. The entire following HTML is rendered as escaped text (<div>) instead of HTML.
Fix: Remove ALL inline HTML comments from the slide body. Only the final <!-- speaker notes --> at the very end of the slide is safe (Marp treats it as notes).
<pre> + <span> → spans leak out of the pre block<pre style="background:#0f172a;">
<span style="color:red;">text</span>
</pre>
Bug: Marp's Markdown parser breaks <span> tags inside <pre>, rendering them as escaped text or leaking them outside the block.
Fix: Use <div> with font-family: monospace + <br/> line breaks instead of <pre>. No spans needed if you set color on the div.
color on <div> / <p> → Marp theme overrides it<div style="color: white;">text here</div>
Bug: Marp wraps plain text in <p> tags and applies its theme color (dark), overriding the parent div's color.
Fix: Use <table><tr><td style="color: white;">text</td></tr></table>. Marp does NOT override <td> colors.
background: transparent on <td> → inherits Marp theme white<td style="background: transparent;">...</td>
Bug: transparent on <td> inherits the Marp theme's white table background, not the parent table's dark background.
Fix: Use an explicit color: background: #0f172a; (or whatever your dark color is).
border: none on <td> — Marp OVERRIDES itBug: Even border: none !important on <td> is overridden by the Marp theme's table CSS. Grey dividing lines between rows persist regardless.
Fix: Use the camouflage trick — set the border to the same color as the background:
<td style="border: 2px solid #0f172a;">...</td>
The border exists but is invisible because it matches the dark bg. Marp cannot override a color it doesn't know about.
Bug: Default <td> padding in Marp tables is several pixels, making rows look spread out, not like a terminal.
Fix: Set padding: 0 on every <td> and add line-height: 1.5 on the <table>:
<table style="line-height: 1.5; ...">
<tr><td style="padding: 0; ...">line 1</td></tr>
<tr><td style="padding: 0; ...">line 2</td></tr>
</table>
<table style="background: #0f172a; border-radius: 10px; padding: 10px 18px;
font-family: 'JetBrains Mono', monospace; font-size: 0.62em;
line-height: 1.5; width: 100%; border-collapse: collapse;
border: 1px solid #1e293b;">
<tr><td style="color: #475569; padding: 0; background: #0f172a; border: 2px solid #0f172a;"># comment</td></tr>
<tr><td style="color: #7dd3fc; padding: 0; background: #0f172a; border: 2px solid #0f172a;">KEY=<span style="color:#86efac;">value</span></td></tr>
</table>
✅ border: 2px solid <same-as-bg> (not none), padding: 0, line-height: 1.5, explicit bg on td, no HTML comments.
To visually verify a single slide without opening a browser:
cd slides/ # where node_modules/@marp-team lives
npx @marp-team/marp-cli@latest path/to/slide.md \
--allow-local-files --html --images png --image-scale 2 \
-o /tmp/slide_preview.png
Then open /tmp/slide_preview.001.png to see the rendered output.
Note: Local images (
src="images/foo.png") may not resolve unless the slide is compiled from inside theslides/directory where relative paths match. Use this for layout/color checks, not full media checks.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
palladius-public-goodies@palladius-skills is listed by palladius/skills — review the source before installing
npx claudepluginhub palladius/skills --plugin palladius-public-goodies68 skills in this plugin
/a2ui(💛) Build and render portable, declarative Generative UIs with Google A2UI (Agent-to-User Interface). Use whenever the user asks to generate, design, or wire interactive UI widgets, cards, forms, or dashboards using A2UI./add-to-portfolio-app(💛) Adds or syncs Talks, Keynotes, Workshops, Articles, Codelabs, Slides, and Videos in Riccardo's personal portfolio application (apps-portfolio) and companion bio repo (my-sessions-and-bio), including SQLite sync, TDD checks, default speaker images, and automated Cloud Run deployment./adk-python(💛) Create and manage AI agents using Google's Agent Development Kit (ADK) for Python. Use when the user wants to build single or multi-agent systems, evaluate agents, or deploy them. Includes instructions for fetching fresh ADK documentation and links for TypeScript and Go development./agy-cli-to-t3-import(💛) Import, resuscitate, and migrate historical or interrupted Antigravity CLI sessions (`agy --conversation <cid>`) into native T3 Code threads with standard title formatting `[agy2t3] 🪦 <Topic> (<short_cid>)` and context handoff./ai-coding(💛) Best practices for AI-assisted coding and maintaining agent system instructions (AGENTS.md, GEMINI.md, CLAUDE.md, CONTRIBUTING.md, SPECS.md, INSTRUCTIONS.md, SKILL.md) and collaborative Google Docs (references/google-docs-best-practices.md). Enforces inclusive AGENTS.md over vendor-specific files, prevents prompt bloat (instruction cramming, single-concept overfitting H2 sections, append-only drift), and provides analyze_bloat_history.py to audit Git history or uncommitted diffs./ai-ethics(💛) Use when evaluating ethical boundaries, ensuring EU AI Act (Regulation (EU) 2024/1689) safety-ladder compliance, handling security vulnerabilities or responsible disclosure, facing pressure to prioritize task completion over safety/honesty, launching multi-agent swarms (carbon footprint), verifying factual/scientific claims against disinformation, enforcing work-to-personal non-exfiltration, or installing/auditing AI_ETHICS.md and CONSTITUTION.md.