Refresh local .tex/.bib files against Overleaf before AI edits, so the agent never edits a stale copy (default Overleaf-to-Dropbox sync lags 10-20 min). Refresh path: probe /project/<id>/updates (read-only), skip if nothing changed, skip if all changes were our own Dropbox round-trips, else download-zip and extract only the web-origin changed files. WHEN: (1) before editing .tex/.bib/.cls/.sty/.bst under Apps/Overleaf/<project>/ run overleaf-sync-now sync; (2) on user request to refresh; (3) for first-time auth run overleaf-sync-now login. Claude Code: a PreToolUse hook auto-runs sync; manual invocation rarely needed. Codex CLI: invoke sync explicitly. AUTH RECOVERY when sync/setup fails: run overleaf-sync-now login (browser-assisted, works on Chrome 130+). Do NOT tell the user to 'log into Overleaf' in their daily browser — on Chrome 130+ app-bound encryption blocks on-disk cookie extraction regardless of login state. See body for full recovery flow.
$npx -y skills add hanlulong/overleaf-sync-now --skill overleaf_sync_nowInstalls into the current project.
Run `npx skills use "https://github.com/hanlulong/overleaf-sync-now" --skill "hanlulong/overleaf-sync-now/overleaf_sync_now"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/hanlulong/overleaf-sync-now" that are relevant to the current task. Run `npx skills add "https://github.com/hanlulong/overleaf-sync-now"` and select the relevant skills, then follow their instructions.