Skip to content
Skills Library
Science & research · Tool integration

overleaf-editing

/overleaf-editing

How to read and edit Overleaf documents through the overleaf_* MCP tools without disrupting people who have the project open. Use whenever you are about to read, edit, create, move or delete files in an Overleaf project, or when a tool result contains an <external-changes> block, EDIT_NO_MATCH, EDIT_AMBIGUOUS, DOC_CHANGED_EXTERNALLY or DOC_NOT_READ.

Licence
AGPL-3.0
Last repository change
20.09.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 20.09.2026, without references to retired models or APIs.

Licence

AGPL-3.0, copyleft: przeróbki udostępniane innym muszą mieć tę samą licencję.

What it does and when to use it

How to read and edit Overleaf documents through the overleaf_* MCP tools without disrupting people who have the project open. Use whenever you are about to read, edit, create, move or delete files in an Overleaf project, or when a tool result contains an <external-changes> block, EDIT_NO_MATCH, EDIT_AMBIGUOUS, DOC_CHANGED_EXTERNALLY or DOC_NOT_READ.

Original author description

How to read and edit Overleaf documents through the overleaf_* MCP tools without disrupting people who have the project open. Use whenever you are about to read, edit, create, move or delete files in an Overleaf project, or when a tool result contains an <external-changes> block, EDIT_NO_MATCH, EDIT_AMBIGUOUS, DOC_CHANGED_EXTERNALLY or DOC_NOT_READ.

How it works

  1. The loop
  2. Rules for overleafeditdoc
  3. <external-changes> — read it every time
  4. Avoid overleafwritedoc
  5. Files and folders
Original SKILL.md headings · 37 lines, 486 words
SKILL.md preview
---
name: overleaf-editing
description: How to read and edit Overleaf documents through the overleaf_* MCP tools without disrupting people who have the project open. Use whenever you are about to read, edit, create, move or delete files in an Overleaf project, or when a tool result contains an <external-changes> block, EDIT_NO_MATCH, EDIT_AMBIGUOUS, DOC_CHANGED_EXTERNALLY or DOC_NOT_READ.
---

# Editing Overleaf documents

These are **live, shared documents**. A person may be typing in the same file right now, and your edits appear in their editor within about a tenth of a second, as if a co-author typed them.

## The loop

1. `overleaf_list_projects` → `overleaf_get_project_tree` to find paths. With several Overleaf instances, pass `host` on every call (`overleaf_list_hosts`); project ids belong to one host.
2. `overleaf_read_doc` once per file you will touch. For a big file you only need part of, `overleaf_read_doc_range`.
3. Change text with **`overleaf_edit_doc`**: `edits: [{ old_string, new_string }]`.
4. Check the `diff` in the result. Do not re-read the file to verify.

## Rules for `overleaf_edit_doc`

- `old_string` must match **exactly one** place. Copy it from the doc and include enough surrounding text to be unique. `EDIT_AMBIGUOUS` lists the matching lines — widen the string. Use `replace_all: true` only when you mean every occurrence.
- Make the **smallest edit that does the job**. Replace the sentence, not the section: small edits merge cleanly with what others are typing and keep their cursor where it was.
- Several edits to one file go in **one call**. They apply in order, each seeing the previous result, and atomically — if one fails, none apply.
- Insert by repeating an anchor: `old_string: "\\section{Results}"`, `new_string: "\\section{Results}\nNew paragraph."`. Delete with `new_string: ""`.
- JSON needs LaTeX backslashes doubled: `\\cite{x}`.
- Overleaf cannot store emoji or other characters outside the Basic Multilingual Plane; they are stored as `\uFFFD` and the result's `notes` says so. Use a LaTeX command instead.

## `<external-changes>` — read it every time

A tool result may end with an `<external-changes>` block: a diff of what collaborators changed since your previous call, with who and when. It replaces re-reading. Treat it as ground truth:

- Your memory of those lines is stale; use the new text in later `old_string`s.
- **Never revert a human's change** because it differs from what you wrote or expected. If it conflicts with your task, say so and ask.
- `EDIT_NO_MATCH` right after someone edited the same spot is normal: take the current text from the diff (or `context.closest`) and retry. Nothing was written.

## Avoid `overleaf_write_doc`

It replaces the whole file from your possibly stale copy. It is refused if you have not read the doc (`DOC_NOT_READ`) or someone edited it since (`DOC_CHANGED_EXTERNALLY`). Those refusals are protecting someone's work: switch to `overleaf_edit_doc`. Only pass `overwrite: true` if the user explicitly asked to replace the file wholesale. It is fine for a new or empty file.

## Files and folders

`overleaf_create_doc` (with `content`), `overleaf_create_folder`, `overleaf_upload_file` (base64, for images and PDFs), `overleaf_rename`, `overleaf_move`, `overleaf_delete_entity`. `parentPath: ""` is the project root. Deleting is immediate and shared — confirm with the user before deleting anything you did not create in this session. After a rename or move, update the `\input`, `\include`, `\includegraphics` and `\bibliography` lines that point at the old path.

Versions

The database has no other skills named overleaf-editing.

Database snapshot: 13.11.2026 · package version 8d95eba4de5e (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100overleaf-setup
    Install, log in to, and troubleshoot the overleaf-mcp-rt MCP server. Use when Overleaf tools are missing or failing (OVERLEAF_AUTH_FAILED, INVALID_CONFIG, PROXY_AUTH_FAILED, "connection closed"), when the user wants to connect a new Overleaf instance or overleaf.com, or when a…
  • 100overleaf
    Set up and use a reproducible Overleaf MCP for Git-backed LaTeX editing, reviewed publishing, optional GitHub sync, and local or Overleaf online compilation on Windows and macOS. Use for connecting or operating Overleaf projects, not generic prose polishing without a project.
  • 100overleaf-sync
    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…
  • 100overleaf-sync
    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 \"Sync overleaf\", \"overleaf sync\", \"Push it. overleaf\", \"connect overleaf\",…
  • 100setup
    This skill should be used when user asks to "set up overleaf", "configure overleaf cookie", "overleaf auth failed", "overleaf 401", "overleaf session expired", "overleaf unauthorized", or needs to install or refresh their Overleaf session cookie for the overleaf-skills plugin.
  • 100review-overleaf
    This skill should be used when user asks to "fetch overleaf review comments", "address overleaf reviews", "apply overleaf comments", "review my overleaf paper", "sync overleaf feedback to local", "what comments are on my overleaf doc", or wants to act on Overleaf reviewer…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.