borghei/Claude-Skills / markdown-html/md-slides
md-slides
VerifiedConvert markdown into a self-contained HTML slide deck with layouts, speaker notes, keyboard navigation, and a content-density linter. Use when building a deck from markdown, cutting an overloaded deck, or timing a talk.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 13.6 KB |
| assets/deck_nav.js | script | 3.2 KB |
| assets/deck_outline_template.md | markdown | 2.3 KB |
| assets/deck_theme.css | other | 8.0 KB |
| assets/sample_deck.md | markdown | 1.9 KB |
| references/deck-accessibility-and-delivery.md | markdown | 8.1 KB |
| references/slide-density-and-layout.md | markdown | 8.0 KB |
| scripts/md_to_slides.py | script | 6.0 KB |
| scripts/notes_runsheet.py | script | 8.6 KB |
| scripts/slide_density_linter.py | script | 11.5 KB |
| scripts/slide_render.py | script | 8.6 KB |
assets/deck_nav.js
View on GitHub// Deck navigation — keyboard, hash routing, presenter notes, progress.
// Inlined into the generated deck; no external dependencies.
(function () {
"use strict";
var slides = Array.prototype.slice.call(document.querySelectorAll(".slide"));
var progress = document.getElementById("progress");
var counter = document.getElementById("counter");
var notesPane = document.getElementById("notes-pane");
var current = 0;
var notesVisible = false;
function clamp(n) {
return Math.max(0, Math.min(slides.length - 1, n));
}
function render() {
slides.forEach(function (slide, i) {
var active = i === current;
slide.classList.toggle("active", active);
// Hide inactive slides from assistive tech, not just from view.
slide.setAttribute("aria-hidden", active ? "false" : "true");
});
if (progress) {
progress.style.width = ((current + 1) / slides.length) * 100 + "%";
}
if (counter) {
counter.textContent = current + 1 + " / " + slides.length;
}
if (notesPane) {
var notes = slides[current].getAttribute("data-notes") || "";
notesPane.textContent = notes || "(no speaker notes)";
}
if (window.location.hash !== "#" + (current + 1)) {
history.replaceState(null, "", "#" + (current + 1));
}
// Move focus to the slide so screen readers announce the new content.
slides[current].focus({ preventScroll: true });
}
function go(n) {
current = clamp(n);
render();
}
function fromHash() {
var n = parseInt((window.location.hash || "").replace("#", ""), 10);
return isNaN(n) ? 0 : n - 1;
}
function toggleNotes() {
notesVisible = !notesVisible;
document.body.classList.toggle("notes-open", notesVisible);
render();
}
function toggleTheme() {
var root = document.documentElement;
var explicit = root.getAttribute("data-theme");
var dark = explicit
? explicit === "dark"
: window.matchMedia("(prefers-color-scheme: dark)").matches;
root.setAttribute("data-theme", dark ? "light" : "dark");
}
document.addEventListener("keydown", function (event) {
if (event.metaKey || event.ctrlKey || event.altKey) return;
switch (event.key) {
case "ArrowRight":
case "ArrowDown":
case "PageDown":
case " ":
go(current + 1);
event.preventDefault();
break;
case "ArrowLeft":
case "ArrowUp":
case "PageUp":
go(current - 1);
event.preventDefault();
break;
case "Home":
go(0);
event.preventDefault();
break;
case "End":
go(slides.length - 1);
event.preventDefault();
break;
case "n":
case "N":
toggleNotes();
break;
case "t":
case "T":
toggleTheme();
break;
case "f":
case "F":
if (document.fullscreenElement) {
document.exitFullscreen();
} else if (document.documentElement.requestFullscreen) {
document.documentElement.requestFullscreen();
}
break;
default:
break;
}
});
window.addEventListener("hashchange", function () {
go(fromHash());
});
go(fromHash());
})();
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 |