Arxiv Package logo

Arxiv Package

Community
Mathews-Tom
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 arXiv", "prepare arXiv upload", "arXiv submission archive". Companion to arxiv-preflight and arxiv-figures.

Overview

PublisherMathews-Tom
Repositoryarmory
Skill namearxiv-package
Stars
318
Forks
47
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Mathews-Tom on GitHub. Read the source before you install it.

Installation

Install the Arxiv Package AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Mathews-Tom/armory.git /tmp/armory
mkdir -p .claude/skills
cp -r /tmp/armory/skills/arxiv-package .claude/skills/arxiv-package
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Arxiv Package in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Arxiv Package on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Arxiv Package is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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

bash
# 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

markdown
# 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

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.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Arxiv Package AI skill do?

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.

Why use Arxiv Package on TypingMind?

Because you install it once and use it with any model. Arxiv Package is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Arxiv Package in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Mathews-Tom/armory/tree/main/skills/arxiv-package. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Arxiv Package?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Arxiv Package?

As many as you like. As long as a model supports skills, you can use Arxiv Package with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Arxiv Package AI skill free?

Yes. It is published on GitHub by Mathews-Tom under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇