Логотип Overleaf Remote

Overleaf Remote

Сообщество
qinshengqian
overleaf-remote

Install and use the bundled olcli to read, inspect, create, edit, precisely patch, organize, upload to, download from, and compile Overleaf projects without maintaining a local pull/push checkout. Prefer the persistent live session for reading and editing remote documents. Use for Overleaf CLI setup, session-cookie authentication, direct remote file operations, or diagnosing olcli access and synchronization problems.

Обзор

Издательqinshengqian
Репозиторийoverleaf-remote-skills
Название навыкаoverleaf-remote
Звёзды
105
Форки
8
Файлы в комплекте
25
ЛицензияMIT
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Файлы в комплекте: 25

    Скрипты, шаблоны и справочные материалы, которые модель может читать во время работы. Файлы доступны только для чтения и никогда не выполняются.

  • Открытый исходный код

    Издатель навыка на GitHub — qinshengqian. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Overleaf Remote в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/qinshengqian/overleaf-remote-skills/tree/main
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/qinshengqian/overleaf-remote-skills.git \
  .claude/skills/overleaf-remote
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Overleaf Remote в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Overleaf Remote, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Overleaf Remote не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

Overleaf Remote

Start here: is a live session running?

olcli live is the default interface to a project, for reading as much as for editing. Before anything else, check whether a session already covers the project (olcli-live ls on macOS/Linux, or tmux ls):

  • If one is running, use it for everything. {"op":"ls"} lists the project, {"op":"read","path":...} reads a document, and the edit operations below change it.
  • If none is running, start one before reaching for one-shot commands: olcli live "My Paper", or a tmux window via scripts/run-live.sh so it outlives the terminal. It costs a few seconds and is reused for every later step.

Reach for olcli download only when you need the bytes on local disk: a ZIP, a binary, or compile output.

The session holds each joined document's current text and version, so it answers a read without a download and can tell you whether what you last read is still current. {"op":"stat"} reports whether the local copy is stale, and remoteChanged flags an edit from another connection. A full read is mirrored under ~/.olcli/live/<projectId>/, and {"op":"mirror","intervalMs":1000} keeps it current. The mirror is read-only: never edit those files, and never upload them back; change content only through replace/insert/append.

How edits work

Use the bundled olcli build for direct Overleaf operations. Prefer precise remote commands (replace, insert, append, prepend, write, mkdir, and upload --to) over a bidirectional pull/push checkout. The live mirror is not that: it is one-way and read-only. edit is not a general editor: it only fills an empty document, and write only creates a document or fills an empty one. Whole-document replacement is refused everywhere else, so plan every change as a targeted operation against the document's live content.

olcli live keeps one Overleaf collaboration WebSocket open, joins text documents lazily, and sends small versioned OT insert/delete operations instead of downloading and re-uploading whole files. It tracks collaborator updates and safely rejoins a document after a race. auto mode falls back to verified HTTP replacement only when the failure happened before an OT write was sent; uncertain writes are never retried blindly. Use --transport ot to require OT or --transport http to diagnose compatibility with older self-hosted instances.

An edit reply reports the document's new size, not what changed. olcli-live send closes that gap: when the op changes text it snapshots the document, applies the op, reads it again, and prints a unified diff of the change.

bash
olcli-live send paper '{"op":"replace","path":"main.tex","search":"old","replacement":"new"}'
olcli-live diff paper main.tex

The last pair stays cached, so diff can reprint it after the mirror has moved on. upload and the control ops still print their raw JSON reply, because a binary has nothing to diff.

Hosting the session

On macOS or Linux with tmux, keep the session alive rather than starting a new olcli live for every request: one tmux window per project, started with scripts/run-live.sh (it restarts the session if it exits, since tmux has no restart-on-crash of its own) and driven with scripts/olcli-live send, which waits for each reply. A tmux server is a single per-user process, so several terminals and several agent sessions share one connection. Never drive one window from two writers at once; the replies interleave and you can no longer tell which reply belongs to which operation.

Windows is out of scope for this: both helpers are bash scripts with no PowerShell twin, and the installer deliberately does not place them on PATH. On Windows, start olcli live per request and use the one-shot commands for single edits.

Route the task

  • For anything on a project, start from the live session (see Start here); its operations are in references/commands.md.
  • For first-time installation, authentication, or instructions for obtaining the Overleaf cookie on macOS or Windows, read references/setup-and-cookie.md completely.
  • For project, file, editing, upload, compile, and verification commands, read references/commands.md completely.
  • When authentication, PATH, folder resolution, upload, compilation, or content verification fails, read references/troubleshooting.md completely.

Operating rules

  1. Treat overleaf_session2 as a password. Never echo it, quote it in a report, commit it, place it in the Skill, or expose it in process listings when a hidden prompt is available.
  2. Authentication permits access; it does not by itself authorize creating, editing, deleting, renaming, or compiling a project. Confirm that the user's request covers the intended remote mutation.
  3. Default to the live session, for reads as well as writes (see Start here). Do not read a document with olcli download while a session is running: it wastes a round trip and throws away the session's record of whether that content is current.
  4. Never edit from a stale copy. Compute every change against the document's current remote content. Do not download a file, edit it locally, and upload it back; do not reuse content read earlier in this conversation, in a previous session, or from a local checkout. Re-read first. olcli live follows collaborator updates as they arrive, and the one-shot commands re-read immediately before writing. A base that was not freshly read may already be superseded by someone else's text.
  5. Never replace a whole document unless it is empty. edit, write, and upload --to refuse to overwrite a non-empty text document, because a wholesale write silently discards everything a collaborator added since that content was read. Express the change as targeted operations (replace, insert, append, prepend) instead. Delete and recreate a file only when the user has explicitly asked for a full rewrite.
  6. Resolve the exact project and remote path before mutation. Prefer a project ID when names are ambiguous.
  7. Use replace for an exact, unique change. It refuses multiple matches unless --all is explicit. Use insert with a stable anchor and --occurrence <n> when the anchor repeats.
  8. Use write to create a text document or fill an empty one, mkdir for folders, and upload --to for images, PDFs, bibliographies, archives, or other new files.
  9. Preserve the built-in versioned OT acknowledgement or HTTP read-after-write verification. For binary uploads, download to a temporary file and compare hashes or bytes when correctness matters.
  10. Review what the write actually did. Through a tmux session, olcli-live send prints the unified diff of every text edit; check that diff before moving on. olcli-live diff <window> <path> reprints the last one. Raw {"op":...} lines typed straight into olcli live, and the one-shot commands, print no diff.
  11. Do not start a pull/push daemon unless the user explicitly asks for ongoing synchronization. The direct commands are designed to avoid that workflow.
  12. After repeated authentication failures, ask the user to refresh the cookie; do not keep retrying a possibly expired credential.

Bundled implementation

The modified olcli source and compiled JavaScript live in assets/olcli/. Install it with the platform script in scripts/; do not silently substitute the public npm release because it may not contain this Skill's direct-edit commands.

  • macOS/Linux: bash scripts/install_olcli.sh
  • Windows PowerShell: powershell -ExecutionPolicy Bypass -File scripts/install_olcli.ps1
  • Verify macOS/Linux: bash scripts/check_olcli.sh
  • Verify Windows: powershell -ExecutionPolicy Bypass -File scripts/check_olcli.ps1

When changing the bundled implementation, update both assets/olcli/src/ and assets/olcli/dist/, run the TypeScript build, and validate this Skill before delivery.

Файлы в комплекте

Модель читает эти файлы по мере необходимости, пока навык загружен. Они доступны только для чтения и никогда не выполняются.

Часто задаваемые вопросы

Что делает навык ИИ Overleaf Remote?

Install and use the bundled olcli to read, inspect, create, edit, precisely patch, organize, upload to, download from, and compile Overleaf projects without maintaining a local pull/push checkout. Prefer the persistent live session for reading and editing remote documents. Use for Overleaf CLI setup, session-cookie authentication, direct remote file operations, or diagnosing olcli access and synchronization problems.

Зачем использовать Overleaf Remote в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Overleaf Remote — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Overleaf Remote в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/qinshengqian/overleaf-remote-skills/tree/main. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Overleaf Remote?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Overleaf Remote?

С любым количеством. В TypingMind вы можете использовать Overleaf Remote с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Overleaf Remote?

Да. Навык опубликован на GitHub по лицензии MIT. Издатель — qinshengqian. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇