md-to-html-slides

md-to-html-slides is a skill for Claude Code from Jxin-Cai/jxin-skills. It costs 121 tokens per session (1,469 once invoked), scanned A, original, Apache-2.0.

A guide for turning a Markdown document into a single, scrollable HTML presentation page. Markdown is plain text formatted with headings, lists, tables, code, and links.

In plain words
What is it for?
Use it to create a scrolling presentation from a Markdown file, including reorganized sections, highlighted code, images, navigation, dark mode, and scroll animations.
Why use it?
It reshapes a document for presenting on a screen instead of leaving it as a long linear file. The result can be opened or shared as one self-contained HTML file.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: names the AskUserQuestion tool.

Part of the jxin-writing plugin — 7 skills, 6 commands shipped together

Good fit Use it to create a scrolling presentation from a Markdown file, including reorganized sections, highlighted code, images, navigation, dark mode, and scroll animations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jxin-cai/jxin-skills/md-to-html-slides
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Jxin-Cai/jxin-skills --skill md-to-html-slides
Clone the repo
git clone --depth 1 https://github.com/Jxin-Cai/jxin-skills

Made for: Claude Code.

Or install jxin-writing, the plugin that ships this one along with the rest of its 7 skills, 6 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for md-to-html-slides

README.md
[![agentmods](https://agentmods.dev/badge/skills/jxin-cai/jxin-skills/md-to-html-slides/github.svg)](https://agentmods.dev/skills/jxin-cai/jxin-skills/md-to-html-slides)
Your own site
<a href="https://agentmods.dev/skills/jxin-cai/jxin-skills/md-to-html-slides"><img src="https://agentmods.dev/badge/skills/jxin-cai/jxin-skills/md-to-html-slides/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for md-to-html-slides

Your own site · 80×15
<a href="https://agentmods.dev/skills/jxin-cai/jxin-skills/md-to-html-slides"><img src="https://agentmods.dev/badge/skills/jxin-cai/jxin-skills/md-to-html-slides.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 121 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,469 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00121 $0.01469
Opus 5.5 $0.00048 $0.00588
Sonnet 5.5 $0.00024 $0.00294
Haiku 4.5 $0.00012 $0.00147

Measured 2mo ago against content hash 8d2e295fbf49, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

md-to-html-slides scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/build_html.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

writing/skills/md-to-html-slides/SKILL.md · 135 lines

How it starts

The opening of the file, as written. The whole thing — 135 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Markdown → HTML 滚动演示

将 Markdown 文档转化为一份精美的长滚动 HTML 演示页面——不是简单的格式转换,而是把线性文档重组为有节奏感的视觉叙事。

输出是一个自包含单文件 HTML,内置样式、GSAP 滚动动画、代码语法高亮、Dark Mode 切换、滚动进度条和侧边导航。所有图片转为 base64 data URI,可以直接在浏览器打开或复制给别人。

执行流程

Step 1: 读取输入

获取 Markdown 文件路径(必需)。如果用户没有指定文件,用 AskUserQuestion 询问。

读取文件内容,确认可以正常解析。

Step 2: 分析文档结构

扫描 Markdown 内容,识别:

  • 标题层级(H1 / H2 / H3)
  • 段落文本
  • 列表(有序 / 无序)
  • 表格
  • 代码块(含语言标记)
  • 图片引用(![alt](src))
  • 引用块(>)

Step 3: 叙事重组

这是核心步骤。不是逐段翻译 Markdown 为 HTML,而是重新编排叙事结构使其适合演示场景。

重组规则:

  1. 提取核心主题:从 H1 和首段提炼演示标题 + 一句话主旨
  2. 归纳核心论点:全文通读后提炼 2-4 条最重要的判断,作为 summary
  3. 章节拆分:
    • 每个 H2 → 一个独立 section
    • H2 下有 3+ 个 H3 → cards-grid(并列概念适合卡片展示)
    • H2 下是线性论述 → key-points(提炼为 ≤3 条要点)
  4. 内容精简:
    • 长段落(>100 字)→ 提炼为要点,每条 ≤ 30 字
    • 去掉过渡句、铺垫、重复论述
    • 保留关键数据、案例、结论
  5. 特殊内容映射:
    • Markdown 表格 → comparison
    • 有序列表(步骤性质)→ flow
    • 代码块 → code
    • 图片 → diagram
    • 引用块 → quote
    • 并列数字/KPI/指标 → stats
    • 按时间排列的事件序列 → timeline
  6. 结尾处理:最后一个 H2 如果是总结/展望性质 → cta

叙事节奏:

  • hero → summary → 正文 sections(交替白色/浅灰背景)→ cta
  • 避免连续 3 个以上相同 type 的 section
  • 内容密集区之间插入 quote 或 diagram 制造呼吸感

Step 4: 选择呈现模式

为每个 section 选择最合适的 type。参考 references/section-patterns.md 获取完整的 type 列表和 JSON schema。

优先级:

  1. 内容形态决定 type(表格→comparison,代码→code,图片→diagram,数字→stats,时间序列→timeline)
  2. 信息关系决定 type(并列→cards-grid,递进→flow,论点→key-points)
  3. 同类 type 避免连续出现

Step 5: 输出 sections.json

在用户工作目录生成 sections.json 文件,结构如下:

{
  "title": "演示标题",
  "sections": [
    {"type": "hero", "title": "...", "subtitle": "..."},
    {"type": "summary", "items": ["...", "..."]},
    {"type": "cards-grid", "label": "...", "title": "...", "columns": 3, "items": [...]},
    ...
  ]
}

每个 section 的具体 schema 见 references/section-patterns.md。

Step 6: 生成 HTML

运行构建脚本:

python <skill_path>/scripts/build_html.py \
  --content sections.json \
  --output presentation.html \
  --images-dir <markdown文件同级目录或用户指定>

脚本会:

  • 读取 sections.json
  • 按 type 渲染为 HTML 片段
  • 注入模板(含完整 CSS + GSAP 动画)
  • 将本地图片转为 base64 data URI
  • 输出自包含 HTML 文件

Read the full file on GitHub · 135 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 135 lines · 121 tokens per session scan A 8d2e295fbf49

Subscribe to this mod's changes

md-to-html-slides is a skill published in the GitHub repository Jxin-Cai/jxin-skills (5 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 121 tokens to every session and 1,469 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens