paper-build

paper-build is a skill for Claude Code from Rezenders/scientific_writing_agent. It costs 28 tokens per session (521 once invoked), scanned A, original, Apache-2.0.

A build-and-check workflow for a LaTeX manuscript, where LaTeX is a system commonly used to produce scientific PDFs. It builds the PDF and runs chktex, a tool that reports likely LaTeX and writing mistakes.

In plain words
What is it for?
Use it after changing the manuscript to validate the PDF build and review lint warnings by file and line.
Why use it?
It shows whether the paper can be compiled and highlights errors, warnings, missing references, and missing citations after substantive edits.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions CLAUDE.md.

Good fit Use it after changing the manuscript to validate the PDF build and review lint warnings by file and line.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rezenders/scientific_writing_agent/paper-build
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 Rezenders/scientific_writing_agent --skill paper-build
Clone the repo
git clone --depth 1 https://github.com/Rezenders/scientific_writing_agent

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/rezenders/scientific_writing_agent/paper-build"><img src="https://agentmods.dev/badge/skills/rezenders/scientific_writing_agent/paper-build.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 521 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00028 $0.00521
Opus 5 $0.00014 $0.00260
Sonnet 5 $0.00006 $0.00104
Haiku 4.5 $0.00003 $0.00052

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

Security

Grade A, and why

paper-build scanned grade A with 0 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/paper-build/SKILL.md · 73 lines

How it starts

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

Build and validate the manuscript.

Usage

/paper-build

Steps

Step 1 — Build PDF

cd <YOUR_PROJECT_ROOT>
make pdf 2>&1

Scan output for fatal errors (lines starting with !). Report:

  • SUCCESS: <YOUR_OUTPUT_PDF> built successfully
  • FAILURE: the full LaTeX error message, the source file, and the line number

If the build fails, stop here and report the error. Do not proceed to Step 2.


Step 2 — Lint

make lint 2>&1

Report any warnings grouped by file. Skip warnings that are suppressed per CLAUDE.md.

  • PASS: no non-suppressed warnings
  • FAIL: list each warning with file, line, and warning text

Step 3 — Summary

Report:

  • PDF status (OK / FAILED)
  • Lint warning count by file (0 = clean)
  • Any undefined references: lines matching LaTeX Warning: Reference .* undefined
  • Any missing citations: lines matching LaTeX Warning: Citation .* undefined

Read the full file on GitHub · 73 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. 10d ago First seen · 73 lines · 28 tokens per session scan A fd7ecdd09562

Subscribe to this mod's changes

paper-build is a skill published in the GitHub repository Rezenders/scientific_writing_agent (11 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 28 tokens to every session and 521 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. 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