Langsung ke konten
Skillpedia
Menulis18k ยท #10557

overleaf-sync

Fungsinya

Skill ini menghubungkan folder makalah lokal dengan proyek Overleaf melalui jembatan Git Overleaf. Skill ini untuk penulis yang menulis di Overleaf bersama rekan tetapi juga menjalankan pemeriksaan AI pada file mereka.

Kapan dipakai

  • โœ“Saat Anda ingin menyunting di Overleaf bersama rekan penulis sambil tetap menjalankan pemeriksaan lokal.
  • โœ“Saat rekan mengubah makalah di Overleaf dan Anda ingin menarik perubahan itu.
  • โœ“Saat Anda ingin mendorong makalah lokal ke Overleaf agar rekan bisa menyuntingnya.

Link skill

https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/blob/main/skills/overleaf-sync/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/blob/main/skills/overleaf-sync/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit โ†’

Contoh permintaan ke AI

โ€œSaya ingin folder makalah lokal saya tersinkron dengan proyek Overleaf saya, agar rekan saya bisa menyunting di sana dan saya bisa menjalankan pemeriksaan secara lokal.โ€

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent menyiapkan salinan lokal dari proyek Overleaf dan menyinkronkan perubahan ke dua arah. Anda sendiri memasukkan token akses di prompt terminal, sehingga agent tidak pernah melihatnya.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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 existing paper/, NOT inside paper/)
  • 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:

  1. Refuses to run unless stdin/stdout are a TTY (won't run inside an agent harness)
  2. Reads the token from a hidden prompt (no chat history, no shell history)
  3. Strips the token from the remote URL immediately after cloning
  4. Primes the OS keychain so subsequent agent operations are auth-free
  5. Auto-installs a pre-commit hook in paper-overleaf/.git/hooks/ that refuses to commit any blob containing the token pattern olp_[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 (Lrage for Large)
  • 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
Pertanyaan umum

Apakah perlu paket Overleaf berbayar?

Ya. Skill menyatakan jembatan Git resmi adalah fitur Premium.

Apakah agent melihat token saya?

Tidak. Anda menempelkannya sekali di prompt kredensial, dan keychain sistem operasi yang menyimpannya.

Di mana salinan lokal disimpan?

Secara bawaan di folder paper-overleaf di samping folder makalah Anda yang sudah ada.

Detail

Deskripsi asli dari pembuat

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.

repo: wanshuiyin/Auto-claude-code-research-in-sleep

Popularitas

Bintang GitHub
18k
Peringkat
#10557
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • โ€ฆ

Skill lain dari repositori ini

Skill serupa