paper-compile

paper-compile is a skill for Claude Code from Chanw-research/claude-code-paper-writing. It costs 37 tokens per session (2,617 once invoked), scanned B, original, LPPL-1.3c.

A LaTeX paper compilation tool that turns source files into a PDF and checks the result. LaTeX is a text-based system commonly used to write academic papers.

In plain words
What is it for?
Use it to compile a paper with latexmk, apply automatic fixes, run document checks, and prepare a submission checklist.
Why use it?
It helps catch compilation problems and submission issues such as incorrect page counts, visible author identity, missing fonts, or unconfirmed content.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it to compile a paper with latexmk, apply automatic fixes, run document checks, and prepare a submission checklist.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chanw-research/claude-code-paper-writing/paper-compile
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 Chanw-research/claude-code-paper-writing --skill paper-compile
Clone the repo
git clone --depth 1 https://github.com/Chanw-research/claude-code-paper-writing

Made for: Claude Code.

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-compile

README.md
[![agentmods](https://agentmods.dev/badge/skills/chanw-research/claude-code-paper-writing/paper-compile/github.svg)](https://agentmods.dev/skills/chanw-research/claude-code-paper-writing/paper-compile)
Your own site
<a href="https://agentmods.dev/skills/chanw-research/claude-code-paper-writing/paper-compile"><img src="https://agentmods.dev/badge/skills/chanw-research/claude-code-paper-writing/paper-compile/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-compile

Your own site · 80×15
<a href="https://agentmods.dev/skills/chanw-research/claude-code-paper-writing/paper-compile"><img src="https://agentmods.dev/badge/skills/chanw-research/claude-code-paper-writing/paper-compile.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,617 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 unknown 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.00037 $0.02617
Opus 5 $0.00018 $0.01308
Sonnet 5 $0.00007 $0.00523
Haiku 4.5 $0.00004 $0.00262

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

Security

Grade B, and why

paper-compile 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 10d ago.

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.

- **latexmk 未安装**:报错,提供安装命令(`sudo apt install texlive-full` 或 `brew install --cask mactex`)

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

result = subprocess.run(['pdfinfo', 'paper/main.pdf'], capture_output=True, text=True)
empirical-research-notes/empirical-wiki/.claude/skills/paper-compile/SKILL.md · 244 lines

The source is not reproduced here

Licensed LPPL-1.3c

The repository is licensed LPPL-1.3c, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

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. 10d ago First seen · 244 lines · 37 tokens per session scan B 39334f02a2e6

Subscribe to this mod's changes

paper-compile is a skill published in the GitHub repository Chanw-research/claude-code-paper-writing (42 stars, last pushed 3mo ago), licensed LPPL-1.3c. It adds 37 tokens to every session and 2,617 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 2 findings (asks for root, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

pydicom

Use pydicom to read, inspect, write, transform, and safely preflight local DICOM datasets and pixel data. Applies to DICOM metadata, transfer syntaxes, compression plugins, frames, private elements, JSON, and bounded de-identification review.

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

pptx-posters

Create and audit editable scientific posters in macro-free PowerPoint (.pptx) from author-approved local content and assets. Use when the requested deliverable is a PowerPoint research/conference poster and exact physical, printer, accessibility, provenance, and package-security checks are required.

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

extracting-lab-tables

Detects and extracts tabular laboratory panels from PDFs, scans, and images into structured rows ready for OpenMed and FHIR. Use when the user has a CBC, CMP, lipid panel, or other lab report as a scanned image / PDF / spreadsheet and needs the test name, value, unit, reference range, and abnormal flag as clean rows.…

maziyarpanahi/openmed · 210 tokens

paper-spine

Build, rewrite, audit, submit, revise, or transfer scholarly papers end to end, producing verified LaTeX/PDF/Word and target-specific publication packages.

WUBING2023/PaperSpine · 37 tokens

paper-compile

A build workflow that turns LaTeX source files into a PDF and checks whether the paper compiles correctly. LaTeX is a text-based system commonly used for academic papers.

wanshuiyin/Auto-claude-code-research-in-sleep · 53 tokens

nsfc-budget

A tool that creates an editable LaTeX budget justification and renders it as a PDF for an NSFC research-funding application. NSFC is China’s National Natural Science Foundation, and a budget justification explains why proposed costs are needed.

huangwb8/ChineseResearchLaTeX · 138 tokens