Convert a markdown PR writeup or code review (with ```diff blocks and > [!BLOCKER]/[!MAJOR]/[!MINOR]/[!NIT] severity callouts) into a single-file 2-column HTML
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-claude-skills-87bc5f8ca40b ,按照其中的说明把「cs-md-review」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Convert the review markdown at $ARGUMENTS into a single-file 2-column HTML review.
/cs:design-system.--reviewer missing → refuse (a code review must name a human reviewer).md-document instead.--out.# 1. Resolve output path (uses doctype=review → review- prefix)
python3 markdown-html/skills/markdown-html-orchestrator/scripts/output_path_resolver.py \
--input "<path>.md" --doctype review
# 2. Parse diff hunks
python3 markdown-html/skills/md-review/scripts/diff_parser.py \
--input "<path>.md" --output /tmp/hunks.json
# 3. Extract severity-tagged annotations, attached to nearest hunk
python3 markdown-html/skills/md-review/scripts/annotation_extractor.py \
--input "<path>.md" --diff-blocks /tmp/hunks.json --output /tmp/annotations.json
# 4. Render — --reviewer is mandatory
python3 markdown-html/skills/md-review/scripts/review_html_renderer.py \
--diff-blocks /tmp/hunks.json --annotations /tmp/annotations.json \
--reviewer "<reviewer-name>" --title "<PR title>" \
--output <resolved-out>.html
--md-warn, MINOR = --md-link, NIT = --md-text-muted. Every badge has icon (■ / ▲ / ● / ◦) + aria-label per WCAG 1.4.1.html file. No external CSS/JS. Only external is Google Fonts CSS (no Prism — diff colors conflict with syntax highlighting).review-{slug}-2.html etc.--severity-convention "critical,important,suggestion,nit"
Swaps tier names; position 0 is most severe. Default: BLOCKER,MAJOR,MINOR,NIT (Google Code Review Developer Guide).
Returns: hunk count, annotation count, severity breakdown, output path, reviewer name, one forcing question.
See markdown-html/skills/md-review/references/:
diff_rendering_canon.md — POSIX diff format + GitHub/GitLab conventions + difftastic + SWE at Googleseverity_coding.md — WCAG 1.4.1 + Google review taxonomy + Don Norman signifierpr_annotation_ux.md — Convergent 2-col UX from GitHub/GitLab/Reviewable/CodeStream