paper-repro

paper-repro is a skill for Claude Code, Codex from phanghonghao/THU-Awesome-Skills. It costs 146 tokens per session (2,180 once invoked), scanned B, original, MIT.

A workflow that turns a research paper into a readable one-page summary, a small working reproduction, and an estimate of the effort needed for a fuller reproduction. Reproduction means rebuilding an experiment described in a paper to see whether it runs and gives similar results.

In plain words
What is it for?
Use it with an arXiv link, paper ID, title, keywords, or local PDF to summarise the paper, find its code and data needs, create a small experiment, and estimate full reproduction costs.
Why use it?
It combines understanding the paper with testing a minimal version, while limiting runs, isolating files, and asking before large downloads or risky setup.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it with an arXiv link, paper ID, title, keywords, or local PDF to summarise the paper, find its code and data needs, create a small experiment, and estimate full reproduction costs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/phanghonghao/thu-awesome-skills/paper-repro
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add phanghonghao/THU-Awesome-Skills --skill paper-repro
Clone the repo
git clone --depth 1 https://github.com/phanghonghao/THU-Awesome-Skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for paper-repro

README.md
[![agentmods](https://agentmods.dev/badge/skills/phanghonghao/thu-awesome-skills/paper-repro/github.svg)](https://agentmods.dev/skills/phanghonghao/thu-awesome-skills/paper-repro)
Your own site
<a href="https://agentmods.dev/skills/phanghonghao/thu-awesome-skills/paper-repro"><img src="https://agentmods.dev/badge/skills/phanghonghao/thu-awesome-skills/paper-repro/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for paper-repro

Your own site · 80×15
<a href="https://agentmods.dev/skills/phanghonghao/thu-awesome-skills/paper-repro"><img src="https://agentmods.dev/badge/skills/phanghonghao/thu-awesome-skills/paper-repro.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 146 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,180 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00146 $0.02180
Opus 5 $0.00073 $0.01090
Sonnet 5 $0.00029 $0.00436
Haiku 4.5 $0.00015 $0.00218

Measured 11d ago against content hash f7ba6ca38270, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade B, and why

paper-repro scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 7 executable files (scripts/analyze_repo.py, scripts/cost_estimate.py, scripts/find_repo.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- **禁止 sudo / 管理员权限**,禁止改系统环境变量、禁止写用户主目录之外。

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

所有脚本网络层均为 **requests → curl → 警告退出**,对齐 `/web-search-fallback`,MCP 限流时仍可用。
skills/paper-repro/SKILL.md · 138 lines

How it starts

The opening of the file, as written. The whole thing — 138 lines — stays where its author put it; the contents beside it link to each section on GitHub.

paper-repro — 论文「总结 + 最小复现」

把一篇论文变成:一页可读总结 + 一个能在本机跑通的最小复现 + 完整复现成本估算。 编排 /paper-html-onepage(读懂)+ 本 skill 的复现脚本(跑通)。

⚠️ 安全约束(自动运行模式必备,优先于一切)

  • 只跑最小规模:限定步数/epoch(默认 ≤ 几百步)、限定时长(默认 ≤ 几分钟)。
  • 隔离运行:所有复现代码、数据、日志放进单独子目录,不污染其他项目。
  • 禁止 sudo / 管理员权限,禁止改系统环境变量、禁止写用户主目录之外。
  • 网络三思:允许浅克隆(git clone --depth 1)和小数据下载;超过 ~200MB 的下载、需登录/付费的数据集、需 Kaggle/HF token 的资源,先问用户,不要自动拉取。
  • 不确定就不跑:如果生成的代码看不清在干嘛、或需重型依赖(CUDA 专版、编译、root),只产出方案+脚本,不自动执行,把决定权交给用户。

输入解析(Stage 0)

接受四种输入,统一抽出 arXiv ID + 标题 + 输出目录

  • arXiv URL:https://arxiv.org/abs/1706.03762/pdf/... → 抽 ID
  • arXiv ID:1706.03762
  • 关键词/标题:如 Attention Is All You Need
  • 本地 PDF:--pdf <path>(复现阶段需要标题,从文件名/首页推断)

输出目录默认 <用户当前工作目录>/<论文短名>_repro/

6 阶段编排流程

本 skill 是 agent 驱动 的:脚本(scripts/)只做查找/分析/解析等机械活, 论文级的代码改写由你(agent)按方法论完成——因为每篇论文不同,无法写成单一固定脚本。 这与 /web-search-fallback「指令 + 可复用片段」的设计哲学一致。

Stage A — 读懂论文(委派 /paper-html-onepage,不改它)

python "<SKILL_ROOT>\paper-html-onepage\scripts\paper_to_onepage_html.py" \
  --url "<arxiv_url>" --out "<outdir>/<name>_summary.html"

(关键词搜用 --query;本地 PDF 用 --pdf。)得到 <name>_summary.html

Stage B — 找代码(scripts/find_repo.py)

python "<SKILL_ROOT>\scripts\find_repo.py" "1706.03762" --top 6
# 加 --json 拿结构化结果

arXiv ID → 自动取标题 → GitHub 按标题搜(比搜裸 ID 召回高)。多个候选时让用户确认用哪个。 (PapersWithCode 公开 API 已废弃返回 HTML,故不用;GitHub+arXiv 已覆盖常见情况。)

Stage C — 分析完整复现要求(scripts/analyze_repo.py)

python "<SKILL_ROOT>\scripts\analyze_repo.py" "<repo_url>" --json > analyze_report.json

免克隆(走 GitHub tree API + raw)读 README/依赖/训练入口/配置,grep 资源信号(n_gpu、deepspeed、 batch_size、epochs、数据集路径),产出 JSON 可行性报告:入口、依赖、GPU 需求、阻断项、建议的最小化覆盖项。

Stage D — 制定最小复现方案(agent 推理)

综合 analyze_report + 本机硬件(CPU/单卡)制定降维裁剪方案。常见手段:

  • 换小模型:d_model/layer/head 全砍(如 512→64、6→2、8→2)
  • 砍步数:几百 epoch → 几百步
  • 关多卡num_processes=1、关 DeepSpeed/accelerate、必要时上 LoRA 省 VRAM
  • 去重型数据依赖:WMT/私有数据集 → 合成任务(序列复制/反转/排序),0 下载
  • 明确要验证的核心论点:不追求复现原始 SOTA 数字,只验证论文核心主张是否成立

Read the full file on GitHub · 138 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 138 lines · 146 tokens per session scan B f7ba6ca38270

Subscribe to this mod's changes

paper-repro is a skill published in the GitHub repository phanghonghao/THU-Awesome-Skills (8 stars, last pushed 1mo ago), licensed MIT. It adds 146 tokens to every session and 2,180 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…

anthropics/knowledge-work-plugins · 123 tokens

exploratory-data-analysis

Perform bounded, local exploratory analysis of explicitly supported scientific files. Use for redacted CSV/TSV/JSON profiles; optional NumPy, HDF5, FASTA/FASTQ, and basic image metadata inspection; missingness/leakage audits; outlier and transformation sensitivity; and rigorous EDA report scaffolds. Other domain…

K-Dense-AI/scientific-agent-skills · 83 tokens

matlab

Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.

K-Dense-AI/scientific-agent-skills · 42 tokens

phylogenetics

Build and analyze phylogenetic trees using MAFFT (multiple alignment), IQ-TREE 2 (maximum likelihood), and FastTree (fast NJ/ML). Visualize with ETE3 or FigTree. For evolutionary analysis, microbial genomics, viral phylodynamics, protein family analysis, and molecular clock studies.

K-Dense-AI/scientific-agent-skills · 68 tokens

research-engineer

An uncompromising Academic Research Engineer. Operates with absolute scientific rigor, objective criticism, and zero flair. Focuses on theoretical correctness, formal verification, and optimal implementation across any required technology.

davila7/claude-code-templates · 43 tokens

mapping-to-snomed

Maps clinical concept spans extracted by OpenMed to SNOMED CT concepts through a USER-SUPPLIED terminology server (the user's own Ontoserver, Snowstorm, or UMLS/UTS), never a bundled vocabulary. Use when the user wants to code findings, disorders, procedures, body structures, or substances to SNOMED CT, run an ECL…

maziyarpanahi/openmed · 205 tokens