Agent skill

Paper Compilation

by lingzhi227 in lingzhi227/agent-research-skills

Compile LaTeX papers to PDF with automatic error detection, chktex style checking, and citation/reference validation.

No licenceAuto-check: notesDocuments & Office

Install Paper Compilation

skills CLI
$ npx skills add lingzhi227/agent-research-skills --skill paper-compilation -a claude-code

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

GitHub CLI
$ gh skill install lingzhi227/agent-research-skills paper-compilation --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/lingzhi227/agent-research-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/paper-compilation .claude/skills/paper-compilation && 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-compilation
GitHub stars
386
Token cost
~778 tokens
SKILL.md length
208 words
Files
3 (incl. scripts)
Skills in repo
31
Repo updated
First seen
Licence
None found

At a glance

Compile LaTeX papers to PDF with automatic error detection, chktex style checking, and citation/reference validation.

  • Works in 4 steps: Pre-Compilation Validation → Compile → Error Correction Loop (up to 5 rounds) → …
  • The user wants to compile a paper
  • SKILL.md covers Input, Scripts, Workflow and Troubleshooting, plus 1 more section
  • Runs Python scripts from its folder; calls python, brew and apt

What it does

Paper Compilation is an agent skill from lingzhi227/agent-research-skills. Compile LaTeX papers to PDF with automatic error detection, chktex style checking, and citation/reference validation. Runs the full pdflatex + bibtex pipeline. Use when the user wants to compile a paper, fix compilation errors, or debug LaTeX.

Its SKILL.md is about 780 tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including scripts (for example `scripts/compile_paper.py` and `scripts/fix_latex_errors.py`).

It sits in Documents & Office, covering Citation management and LaTeX. It works with LaTeX. The repository describes itself as: Skills for Claude Code — deep-research: systematic academic literature review.

When your agent uses it

  • The user wants to compile a paper
  • Fix compilation errors

Example prompts

  • “/paper-compilation”

Requirements

  • Python 3

Workflow steps

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

  1. Pre-Compilation Validation
  2. Compile
  3. Error Correction Loop (up to 5 rounds)
  4. Post-Compilation Report

What it can do on your machine

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

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python
    • brew
    • apt

    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 Compilation loads about 778 tokens when it runs. Until then it costs about 65 tokens; SKILL.md has 208 words of instructions outside code blocks.

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

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:78
    sudo apt install texlive-full

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); the scripts in this folder are not scanned.

SKILL.md

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

“Compile a LaTeX paper to PDF with error detection and correction.”

— opening of SKILL.md by lingzhi227
name
paper-compilation
argument-hint
tex-file-path

Read the full SKILL.md on GitHub

Files

SKILL.md and 2 other files (scripts) in skills/paper-compilation of lingzhi227/agent-research-skills.

  • SKILL.md
  • scripts/compile_paper.py
  • scripts/fix_latex_errors.py

Open the folder on GitHubat commit 9e6c085

Compare with similar skills

Paper Compilation 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 Compilation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Paper Compilation this skilllingzhi227/agent-research-skills386—~778Automated safety check: NotesNone
Literature Surveyai4s-research/ai4s-skills2372 repos~2kAutomated safety check: PassMIT
Typst Paperbahayonghang/academic-writing-skills498—~3.6kAutomated safety check: PassNone
Light TypesettingLight0305/Light-skills640—~3.3kAutomated safety check: PassMIT
Latex Setupfcakyon/phd-skills415—~1.1kAutomated safety check: NotesMIT
Latex Rhythm Refinerappautomaton/latex-arxiv-SKILL458—~890Automated safety check: PassMIT

Similar skills

  • Literature Survey

    ai4s-research/ai4s-skills

    A skill your agent uses when the user wants a comprehensive literature survey on a specific research topic.

    237 GitHub starsUsed in 2 repos~2k tokens
    Documents & OfficeAuto-check passed
  • Typst Paper

    bahayonghang/academic-writing-skills

    Typst paper assistant for existing .typ manuscripts in English or Chinese.

    498 GitHub stars~3.6k tokensUpdated 12 days ago
    Documents & OfficeAuto-check passed
  • Light Typesetting

    Light0305/Light-skills

    Build and preflight submission-ready LaTeX/PDF artifacts for Light stage 11.

    640 GitHub stars~3.3k tokensUpdated 3 mo ago
    Documents & OfficeAuto-check passed
  • Latex Setup

    fcakyon/phd-skills

    A skill your agent uses when the user wants to set up or troubleshoot a LaTeX environment, choose between biber and bibtex, install packages for a specific venue template, or configure compilation.

    415 GitHub stars~1.1k tokensUpdated 23 days ago
    Documents & OfficeAuto-check: notes
  • Latex Rhythm Refiner

    appautomaton/latex-arxiv-SKILL

    Post-process LaTeX project prose to improve readability through varied sentence and paragraph lengths.

    458 GitHub stars~890 tokensUpdated 26 days ago
    Documents & OfficeAuto-check passed
  • Evidence Ledger

    wanshuiyin/Anti-Autoresearch

    Build the deterministic evidence ledger (artifactmanifest.json + claims.json) that every other Anti-Autoresearch auditor reads.

    161 GitHub stars~11k tokensUpdated 3 days ago
    Documents & OfficeAuto-check: notes

More from lingzhi227/agent-research-skills

All 31 skills in this repo
  • Backward Traceability

    lingzhi227/agent-research-skills

    Makes each number in a LaTeX paper link back to the code line that produced it, using hypertarget and hyperlink tags and compile-time `\num` formulas.

    386 GitHub stars~802 tokensUpdated 7 mo ago
    Auto-check passed
  • Statistical Data Analysis

    lingzhi227/agent-research-skills

    Writes statistical analysis code for experimental data, runs it through a four-round review, and reports effect sizes, p-values and confidence intervals.

    386 GitHub stars~886 tokensUpdated 7 mo ago
    Auto-check passed
  • Excalidraw Canvas Toolkit

    lingzhi227/agent-research-skills

    Draws and refines Excalidraw diagrams on a live canvas through MCP tools or a REST API, with screenshots, file import and export, snapshots and Mermaid conversion.

    386 GitHub stars~3.8k tokensUpdated 7 mo ago
    Auto-check passed
  • Research Experiment Designer

    lingzhi227/agent-research-skills

    Plans research experiments in four progressive stages, from a first working implementation through baseline tuning and creative research to ablation studies.

    386 GitHub stars~752 tokensUpdated 7 mo ago
    Auto-check passed
  • Scientific Figure Generation

    lingzhi227/agent-research-skills

    Generates publication-quality scientific figures with matplotlib or seaborn through query expansion, a run-and-retry coding loop and a visual check of the rendered PNG.

    386 GitHub stars~809 tokensUpdated 7 mo ago
    Auto-check passed
  • Research Idea Generation

    lingzhi227/agent-research-skills

    Generates and iteratively refines research ideas for a given area, checking each one's novelty against Semantic Scholar and arXiv, and scoring it on interestingness, feasibility and novelty.

    386 GitHub stars~747 tokensUpdated 7 mo ago
    Auto-check passed

Works with

Questions about Paper Compilation

What does Paper Compilation do?

Compile LaTeX papers to PDF with automatic error detection, chktex style checking, and citation/reference validation. Paper Compilation is an agent skill from lingzhi227/agent-research-skills. Compile LaTeX papers to PDF with automatic error detection, chktex style checking, and citation/reference validation.

When should I use Paper Compilation?

Paper Compilation fits situations like: the user wants to compile a paper; fix compilation errors.

How do I install Paper Compilation in Claude Code?

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

How do I install Paper Compilation in Codex?

Run `npx skills add lingzhi227/agent-research-skills --skill paper-compilation -a codex`. Or copy the skill folder (skills/paper-compilation in lingzhi227/agent-research-skills) into .agents/skills/paper-compilation in your project. Codex loads it when a task matches its description.

Can I use Paper Compilation 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 lingzhi227/agent-research-skills --skill paper-compilation -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-compilation, .gemini/skills/paper-compilation, .github/skills/paper-compilation and .opencode/skills/paper-compilation in your project.

What does Paper Compilation need to run?

Going by SKILL.md and its folder, Paper Compilation needs Python for the scripts in its folder and the command-line tools its instructions call (python, brew and apt). Our summary lists: Python 3.

Does Paper Compilation 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 Compilation safe to install?

Our automated static check of SKILL.md found notes only (runs commands with sudo), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Paper Compilation use?

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

How many tokens does Paper Compilation use?

About 778 tokens (SKILL.md is roughly 3.1k 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 Compilation?

Skills that share tags, products or a category with Paper Compilation: Literature Survey (ai4s-research/ai4s-skills, 237 stars), Typst Paper (bahayonghang/academic-writing-skills, 498 stars), Light Typesetting (Light0305/Light-skills, 640 stars) and Latex Setup (fcakyon/phd-skills, 415 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Paper Compilation?

lingzhi227 (a GitHub user) maintains it in lingzhi227/agent-research-skills, which has 386 GitHub stars. The repository holds 31 skills in this directory. The repository was last updated on February 27, 2026.

Source: lingzhi227/agent-research-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.