一键导入
gog-docs
用 gog 读/写 Google Docs。**先读 gog-shared**。对 update/write/sed/find-replace **必须先向用户确认并停止,下一轮明确同意后再执行;优先 --dry-run**。典型:读全文、追加段落、template 填充、找替换。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
用 gog 读/写 Google Docs。**先读 gog-shared**。对 update/write/sed/find-replace **必须先向用户确认并停止,下一轮明确同意后再执行;优先 --dry-run**。典型:读全文、追加段落、template 填充、找替换。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when answering questions about viaim / 未来智能 products, iFLYBUDS, AI earbuds, headsets, Viaim App, software/device context, Ripple inside UI, app setup, technical support, after-sales service, company/contact information, company/product background, or viaim product background.
用户给一个播客单集 URL,抓取该期元信息、简介和原始时间轴,直接产出一份完整 Markdown:在对话里完整呈现,同时落盘到 host 可见路径。
用户给一个 B 站视频 URL / BV 号,基于已登录 B 站账号抓取元数据、字幕和官方 AI 总结,产出一份完整 Markdown 总结并落盘到 /workspace/outputs/bilibili/。
Use when a Notion task needs a raw ntn api endpoint, custom query/body parameters, pagination, schema lookup, or an endpoint without a dedicated skill.
Use when a Notion task needs database or data source schema, filtered queries, sorted rows, pagination, row creation, or row property updates.
Use when a Notion task needs file upload, image/file/PDF blocks, page cover or icon media, external URL imports, or file_upload ids.
| name | gog-docs |
| version | 1.0.0 |
| description | 用 gog 读/写 Google Docs。**先读 gog-shared**。对 update/write/sed/find-replace **必须先向用户确认并停止,下一轮明确同意后再执行;优先 --dry-run**。典型:读全文、追加段落、template 填充、找替换。 |
| metadata | {"requires":{"bins":["gog"],"connectors":["google_workspace"]}} |
PREREQUISITE: 先读
gog-shared/SKILL.md。
# 元信息
gog --account <email> --json docs info <docId>
# 读全文(默认 plain text)
gog --account <email> docs cat <docId>
gog --account <email> docs cat <docId> --max-bytes 10000 # 限制输出大小
gog --account <email> docs cat <docId> --tab "Notes" # 特定 tab
gog --account <email> docs cat <docId> --all-tabs
# 列 tabs
gog --account <email> --json docs list-tabs <docId>
# 导出
gog --account <email> docs export <docId> --format md --out ./doc.md
gog --account <email> docs export <docId> --format pdf --out ./doc.pdf
gog --account <email> docs export <docId> --format docx --out ./doc.docx
gog --account <email> docs export <docId> --format html --out ./doc.html
# 新建
gog --account <email> docs create "My Doc"
gog --account <email> docs create "My Doc" --file ./source.md # 从 markdown 导入
# 复制
gog --account <email> docs copy <docId> "Copy Name"
# 追加文本
gog --account <email> docs update <docId> --text "append this"
gog --account <email> docs update <docId> --file ./insert.txt --index 25
# 覆盖 / 重写
gog --account <email> docs write <docId> --text "fresh content" # ⚠️
gog --account <email> docs write <docId> --file ./body.md --replace --markdown # ⚠️
# Find/Replace(⚠️⚠️ 整篇文档都替换,先 --dry-run)
gog --account <email> docs find-replace <docId> "old" "new"
gog --account <email> docs find-replace <docId> "old" "new" --tab-id t.notes
# Sed(sedmat 语法,支持格式化:**bold** / *italic* / ~~strike~~ / `mono` / 链接 / 图片 / 表格)
gog --account <email> docs sed <docId> 's/pattern/replacement/g'
gog --account <email> docs sed <docId> 's/Google/[Google](https://google.com)/'
gog --account <email> docs sed <docId> 's/{{LOGO}}//'
场景:把 /workspace/report.md 替换成某个 doc 的全文
docs info 给看标题),停止等待用户下一轮明确同意gog docs write <docId> --file /workspace/report.md --replace --markdown场景:从 template 批量生成 doc
gog docs copy <templateDocId> "Q2 Report" → 拿新 docIdgog docs find-replace <newDocId> "{{quarter}}" "Q2 2026"sed 的 sedmat 语法很强(表格单元格、行列操作、图片宽度),复杂用法先 gog docs sed --help。--markdown 只在 write/update 且源是 markdown 时加;不加时 gog 当纯文本插入。