Agent skill

Paper Compile

by AI4Scientist in AI4Scientist/nano-scientist

Compile LaTeX paper to PDF, fix errors, and verify output. An agent skill from AI4Scientist/nano-scientist.

No licenceAuto-check: notesDocuments & Office

Install Paper Compile

skills CLI
$ npx skills add AI4Scientist/nano-scientist --skill paper-compile -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install AI4Scientist/nano-scientist paper-compile --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/AI4Scientist/nano-scientist.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/paper-compile .claude/skills/paper-compile && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
paper-compile
GitHub stars
128
Used in
5 other repos
Token cost
~2.5k tokens
SKILL.md length
851 words
Files
1
Skills in repo
74
Repo updated
First seen
Licence
None found

At a glance

Compile LaTeX paper to PDF, fix errors, and verify output. An agent skill from AI4Scientist/nano-scientist.

  • Works in 9 steps: Verify Prerequisites → First Compilation Attempt → Error Diagnosis and Auto-Fix → …
  • Wants to compile LaTeX into a submission-ready PDF
  • SKILL.md covers Constants, Workflow, Key Rules and Common Venue Requirements
  • Calls pdftotext and python3

What it does

Paper Compile is an agent skill from AI4Scientist/nano-scientist. Compile LaTeX paper to PDF, fix errors, and verify output. Use when user says "编译论文", "compile paper", "build PDF", "生成PDF", or wants to compile LaTeX into a submission-ready PDF.

Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Documents & Office, covering LaTeX, PDF and Verification before completion. It works with LaTeX. The repository describes itself as: An autonomous research agent that turns a topic into a peer-reviewed technical report.

When your agent uses it

  • Wants to compile LaTeX into a submission-ready PDF
  • Tasks that involve LaTeX
  • Tasks that involve PDF

Example prompts

  • “compile paper”
  • “build PDF”
  • “/paper-compile”

Requirements

  • Python 3
  • Pre-approved tools (allowed-tools): Bash(*), Read, Write, Edit, Grep, Glob

Workflow steps

9 steps, taken from the step headings in SKILL.md.

  1. Verify Prerequisites
  2. First Compilation Attempt
  3. Error Diagnosis and Auto-Fix
  4. Iterative Fix Loop
  5. Post-Compilation Checks
  6. Page Count Verification
  7. 5: Stale File Detection
  8. Submission Readiness
  9. Output Summary

What it can do on your machine

Read from SKILL.md and the folder at commit 7132192. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash(*)
    • Read
    • Write
    • Edit
    • Grep
    • Glob

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pdftotext
    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Paper Compile loads about 2.5k tokens when it runs. Until then it costs about 48 tokens; SKILL.md has 851 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~48
When it runs · the whole SKILL.md, loaded when a task matches
~2.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteRuns commands with sudoSKILL.md:32
    # Ubuntu: sudo apt-get install texlive-full
  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Bash(*), Read, Write, Edit, Grep, Glob

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 851 words (~2,500 tokens).

“Compile the LaTeX paper and fix any issues: $ARGUMENTS”

— opening of SKILL.md by AI4Scientist
name
paper-compile
allowed-tools
Bash(*), Read, Write, Edit, Grep, Glob
argument-hint
paper-directory

Read the full SKILL.md on GitHub

Files

Just SKILL.md in skills/paper-compile of AI4Scientist/nano-scientist.

Open the folder on GitHubat commit 7132192

Used in 5 other repositories

We found 10 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 5 other GitHub owners. This page covers the copy in AI4Scientist/nano-scientist, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Paper Compile next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Paper Compile compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Paper Compile this skillAI4Scientist/nano-scientist1285 repos~2.5kAutomated safety check: NotesNone
AI Review SkillNeuroDong/Ai-Review626—~2.5kAutomated safety check: PassMIT
MineruNebutra/MinerU-Skill122—~504Automated safety check: PassMIT
Lecture To Mdysyecust/lecture-to-notes273—~3.9kAutomated safety check: PassCustom licence
Pdf2texCalix-L/awesome-latex-skills181—~1.4kAutomated safety check: PassMIT
Chinese Copyright Applicationokooo5km/Skills4U183—~2.8kAutomated safety check: NotesMIT

Similar skills

  • AI Review Skill

    NeuroDong/Ai-Review

    Generates structured AI paper reviews (SoT style) for LaTeX, PDF, and Word manuscripts.

    626 GitHub stars~2.5k tokensUpdated 1 mo ago
    Documents & OfficeAuto-check passed
  • Mineru

    Nebutra/MinerU-Skill

    An AI-Native skill for parsing PDF / Office / image files into Markdown with MinerU — a fast, zero-config document parser for AI agents.

    122 GitHub stars~504 tokensUpdated 16 days ago
    Documents & OfficeAuto-check passed
  • Lecture To Md

    ysyecust/lecture-to-notes

    把课堂视频(本地或 B 站/YouTube)、文字稿、课件三者(任意组合)整理成一份详细的中文 Markdown 课堂笔记,输出按课程标题命名的 {titlename}.md(首行为 文档标题)+ 相对路径图片。Markdown 工作流,与上游 lecture-to-notes 的 LaTeX/PDF 输出并行存在;上游 skill 完全不动。触发词:markdown 笔记、md 笔记、视频转…

    273 GitHub stars~3.9k tokensUpdated 6 days ago
    Documents & OfficeAuto-check passed
  • Pdf2tex

    Calix-L/awesome-latex-skills

    Reconstruct editable LaTeX from PDF content using page-aware extraction and visual comparison.

    181 GitHub stars~1.4k tokensUpdated 2 days ago
    Documents & OfficeAuto-check passed
  • 中国软件著作权申请材料生成工具。申请表直接输出 Markdown 提交,源程序/用户手册/设计说明书三份生成 LaTeX 并编译为 PDF。自动分析项目代码,生成四份材料(前后各30页共60页源程序、含页眉页脚的用户手册和设计说明书、Markdown…

    183 GitHub stars~2.8k tokensUpdated 2 days ago
    Documents & OfficeAuto-check: notes
  • PDF

    flonat/flonat-research

    Read, create, combine, split, rotate, OCR, watermark, secure, or extract content from PDF files.

    146 GitHub stars~488 tokensUpdated 10 days ago
    Documents & OfficeAuto-check passed

More from AI4Scientist/nano-scientist

All 74 skills in this repo
  • Formula Derivation

    AI4Scientist/nano-scientist

    Structures and derives research formulas when the user wants to 推导公式, build a theory line, organize assumptions, turn scattered equations into a coherent derivation, or rewrite theory notes into a…

    128 GitHub starsUsed in 5 repos~2.3k tokens
    Auto-check passed
  • Paper Figure

    AI4Scientist/nano-scientist

    Generate publication-quality figures and tables from experiment results.

    128 GitHub starsUsed in 5 repos~2.9k tokens
    Auto-check: notes
  • Paper Navigator

    AI4Scientist/nano-scientist

    Find and read academic papers: disambiguate queries, discover papers (search, citation traversal, recommendations, arXiv monitoring, trending, GitHub search), evaluate (TLDR, citations, code, SOTA)…

    128 GitHub stars~7.7k tokensUpdated 4 mo ago
    Auto-check: notes
  • Proof Writer

    AI4Scientist/nano-scientist

    Writes rigorous mathematical proofs for ML/AI theory. An agent skill from AI4Scientist/nano-scientist.

    128 GitHub starsUsed in 5 repos~1.9k tokens
    Auto-check passed
  • Ablation Planner

    AI4Scientist/nano-scientist

    A skill your agent uses when main results pass result-to-claim (claimsupported=yes or partial) and ablation studies are needed for paper submission.

    128 GitHub starsUsed in 4 repos~1.3k tokens
    Auto-check: notes
  • Paper Plan

    AI4Scientist/nano-scientist

    Generate a structured paper outline from review conclusions and experiment results.

    128 GitHub starsUsed in 5 repos~3.9k tokens
    Auto-check: warnings

Works with

Questions about Paper Compile

What does Paper Compile do?

Compile LaTeX paper to PDF, fix errors, and verify output. An agent skill from AI4Scientist/nano-scientist. Paper Compile is an agent skill from AI4Scientist/nano-scientist. Compile LaTeX paper to PDF, fix errors, and verify output.

When should I use Paper Compile?

Paper Compile fits situations like: wants to compile LaTeX into a submission-ready PDF; tasks that involve LaTeX; tasks that involve PDF.

How do I install Paper Compile in Claude Code?

Run `npx skills add AI4Scientist/nano-scientist --skill paper-compile -a claude-code`. Or copy the skill folder (skills/paper-compile in AI4Scientist/nano-scientist) into .claude/skills/paper-compile in your project. Claude Code loads it when a task matches its description.

How do I install Paper Compile in Codex?

Run `npx skills add AI4Scientist/nano-scientist --skill paper-compile -a codex`. Or copy the skill folder (skills/paper-compile in AI4Scientist/nano-scientist) into .agents/skills/paper-compile in your project. Codex loads it when a task matches its description.

Can I use Paper Compile in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add AI4Scientist/nano-scientist --skill paper-compile -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/paper-compile, .gemini/skills/paper-compile, .github/skills/paper-compile and .opencode/skills/paper-compile in your project.

What does Paper Compile need to run?

Going by SKILL.md and its folder, Paper Compile needs the command-line tools its instructions call (pdftotext and python3). Our summary lists: Python 3. Its frontmatter pre-approves these tools: Bash(*), Read, Write, Edit, Grep, Glob.

Does Paper Compile access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Paper Compile safe to install?

Our automated static check of SKILL.md found notes only (runs commands with sudo; pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Paper Compile use?

No licence was found for Paper Compile or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Paper Compile use?

About 2.5k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Paper Compile?

Skills that share tags, products or a category with Paper Compile: AI Review Skill (NeuroDong/Ai-Review, 626 stars), Mineru (Nebutra/MinerU-Skill, 122 stars), Lecture To Md (ysyecust/lecture-to-notes, 273 stars) and Pdf2tex (Calix-L/awesome-latex-skills, 181 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Paper Compile?

AI4Scientist (a GitHub organization) maintains it in AI4Scientist/nano-scientist, which has 128 GitHub stars. The repository holds 74 skills in this directory. The repository was last updated on June 3, 2026.

Source: AI4Scientist/nano-scientist on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.