moonlight-lupin/agent-skills / productivity/marp-deck
marp-deck
FlaggedUse when the user asks for Marp or a deck kept as Markdown/version-controlled text, wants a .pptx rebuilt as Markdown slides, or hands over an existing Marp .md deck to change — Marp decks with slides kept as one Markdown file.
| File | Kind | Size |
|---|---|---|
| LICENSE | other | 1.7 KB |
| README.md | markdown | 5.2 KB |
| SKILL.md | skill md | 9.9 KB |
| examples/dashboard-data.md | markdown | 41.1 KB |
| examples/editorial-lifestyle.md | markdown | 24.9 KB |
| examples/showcase-components.md | markdown | 38.1 KB |
| examples/travel-location.md | markdown | 12.0 KB |
| references/components.md | markdown | 6.3 KB |
| references/themes.md | markdown | 22.7 KB |
| scripts/export.sh | script | 2.4 KB |
| scripts/extract-pptx.py | script | 3.5 KB |
| scripts/md2pptx-officecli.pyexecutable | script | 13.5 KB |
| scripts/preview.sh | script | 1.1 KB |
| tests/extract_css.py | script | 1.9 KB |
| tests/fixtures/component-deck.md | markdown | 369 B |
| tests/render_presets.sh | script | 681 B |
| tests/test_scripts.sh | script | 1.2 KB |
| tests/test_themes.py | script | 2.6 KB |
| tests/themes_lib.py | script | 558 B |
scripts/export.sh
View on GitHub#!/usr/bin/env bash
# Export a Marp Markdown deck to PDF, PPTX, or HTML via marp-cli.
#
# Usage:
# bash export.sh <deck.md> [pdf|pptx|html|all] [--editable]
#
# Notes:
# - Requires Node.js (npx). marp-cli is fetched on first run.
# - --html is always passed so inline <svg> charts and HTML components render
# (without it marp-cli prints <svg> as literal text).
# - --allow-local-files is always passed so relative ./assets/ images resolve.
# - PPTX is image-per-slide by default. Add --editable for editable shapes
# (requires LibreOffice installed and on PATH; uses --pptx-editable).
# - If --pptx-editable fails (LibreOffice 24.2+ removed the Impress HTML
# import filter), the script falls back to md2pptx-officecli.py, which
# builds an editable PPTX via the officecli CLI (no LibreOffice needed).
# The fallback drops CSS fidelity: theme colours are carried over from the
# deck's :root variables, HTML components and SVG charts become plain text.
# - Animations and <details> interactivity survive ONLY in HTML export.
set -euo pipefail
DECK="${1:-}"
FORMAT="${2:-pdf}"
EDITABLE="${3:-}"
if [[ -z "$DECK" || ! -f "$DECK" ]]; then
echo "Usage: bash export.sh <deck.md> [pdf|pptx|html|all] [--editable]" >&2
exit 1
fi
run() {
echo "→ marp $*"
npx --yes @marp-team/marp-cli "$DECK" --html --allow-local-files "$@"
}
case "$FORMAT" in
pdf) run --pdf ;;
html) run -o "${DECK%.md}.html" ;;
pptx)
if [[ "$EDITABLE" == "--editable" ]]; then
if ! run --pptx --pptx-editable; then
echo "→ marp --pptx-editable failed (this machine's LibreOffice cannot" >&2
echo " import HTML into Impress — true for LibreOffice 24.2+)." >&2
echo "→ Falling back to officecli editable build." >&2
python3 "$(dirname "$0")/md2pptx-officecli.py" "$DECK" "${DECK%.md}-editable.pptx"
fi
else
run --pptx
fi
;;
all)
run --pdf
run -o "${DECK%.md}.html"
if [[ "$EDITABLE" == "--editable" ]]; then
if ! run --pptx --pptx-editable; then
echo "→ marp --pptx-editable failed; falling back to officecli." >&2
python3 "$(dirname "$0")/md2pptx-officecli.py" "$DECK" "${DECK%.md}-editable.pptx"
fi
else
run --pptx
fi
;;
*)
echo "Unknown format: $FORMAT (use pdf|pptx|html|all)" >&2
exit 1 ;;
esac
echo "Done. Output written next to $DECK"
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| canvas-designanthropics/skillsCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| docxanthropics/skillsUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| pdfanthropics/skillsUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| pptxanthropics/skillsUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |