/cs-md-slides - Markdown deck → single-file HTML presentation
Convert a markdown deck (slides separated by --- HR boundaries or by H1 headings, with optional <!-- notes: ... -- presenter notes blocks) into a single-file HTML presentation with arrow-key navigation, presenter mode (split view with current slide + notes + clock + next-slide preview), URL-hash deep linking, and @media print page-per-slide for PDF export. Refuses 1-slide decks (it's a poster) or
Front matter
disable-model-invocation: true
description: Convert a markdown deck (slides separated by --- HR boundaries or by # H1 headings, with optional <!-- notes: ... --> presenter notes blocks) into a single-file HTML presentation with arrow-key navigation, presenter mode (split view with current slide + notes + clock + next-slide preview), URL-hash deep linking, and @media print page-per-slide for PDF export. Refuses 1-slide decks (it's a poster) or inputs without clear boundaries. Single-file output; Google Fonts CSS is the only external (Prism is opt-in via --syntax).
argument-hint: "<path to markdown deck> [--boundary auto|hr|h1] [--title \"My Talk\"] [--syntax] [--strict-notes]"/cs-md-slides — Markdown deck → single-file HTML presentation
Convert the markdown deck at $ARGUMENTS into a single-file interactive HTML presentation.
Pre-flight gates (refuse, never override)
- Input < 100 lines → refuse (markdown wins below Shihipar's threshold).
- Design-system not onboarded → refuse, surface
/cs-design-system. - No clear slide boundaries (auto mode: need ≥ 3 HR or ≥ 5 H1) → refuse, route to md-document.
- 1-slide deck → refuse (it's a poster, not a deck).
--strict-noteswith < 50% notes coverage → refuse.- Output directory unwritable → refuse, ask user for
--out.
Pipeline
# 1. Resolve output path (doctype=slides → deck- prefix)
python3 ${CLAUDE_PLUGIN_ROOT}/skills/markdown-html-orchestrator/scripts/output_path_resolver.py \
--input "<path>.md" --doctype slides
# 2. Split slides on --- HR or H1 (auto-detect)
python3 ${CLAUDE_PLUGIN_ROOT}/skills/md-slides/scripts/slide_splitter.py \
--input "<path>.md" --boundary auto --output /tmp/slides.json
# 3. Extract <!-- notes: ... --> blocks per slide
python3 ${CLAUDE_PLUGIN_ROOT}/skills/md-slides/scripts/presenter_notes_parser.py \
--slides /tmp/slides.json --output /tmp/deck.json
# 4. Render single-file HTML deck
python3 ${CLAUDE_PLUGIN_ROOT}/skills/md-slides/scripts/deck_html_renderer.py \
--slides /tmp/deck.json --title "<deck title>" \
--output <resolved-out>.htmlWhat ships in the HTML
- All slides as
<section class="slide">with one visible at a time (CSS-controlled, no JS-required content) - Keyboard navigation:
→/Space/PgDn→ next slide←/PgUp→ previous slideHome/End→ first / last slideP→ toggle presenter modeEsc→ exit presenter mode- Presenter mode — split view: current slide (60% width) + panel (40% width with clock + speaker notes + next-slide preview)
- URL-hash deep linking —
#3jumps to slide 3; back/forward walks slides; sharedeck.html#5to land on slide 5 - Progress bar at top (3px); slide counter in bottom-right
- Print-to-PDF via browser's native print dialog:
@media printmakes each slide one page (Cmd+P/Ctrl+P) prefers-reduced-motionhonored- 12 brand CSS tokens from design-system; design_style affects layout density
Hard rules
- Output is one
.htmlfile. No multi-file output. - External CDN:
fonts.googleapis.comalways;cdn.jsdelivr.net(Prism) only when--syntaxis passed. - No JS framework runtime. Vanilla JS + keyboard event handlers.
- Re-running on the same input writes
deck-{slug}-2.htmletc.
Useful flags
--boundary {auto,hr,h1}— slide boundary mode (default: auto)--title "My Talk"— sets the<title>and tab name--syntax— enable Prism.js CDN for code blocks (off by default; decks rarely need it)--strict-notes— refuse if < 50% of slides have presenter notes (use when presenter mode is essential)
Output
Returns: slide count, notes coverage %, output path, design style applied, top features used, one forcing question.
References
See markdown-html/skills/md-slides/references/:
presentation_ux.md— Atkinson + Reynolds + Tufte + NN/g + Weinschenk + Marp/reveal.js/Big convergencekeyboard_nav_patterns.md— reveal.js / Big / Spectacle keymap + WCAG 2.1.1 + 2.4.3 + MDN KeyboardEventsingle_file_deck_conventions.md— Big + Marp + Pandoc + WCAG 2.3.3 + @media print
Source: https://github.com/alirezarezvani/claude-skills/blob/main/markdown-html/commands/cs-md-slides.md
Author: alirezarezvani, Alireza Rezvani skills and agents. License: MIT.
Shown here with formatting for the web. Keep the author and license notice when you reuse it.
Related entries
There are more like this in the members library
The Codex library holds 7,009 entries. Members can search all of them by meaning and read every one in full.