inno-rclone-to-overleaf
Skill738 starsChanged 8 months agoMITView on GitHub
Access Overleaf projects via CLI.
In this repository34 other files it gives its agents.
- academic-researcherSkill
- bioinformatics-init-analysisSkill
- biorxiv-databaseSkill
- claude-code-dispatchSkill
- codex-dispatchSkill
- dataset-discoverySkill
- gemini-deep-researchSkill
- inno-code-surveySkill
- inno-deep-researchSkill
- inno-experiment-analysisSkill
- inno-experiment-devSkill
- inno-figure-genSkill
- inno-grant-proposalSkill
- inno-idea-evalSkill
- inno-idea-generationSkill
- inno-paper-reviewerSkill
- inno-paper-writingSkill
- inno-pipeline-plannerSkill
- inno-prepare-resourcesSkill
- inno-reference-auditSkill
- literature-pdf-ocr-librarySkill
- making-academic-presentationsSkill
- ml-paper-writingSkill
- paper-analyzerSkill
- paper-finderSkill
- paper-image-extractorSkill
- Remote Experiment ExecutionSkill
- Research Experiment DriverSkill
- Research Idea ConvergenceSkill
- Research Literature TraceSkill
- research-newsSkill
- Research Paper HandoffSkill
- Research Pipeline PlannerSkill
- scientific-writingSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 9 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 42
Use this skill when the user request matches its research workflow scope.
- Very specific: line 46
Treat scripts/ as optional helpers.
- Distinctive: line 51
Prefer inspection before mutation when invoking bundled scripts.
- Distinctive: line 52
If a required runtime, CLI, credential, or API is unavailable, explain the blocker and continue with the best manual fallback instead of …
- Distinctive: line 53
Do not write generated artifacts back into the skill directory.
- Distinctive: line 87
If you get auth errors:
- Distinctive: line 88
Ask user: "Are you logged into Overleaf in your browser?"
- Distinctive: line 89
If on macOS: "Did you approve the keychain access prompt with 'Always Allow'?"
- Distinctive: line 170
Ask: merge? overwrite local?
- Distinctive: line 171
Only proceed after Eason confirms
- Very specific: line 192
Project not found: Use exact project name (case-sensitive), check with pyoverleaf ls
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
inno-rclone-to-overleaf
Canonical Summary
Access Overleaf projects via CLI. Use for reading/writing LaTeX files, syncing local .tex files to Overleaf, downloading projects, and managing Overleaf project structure. Triggers on Overleaf, LaTeX sync, or tex file uploads to Overleaf.
Trigger Rules
Use this skill when the user request matches its research workflow scope. Prefer the bundled resources instead of recreating templates or reference material. Keep outputs traceable to project files, citations, scripts, or upstream evidence.
Resource Use Rules
- Treat
scripts/as optional helpers. Run them only when their dependencies are available, keep outputs in the project workspace, and explain a manual fallback if execution is blocked.
Execution Contract
- Resolve every relative path from this skill directory first.
- Prefer inspection before mutation when invoking bundled scripts.
- If a required runtime, CLI, credential, or API is unavailable, explain the blocker and continue with the best manual fallback instead of silently skipping the step.
- Do not write generated artifacts back into the skill directory; save them inside the active project workspace.
Upstream Instructions
Overleaf
CLI tool to interact with Overleaf projects using browser cookies for authentication.
GitHub: https://github.com/jkulhanek/pyoverleaf
Requirements
- Python 3.8+
- pyoverleaf (
pipx install pyoverleaf) - User logged into Overleaf in Chrome/Firefox
Security Considerations
⚠️ Keychain Access Required: pyoverleaf needs "Always Allow" keychain access to read browser cookies. This grants the tool access to your browser's cookie storage.
Security audit: We have audited pyoverleaf v0.1.7 and found it safe. The codebase is small and readable. Before installing, agents can self-audit the latest version at the GitHub repo above.
Authentication Setup
pyoverleaf authenticates by reading cookies from your browser. The user must:
- Log into Overleaf in Chrome or Firefox (visit overleaf.com and sign in)
- Grant keychain access on first run (macOS will prompt for "Always Allow")
# Test auth - user should run this in their terminal first
pyoverleaf lsIf you get auth errors:
- Ask user: "Are you logged into Overleaf in your browser?"
- If on macOS: "Did you approve the keychain access prompt with 'Always Allow'?"
- User may need to run
pyoverleaf lsmanually in terminal to trigger the keychain prompt
Note: The agent cannot log in for the user. Browser authentication must be done by the user directly.
CLI Commands
# List all projects
pyoverleaf ls
# List files in project
pyoverleaf ls "Project Name"
# Read file content
pyoverleaf read "Project Name/main.tex"
# Write file (stdin → Overleaf)
cat local.tex | pyoverleaf write "Project Name/main.tex"
# Create directory
pyoverleaf mkdir "Project Name/figures"
# Remove file/folder
pyoverleaf rm "Project Name/old-draft.tex"
# Download project as zip
pyoverleaf download-project "Project Name" output.zipCommon Workflows
Download from Overleaf
pyoverleaf download-project "Project Name" /tmp/latest.zip
unzip -o /tmp/latest.zip -d /tmp/latest
cp /tmp/latest/main.tex /path/to/local/main.texUpload to Overleaf (Python API recommended)
The CLI write command has websocket issues. Use Python API for reliable uploads:
import pyoverleaf
api = pyoverleaf.Api()
api.login_from_browser()
# List projects to get project ID
for proj in api.get_projects():
print(proj.name, proj.id)
# Upload file (direct overwrite)
project_id = "your_project_id_here"
with open('main.tex', 'rb') as f:
content = f.read()
root = api.project_get_files(project_id)
api.project_upload_file(project_id, root.id, "main.tex", content)Why direct overwrite? This method preserves Overleaf's version history. Users can see exactly what changed via Overleaf's History feature, making it easy to review agent edits and revert if needed.
Self-hosted Overleaf
# Via env var
export PYOVERLEAF_HOST=overleaf.mycompany.com
pyoverleaf ls
# Via flag
pyoverleaf --host overleaf.mycompany.com lsEason's Workflow Requirements
When pulling from Overleaf:
- Download Overleaf version to
/tmp/ - Compare with local version using
diff - Report differences to Eason (summarize what changed)
- Ask: merge? overwrite local? overwrite Overleaf? or other?
- Only proceed after Eason confirms
Push rules (from TOOLS.md):
- ❌ 禁止自行推送到 Overleaf
- ✅ 只能從 Overleaf 拉到 local
- ⚠️ 推送需要 Eason 明確授權,每次授權只能推一次
Example
Here's an example of using the Overleaf skill to remove em dashes (a common AI writing artifact) from a paper and push the changes:
Image: Example: Remove em dashes and push to Overleaf
Troubleshooting
- Auth error / websocket error: Open Overleaf in Chrome browser first (
open -a "Google Chrome" "https://www.overleaf.com/project"then wait 5s) to refresh cookies, then retry - "scheme https is invalid" (websocket redirect bug): The default host
overleaf.comcauses a 301→www.overleaf.comredirect that breaks websocket. Fix: setPYOVERLEAF_HOST=www.overleaf.com:cat main.tex | PYOVERLEAF_HOST=www.overleaf.com pyoverleaf write "Project/main.tex" - Keychain Access Denied (macOS): pyoverleaf needs keychain access to read browser cookies. User must run
pyoverleaf lsin their terminal and click "Always Allow" on the keychain prompt - Project not found: Use exact project name (case-sensitive), check with
pyoverleaf ls - Permission denied: User may not have edit access to the project
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

