Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

live-document-editing

БесплатноБез исполняемых скриптовНе проверен

Editing live collaborative documents (Google Docs, and shared docs generally) through browser automation - suggestion mode, per-change confirmation, and the…

Delphine-Lот Delphine-L★ 23 звезды на GitHub

Об этом скилле

Live Document Editing Skill

Overview

A live collaborative document is not a file. Other people are inside it right now, every keystroke lands on their screen immediately, and there is no staging area. Normal editing habits — open, change, verify — are unsafe here, because the "verify" step happens after the damage is already shared.

This skill exists because of a real incident (2026-10-01, VGP dual-curation manuscript): four search strings were typed into the body of a live co-authored manuscript, replacing the entire document, while four co-authors had it open. It was recoverable only because the document happened to be in Suggesting mode.

The two standing rules

Stated by Delphine, 2026-10-01. These are not defaults to be weighed against convenience.

1. Always work in Suggesting mode

Verify it, never assume it. It may say Editing because someone else left it that way.

Read the mode, do not infer it from the icon. read_page with filter: "interactive" returns the toolbar button by name — button "Suggesting mode" — which is unambiguous, unlike the pencil-versus-speech-bubble glyph. A second tell in the same output: button "Adding a tab is only available in editing mode" appears whenever the document is not in Editing mode.

Setting it is also safer than checking it: View -> Mode -> Suggesting is idempotent, so clicking it when already in Suggesting costs nothing and removes the question. Prefer the menu over the floating toolbar button, whose position shifts with window width.

View menu -> Mode -> Suggesting

Suggestion mode is the only thing standing between a mistake and a destroyed manuscript. In the incident above, the accidental replacement was recorded as four suggestion cards rather than as direct edits, so the co-authors' text was never actually altered — only proposed changes appeared in their margin.

2. Ask before every individual change

Per change. Not per batch, not per section, not "here are the twelve I'm about to make".

For each one, state:

  • the exact find string
  • the exact replacement
  • the match count (and which tab those matches are in)

Then wait. A batch approval is not approval of the twelfth item in the batch.

Reading a Google Doc: use mobilebasic, not the editor

The editor's body is rendered on a canvas. On a …/edit URL, get_page_text and read_page return the comment sidebar, the toolbar and the tab list — not the document text.

But the document IS readable. Open it at

https://docs.google.com/document/d/<id>/mobilebasic?tab=t.0

in a separate tab. That view renders the whole document as plain HTML, so get_page_text returns the entire manuscript and javascript_tool can slice it. It is read-only, it does not disturb the editing session, and it needs no download. Use a new tab and close it after; leave the user's editing tab alone.

Three things that will catch you out

1. It renders PENDING suggestions as though they were accepted. Verified 2026-10-22: a suggestion replacing 126.82 with 58.43 was unresolved in the comment list, yet the view showed 58.43 and no 126.82. So mobilebasic shows "the document if everyone clicks accept", not the committed text.

That is often exactly what you want to review — it is what co-authors are being asked to approve — but never report it as the document's current state. A reader deliberately holding changes unaccepted will see sentences that look broken, because half a replacement is a pending suggestion and the rest is not yet written. Those are mid-review artefacts, not defects.

To tell accepted from pending, read the comment list, not the text: an accepted suggestion carries a "Suggestion accepted" line under it, a pending one carries nothing. The comment list is the source for state; mobilebasic is the source for text. Neither alone gives both.

2. Semicolons trigger a cookie/query-string filter on strings returned from the page, and the call fails with [BLOCKED: Cookie/query string data] rather than an error you can read. Legend text is full of them. Strip them before returning:

const t = document.body.innerText.replace(/;/g, " | ");

Returning several passages at once, or wrapping them in JSON.stringify, makes the block more likely — fetch a few at a time.

3. The deprecated tabs behave differently. On at least one, mobilebasic renders the pre-suggestion text. Do not use a deprecated tab to recover what a suggestion said.

What this changes

  • You can diff the live document against your own copies programmatically, instead of checking match counts one string at a time through the UI.
  • Anchor strings can be verified before you use them, rather than assumed from an older PDF.
  • A whole-document audit is one read, not forty round trips.

Reading is now cheap and safe. Writing is not — everything else in this skill still applies.

The failure that destroyed the do

Полный SKILL.md на GitHub

Установить live-document-editing в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

AskUserQuestion
mcp__claude-in-chrome__tabs_context_mcp
mcp__claude-in-chrome__navigate
mcp__claude-in-chrome__computer
mcp__claude-in-chrome__find
mcp__claude-in-chrome__get_page_text
mcp__claude-in-chrome__read_page
mcp__claude-in-chrome__browser_batch

FAQ

Что делает скилл live-document-editing?

Editing live collaborative documents (Google Docs, and shared docs generally) through browser automation - suggestion mode, per-change confirmation, and the focus-loss failure that can replace a whole manuscript

Как установить скилл live-document-editing?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл live-document-editing запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить live-document-editing с