render-html
它能做什么
这个技能将研究文件(例如想法报告和审阅日志)转换为精美的单文件网页。适合需要舒适阅读这些报告的人。
适用场景
- ✓当你希望以网页形式阅读想法报告或审阅日志的时候。
- ✓当 Markdown 研究文件不便浏览,你希望制作精美页面的时候。
- ✓当你希望将研究摘要以单个 HTML 文件分享的时候。
技能链接
https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/blob/main/skills/render-html/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我希望将我的想法报告转换为一个可以阅读、并且可以分享的单个 HTML 页面。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体读取 Markdown 或 JSON 文件,并以清晰的设计将其排版为一个 HTML 页面。原始的 Markdown 仍是可信的来源。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
/render-html: Markdown → single-file HTML for human reading
Before each reviewer slot, follow Selectable Reviewers: resolve invocation →
.aris/reviewer.json→ Claude Code default (Codex MCP) withreviewer_route.pythrough the canonical helper resolver, preserving this slot's tier, fresh contexts, source/image inputs and deterministic gates. Codex examples/pins below apply only tobackend=codex; other routes use their own first-call/reply contract. Save the route and actual returned identity; unavailable selections areREVIEW_UNAVAILABLE. Classify acceptance from actual families/completion/scope. Forward invocation reviewer/model/effort overrides to reviewer-bearing children. Generation workers are unchanged.
Markdown is for writers. HTML is for readers. ARIS workflow nodes write Markdown (canonical, audit-trail-friendly, machine-parseable).
/render-htmlturns selected artifacts into a polished single-file HTML view for the human who actually has to read them. The Markdown stays the source of truth.
When to use this skill
Use /render-html for ARIS artifacts that have a real human reader:
| Artifact | Why HTML helps | Template |
|---|---|---|
idea-stage/IDEA_REPORT.md |
Ranked ideas + pilot signal + scores feel like a decision dashboard, not a flat list | academic |
review-stage/AUTO_REVIEW.md (+ REVIEW_STATE.json) |
Round-by-round score progression + weakness status; pass --state to embed the JSON |
academic |
paper/KILL_ARGUMENT.md (+ KILL_ARGUMENT.json) |
Per-point attack/defense with <details> Q&A cards + red/yellow/green callouts |
academic |
research-wiki/SUMMARY.md (or research-wiki/index.md) |
Cross-entity cockpit: papers / ideas / experiments / claims at a glance | dashboard |
PAPER_PLAN.md (optional) |
Claims-evidence matrix renders better as a polished table than raw MD | academic |
RESUBMIT_REPORT.{md,json} (optional) |
7-state failure-mode ledger | academic or dashboard |
Do NOT use for:
- LaTeX paper output — the final reader-facing artifact is PDF, not HTML.
SKILL.mdfiles — those are internal LLM-facing protocol..aris/traces/*review traces — forensic debug, not human display.- Every Markdown file in your project — only artifacts that benefit from sticky TOC, callouts, math, or score progressions.
Core invariants
- MD / JSON is canonical, HTML is generated view. Edit the source, then re-render. Do not hand-edit the HTML.
- Cross-model review at the artifact boundary (ARIS invariant). Academic-template HTML — used for the artifacts humans actually read (IDEA_REPORT, AUTO_REVIEW, KILL_ARGUMENT, PAPER_PLAN) — is reviewed by the selected reviewer in a fresh context; classify its family from actual identities before being claimed as a finished view. Dashboard-template HTML (cockpit / debug views) skips review by default but accepts
--reviewto force it. See § HTML Review Gate below. - Drift detection. Every rendered HTML embeds the source path, SHA256, and generation timestamp in
<meta>tags AND in the visible page header. If the HTML and source diverge, the meta tells you which version of the source produced it. - Single-file output. No build system, no separate CSS, no
node_modules. Just one.html. - CDN-friendly default,
--offlinefallback. MathJax 3 and highlight.js load fromcdn.jsdelivr.netby default. Pass--offlineto skip both — math will appear as raw$x$, code blocks won't get syntax highlighting, but everything stays readable. - Pure stdlib helper.
render_html.pyuses onlyre,html,hashlib,json,datetime,pathlib,argparse,sys. No pip install required. - Defense-in-depth XSS sanitization. The helper strips
<script>/<style>/<iframe>/<object>/<embed>/<form>/<input>/<button>/<link>/<meta>/<base>tags, allon*event-handler attributes (onclick,onload, …), and rewritesjavascript:/vbscript:/data:href/src/action schemes to#blocked-unsafe-url:. ARIS workflow artifacts should not contain these in the first place, but the sanitizer is the safety net in case an LLM hallucinates one. Markdown text content is HTML-escaped separately and never reaches the sanitizer.
Tool Location
Arch C self-contained: the canonical implementation lives at skills/render-html/scripts/render_html.py (this SKILL's own `scrip
常见问题
HTML 会取代 Markdown 文件吗?
不会。Markdown 仍然是可信来源,HTML 只是阅读视图。
哪些文件效果较好?
想法报告、自动审阅日志和研究 wiki 状态等报告都是很好的例子。
输出会是多个文件吗?
不会。输出是单个 HTML 文件。
详情
作者的原始描述
Render an ARIS Markdown / JSON artifact (IDEA_REPORT, AUTO_REVIEW, KILL_ARGUMENT, PAPER_PLAN, research-wiki state, etc.) into a single-file HTML view designed for human reading. Use when the user says \"渲染 HTML\", \"出一份 HTML 报告\", \"render html\", \"make this readable\", \"export to html\", or wants a polished web-rendered view of a Markdown artifact.
热度
- GitHub 星标
- 18k
- 排名
- #10579
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
ablation-planner
18k帮你的智能体为论文规划消融实验,在主要结果看起来不错之后,选出审稿人很可能会要求的测试。
alphaxiv
18k让你的智能体借助 AlphaXiv 摘要快速阅读一篇研究论文,并以完整文本或 LaTeX 源文件作为备用,只需提供 arXiv 链接或编号。
analyze-results
18k帮你的智能体分析机器学习实验结果,将各次运行与基线进行比较,并把数字整理成清晰的发现和后续步骤。
arxiv
18k让你的智能体在 arXiv 上搜索学术论文、阅读论文详情,并把 PDF 保存到你的文库中,用于某个研究主题。