bilingual-paper-translator
AGENTS.md0 starsChanged 3 months agoMITView on GitHub
Run after changing the Python pipeline: For job-directory changes, cover explicit and title-derived short names, full-title fallback, filesystem-forbidden characters, Windows reserved names, UTF-8 length limits, missing titles, and destination collisions. For reference extraction changes, test semantic bibliography containers, flat References / Bibliography sections, a following appendix, a non-reference heading containing the word “references,” and both states of --translate-references. For acquisition changes, cover arXiv HTML; arXiv TeX; arXiv PDF only when TeX is absent; TeX merge/conversion failures without PDF fallback; a…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,337 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository2 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- bilingual-paper-translatorSkill
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 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.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 11
Run organize immediately after acquisition and use its paper-named directory for every later step.
- Very specific: line 12
Keep generated papers, images, and outputs/ out of commits.
- Distinctive: line 16
Run after changing the Python pipeline:
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md 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
Agent guide
Hard boundaries
- Source priority is arXiv HTML, then downloadable arXiv TeX plus safe merge and Docling, then the official arXiv PDF plus Docling only when TeX is absent. Never use a third-party mirror or hide a TeX conversion failure with the PDF fallback.
- Explicit local/remote PDFs are processed directly with Docling. DOI and official-page inputs use only one unambiguous PDF link; do not automate browsers or bypass access controls.
- Local HTML may copy only relative resources inside its own directory tree. Reject traversal, missing files, and empty resources.
- Translation uses one whole-paper model context. Do not silently split the manifest into independent translation calls.
- Content disabled by a
prepareswitch must be absent fromsegments.json; do not send it to the model and ask for an unchanged response. - Preserve protected
⟦KEEP_nnnn⟧tokens exactly once and reject model-generated HTML. - Run
organizeimmediately after acquisition and use its paper-named directory for every later step. Prefer a known short name; keep the full title only when no abbreviation is available, and preserve cross-platform filename safety. - Keep generated papers, images, and
outputs/out of commits.
Checks
Run after changing the Python pipeline:
PYTHON skills/bilingual-paper-translator/scripts/paper_pipeline.py selftestFor job-directory changes, cover explicit and title-derived short names, full-title fallback, filesystem-forbidden characters, Windows reserved names, UTF-8 length limits, missing titles, and destination collisions.
For reference extraction changes, test semantic bibliography containers, flat References / Bibliography sections, a following appendix, a non-reference heading containing the word “references,” and both states of --translate-references.
For acquisition changes, cover arXiv HTML; arXiv TeX; arXiv PDF only when TeX is absent; TeX merge/conversion failures without PDF fallback; a local native PDF; a direct PDF URL; a DOI or official page; local HTML resources; a non-English paper; a Docling-scanned PDF; and an unusable Docling result.
For renderer or source changes, generate a real paper and inspect source.html, localized resources, metadata, the redacted log, manifest exclusions, protected tokens, translation IDs, anchors, and representative first/middle/last PDF pages. Include pages with formulas, figures, and tables; check page size, pagination, fonts, clipping, overlap, and bookmarks.
Documentation
README.md/README.zh-CN.md: installation, commands, behavior, and user-facing limitations.skills/bilingual-paper-translator/SKILL.md: authoritative agent workflow.docs/SKILL.zh-CN.md: Chinese mirror of the skill workflow; keep behavior aligned with the English source.skills/bilingual-paper-translator/references/python-environment.mdand its Chinese mirror: runtime policy.
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.

