overleaf-sync
Ce qu’il fait
Cette skill relie un dossier d'article local à un projet Overleaf via le pont Git d'Overleaf. Elle s'adresse aux auteurs qui rédigent dans Overleaf avec des co-auteurs, mais lancent aussi des contrôles IA sur leurs fichiers.
Quand l’utiliser
- ✓Quand vous voulez modifier dans Overleaf avec des co-auteurs tout en lançant des contrôles locaux.
- ✓Quand un co-auteur modifie l'article dans Overleaf et que vous voulez récupérer ces changements.
- ✓Quand vous voulez envoyer un article local vers Overleaf pour qu'un co-auteur puisse le modifier.
Lien du skill
https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/blob/main/skills/overleaf-sync/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Je veux que mon dossier d'article local soit synchronisé avec mon projet Overleaf, pour que mon co-auteur puisse modifier là-bas et que je lance les contrôles en local.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'agent crée une copie locale du projet Overleaf et synchronise les modifications dans les deux sens. Vous saisissez vous-même le jeton d'accès dans l'invite du terminal, afin que l'agent ne le voie jamais.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
Overleaf Sync
Bridge a local paper directory with an Overleaf project so that:
- You can keep editing in the Overleaf web UI (or share editing access with collaborators)
- ARIS can read your changes, run audits (
/paper-claim-audit,/citation-audit,/auto-paper-improvement-loop), and push fixes back
This uses the official Overleaf Git bridge (Premium feature). The agent never sees your authentication token — you do the one-time auth manually so the token lives in macOS Keychain, not in chat history or .git/config.
When to Use This Skill
- You want to use Overleaf as the editing surface (better collaboration, shared with team) but still run ARIS pipelines locally
- You want to take an existing local ARIS paper and push it to Overleaf for a co-author to edit
- A collaborator made changes in Overleaf and you want to pull + diff them before continuing local work
Constants
- CLONE_DIR_DEFAULT =
paper-overleaf(sibling of existingpaper/, NOT insidepaper/) - CREDENTIAL_HELPER =
osxkeychain(macOS) /manager(Windows) /cache(Linux fallback) - TOKEN_HANDLING = NEVER write token to disk, env var, or chat. User pastes it once into the terminal credential prompt; the OS keychain stores it from then on.
Architecture
┌─────────────────┐ git pull/push ┌─────────────────┐
│ Local paper/ │ ◄─── rsync ──── ► │ paper-overleaf/ │ ◄──► Overleaf web
│ (ARIS audits) │ │ (git bridge) │ (collaborators)
└─────────────────┘ └─────────────────┘
The paper-overleaf/ directory is a git clone of the Overleaf project. The paper/ directory is the working copy where ARIS skills run. They are kept in sync via rsync.
Single-source-of-truth rule: at any given time, treat one of them as authoritative for active editing. Switch directions explicitly with pull or push, and run a status check before either to surface unexpected divergence.
Sub-commands
setup <project-id> — one-time
Sets up the bridge for a new Overleaf project. The user runs this in their own terminal, never through the agent. The skill ships with a hardened setup script that:
- Refuses to run unless stdin/stdout are a TTY (won't run inside an agent harness)
- Reads the token from a hidden prompt (no chat history, no shell history)
- Strips the token from the remote URL immediately after cloning
- Primes the OS keychain so subsequent agent operations are auth-free
- Auto-installs a
pre-commithook inpaper-overleaf/.git/hooks/that refuses to commit any blob containing the token patternolp_[A-Za-z0-9]{20,}— a hard technical block, not a behavioral rule
The agent's only role here is to print the user instruction:
Run this in your own terminal (NOT through me):
bash <ARIS_REPO>/tools/overleaf_setup.sh <project-id-or-url>
When it finishes, tell me "setup done" and I'll verify.
After the user reports "setup done", the agent verifies (token-free):
cd paper-overleaf
git remote -v # must show URL WITHOUT token
git config --get credential.helper
git fetch && git log --oneline -3 # must succeed without prompting
ls .git/hooks/pre-commit # must exist
bash <ARIS_REPO>/tools/overleaf_audit.sh . # must report "Audit clean"
If paper-overleaf/ exists but is empty (new Overleaf project), the agent then mirrors local paper/ into it (see push workflow).
pull — before each editing session
cd paper-overleaf && git pull --ff-only
# Show what changed since last pull
LAST=$(git rev-parse HEAD@{1})
git diff --stat $LAST..HEAD
git diff $LAST..HEAD -- 'sec/*.tex' # detailed view for prose changes
Diff protocol — DO NOT blindly merge into local paper/. Overleaf edits frequently include:
- Half-finished sentences (collaborator clicked save mid-thought)
- Typos that aren't in canonical references (
LrageforLarge) - Commented-out blocks that may be intentional or may be a stash
- Number changes that should re-trigger
/paper-claim-audit - Cite key changes that should re-trigger
/citation-audit
For each diff hunk, decide one of:
| Hunk character | Action |
|---|---|
| Clean editorial improvement | Sync into paper/, no audit needed |
| Numerical / claim change | Sync, then re-run /paper-claim-audit |
New \cite{...} |
Sync, then re-run `/citation-audi |
Questions fréquentes
Faut-il un abonnement Overleaf payant ?
Oui. La skill indique que le pont Git officiel est une fonctionnalité Premium.
L'agent voit-il mon jeton ?
Non. Vous le collez une seule fois dans l'invite d'identifiants, et le trousseau du système d'exploitation le conserve.
Où se trouve la copie locale ?
Par défaut, elle est placée dans un dossier paper-overleaf à côté de votre dossier d'article existant.
Détails
Description originale de l’auteur
Two-way sync between a local paper directory and an Overleaf project, so ARIS audit/edit workflows stay on the local copy while collaborators edit in the Overleaf web UI. Use when user says \"同步 overleaf\", \"overleaf sync\", \"推送到 overleaf\", \"connect overleaf\", \"Overleaf 桥接\", \"pull overleaf\", \"push overleaf\", or wants to bridge their ARIS paper directory with an Overleaf project.
Popularité
- Étoiles GitHub
- 18k
- Position au classement
- #10557
- Licence
- MIT
- Mis à jour
- 02/11/2026
Commentaires
- …
Autres skills de ce dépôt
ablation-planner
18kAide votre agent à planifier les études d'ablation d'un article, en choisissant les tests que les relecteurs demanderont probablement une fois que les résultats principaux sont bons.
alphaxiv
18kPermet à votre agent de lire rapidement un article de recherche à l'aide des résumés AlphaXiv, avec le texte intégral ou la source LaTeX en secours, à partir d'un lien arXiv ou d'un identifiant.
analyze-results
18kAide votre agent à analyser les résultats d'expériences d'apprentissage automatique, à comparer les essais à une référence et à transformer les chiffres en constats clairs et en prochaines étapes.
arxiv
18kPermet à votre agent de chercher des articles académiques sur arXiv, de lire leurs détails et d'enregistrer les PDF dans votre bibliothèque pour un sujet de recherche.
Skills similaires
obsidian-vault-maintainer
394kAide votre agent à entretenir un coffre de mémoire compatible Obsidian, avec des liens wiki fonctionnels, des propriétés cohérentes et des sections générées sûres.
wiki-maintainer
394kAide votre agent à entretenir un wiki de mémoire OpenClaw avec des pages reproductibles, des blocs gérés sûrs et des contrôles des contradictions ou lacunes.
obsidian
394kPermet à votre agent de lire, rechercher, créer et modifier des notes, tâches, liens et propriétés Obsidian grâce à la ligne de commande officielle d'Obsidian.