Skip to content
Education
Skill

/paper2html

Use when turning an academic paper PDF/arXiv/OpenReview page/local LaTeX source into a single-file Chinese HTML deep-reading page, especially when the user wants a Cheat-Sheet style explanation, KaTeX formulas, figure/table evidence, validation, or a publishable research page.

From plugin
ai-collab-playbook
47522 skills

Claude Code

$ npx -y skills add cnfjlhj/ai-collab-playbook --skill paper2html --agent claude-code

SKILL.md

paper2html.SKILL.md
name: paper2html
description: Use when turning an academic paper PDF/arXiv/OpenReview page/local LaTeX source into a single-file Chinese HTML deep-reading page, especially when the user wants a Cheat-Sheet style explanation, KaTeX formulas, figure/table evidence, validation, a publishable research page, or a web-agent publishing path.

Paper2HTML

Overview

Create one self-contained Chinese `index.html` that lets the reader understand the paper without reopening the PDF. Open with a compact, source-faithful story, then deliver a clear Cheat-Sheet page with evidence boundaries, KaTeX formulas, complete figure coverage, reviewer-level analysis, and no decorative complexity.

Every completed page ends its substantive analysis with all seven MIT **Other Discussion Roles**. Each role shows the original English prompt verbatim and a source-grounded Chinese response.

Use scripts first. Keep this skill as workflow and quality gates, not a long prompt.

Scripted Path (local coding agent)

cd /path/to/paper2html

# 1) Create workspace, notes, and starter index.html
python scripts/bootstrap_paper2html.py \
  --title "Paper Title" \
  --slug paper-slug \
  --out /path/to/output/paper-slug-html-YYYYMMDD \
  --arxiv 2504.07952 \
  --github https://github.com/org/repo \
  --publish-to topic/series/paper-slug

# 2) Inventory TeX/source when available
python scripts/tex_inventory.py \
  /path/to/output/source/unpacked \
  --out /path/to/output/notes/tex-inventory.md \
  --json /path/to/output/notes/tex-inventory.json

# 3) Optimize figures and create data URIs for single-file HTML
python scripts/optimize_paper_images.py \
  paper_figures/*.pdf paper_figures/*.png \
  --out-dir /path/to/output/assets/optimized \
  --width 1600 \
  --data-uri-json /path/to/output/assets/data-uris.json

# 4) Optional: ask Gemini for a visual draft on a copy
scripts/gemini_frontend_pass.sh \
  /path/to/output/index.html \
  --reference /path/to/good-reference.html \
  --timeout 240

# Inspect the Gemini request without making a model call
scripts/gemini_frontend_pass.sh /path/to/output/index.html --dry-run

# 5) Validate the completed page
scripts/validate_paper_html.sh /path/to/output/index.html --public

# 6) Optional publication through a compatible research-page importer
PAPER2HTML_BLOG_ROOT=/path/to/blog \
PAPER2HTML_PUBLIC_BASE_URL=https://example.com/research \
scripts/publish_paper2html.sh \
  /path/to/output/index.html \
  --to topic/series/paper-slug \
  --title "Paper Title" \
  --description "One sentence summary" \
  --tags "paper-reading,agent" \
  --ship

For a web-hosted model (ChatGPT agent mode, etc.) that has browsing and a code sandbox but no local skill checkout, use `prompts/web-deploy.md` instead: it packages the fetching of this skill, page generation, validation, and direct GitHub publishing into one prompt.

Workflow

1. **Freeze the source boundary**

  • Treat user input as a locator for one paper, then look for public adjacent artifacts: arXiv source/PDF, OpenReview, proceedings, project page, GitHub, appendix, dataset cards, and model cards.
  • Run `bootstrap_paper2html.py` when starting from a known title, arXiv id, or GitHub repository. Otherwise manually create the same `notes/source-boundary.md`.
  • Separate reading sources from public evidence sources. Public pages must not expose local paths, private filenames, review metadata, private prompts, or run logs.
  • If public publishing is requested and no public source exists, generate private HTML only and do not publish.

2. **Extract the material**

  • Prefer TeX/source packages over PDF-only reading. Run `tex_inventory.py` when source exists; verify its output, since TeX layouts can confuse automated counting. When in doubt, scan `includegraphics` and figure environments manually.
  • Build a material pack covering metadata, outline, claims, notation, equations, algorithms, experiments, appendix details, and public links.
  • Use PDF rendering for visual verification and figure/table placement. `pdftotext` is only an auxiliary index.
  • Record every discovered paper figure in `notes/figure-table-map.md`. For each item, capture its source/page, original caption, what the visual itself shows, and either the exact `data-figure` basename used in HTML or an explicit waiver reason.
  • **Figure coverage gate:** every figure discovered from TeX/source/PDF appears in the final HTML by default. Figures that do not fit the main narrative go in a `完整图谱 / Figure Gallery` appendix section. Omit a figure only with an explicit waiver stating why it is duplicate, unreadable, non-public, or otherwise inappropriate.
  • Add a machine-checkable marker for every included figure: `<figure data-figure="basename.ext">`. Validation compares figure-map entries against these markers. Do not expose local/source-directory paths in public HTML markers.
  • Extract reproducibility details: datasets, splits, models, baselines, metrics, prompts, tool/prover/solver versions, decoding, timeouts, retries, and appendix-only settings.

3. **Ground against the human knowledge boundary**

  • 目的:在写主体内容之前,先抵抗论文逻辑链对注意力的污染——不让模型沦为论文叙述的“墙头草”复述者。论文 A→B→C→D 全扣起来“看起来正确”,模型极易接受,于是所有总结都变成作者观点的复述。
  • **反循环条款(最关键)**:anchor 第①段“人类已知边界”必须至少部分来自**论文之外的外部检索**——用你可用的独立检索通道(web search、arXiv、学术索引)查证相关问题的解决程度,**明确禁止仅由论文 related work 一节改写而来**。否则就是“墙头草式 grounding”——形式上完成步骤,机制上污染原样发生。用“已解决 / 部分解决 / 未解决”三档标注。
  • **边界必须落到公开链接**:没有公开链接支撑的“已知边界”就是另一种幻觉污染。无法给出可信公开依据时,如实标注“属模型记忆、待核”,与 skill 既有 evidence-boundary 精神一致。
  • 再锚定本论文的**真实增量**:相对于此边界,站在审稿人/人类立场看它给人类加了什么新知识,而非复述 abstract 的 contribution 段。若增量对整体不成立(如优化的是问题的 1% 而非 99%),如实标注。
  • **适用范围**:grounding 默认对所有论文启用。对增量平平的论文,anchor②如实标注“增量有限/属同一坐标内的重新表述”,不强行拔高;对纯综述类,anchor②改为“综述的组织增量”;对极短论文,三段可压缩为一段。无论如何不跳过 anchor。
  • 产出 `notes/grounding-anchor.md`,含三段:

1. 人类已知边界(相关问题与解决程度,**附公开链接**;标注“已解决/部分解决/未解决”) 2. 真实增量(一句话,审稿人立场,**相对于①的边界**定义) 3. 写作锚点(主体各节如何围绕增量组织——哪些节承担增量论证、哪些是纯复述性事实;短清单,不膨胀成第二份 outl

Read more
@cnfjlhj
Ships withai-collab-playbook

Practical AI collaboration playbook for research, writing, reading, and coding: article, prompts, agent rules, and reusable skills.

Stars on GitHub

Momentum

stars in total
475
Star history of cnfjlhj/ai-collab-playbook on GitHub, a chart by star-history.com

Other skills on ai-collab-playbook.

all-plan

all-plan

Use when a task is ambiguous and needs deep multi-role planning with designer, inspiration, and reviewer perspectives before…

find-skills

find-skills

Use when the user asks whether a skill exists, wants help finding or installing one, or asks how to extend agent capabilities…

More skills from other plugins.

lesson-quiz

lesson-quiz

Test a learner on a single Claude Code tutorial lesson (01-10) with 10 questions, scoring answers and flagging weak spots. Use…

@luongnv89@luongnv89Install Skill
build-personal-skill

build-personal-skill

Evidence-based creation of a reusable personal course-making Skill from the user's own classroom and chat history. Use when the…

openmaic13d43k
@thu-maic@thu-maicInstall Skill

Questions about paper2html.

Which coding agents can use paper2html?
paper2html installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.