Marp Slide Expert
БесплатноЗапускает вложенные скриптыНе проверенConvert or create Marp slide decks from Markdown sources. Use when working with .marp.md / .md files meant for marp CLI rendering, designing page-level slide…
от mebusw382 установки в других каталогахОб этом скилле
Marp Expert
Convert content into Marp slide decks that render cleanly via marp --pdf --allow-local-files. The constraints below are non-obvious pitfalls confirmed against marpit.marp.app — read once, apply always.
Hard rules
These break rendering silently if violated:
- Only
for images. Marp does NOT support![w:60% center],![width:200px], or any inline image sizing. If you need an image, it must be a background. - Wrap paths containing spaces in
<...>:. Without the brackets, marp silently treats the space as URL terminator. - Inline SVG requires
--html. Marp escapes HTML by default, so a<svg>diagram renders as a page of visible source code. Any deck containing inline SVG must be rendered withmarp deck.marp.md --html --pdf --allow-local-files. See "Smart drawing" below. - Slides overflow when content is too dense. Marp has no auto-shrink. Split proactively.
- Max 15 visible lines per slide. Count every rendered line — paragraph lines, bullet items, table rows (including the header row), code block lines, quote/callout-box lines. Over 15 and the bottom of the slide gets cut off in the PDF. See "15-line hard cap" below.
先分清:页级版式 vs 图级版式
这是两种完全不同的东西,用错工具是最常见的返工原因:
| 页级版式(slide layout) | 图级版式(diagram) | |
|---|---|---|
| 排的是 | 一页的内容块——文字、表格、图 | 一张图内部的节点和连线 |
| 手段 | CSS grid + <div> / marp 语法 |
内联 <svg> |
要不要 --html |
不需要 | 需要 |
| 文件 | references/layout-patterns.md | references/infographics-svg/ |
| 例子 | 三栏对比、双栏各带表、上下分区 | 阶梯、箭头串、2×2、桑基、泳道、便当格 |
判断:这一页要表达「内容之间的结构关系」吗?
- 是(要看谁依赖谁、怎么演进、卡在哪)→ 画图
- 否(只是内容多,并排放不下)→ 排版式
Layout patterns (cheat sheet)
| Scenario | Pattern |
|---|---|
| Cover | <!-- _class: cover --> + # Title + ## Subtitle |
| Major section break | <!-- _class: divider --> + # Section Name |
| Text only / text + table | Plain markdown, default content slide |
| Two columns | <div class="cols cols-2"> — 并列论点、两套方案 |
| Three columns | <div class="cols cols-3"> — 演进/挑战/对策,每栏 ≤ 5 行 |
| Main + side | <div class="cols cols-main"> (2:1) — 左要点右佐证,最常用 |
| Top / bottom split | <div class="split-h"> — 上结论下证据 |
| Single image + text |  — image left, text right |
| Multi-image, no text |   — horizontal row by default |
| Text + 2 images |  +  — img(a) right column, img(b) fills left, content overlays left |
| Portrait multi-image | Add vertical to each:  etc. |
| Infographic / 关系图 | <!-- _class: diagram --> + inline <svg> — see below |
15-line cap is per slide, not per column — a 3-column slide gives each column only ~5 lines. Splitting into three pages usually reads better than cramming one.
For full syntax and orientation logic, read references/image-syntax.md. For column layout details and the CSS block, read references/layout-patterns.md.
Infographics & relation diagrams — 内联 SVG
Infographics and relation diagrams (staircase, arrow chain, 2×2 matrix, value tree, sankey, funnel, swimlanes, bento grid, argument map, pie, radar, balance wheel) are drawn as inline SVG written directly in the .md — not as images. A PNG has to be redrawn to change one number; SVG travels with the file, keeps its text searchable, stays vector in the PDF, and recolours with one hex value.
# 含内联 SVG 的 deck 必须带 --html,否则 SVG 被转义成一整页源码
marp deck.marp.md --html --pdf --allow-local-files
The diagram module is a four-layer pipeline. Work through them in order — each answers exactly one question:
| Layer | Question | File |
|---|---|---|
| ① structures 选题 | 这份内容能画哪几张图? | structures.md |
| ② skeletons 体裁 | 用什么图形承载这个关系? | skeletons/INDEX.md |
| ③ metaphors 语气 | 在同一副骨架上换什么叙事外壳? | metaphors.md |
| ④ styles 配色 | 什么颜色、什么字阶? | styles/INDEX.md |
| craft 笔法 | 画布多大?线怎么连?字怎么排? | craft/ |
Pick the skeleton in two steps: relationship first, then metaphors. Relationship families (hierarchy / sequence / cycle / comparison / matrix / framework / strategy / mapping / growth / composition / profile / balance) route to a skeleton. The narrative layer — staircase, pyramid, flywheel, iceberg, funnel, bridge, mountain — swaps the shell on that same skeleton without changing the routing. That separation is what lets the skeleton library grow without the metaphors table ever changing.
| Relationship | Answers | Skeleton |
|---|---|---|
| Sequence | what happens first, then next | Arrow chain |
| Hierarchy (d |
Установить Marp Slide Expert в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Marp Slide Expert?
Convert or create Marp slide decks from Markdown sources. Use when working with .marp.md / .md files meant for marp CLI rendering, designing page-level slide layouts (cover, divider, text, tables, multi-column / split layouts), drawing infographics and relation diagrams as inline SVG (staircase, arrow chain, 2x2 matrix, value tree, sankey, funnel, swimlanes, bento grid, icon-rail, card-row, wave-timeline, argument map, pie / radar / balance-wheel charts), splitting long content into slides (15-line per-slide cap), writing speaker notes as invisible HTML comments, preparing image assets, or troubleshooting marp syntax errors and content overflow. Applies to marp / marpit slide format.
Как установить скилл Marp Slide Expert?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Marp Slide Expert запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic