sync-overleaf
Skill17 starsChanged 4 months agoMITView on GitHub
Use after producing or updating empirical tables/figures that belong in a paper. Copies updated artifacts from the project's results/ directory to the corresponding Overleaf-synced folder, preserving filenames, and reports what changed so the LaTeX draft picks them up on next compile.
In this repository14 other files it gives its agents.
- codex-bridgeSkill
- codex-review-planSkill
- overleafSkill
- plan-debateSkill
- power-firstSkill
- referee-panelSkill
- refresh-pipelineSkill
- review-codex-planSkill
- robustness-batterySkill
- spec-curve-sweepSkill
- stata-preflightSkill
- tableSkill
- verify-claimsSkill
- verify-numbers-pipelineSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 8 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
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 23
Copy: only NEW + CHANGED files. Preserve filenames exactly so \input{} / \includegraphics{} calls don't need editing.
- Very specific: line 35
Targeted edits only: Never regenerate or overwrite a whole .tex file when an Edit on the specific block will do.
- Distinctive: line 41
After ANY table or figure edit:
- Distinctive: line 44
Look at the affected page — page-fit, header layout, rendering — don't infer it from a clean exit code.
- Distinctive: line 47
Never say a fit is "fixed" without a compile that shows it.
- Distinctive: line 51
Never delete files in the Overleaf folder — only add/overwrite.
- Distinctive: line 52
If a filename collision exists but content differs intentionally (e.g., anonymized version), confirm with the user before overwriting.
- Distinctive: line 53
After copy, suggest the user trigger a fresh Overleaf compile.
- Distinctive: line 57
Do not paste table content into chat — only path + size.
- Distinctive: line 58
Do not assume the Overleaf folder structure.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Sync Overleaf
Standard post-step to push updated tables/figures into an Overleaf-synced folder.
Inputs (infer if obvious, otherwise ask)
- Source directory in the project (typically
results/tables/andresults/figures/). - Destination Overleaf folder (typically under
~/Dropbox (MIT)/Apps/Overleaf/<paper>/— confirm location; project folders may live in separate unsynced Dropbox roots).
Steps
- Confirm destination exists and is synced —
ls -la <dest>and check files are real (not Dropbox placeholders). - Diff — for each source file, compare to the existing destination file:
Build a list of: NEW, CHANGED, UNCHANGED.diff -q source dest - Copy only NEW + CHANGED files. Preserve filenames exactly so
\input{}/\includegraphics{}calls don't need editing. - Report — list NEW and CHANGED file paths and their sizes. ≤ 10 lines.
Editing .tex files (not just copying artifacts)
The user edits in the Overleaf web editor while Claude edits locally. Treat this as a two-way sync, never a one-way push.
- Pull first. Invoke the
overleafskill (or runoverleaf-sync-now sync) to refresh the local copy before touching any.tex/.bib. - Diff before writing. Show the user a diff of the pulled Overleaf version against the local copy. If they differ, stop and ask which to keep. Do not merge on your own.
- Targeted edits only. Never regenerate or overwrite a whole
.texfile when an Edit on the specific block will do. Regenerating clobbers the user's web-editor prose — this has already cost recovery from Overleaf version history.
Verify the compile before reporting done
After ANY table or figure edit:
- Recompile the document.
- Look at the affected page — page-fit, header layout, rendering — don't infer it from a clean exit code.
- Report the actual measurement (e.g.,
Overfull \hbox (83.0pt too wide) at line 412). Never say a fit is "fixed" without a compile that shows it.
Conventions
- Never delete files in the Overleaf folder — only add/overwrite.
- If a filename collision exists but content differs intentionally (e.g., anonymized version), confirm with the user before overwriting.
- After copy, suggest the user trigger a fresh Overleaf compile.
Anti-patterns
- Do not paste table content into chat — only path + size.
- Do not assume the Overleaf folder structure; confirm first if not previously used in this session.
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.

