agentleFS
chenweichiangchenweichiang/research-writing-kit/skills/build-pdf/SKILL.md

build-pdf

Skill9 starsChanged 34 days agoMITView on GitHub

Turn a finished draft into a properly formatted PDF in the venue's layout. Use when the author says "make the PDF", "format this for submission", "typeset this", "build the paper". The deliverable is always a formatted PDF, never raw markdown (Iron Rule 7).

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Don't pretend a raw markdown export is the submission.

    line 26

≈ “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

build-pdf: typeset the deliverable

Generated from the Research Writing Kit; adapt to the venue and the author's tools. Iron Rule 7: the deliverable is a formatted PDF from version one, matching the venue's official template or the author's past submitted layout. skeleton.md and draft markdown are internal working files, never handed over.

Decide the layout source

  1. Official template for the venue (e.g. an ACM/LaTeX class, a funder's form) → use it exactly.
  2. No official template → measure the layout of the author's previously submitted PDFs (margins, font sizes, section styles, table style) and match it. Record the layout spec in venue-notes.md.

Build path (use what the author has)

  • LaTeX venues: the official class (e.g. acmart), via LaTeX or Quarto.
  • General / Chinese / non-LaTeX: a lightweight typesetting path (e.g. Typst or Quarto) that embeds the correct CJK/Latin fonts and matches the measured spec.
  • Lite / no toolchain installed: guide the author to a minimal install, or produce the cleanest possible export and be explicit that layout still needs a final pass. Don't pretend a raw markdown export is the submission.

Check before handing over

Eyeball the PDF against the venue-notes.md layout spec: font sizes, margins, section styles, tables, page/word limits. Layout is a review item. A citation-perfect draft in the wrong format still fails.

When the page limit bites (measured on a 25-page proposal)

  • Find the pinned boundaries before cutting prose. Count characters per page (for p in $(seq 1 N); do pdftotext -f $p -l $p out.pdf - | wc -m; done); a page far below the norm is a page break forced by a full-page figure, an unsplittable chart, or a table row that jumped. Cutting text before such a page only widens the gap on the page before it. Nothing after it moves.
  • Free a whole page, or nothing changes: let the figure float (Typst placement: auto; LaTeX [tbp]), anchor it at a chapter start to control where it lands, and the blank space closes.
  • Scan combinations, then pick the one with slack: try a few line-spacing × table-font-size pairs and take the one that leaves several hundred characters of room, not the one that just fits. References and appendices can be downsized independently of the body. Body leading below ~0.5em (line height 1.5) is the floor; past that, cut content.

Second-language papers

Deliver the formatted paper and the formatted back-translation as a pair. The back-translation PDF is the author's sign-off entry point (Iron Rule 3).

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.