arxiv-package
Skill340 starsChanged 7 months agoMITView on GitHub
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.
- Reads credentials
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 65
Create or update the 00README.XXX file when needed:
- Distinctive: line 89
Before creating the archive:
- Distinctive: line 94
No absolute paths in any TeX source
- Distinctive: line 95
No filenames with spaces or special characters
- Distinctive: line 97
No hidden files (will be deleted by arXiv upon announcement)
- Distinctive: line 122
Prefer explicit file inclusion over directory-wide inclusion with exclusions.
- Very specific: line 178
Do not nest archives (no .tar.gz inside a .zip)
- Distinctive: line 189
Preserve directory structure: If the project uses subdirectories for figures or sections, maintain that structure.
- Very specific: line 191
No sensitive files: Check for .env, credentials, personal notes, referee correspondence before packaging.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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 packagingarxiv-figures— optimize figures before packaging
Workflow
1. Inventory
Scan the project directory. Classify every file:
INCLUDE — Required
- Main
.texfile(s) - All
\input/\includetargets (recursively trace) - All
\includegraphicstargets .bblfiles (pre-processed bibliography).indfiles (pre-processed index).gls/.nlsfiles (glossary/nomenclature)- Custom
.sty,.cls,.bstfiles 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
.styneeded 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
.bibfiles (include alongside.bblor omit — arXiv processes both)- Multiple
.texfiles with\documentclass(needs00README.XXXwithtoplevelfile) - 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
# nohypertexOnly generate if:
- Multiple
.texfiles contain\documentclass(declaretoplevelfile) - Files need explicit
ignoredirectives - User requests
nostampor other directives
3. Validate Structure
Before creating the archive:
- All
\input/\includetargets resolve to files in the package - All
\includegraphicstargets resolve to files in the package - All
\bibliographytargets have corresponding.bblfiles - No absolute paths in any TeX source
- No filenames with spaces or special characters
anc/directory contains no.texfiles- No hidden files (will be deleted by arXiv upon announcement)
- 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:
- List archive contents — verify no unexpected files
- Extract to temporary directory
- Attempt compilation in the extracted directory (if TeX toolchain available)
- Report archive size (compressed and uncompressed)
- 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 includedArchive Format Notes
.tar.gzpreferred over.zip(standard in academic TeX workflows)- arXiv accepts both
.tar(gzipped) and.zip - Do not nest archives (no
.tar.gzinside a.zip) - Files should be at root level or in logical subdirectories — no wrapper directory unless the project uses subdirectories for organization
Core Principles
- Explicit inclusion over blanket exclusion. Build the file list from what's needed, not from everything minus what's not needed. This catches files that shouldn't be submitted but aren't in the exclusion list.
- Verify after packaging. The archive is the submission. Test it, not the source directory.
- Preserve directory structure. If the project uses subdirectories for figures or sections, maintain that structure. TeX paths depend on it.
- No sensitive files. Check for
.env, credentials, personal notes, referee correspondence before packaging.
In this repository94 other files it gives its agents.
- AGENTS.mdAGENTS.md
- adr-writerSkill
- agent-builderSkill
- animateSkill
- api-docs-generatorSkill
- appraiseSkill
- architecture-diagramSkill
- architecture-reviewerSkill
- arxiv-figuresSkill
- arxiv-preflightSkill
- benchmark-runnerSkill
- changelog-composerSkill
- chart-claritySkill
- citation-auditSkill
- codebase-advisorSkill
- code-refinerSkill
- competitive-analyzerSkill
- concept-to-imageSkill
- debug-investigatorSkill
- decision-mapSkill
- dependency-auditSkill
- devils-advocateSkill
- domain-modelingSkill
- engineering-retroSkill
- env-validatorSkill
- estimate-calibratorSkill
- feasibility-assessorSkill
- figure-rhetoricSkill
- figure-table-qualitySkill
- filesystemSkill
- githubSkill
- gpu-optimizerSkill
- handoffSkill
- html-presentationSkill
- html-videoSkill
- humanizeSkill
- idea-validatorSkill
- immuneSkill
- intakeSkill
- kg-builderSkill
- launch-videoSkill
- learning-workspaceSkill
- lightpanda-browserSkill
- linkedin-post-styleSkill
- literature-reviewSkill
- manuscript-provenanceSkill
- manuscript-reviewSkill
- manuscript-typographySkill
- market-analyzerSkill
- marp-slidesSkill
- mcp-to-skillSkill
- md-to-pdfSkill
- migration-risk-analyzerSkill
- milestone-runnerSkill
- module-deepeningSkill
- notebooklmSkill
- package-evaluatorSkill
- package-optimizerSkill
- paper-to-skillSkill
- plan-promptsSkill
- The first 60 shown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

