Convert long-form markdown (specs, RFCs, reports, plans, explainers) into a single-file interactive HTML document. Runs the md-document pipeline (parser → rende
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-claude-skills-7510749dbf3d ,按照其中的说明把「cs-md-document」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Convert the markdown at $ARGUMENTS into a single-file interactive HTML document.
wc -l <path> to confirm./cs:design-system.--out.# 1. Classify (if not already routed by orchestrator)
python3 markdown-html/skills/markdown-html-orchestrator/scripts/doctype_classifier.py \
--input "<path>.md" --output json \
| python3 markdown-html/skills/markdown-html-orchestrator/scripts/route_explainer.py
# 2. Resolve the output path
python3 markdown-html/skills/markdown-html-orchestrator/scripts/output_path_resolver.py \
--input "<path>.md" --doctype document
# 3. Parse → render → inject
python3 markdown-html/skills/md-document/scripts/markdown_parser.py \
--input "<path>.md" --output /tmp/sections.json
python3 markdown-html/skills/md-document/scripts/html_renderer.py \
--sections /tmp/sections.json --output <resolved-out>.html
python3 markdown-html/skills/md-document/scripts/interactivity_injector.py \
--file <resolved-out>.html \
--features search,copycode,smoothscroll,scrollspy
toc.behavior in design-system)aria-current="location" on the TOC entry for the section in view<pre> (vanilla navigator.clipboard with execCommand fallback)derived_palette@media (prefers-reduced-motion: reduce) honored@page overrides needed for documents).html file. No multi-file output, no extracted CSS/JS, no asset folders.fonts.googleapis.com + cdn.jsdelivr.net (Prism). Nothing else.doc-{slug}-2.html etc. (collision suffix).Returns: input lines, output path, design style applied, top 3 features used, one forcing question.
See markdown-html/skills/md-document/references/:
information_density_patterns.md — Shihipar + Tufte + Wattenbergertoc_and_nav_ux.md — NN/g + WCAG + ARIAsingle_file_html_discipline.md — Single-file artifact rationale