agentleFS
YulivuYulivu/debuffer-skills/skills/paper-package-overleaf/SKILL.md

paper-package-overleaf

Skill2 starsChanged 14 days agoMITView on GitHub

Package the actually used LaTeX sources, figures, tables, bibliography, and venue files into an Overleaf-ready zip, then rebuild it in a clean directory and verify the resulting PDF. Use for upload, collaboration, or archival handoff.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    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
  1. Very specific:

    Read main.tex from the paper root and recursively collect:

    line 12
  2. Very specific:

    Do not flatten the source tree.

    line 39
  3. Very specific:

    Run research-repo-architect/scripts/check_portable_paths.py before packaging.

    line 44

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Overleaf Package

Package only files needed to rebuild the manuscript.

Inputs

Read main.tex from the paper root and recursively collect:

  • \input and \include;
  • \includegraphics;
  • bibliography and bbl files;
  • required cls, sty, bst, and macro files.

Exclude build junk, unused sections, unused figures, local caches, traces, and machine-specific files.

Command

python scripts/package_overleaf.py <paper-dir> <out.zip> --main main

The script will:

  1. collect the dependency set;
  2. preserve the relative paper directory structure;
  3. create the zip;
  4. extract to a temporary directory;
  5. compile with the detected LaTeX engine;
  6. compare page count and extracted text with the paper root's existing PDF when Poppler tools are available;
  7. report missing files, page count, and compile or comparison status.

Do not flatten the source tree. The content/, figure/, and table/ directories must remain intact.

Portability

Run research-repo-architect/scripts/check_portable_paths.py before packaging. Override any machine-specific path in local config, not in the submitted source.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.