Langsung ke konten
Skillpedia
Menulis29k Β· #9629

md-slides

Fungsinya

Skill ini mengubah file markdown dengan pemisah slide menjadi presentasi HTML yang berjalan di browser mana pun. Skill ini untuk orang yang menyusun slide dalam markdown dan ingin mempresentasikan atau membagikannya.

Kapan dipakai

  • βœ“Saat file markdown Anda memiliki pemisah slide yang jelas dan Anda ingin menjadikannya presentasi.
  • βœ“Saat Anda ingin catatan pembicara ditampilkan dalam mode terpisah.
  • βœ“Saat Anda perlu menyimpan deck sebagai PDF dari browser.

Link skill

https://github.com/alirezarezvani/claude-skills/blob/main/markdown-html/skills/md-slides/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/alirezarezvani/claude-skills/blob/main/markdown-html/skills/md-slides/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBuat deck slide HTML dari kerangka markdown ini, dengan catatan pembicara untuk setiap slide.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill memecah markdown menjadi slide di pembatas atau heading tingkat atas, mengekstrak catatan pembicara, dan merender satu file HTML dengan kontrol keyboard.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

md-slides β€” Markdown deck β†’ single-file HTML presentation

The slide-deck converter. Reads a markdown deck (HR or H1 boundaries, optional presenter notes), emits a single-file HTML presentation that runs in any browser with keyboard navigation, presenter mode, and print-to-PDF.

Three stdlib tools pipeline together:

slide_splitter.py  β†’  presenter_notes_parser.py  β†’  deck_html_renderer.py
   (md β†’ ordered      (extract <!-- notes:         (slides + design-system
    slides with       --> blocks, attach            tokens β†’ single-file
    titles)           per slide)                    HTML with keyboard nav)

When to invoke

Symptom Action
markdown-html-orchestrator routes input as SLIDES Invoke this skill
User runs /cs-md-slides <path>.md directly Invoke this skill
Input has 3+ --- HR lines OR 5+ H1 headings with short bodies Invoke this skill
Input is a long-form spec Route to md-document instead
Input is a code review Route to md-review instead
Input has no clear slide boundaries Refuse, route to md-document
Input would produce 1 slide Refuse (it's a poster)

Pipeline

# 1. Split slides on --- or H1 (auto-detect by default)
python3 markdown-html/skills/md-slides/scripts/slide_splitter.py \
    --input <path>.md --output /tmp/slides.json

# 2. Extract <!-- notes: ... --> blocks from each slide
python3 markdown-html/skills/md-slides/scripts/presenter_notes_parser.py \
    --slides /tmp/slides.json --output /tmp/deck.json

# 3. Render single-file HTML deck
python3 markdown-html/skills/md-slides/scripts/deck_html_renderer.py \
    --slides /tmp/deck.json --title "My Talk" --output deck.html

What ships in the HTML

  • All slides as <section class="slide"> β€” one visible at a time, controlled by JS
  • Keyboard nav β€” β†’ / Space / PgDn advance; ← / PgUp previous; Home/End jump; P presenter mode; Esc exits presenter
  • URL-hash deep linking β€” #3 jumps to slide 3; browser back/forward walks slides; share deck.html#5 to send someone directly there
  • Progress bar β€” 3px at top showing position through the deck
  • Slide counter β€” bottom-right ("3 / 12")
  • Presenter mode (P key) β€” splits the window: current slide on left (60% width), panel on right with clock + speaker notes + next-slide preview
  • Print stylesheet β€” Cmd+P produces a PDF with one slide per page
  • @media (prefers-reduced-motion: reduce) honored
  • 12 brand CSS custom properties from design-system; design_style affects layout density
  • Reuses md-document's markdown parser β€” slide bodies render with consistent paragraph/list/code/table/callout handling

Hard rules

  1. Refuses input with no clear slide boundaries. Auto mode needs β‰₯ 3 HR lines or β‰₯ 5 H1 headings. Otherwise exit 6 β€” route to md-document.
  2. Refuses 1-slide decks. That's a poster, not a deck. Exit 5.
  3. Refuses input < 100 lines. Same Shihipar threshold as all converters.
  4. Refuses without onboarding. Same gate as every converter.
  5. --strict-notes refuses < 50% notes coverage. A deck where most slides have no notes isn't set up for presenter mode. Exit 7.
  6. Soft-warns slides > 40 source lines. Signal-to-noise; renders anyway but surfaces the count.
  7. Single-file output. All CSS + JS inline. Only external is Google Fonts CSS. Prism.js is opt-in via --syntax.
  8. No JS framework runtime. Vanilla JS + keyboard event handlers, no React/Vue/Svelte.

Forcing-question library (Matt Pocock grill discipline)

  1. Is this actually a deck, or a long document? Recommended: if you can't draw clear slide boundaries, it's not a deck. Canon: Tufte Cognitive Style of PowerPoint.
  2. HR (---) or H1 boundaries? Recommended: HR for typical decks; H1 for outline-driven decks. Canon: Marp / reveal.js / pandoc convergence.
  3. Will it be presented live or distributed for self-paced reading? Recommended: live β†’ need presenter notes; self-paced β†’ notes optional. Canon: Weinschenk 100 Things Every Presenter Needs to Know.
  4. Is there any slide over 40 source lines? Recommended: split it. Canon: NN/g β€” audience attention drops past ~6 bullets / 200 words.
  5. Is --syntax needed? Recommended: only for decks with substantial code blocks. Default off. Canon: single-file shareability discipline.

Distinct from

  • md-document β€” that's one continuous document. This is N discrete slides.
  • **`md-rev
Pertanyaan umum

Bagaimana skill tahu di mana slide dimulai?

Skill memakai pembatas garis horizontal atau heading tingkat atas sebagai batas slide.

Bisakah saya mencetak slide?

Bisa. Presentasi dapat dicetak ke PDF dari browser.

Bagaimana jika file tidak punya pemisah slide yang jelas?

Skill menolak dan menyarankan konverter dokumen sebagai gantinya.

Detail

Deskripsi asli dari pembuat

Use when converting a markdown deck into a single-file HTML presentation with keyboard navigation, presenter notes and print-to-PDF. Splits slides with slide_splitter.py and renders with deck_html_renderer.py.

repo: alirezarezvani/claude-skills

Popularitas

Bintang GitHub
29k
Peringkat
#9629
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa