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.
npx skills add Jxin-Cai/jxin-skills --skill md-to-html-slidesgit clone --depth 1 https://github.com/Jxin-Cai/jxin-skillsWrote 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.
[](https://agentmods.dev/skills/jxin-cai/jxin-skills/md-to-html-slides)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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)
- 段落文本
- 列表(有序 / 无序)
- 表格
- 代码块(含语言标记)
- 图片引用(
) - 引用块(
>)
Step 3: 叙事重组
这是核心步骤。不是逐段翻译 Markdown 为 HTML,而是重新编排叙事结构使其适合演示场景。
重组规则:
- 提取核心主题:从 H1 和首段提炼演示标题 + 一句话主旨
- 归纳核心论点:全文通读后提炼 2-4 条最重要的判断,作为 summary
- 章节拆分:
- 每个 H2 → 一个独立 section
- H2 下有 3+ 个 H3 →
cards-grid(并列概念适合卡片展示) - H2 下是线性论述 →
key-points(提炼为 ≤3 条要点)
- 内容精简:
- 长段落(>100 字)→ 提炼为要点,每条 ≤ 30 字
- 去掉过渡句、铺垫、重复论述
- 保留关键数据、案例、结论
- 特殊内容映射:
- Markdown 表格 →
comparison - 有序列表(步骤性质)→
flow - 代码块 →
code - 图片 →
diagram - 引用块 →
quote - 并列数字/KPI/指标 →
stats - 按时间排列的事件序列 →
timeline
- Markdown 表格 →
- 结尾处理:最后一个 H2 如果是总结/展望性质 →
cta
叙事节奏:
- hero → summary → 正文 sections(交替白色/浅灰背景)→ cta
- 避免连续 3 个以上相同 type 的 section
- 内容密集区之间插入
quote或diagram制造呼吸感
Step 4: 选择呈现模式
为每个 section 选择最合适的 type。参考 references/section-patterns.md 获取完整的 type 列表和 JSON schema。
优先级:
- 内容形态决定 type(表格→comparison,代码→code,图片→diagram,数字→stats,时间序列→timeline)
- 信息关系决定 type(并列→cards-grid,递进→flow,论点→key-points)
- 同类 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 文件
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.
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.
- 2mo ago First seen · 135 lines · 121 tokens per session scan A 8d2e295fbf49
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.
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…
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
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…
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.
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…
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…