/asb-core:gdoc-surgicalfrom ASB Core
Edits existing Google Docs in-place (replace text, hyperlink, append sections, insert/delete table rows) via the Docs API, preserving hand edits, comments, images, and sharing settings. Use instead of re-uploading when a doc already exists.
Ships in ASB Core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Make surgical, in-place edits to a Google Doc instead of overwriting it.
Why this exists: a full update --convert re-upload WIPES inline images,
resets sharing to "anyone with link," and clobbers any edits a human made by
hand. When a doc already exists and you only need to change part of it, edit
it surgically.
Auth: reuses the drive connector token.json files (a Drive-scoped OAuth
token is valid for the Docs API too - no extra scopes or re-auth needed).
| Situation | Use |
|---|---|
| Doc doesn't exist yet | gdocs-create |
| Replace the ENTIRE content | drive connector update --convert (then re-run formatting + permissions) |
| Fix a phrase, a date, a name | this skill: replace |
| Turn a "(Source: X)" citation / doc name into a clickable link | this skill: linkify |
| Add a section / changelog entry at the end | this skill: append |
| Add a row to an existing table | this skill: insert-row |
| Remove a row from an existing table | this skill: delete-row |
All commands: python3 .agent/skills/gdoc-surgical/gdoc_surgical.py <cmd> --id DOC_ID --account <account>
# 1. ALWAYS read first - see the doc's structure + verify your target text
python3 .agent/skills/gdoc-surgical/gdoc_surgical.py read --id DOC_ID
# 2a. Replace text (hits ALL occurrences - widen the find-string if it's common)
python3 .agent/skills/gdoc-surgical/gdoc_surgical.py replace --id DOC_ID \
--find "Target ship: July 15" --with "Target ship: July 22"
# 2a-bis. Linkify: hyperlink every occurrence of a name/citation, text unchanged
python3 .agent/skills/gdoc-surgical/gdoc_surgical.py linkify --id DOC_ID \
--find "Q3 Roadmap v2.2" --url "https://docs.google.com/document/d/FILE_ID/edit"
# 2b. Append a section (supports #/##/### headings and - bullets, \n for newlines)
python3 .agent/skills/gdoc-surgical/gdoc_surgical.py append --id DOC_ID \
--text "## Changelog\n- 2026-07-12: updated ship date"
# 2c. Tables: list them, then insert a filled row
python3 .agent/skills/gdoc-surgical/gdoc_surgical.py list-tables --id DOC_ID
python3 .agent/skills/gdoc-surgical/gdoc_surgical.py insert-row --id DOC_ID \
--table 0 --cells "2026-07-12|Updated ship date|the owner"
# 2d. Delete a row. --row and --expect are both mandatory: --expect must appear
# in the row, or nothing is deleted (exit 2). Row indexes shift under any other
# edit, so this is what stops a stale index deleting the wrong row.
python3 .agent/skills/gdoc-surgical/gdoc_surgical.py delete-row --id DOC_ID \
--table 13 --row 5 --expect "Discount > Work's earnings"
read first, verify the exact wording of your
target. replace exits with code 2 if it changed 0 occurrences.replace is global. It hits every occurrence including inside tables.
If the find-string appears more than once and you only want one, include
surrounding words to make it unique.replace/linkify too - you
rarely need cell coordinates for content fixes.linkify needs a real target. Resolve the citation's actual Drive file
ID first (search Drive by title, or check master_links.md / memory) -
don't link to a guessed URL. If the cited doc genuinely doesn't exist in
Drive (only a local repo file), it can't be made clickable without
uploading it first - flag that to the owner rather than skipping silently.reply_helper.py instead).append styles are basic (headings, bullets, plain); for rich new content
consider drafting a new doc instead.insert-row fills LEFT cells first visually but writes right-to-left
internally; pipe-separated values map left-to-right.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
google-docs, docs-api, in-place-editing, document-automation
npx claudepluginhub brianarfi/ai-second-brain --plugin asb-core66 skills in this plugin
/access-watchFinds every request for access that is waiting on the owner, from both places they arrive, and verifies each one against the live permission state before reporting it./achievements-trackerFinds the owner's product wins in real data each month, drafts CV bullets with caveats and the decisions behind them, messages the owner, and adds them to the CV after a grace period (silence = approved). Use when the owner says "review my CV wins", "approve ACH-xxxx", "reject ACH-xxxx", asks what wins are pending, or asks to add an achievement to their CV./agy-bridgeOptional cost saver that routes bulk mechanical work to a non-Claude model. Use for harvest, critic, and research offload; never for synthesis or strategy. Fully skippable, the harness works without it./browser-serviceBrowser ServiceEnsures the Chrome CDP browser service is running before any browser interaction. Must be invoked before using browser_subagent./clickup-connectorClickUp ConnectorA skill to interact with ClickUp workspaces, allowing retrieval of spaces, folders, lists, and tasks, plus task creation./command-queueTurns the owner's task-comments (by:"owner" comments on dashboard tickets) into auto-dispatched headless `claude -p` worker runs, routing each to the right model+effort per the CLAUDE.md table. Scan → triage → spawn. Safe by construction — workers never send external messages; anything needing a send is drafted and flagged.Other plugins' skills for the same job