Marp cli
Use this skill when generating slide deck presentations from markdown. Covers Marp markdown syntax (directives, slide breaks, themes, image extensions, speaker notes), built-in themes, the wiki-to-slides workflow, and Marp CLI conversion to PDF/PPTX/HTML/images. Use whenever the user asks for slides, a presentation, a deck, or mentions Marp.From its SKILL.md
npx -y skills add Berkay2002/wikillm --skill marp-cliAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
5.4 KB, as published. Nobody here has run it
Marp CLI
Generate slide deck presentations from markdown using the Marp ecosystem.
Install Check
Before converting slides, verify Marp CLI is available:
- Run
which marpormarp --version - If not found, ask the user: "Marp CLI is not installed. Would you like me to install it? (
npm install -g @marp-team/marp-cli)" - If the user agrees, run the install command.
1. Marp Markdown Syntax
Frontmatter (required)
---
marp: true
theme: default
paginate: true
header: "Header Text"
footer: "Footer Text"
---
marp: true enables Marp rendering. Other fields are optional but common.
Slide Breaks
Use --- on its own line to separate slides:
# Slide 1
Content here
---
# Slide 2
More content
Directives
Three scopes:
- Global (in frontmatter): apply to all slides
- Local (HTML comment
<!-- directive: value -->): apply to current + subsequent slides - Spot (underscore prefix
<!-- _directive: value -->): apply to current slide only
Common directives: theme, paginate, header, footer, backgroundColor, color, class, style, headingDivider
Image Extensions
Resize:



Background images:
 <!-- cover (default) -->
 <!-- contain -->
 <!-- fit -->
Split layout:
 <!-- image on left, content on right -->
 <!-- image on right 40%, content on left -->
Multiple backgrounds (horizontal by default):


 <!-- add vertical for vertical stacking -->
Filters:



Speaker Notes
<!-- This is a speaker note. It won't appear on the slide. -->
Scoped Styles
<style scoped>
h1 { color: red; }
</style>
Use <style> (without scoped) for global CSS.
Other Features
- Math:
$inline$and$$block$$(MathJax) - Emoji:
:shortcode:syntax (twemoji SVG) - Fitting header:
# <!-- fit --> Long Titleauto-scales to fit
2. Built-in Themes
default
GitHub-style, clean look. CSS vars: --color-fg-default, --color-canvas-default.
class: invertfor dark mode
gaia
Classic Marp theme. CSS vars: --color-background, --color-foreground, --color-highlight.
class: leadfor title/section slides (centered, larger text)class: invertfor dark mode
uncover
Modern minimal. CSS vars: --color-background, --color-foreground, --color-highlight.
class: invertfor dark mode
All themes support size: 4:3 in frontmatter (default is 16:9).
3. Common Slide Patterns
Title Slide
---
marp: true
theme: gaia
class: lead
---
# Presentation Title
## Subtitle
**Author Name** — Date
Content Slide
---
# Key Findings
- First important point
- Second important point
- Third important point
- Supporting detail
<!-- Speaker notes go here for presenter reference -->
Two-Column Layout
---
# Comparison

## Right Column
- Point about the diagram
- Another observation
- Key takeaway
Full Background Image
---

<!-- _color: white -->
# Bold Statement
Code Slide
---
# Implementation
```python
def attention(query, key, value):
scores = query @ key.T / sqrt(d_k)
weights = softmax(scores)
return weights @ value
### Section Divider
```markdown
---
<!-- _class: lead -->
# Part 2: Results
Comparison (Side-by-Side)
---
# Before vs After


4. Wiki to Slides Workflow
- Read relevant wiki articles on the topic
- Outline the narrative: what's the story arc? What should the audience learn?
- Structure into slides: 1 idea per slide, max ~6 bullet points per slide
- Write Marp markdown to
outputs/slides/YYYY-MM-DD-topic.md - Convert to desired format (see CLI section below)
- File back: if the presentation reveals new connections or insights, create/update wiki articles
5. CLI Quick Reference
# Convert to HTML (default)
marp slide.md
marp slide.md -o output.html
# Convert to PDF
marp slide.md --pdf
marp slide.md -o output.pdf
# Convert to PowerPoint
marp slide.md --pptx
marp slide.md -o output.pptx
# Convert to images
marp slide.md --images png
# Watch mode (auto-rebuild on save)
marp -w slide.md
# Server mode (serve directory with live reload)
marp -s ./slides-dir
# Allow local images in PDF/PPTX
marp slide.md --pdf --allow-local-files
# PDF with speaker notes as annotations
marp slide.md --pdf --pdf-notes
# Set metadata
marp slide.md --pdf --title "My Talk" --author "Name"
For the complete CLI reference with all options, read references/cli-reference.md.