Skip to content
Development
Skill

/arxiv-package

Package a TeX/LaTeX project into a clean tarball or zip for arXiv upload: file selection, build-artifact exclusion, 00README.XXX generation, ancillary file organization, archive validation. Triggers on: "package for arXiv", "create arXiv tarball", "bundle submission", "zip for

From plugin
armory
33998 skills2 agents1 command

Claude Code

$ npx -y skills add Mathews-Tom/armory --skill arxiv-package --agent claude-code

SKILL.md

arxiv-package.SKILL.md
name: arxiv-package
description: 'Package a TeX/LaTeX project into a clean tarball or zip for arXiv upload: file selection, build-artifact exclusion, 00README.XXX generation, ancillary file organization, archive validation. Triggers on: "package for arXiv", "create arXiv tarball", "bundle submission", "zip for arXiv", "prepare arXiv upload", "arXiv submission archive". Companion to arxiv-preflight and arxiv-figures.'
metadata:
  version: 1.0.0
  complements: [arxiv-preflight, arxiv-figures, manuscript-review]
  category: review
  tags: [arxiv, packaging, tarball, latex, submission]
  difficulty: intermediate
  phase: ship

arXiv Submission Packager

Purpose

Assemble a TeX/LaTeX project into a clean, correctly structured `.tar.gz` or `.zip` archive ready for arXiv upload. Handles file selection, artifact exclusion, directory structure, 00README generation, and validation of the final package.

Companion skills:

  • `arxiv-preflight` — validate before packaging
  • `arxiv-figures` — optimize figures before packaging

Workflow

1. Inventory

Scan the project directory. Classify every file:

**INCLUDE — Required**

  • Main `.tex` file(s)
  • All `\input`/`\include` targets (recursively trace)
  • All `\includegraphics` targets
  • `.bbl` files (pre-processed bibliography)
  • `.ind` files (pre-processed index)
  • `.gls`/`.nls` files (glossary/nomenclature)
  • Custom `.sty`, `.cls`, `.bst` files not in TeX Live
  • `00README.XXX` (if present)
  • `anc/` directory contents (ancillary files)

**EXCLUDE — Build Artifacts**

  • `.aux`, `.log`, `.toc`, `.lot`, `.lof`, `.out`, `.nav`, `.snm`, `.vrb`
  • `.dvi`, `.ps`, `.pdf` (except figure PDFs and ancillary PDFs)
  • `.synctex`, `.synctex.gz`, `.fls`, `.fdb_latexmk`
  • `.blg`, `.ilg`, `.glg`, `.nlg` (log files from bib/index/glossary processing)
  • `*.bak`, `*~`, `*.swp`, `*.swo` (editor backups)
  • `.DS_Store`, `Thumbs.db`, `desktop.ini` (OS artifacts)

**EXCLUDE — Should Not Submit**

  • Journal templates / style guides (unless custom `.sty` needed for compilation)
  • Referee letters, cover letters
  • Build scripts (`Makefile`, `latexmkrc`) — not needed by arXiv
  • `.git/`, `.svn/`, version control directories
  • IDE configs (`.vscode/`, `.idea/`, `.texpadtmp/`)

**FLAG — Needs Decision**

  • `.bib` files (include alongside `.bbl` or omit — arXiv processes both)
  • Multiple `.tex` files with `\documentclass` (needs `00README.XXX` with `toplevelfile`)
  • Large data files (ancillary or exclude)

2. Generate 00README.XXX

Create or update the `00README.XXX` file when needed:

# Auto-generated by arxiv-package

# Main TeX file (only if ambiguous — multiple \documentclass files)
main.tex toplevelfile

# Files to exclude from processing
cover-letter.pdf ignore
notes.txt ignore

# Optional directives
# nostamp
# nohypertex

Only generate if:

  • Multiple `.tex` files contain `\documentclass` (declare `toplevelfile`)
  • Files need explicit `ignore` directives
  • User requests `nostamp` or other directives

3. Validate Structure

Before creating the archive:

1. All `\input`/`\include` targets resolve to files in the package 2. All `\includegraphics` targets resolve to files in the package 3. All `\bibliography` targets have corresponding `.bbl` files 4. No absolute paths in any TeX source 5. No filenames with spaces or special characters 6. `anc/` directory contains no `.tex` files 7. No hidden files (will be deleted by arXiv upon announcement) 8. Total uncompressed size is reasonable (flag >50MB — may need exception request)

4. Create Archive

# From project root, create tar.gz excluding unwanted files
tar czf submission.tar.gz \
  --exclude='*.aux' --exclude='*.log' --exclude='*.toc' \
  --exclude='*.lot' --exclude='*.lof' --exclude='*.out' \
  --exclude='*.nav' --exclude='*.snm' --exclude='*.vrb' \
  --exclude='*.dvi' --exclude='*.synctex*' \
  --exclude='*.fls' --exclude='*.fdb_latexmk' \
  --exclude='*.blg' --exclude='*.ilg' --exclude='*.glg' \
  --exclude='*.bak' --exclude='*~' --exclude='*.swp' \
  --exclude='.git' --exclude='.svn' \
  --exclude='.DS_Store' --exclude='Thumbs.db' \
  --exclude='.vscode' --exclude='.idea' \
  [list of files/directories to include]

# Or create zip
zip -r submission.zip [files] \
  -x '*.aux' -x '*.log' -x '*.toc' ...

Prefer explicit file inclusion over directory-wide inclusion with exclusions. This prevents accidental inclusion of sensitive or unnecessary files.

5. Verify Archive

After creation:

1. List archive contents — verify no unexpected files 2. Extract to temporary directory 3. Attempt compilation in the extracted directory (if TeX toolchain available) 4. Report archive size (compressed and uncompressed) 5. Compare file list against the include/exclude inventory

6. Report

# arXiv Package Report

**Archive:** submission.tar.gz
**Compressed size:** [size]
**Uncompressed size:** [size]
**File count:** [count]

## Contents

| File | Size | Type |
|------|------|------|
| main.tex | 45 KB | Source |
| references.bbl | 12 KB | Bibliography |
| fig1.pdf | 380 KB | Figure |
| anc/data.csv | 1.2 MB | Ancillary |

## Excluded

| File | Reason |
|------|--------|
| main.aux | Build artifact |
| main.log | Build artifact |
| referee-response.pdf | Not for submission |

## 00README.XXX

[Contents if generated]

## Verification

- [ ] Archive extracts cleanly
- [ ] All source references resolve
- [ ] Compilation succeeds (if tested)
- [ ] No sensitive files included

Archive Format Notes

  • `.tar.gz` preferred over `.zip` (standard in academic TeX workflows)
  • arXiv accepts both `.tar` (gzipped) and `.zip`
  • Do not nest archives (no `.tar.gz` inside a `.zip`)
  • Files should be at root level or in logical subdirectories — no wrapper directory

unless the project uses subdirectories for organization

#

Read more
@mathews-tom
Ships witharmory

Curated, production-grade skills, agents, hooks, rules, commands, utilities, and presets for AI coding agents. No magic, no demos — battle-tested workflows built for developers who use AI seriously.

33998 skills2 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
339
Star history of Mathews-Tom/armory on GitHub, a chart by star-history.com

Other skills on armory.

doc-condenser

doc-condenser

**DEPRECATED** — Modern Claude models condense and summarize technical documentation natively with comparable quality. The output…

@mathews-tom@mathews-tomInstall Skill
opus-4-7-migration

opus-4-7-migration

DEPRECATED: The Opus 4.7 migration scanner is retired from the active skill catalog. Retained for archival reference only; not…

@mathews-tom@mathews-tomInstall Skill
regex-builder

regex-builder

**DEPRECATED** — Modern Claude models produce accurate, well-explained regex patterns with edge-case test suites natively,…

@mathews-tom@mathews-tomInstall Skill
sequential-thinking

sequential-thinking

**DEPRECATED** — Opus 4.7 uses adaptive thinking (optional at each step) and Sonnet 4.6 handles structured chain-of-thought…

@mathews-tom@mathews-tomInstall Skill
adr-writer

adr-writer

Generates Architecture Decision Records capturing context, rationale, alternatives, and consequences in numbered status-tracked…

@mathews-tom@mathews-tomInstall Skill
agent-builder

agent-builder

Build AI agents and automate Claude Code programmatically via the Claude Agent SDK and headless CLI mode. Covers Python SDK,…

@mathews-tom@mathews-tomInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc13d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about arxiv-package.

Which coding agents can use arxiv-package?
arxiv-package installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.