marp-slides
Skill340 starsChanged 7 months agoMITView on GitHub
Author MARP markdown slide decks exportable to PDF, PPTX, and HTML via marp-cli. Covers Marpit directives, custom CSS themes, SVG chart recipes, and dashboard components. Triggers on: "marp", "marp deck", "markdown slides", "slides from markdown", "marp-cli", "pdf from markdown", "pptx from markdown".
We split this skill into the rules it gives an agent
7 rules. 0 are common, 2 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 34
Before generating anything, confirm in a single message.
- Very specific: line 59
Start with frontmatter: Every deck begins with a YAML front-matter block setting theme, paginate, header, footer, and optionally global …
- Very specific: line 61
First slide = title: Use <!-- _class: lead --> to center the title slide, and <!-- _paginate: skip --> to hide it from the page count.
- Very specific: line 62
Middle slides = content: Prefer one idea per slide.
- Very specific: line 70
Every slide break is --- on its own line with blank lines around it
- Very specific: line 72
If using raw HTML (SVG, custom divs), confirm the export command uses --html
- Distinctive: line 73
Run the export command once locally to confirm no directive warnings
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
MARP Slides Skill
Author slide decks as plain Markdown using the MARP ecosystem (Marpit + Marp Core + marp-cli) and export to PDF, PowerPoint, or self-contained HTML. Decks are single .md files, git-friendly, and themable with plain CSS.
When This Skill Triggers
- User asks for a MARP deck by name
- User wants "markdown slides" or "slides from markdown"
- User wants a
.mdfile they can commit to git and regenerate deterministically - User mentions
marp-cli, Marpit directives, or asks to theme slides with CSS - User wants CLI-exportable PDF or PPTX sourced from a text document
When NOT to Use This Skill
| User wants | Use instead |
| Reveal.js / browser-native HTML presentation with scroll nav | html-presentation |
Edit a binary .pptx with native PowerPoint features (animations, transitions set in PowerPoint) | document-skills:pptx |
| Static poster or single-page visual | concept-to-image |
| Animated Manim explainer video | animate |
Step 0: Gather Requirements
Before generating anything, confirm in a single message. Use defaults silently for anything the user declines to specify — never ask twice.
| Parameter | Options | Default |
| Export target | pdf, pptx, html, all | pdf |
| Theme | dark-dashboard, light-editorial, or MARP built-in (default, gaia, uncover) | dark-dashboard |
| Aspect ratio | 16:9, 4:3 | 16:9 |
| Slide count | integer or auto | auto |
| Visual density | minimal (text-first), standard (mixed), dashboard (charts + metric cards) | standard |
| Branding | logo path, accent color hex | none |
Step 1: Load References On-Demand
Do NOT read all reference files up front. Based on user intent, load only what is needed. This keeps the skill within armory's token-efficiency budget.
| User intent | Load |
| Any deck (always required) | references/DIRECTIVES.md — Marpit directives, frontmatter schema, image syntax |
| Custom theme or CSS styling | references/THEMES.md — dark-dashboard and light-editorial starter CSS |
| Charts, dashboards, metric cards, SVG visuals | references/COMPONENTS.md — SVG chart recipes, cards, status tags, icons |
| Export to PDF/PPTX/HTML or image | references/EXPORT.md — marp-cli flags, Chrome dependency, --html flag |
| User wants a concrete example to match | references/examples/ — 3 curated decks: dashboard.md, editorial.md, technical.md |
Step 2: Compose the Deck
- Start with frontmatter. Every deck begins with a YAML front-matter block setting
theme,paginate,header,footer, and optionally globalstyle. SeeDIRECTIVES.mdfor the full schema. - Split slides with
---. A horizontal rule on its own line creates a new slide. Frontmatter must come before the first slide break. - First slide = title. Use
<!-- _class: lead -->to center the title slide, and<!-- _paginate: skip -->to hide it from the page count. - Middle slides = content. Prefer one idea per slide. If density is
dashboard, use metric cards and SVG charts fromCOMPONENTS.md. If density isminimal, use large headings and whitespace. - Last slide = summary/CTA. Mirror the lead class on the closing slide for visual symmetry.
- Background images use extended syntax:
,,. Multiple![bg]tags on one slide arrange horizontally; addverticalfor a column layout.
Step 3: Verify Before Handoff
- Frontmatter block present and valid YAML
theme:matches a known name (built-in or custom in the file's globalstyle:block)- Every slide break is
---on its own line with blank lines around it - Relative image paths only (MARP's
--allow-local-filesrequires this for PDF export) - If using raw HTML (SVG, custom divs), confirm the export command uses
--html - Run the export command once locally to confirm no directive warnings
Step 4: Export
See references/EXPORT.md for the full command reference. Minimal invocation:
npx @marp-team/marp-cli@latest slides.md --pdf --allow-local-files --htmlThis skill wraps the MIT-licensed MARP ecosystem. See root ATTRIBUTIONS.md for upstream credits.
Design Rules
- One idea per slide. MARP clips overflow silently — there is no warning for content that runs off the bottom.
- Paginate: skip on title and divider slides. paginate: hold on appendix slides.
- Relative paths only for images. Absolute paths break in VS Code preview and PDF export.
--htmlis required for any SVG,<div>,<details>, or inline styling. Without it, MARP escapes HTML tags to text.- Cap lists at 6 rows on content slides. Use
detailscollapsibles or a second slide for more. - Headings carry meaning:
h1for slide title,h2for subtitle,h3for uppercase section labels. Consistent hierarchy = consistent visual rhythm. - Never hardcode theme CSS into every slide. Define it once in the global
<!-- style: | -->directive or a separate.cssfile loaded viatheme:.
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- robonuggets/marp-slides★ 301same name
- mashharuki/claude-code-sample★ 1same name
- RanaCM/marpsmith★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository94 other files it gives its agents.
- AGENTS.mdAGENTS.md
- adr-writerSkill
- agent-builderSkill
- animateSkill
- api-docs-generatorSkill
- appraiseSkill
- architecture-diagramSkill
- architecture-reviewerSkill
- arxiv-figuresSkill
- arxiv-packageSkill
- arxiv-preflightSkill
- benchmark-runnerSkill
- changelog-composerSkill
- chart-claritySkill
- citation-auditSkill
- codebase-advisorSkill
- code-refinerSkill
- competitive-analyzerSkill
- concept-to-imageSkill
- debug-investigatorSkill
- decision-mapSkill
- dependency-auditSkill
- devils-advocateSkill
- domain-modelingSkill
- engineering-retroSkill
- env-validatorSkill
- estimate-calibratorSkill
- feasibility-assessorSkill
- figure-rhetoricSkill
- figure-table-qualitySkill
- filesystemSkill
- githubSkill
- gpu-optimizerSkill
- handoffSkill
- html-presentationSkill
- html-videoSkill
- humanizeSkill
- idea-validatorSkill
- immuneSkill
- intakeSkill
- kg-builderSkill
- launch-videoSkill
- learning-workspaceSkill
- lightpanda-browserSkill
- linkedin-post-styleSkill
- literature-reviewSkill
- manuscript-provenanceSkill
- manuscript-reviewSkill
- manuscript-typographySkill
- market-analyzerSkill
- mcp-to-skillSkill
- md-to-pdfSkill
- migration-risk-analyzerSkill
- milestone-runnerSkill
- module-deepeningSkill
- notebooklmSkill
- package-evaluatorSkill
- package-optimizerSkill
- paper-to-skillSkill
- plan-promptsSkill
- The first 60 shown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

