overleaf-sync

overleaf-sync is a skill for Claude Code from Mexregkan/claude-for-researchers. It costs 0 tokens per session (1,745 once invoked), scanned A, original, MIT.

A safe synchronization workflow for a local Git copy of an Overleaf project. Overleaf is an online collaborative writing service commonly used for LaTeX documents, and Git is used here to exchange project files.

In plain words
What is it for?
Use it to pull updates from Overleaf, check whether the online project is ahead, or publish local edits when explicitly requested. It separates the untouched online mirror from the branch where you edit.
Why use it?
It helps bring collaborators’ changes into your local copy without erasing their work. Publishing local edits is deliberately restricted and requires an explicit action.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to pull updates from Overleaf, check whether the online project is ahead, or publish local edits when explicitly requested. It separates the untouched online mirror from the branch where you edit.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mexregkan/claude-for-researchers/overleaf-sync
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Mexregkan/claude-for-researchers --skill overleaf-sync
Clone the repo
git clone --depth 1 https://github.com/Mexregkan/claude-for-researchers

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for overleaf-sync

README.md
[![agentmods](https://agentmods.dev/badge/skills/mexregkan/claude-for-researchers/overleaf-sync/github.svg)](https://agentmods.dev/skills/mexregkan/claude-for-researchers/overleaf-sync)
Your own site
<a href="https://agentmods.dev/skills/mexregkan/claude-for-researchers/overleaf-sync"><img src="https://agentmods.dev/badge/skills/mexregkan/claude-for-researchers/overleaf-sync/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for overleaf-sync

Your own site · 80×15
<a href="https://agentmods.dev/skills/mexregkan/claude-for-researchers/overleaf-sync"><img src="https://agentmods.dev/badge/skills/mexregkan/claude-for-researchers/overleaf-sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,745 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 98
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Privilege Escalation · line 110
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01745
Opus 5 $0.00000 $0.00873
Sonnet 5 $0.00000 $0.00349
Haiku 4.5 $0.00000 $0.00175

Measured 11d ago against content hash b2893c965994, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

overleaf-sync scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

starter/.claude/skills/overleaf-sync/SKILL.md · 125 lines

How it starts

The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.

overleaf-sync

Sync a local git clone of a shared Overleaf project: pull collaborators' latest, check whether Overleaf has moved ahead, or (only on explicit request) publish your local edits back — without ever erasing collaborators' work.

Background: the setup this skill assumes

Overleaf exposes each project as a git remote (Overleaf menu → Sync → Git; paid feature). The shared project is cloned into a subfolder of your repo — Overleaf/ by convention — which is its OWN git repo, separate from your project's repo.

  • Remote origin = https://git.overleaf.com/<project-id>.
  • Auth is an Overleaf git token (olp_…), stored in the OS keychain via git credential so pulls are non-interactive (username git, not your email).
  • Branch layout inside Overleaf/:
    • master — pristine mirror of Overleaf. Only ever updated by git pull. NEVER edit here.
    • local-edits — where you edit offline.
  • Push is physically disabled as a safety net: remote.origin.pushurl is set to no_push, so git push fails until deliberately re-enabled. Clone, fetch, and pull only READ from Overleaf and cannot change the shared project; only push writes.
  • Overleaf/ should be in your project's top-level .gitignore so the shared paper is never pushed to your personal repo. (See the one-time setup note at the end.)

When to invoke

/overleaf-sync [status|pull|diff|publish] — default action is status.

Use status/pull/diff freely (read-only w.r.t. Overleaf). Use publish ONLY when the user explicitly says to publish/push, and treat it as the one dangerous operation.

Preconditions (check first, every time)

  1. Overleaf/ exists and is a git repo: git -C Overleaf rev-parse --git-dir. If not, stop and point the user to the one-time setup at the end of this file; do not improvise.
  2. Run all git commands with -C Overleaf. If the project root path has spaces, quote it; the Overleaf clone dir itself should have no spaces.

Actions

Read the full file on GitHub · 125 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 125 lines · 0 tokens per session scan A b2893c965994

Subscribe to this mod's changes

overleaf-sync is a skill published in the GitHub repository Mexregkan/claude-for-researchers (52 stars, last pushed 7d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,745 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

pre-commit-audit

Deliver a fast pre-commit safety scan: file size, anonymity (author / affiliation strings in tex/bib), hardcoded secrets, and invisible-Unicode carriers. Use when the user requests a fast pre-commit safety scan: file size, anonymity (author / affiliation strings in tex/bib), hardcoded secrets, and invisible-Unicode…

flonat/flonat-research · 100 tokens

review-response

Systematic reviewer response workflow: parse comments, classify by severity, develop response strategy, write structured rebuttal. Use when asked to 'write rebuttal', 'respond to reviewers', 'draft review response', or 'handle R&R'.

flonat/flonat-research · 50 tokens

latex-diff

Compare two LaTeX files, project directories, or Git revisions and produce human-readable plus machine-readable severity-graded semantic changes. Use when determining what changed between manuscript versions or preparing a revision audit bundle. Not for proofreading one version; use $proofread.

flonat/flonat-research · 56 tokens

worktree-execution

Creates, pins, and cleans isolated Git worktree pairs for comparison trials. Use only when a Rashomon prompt or skill evaluation needs paired execution environments or orphan recovery.

shinpr/rashomon · 38 tokens

hmem-release

Pre-publish checklist for hmem: skills synced, version bumped, tests green, nothing forgotten. Use before npm publish or when the user says 'release', 'publish', 'push a release', or 'neue Version'.

Bumblebiber/hmem · 50 tokens

shipit

Turn finished work into a clean commit and pull request. Always asks first whether the commit and PR should carry AI/bot authorship attribution or stay fully human-authored, then matches the repository's existing commit conventions, splits work into logical commits, and writes a PR body with context, risk, and…

nazmulnahid-git/Ai-Stack · 86 tokens