arxiv-source-first-paper-ingest

arxiv-source-first-paper-ingest is a skill for Claude Code from terrylica/cc-skills. It costs 156 tokens per session (1,367 once invoked), scanned A, original, MIT.

A tool for reading research papers from arXiv, a website for sharing scientific papers, using the authors’ original LaTeX source instead of extracting text from a PDF.

In plain words
What is it for?
Use it to collect a paper’s formulas, convert them to MathML, and check that each formula compiles with TeX.
Why use it?
It helps preserve exact equations, labels, and the difference between formal statements and working steps that PDF text recognition can miss.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Part of the cc-skills plugin — 183 skills, 1 hook, 2 plugins shipped together

Good fit Use it to collect a paper’s formulas, convert them to MathML, and check that each formula compiles with TeX.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/terrylica/cc-skills/arxiv-source-first-paper-ingest
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 terrylica/cc-skills --skill arxiv-source-first-paper-ingest
Clone the repo
git clone --depth 1 https://github.com/terrylica/cc-skills

Made for: Claude Code.

Or install cc-skills, the plugin that ships this one along with the rest of its 183 skills, 1 hook, 2 plugins.

Its marketplace also offers this one on its own, as the plugin arxiv-source-first/plugin install arxiv-source-first after adding the marketplace above.

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-source-first-paper-ingest

README.md
[![agentmods](https://agentmods.dev/badge/skills/terrylica/cc-skills/arxiv-source-first-paper-ingest/github.svg)](https://agentmods.dev/skills/terrylica/cc-skills/arxiv-source-first-paper-ingest)
Your own site
<a href="https://agentmods.dev/skills/terrylica/cc-skills/arxiv-source-first-paper-ingest"><img src="https://agentmods.dev/badge/skills/terrylica/cc-skills/arxiv-source-first-paper-ingest/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-source-first-paper-ingest

Your own site · 80×15
<a href="https://agentmods.dev/skills/terrylica/cc-skills/arxiv-source-first-paper-ingest"><img src="https://agentmods.dev/badge/skills/terrylica/cc-skills/arxiv-source-first-paper-ingest.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 156 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,367 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Prompt Injection · line 77
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
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.00156 $0.01367
Opus 5 $0.00078 $0.00683
Sonnet 5 $0.00031 $0.00273
Haiku 4.5 $0.00016 $0.00137

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

Security

Grade A, and why

arxiv-source-first-paper-ingest 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 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (tools/compile_each_formula_with_real_tex_engine.ts), 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.

curl -sSL -A "$UA" "https://export.arxiv.org/api/query?id_list=$ID" -o meta.xml
plugins/arxiv-source-first/skills/arxiv-source-first-paper-ingest/SKILL.md · 103 lines

How it starts

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

arXiv source-first paper ingest

Self-Evolving skill. If a step here fails or the tooling drifts, fix this file in the same change. The Post-Execution Reflection at the bottom says what to check.

The whole idea in one line: for an arXiv paper, the PDF is a rendering of something you can get losslessly, so do not read the rendering.

arxiv.org/e-print/<id> serves the authors' own LaTeX. It carries the exact formulas, their \labels, and — critically — which formulas are stated propositions rather than intermediate steps inside a proof. None of that survives into a PDF, so no vision model can recover it.

Measured on one real paper, OCR of the PDF reached 0.958 mean token similarity to the source and only 49 % of its formulas compiled, against 98 % for the source. Full numbers, including a systematic model defect that similarity cannot see, in ../../references/OCR-VERSUS-AUTHOR-LATEX-GROUND-TRUTH.md.


Step 1 — fetch the source, not the PDF

Identify yourself; arXiv asks for it and rate-limits anonymous bulk access.

ID=2605.00501
UA="your-project/1.0 (mailto:[email protected])"
mkdir -p /tmp/paper && cd /tmp/paper
curl -sSL -A "$UA" "https://export.arxiv.org/api/query?id_list=$ID" -o meta.xml
curl -sSL -A "$UA" "https://arxiv.org/e-print/$ID" -o eprint.tar.gz
mkdir -p src && tar xzf eprint.tar.gz -C src

If tar fails the e-print may be a single gzipped .texgunzip -c eprint.tar.gz > src/main.tex. Papers withdrawn or submitted as PDF-only have no source; that is when you OCR, and the unlimited-ocr plugin is the tool.

Step 2 — extract every display equation, with the structure that gives it authority

The tools live beside this file, under tools/ in this skill directory.

SKILL_DIR="$(dirname "$0")"   # or the directory containing this SKILL.md
cargo run --release \
  --manifest-path "$SKILL_DIR/tools/arxiv-latex-display-math-extractor/Cargo.toml" \
  -- /tmp/paper/src > /tmp/paper/equations.json

Read the full file on GitHub · 103 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. 12d ago First seen · 103 lines · 156 tokens per session scan A 6bec80e59461

Subscribe to this mod's changes

arxiv-source-first-paper-ingest is a skill published in the GitHub repository terrylica/cc-skills (72 stars, last pushed yesterday), licensed MIT. It adds 156 tokens to every session and 1,367 once invoked, about $0.0008 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

email-systems

Transactional email (Resend, SendGrid, SES), templates (React Email, MJML), deliverability (SPF/DKIM/DMARC), and inboxing best practices. Use when building email infrastructure, designing templates, or troubleshooting deliverability.

travisjneuman/.claude · 55 tokens

generic-design-system

Complete design system reference for any project - colors, typography, spacing, components, animations. Adapts to project theme and tech stack. Use when implementing UI, choosing colors, creating animations, or ensuring brand consistency. For new design systems, use ui-research skill first.

travisjneuman/.claude · 60 tokens

debug-systematic

Systematic 4-phase debugging methodology for complex, intermittent, or mysterious issues. Use when investigating bugs, race conditions, or unexplained failures.

travisjneuman/.claude · 33 tokens

embedded-iot

Embedded systems firmware, microcontrollers (ESP32, STM32, Arduino, Raspberry Pi), RTOS (FreeRTOS, Zephyr), IoT protocols (MQTT, CoAP, BLE), bare-metal C/C++, and hardware peripheral interfaces (I2C, SPI, UART, GPIO). Use when developing firmware, working with microcontrollers, or building IoT devices.

travisjneuman/.claude · 80 tokens

generic-code-reviewer

Review code for bugs, security vulnerabilities, performance issues, accessibility gaps, and CLAUDE.md workflow compliance. Supports any tech stack - HTML/CSS/JS, React, TypeScript, Node.js, Python, NestJS, Next.js, and more. Use when completing features, before commits, or reviewing pull requests.

travisjneuman/.claude · 70 tokens

fable-scope-discipline

Use when implementing any change in existing code — when tempted to clean up nearby code, add unrequested validation or options, fix something "arguably in scope", or when the diff is growing past what was asked.

DizzyMii/fable-skills · 51 tokens