Skip to content

moonlight-lupin/agent-skills / productivity/marp-deck

marp-deck

Flagged

Use 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.

FileKindSize
LICENSEother1.7 KB
README.mdmarkdown5.2 KB
SKILL.mdskill md9.9 KB
examples/dashboard-data.mdmarkdown41.1 KB
examples/editorial-lifestyle.mdmarkdown24.9 KB
examples/showcase-components.mdmarkdown38.1 KB
examples/travel-location.mdmarkdown12.0 KB
references/components.mdmarkdown6.3 KB
references/themes.mdmarkdown22.7 KB
scripts/export.shscript2.4 KB
scripts/extract-pptx.pyscript3.5 KB
scripts/md2pptx-officecli.pyexecutablescript13.5 KB
scripts/preview.shscript1.1 KB
tests/extract_css.pyscript1.9 KB
tests/fixtures/component-deck.mdmarkdown369 B
tests/render_presets.shscript681 B
tests/test_scripts.shscript1.2 KB
tests/test_themes.pyscript2.6 KB
tests/themes_lib.pyscript558 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"
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall