arxiv-doc-builder

arxiv-doc-builder is a skill for Claude Code from ultimatile/arxiv-skills. It costs 64 tokens per session (3,862 once invoked), scanned A, original, MIT.

A tool for turning arXiv research papers into Markdown documentation. It prefers the paper's LaTeX source, preserving structure and mathematical notation, and has a basic PDF fallback when source files are unavailable.

In plain words
What is it for?
Use it to fetch arXiv paper files, convert LaTeX or simple PDFs to Markdown, and produce documents containing sections, formulas, figures, abstracts, and references.
Why use it?
It removes much of the manual work of downloading papers and rewriting them as implementation reference material. PDF-only or complex papers may still need inspection and manual conversion.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the arxiv-skills plugin — 2 skills shipped together

Good fit Use it to fetch arXiv paper files, convert LaTeX or simple PDFs to Markdown, and produce documents containing sections, formulas, figures, abstracts, and references.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ultimatile/arxiv-skills/arxiv-doc-builder
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 ultimatile/arxiv-skills --skill arxiv-doc-builder
Clone the repo
git clone --depth 1 https://github.com/ultimatile/arxiv-skills

Made for: Claude Code.

Or install arxiv-skills, the plugin that ships this one along with the rest of its 2 skills.

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 arxiv-doc-builder

README.md
[![agentmods](https://agentmods.dev/badge/skills/ultimatile/arxiv-skills/arxiv-doc-builder/github.svg)](https://agentmods.dev/skills/ultimatile/arxiv-skills/arxiv-doc-builder)
Your own site
<a href="https://agentmods.dev/skills/ultimatile/arxiv-skills/arxiv-doc-builder"><img src="https://agentmods.dev/badge/skills/ultimatile/arxiv-skills/arxiv-doc-builder/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 arxiv-doc-builder

Your own site · 80×15
<a href="https://agentmods.dev/skills/ultimatile/arxiv-skills/arxiv-doc-builder"><img src="https://agentmods.dev/badge/skills/ultimatile/arxiv-skills/arxiv-doc-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,862 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00064 $0.03862
Opus 5 $0.00032 $0.01931
Sonnet 5 $0.00013 $0.00772
Haiku 4.5 $0.00006 $0.00386

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

Security

Grade A, and why

arxiv-doc-builder scanned grade A with 1 finding 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 4d ago.

The scan reads SKILL.md. This mod also ships 31 executable files (arxiv_doc_builder/__init__.py, arxiv_doc_builder/_version.py, arxiv_doc_builder/arxiv_id.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.

Makes network callslowCapability

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

All HTTP requests (curl), file extraction (tar), and directory creation (mkdir) are handled automatically.
skills/arxiv-doc-builder/SKILL.md · 269 lines

How it starts

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

arXiv Document Builder

Automatically converts arXiv papers into structured Markdown documentation for implementation reference.

Capabilities

This skill automatically:

  1. Fetches paper materials from arXiv

    • Attempts to download LaTeX source (preferred) and PDF (idempotent — skips if cached)
    • Handles all HTTP requests, extraction, and directory setup
  2. Converts LaTeX source to structured Markdown (happy path)

    • LaTeX source → Markdown via pandoc (preserves all math and structure)
    • Preserves mathematical formulas in MathJax/LaTeX format ($...$, $$...$$)
    • Maintains section hierarchy and document structure
    • Includes abstracts, figures, and references
  3. PDF fallback (naive — output quality must be verified)

    • When no LaTeX source is available, convert-paper runs convert_pdf_simple.py (single-column pdfplumber extraction) as a best-effort fallback
    • This produces usable output only for simple, single-column papers
    • For 2-column papers, math-heavy papers, or complex layouts, inspect the output and use the specialized PDF scripts manually (see below)
  4. Generates implementation-ready documentation

    • Output saved to {ARXIV_ID}/{ARXIV_ID}.md under the output directory (default: current working directory)
    • Easy to reference during code implementation
    • Optimized for Claude to read and understand

When to Use This Skill

Invoke this skill when the user requests:

  • "Convert arXiv paper {ID} to markdown"
  • "Fetch and process paper {ID}"
  • "Create documentation for arXiv:{ID}"
  • "I need to read/reference paper {ID}"

How It Works

Single Entry Point

Use the main orchestrator script or the globally installed convert-paper command:

# Using global command (recommended)
convert-paper ARXIV_ID [--output-dir DIR]

# Using script directly
uv run arxiv_doc_builder/convert_paper.py ARXIV_ID [--output-dir DIR]
  • --output-dir: Directory where {ARXIV_ID}/{ARXIV_ID}.md will be created. Default: current working directory (not a papers/ subdirectory).
  • Use absolute paths to control output location precisely.
  • -V / --version: Print the version and exit. Resolves from installed distribution metadata, falling back to pyproject.toml when run straight from the source tree (the uninstalled case for uv run …/convert_paper.py).

Read the full file on GitHub · 269 lines

Files

What ships with it

36 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago Changed · -1 lines fd11ee01461d
  2. 12d ago First seen · 270 lines · 64 tokens per session scan A a6a43d157f27

Subscribe to this mod's changes

arxiv-doc-builder is a skill published in the GitHub repository ultimatile/arxiv-skills (42 stars, last pushed 5d ago), licensed MIT. It adds 64 tokens to every session and 3,862 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). 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