Matt-Pocock-style forcing-question grill for markdown-html conversions. Walks 5 cited-canon questions (purpose, line-count threshold, design-system onboarding,
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-claude-skills-15f6f01791fc ,按照其中的说明把「cs-grill-markdown-html」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Walk the user through 5 forcing questions before routing to the converter. One question per turn, with a recommended answer and a canon citation. The user must answer Q1 before Q2 is asked. Never bundle.
$ARGUMENTS
What decision does this HTML drive — is the reader skimming, deciding, or presenting?
Recommended: name it first; density follows from purpose.
Canon: Shihipar (Claude Code HTML output essay) — "match output format to consumption context"; Tufte, Visual Display of Quantitative Information, ch. 1.
If the user shrugs, ask once: "Skimming → minimal layout. Deciding → sticky TOC + search. Presenting → slide deck."
Is the input markdown ≥ 100 lines?
Recommended: yes — below that, keep it as markdown. Run
wc -l <file>.mdto confirm.Canon: Shihipar — markdown still wins under 100 lines.
If under 100 lines, refuse the conversion. Do NOT proceed.
Has the design-system been onboarded?
Recommended: yes, globally. Run
python3 markdown-html/skills/design-system/scripts/onboard.py(or--defaultsfor zero-touch) if not.Canon: research-ops onboarding pattern (
research-ops/CLAUDE.md§8); WCAG 2.2 §1.4.3.
Check via:
python3 markdown-html/skills/design-system/scripts/config_loader.py --status
If setup_completed: false, surface onboarding. Do NOT proceed without it.
Where does the output save, and will it overwrite anything?
Recommended: the configured
default_output_dirwith--on-collision suffix(the default, which generates-2,-3, … instead of overwriting).Canon: Matt Pocock
handoffskill — never silently overwrite a working artifact.
Resolve via:
python3 markdown-html/skills/markdown-html-orchestrator/scripts/output_path_resolver.py \
--input "$ARGUMENTS" --doctype <verdict>
Document type confidence — silent-route, or one clarifying question?
Recommended: silent-route only when
silent_route_allowed: truein the classifier output. Otherwise, ask one clarifying question and recommend the winner.Canon: research-ops two-signal threshold (
research-ops/skills/research-ops-skills/SKILL.md§"Routing logic").
Classify via:
python3 markdown-html/skills/markdown-html-orchestrator/scripts/doctype_classifier.py \
--input "$ARGUMENTS" --output human
After Q5, hand off to /cs:markdown-html <path> to actually run the conversion with the confirmed answers in hand.