overleaf-sync
यह क्या करती है
यह स्किल Overleaf के Git bridge के ज़रिए लोकल पेपर फ़ोल्डर को Overleaf प्रोजेक्ट से जोड़ती है। यह उन लेखकों के लिए है जो सह-लेखकों के साथ Overleaf में लिखते हैं, पर अपनी फ़ाइलों पर AI जाँच भी चलाते हैं।
कब इस्तेमाल करें
- ✓जब आप सह-लेखकों के साथ Overleaf में एडिट करना चाहते हों और साथ ही लोकल जाँच भी चलाना चाहते हों।
- ✓जब कोई सहयोगी Overleaf में पेपर बदले और आप वे बदलाव लेना चाहते हों।
- ✓जब आप लोकल पेपर Overleaf पर भेजना चाहते हों, ताकि सह-लेखक उसे एडिट कर सके।
Skill का लिंक
https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/blob/main/skills/overleaf-sync/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरा लोकल पेपर फ़ोल्डर मेरे Overleaf प्रोजेक्ट के साथ सिंक कीजिए, ताकि मेरे सह-लेखक वहाँ एडिट कर सकें और मैं लोकली जाँच चला सकूँ।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट Overleaf प्रोजेक्ट की एक लोकल कॉपी बनाता है और दोनों दिशाओं में बदलाव सिंक करता है। एक्सेस टोकन आप टर्मिनल के प्रॉम्प्ट में खुद डालते हैं, इसलिए एजेंट उसे कभी नहीं देखता।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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 |
अक्सर पूछे जाने वाले सवाल
क्या मुझे पेड Overleaf प्लान चाहिए?
हाँ। स्किल कहती है कि आधिकारिक Git bridge एक Premium फ़ीचर है।
क्या एजेंट मेरा टोकन देखता है?
नहीं। आप उसे एक बार credential प्रॉम्प्ट में डालते हैं, और ऑपरेटिंग सिस्टम की keychain उसे सेव करती है।
लोकल कॉपी कहाँ जाती है?
डिफ़ॉल्ट रूप से वह आपके मौजूदा पेपर फ़ोल्डर के बगल में paper-overleaf फ़ोल्डर में जाती है।
जानकारी
लेखक का मूल विवरण
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.
लोकप्रियता
- GitHub स्टार
- 18k
- रैंकिंग में स्थान
- #10557
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
ablation-planner
18kआपके एजेंट को किसी शोधपत्र के लिए ablation अध्ययन की योजना बनाने में मदद करती है, मुख्य परिणाम अच्छे दिखने पर समीक्षकों द्वारा माँगे जाने वाले परीक्षण चुनते हुए।
alphaxiv
18kआपके एजेंट को AlphaXiv सार से एक शोधपत्र जल्दी पढ़ने देती है, पूरे पाठ या LaTeX स्रोत को बैकअप के रूप में रखकर, arXiv लिंक या ID से।
analyze-results
18kआपके एजेंट को मशीन लर्निंग प्रयोगों के परिणामों का विश्लेषण करने देती है, रनों की तुलना आधार रेखा से करती है, और आँकड़ों को स्पष्ट निष्कर्षों और अगले कदमों में बदलती है।
arxiv
18kआपके एजेंट को arXiv पर शैक्षणिक शोधपत्र खोजने, उनका विवरण पढ़ने, और किसी शोध विषय के लिए PDF आपकी लाइब्रेरी में सहेजने देती है।
मिलती-जुलती skills
obsidian-vault-maintainer
394kयह आपके एजेंट को Obsidian के अनुकूल मेमोरी vault व्यवस्थित रखने देती है, जिसमें काम करने वाले wiki लिंक, एक जैसी properties और सुरक्षित जेनरेटेड सेक्शन हों।
wiki-maintainer
394kयह आपके एजेंट को OpenClaw मेमोरी wiki दोहराए जा सकने वाले पेजों, सुरक्षित मैनेज्ड ब्लॉक्स और विरोधाभास या कमियों की जांच के साथ संभालने देती है।
obsidian
394kयह आपके एजेंट को आधिकारिक Obsidian कमांड-लाइन से Obsidian नोट्स, टास्क, लिंक और properties पढ़ने, खोजने, बनाने और बदलने देती है।