一键导入
gog-drive
用 gog 读/搜/上传/下载 Drive 文件。**先读 gog-shared**。对 delete/share/unshare/replace 写操作**必须先向用户确认并停止,下一轮明确同意后再执行**。典型:搜近期发票 PDF 批量下载、上传 Markdown 自动转 Google Doc。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
用 gog 读/搜/上传/下载 Drive 文件。**先读 gog-shared**。对 delete/share/unshare/replace 写操作**必须先向用户确认并停止,下一轮明确同意后再执行**。典型:搜近期发票 PDF 批量下载、上传 Markdown 自动转 Google Doc。
用 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-drive |
| version | 1.0.0 |
| description | 用 gog 读/搜/上传/下载 Drive 文件。**先读 gog-shared**。对 delete/share/unshare/replace 写操作**必须先向用户确认并停止,下一轮明确同意后再执行**。典型:搜近期发票 PDF 批量下载、上传 Markdown 自动转 Google Doc。 |
| metadata | {"requires":{"bins":["gog"],"connectors":["google_workspace"]}} |
PREREQUISITE: 先读
gog-shared/SKILL.md。
# 列文件(默认含 shared drives;--no-all-drives 只看 My Drive)
gog --account <email> --json drive ls --max 20
gog --account <email> --json drive ls --parent <folderId> --max 50
# 搜(支持 Google Drive 原生 query 语法,--raw-query 时)
gog --account <email> --json drive search "invoice"
gog --account <email> --json drive search "mimeType = 'application/pdf'" --raw-query
# 元数据
gog --account <email> --json drive get <fileId>
gog --account <email> drive url <fileId> # 拼 Drive web URL
# 下载
gog --account <email> drive download <fileId> --out ./file.bin
gog --account <email> drive download <fileId> --format pdf --out ./doc.pdf # Google Workspace 文件
gog --account <email> drive download <fileId> --format md --out ./note.md # Google Doc → md
# 列 shared drives
gog --account <email> --json drive drives --max 100
# 权限
gog --account <email> --json drive permissions <fileId>
# 上传(新建文件)
gog --account <email> drive upload ./file.pdf --parent <folderId>
# 上传并转换(Markdown → Google Doc)
gog --account <email> drive upload ./notes.md --convert
# 替换文件内容(保留 file ID 和 share link)
gog --account <email> drive upload ./new-version.pdf --replace <fileId> # ⚠️
# 删除(默认 trash;--permanent 硬删)
gog --account <email> drive delete <fileId> # ⚠️
gog --account <email> drive delete <fileId> --permanent # ⚠️⚠️
# 分享
gog --account <email> drive share <fileId> --to user --email a@b.com --role reader # ⚠️
gog --account <email> drive share <fileId> --to domain --domain example.com --role reader # ⚠️
# 取消分享
gog --account <email> drive unshare <fileId> --permission-id <permId> # ⚠️
# 组织
gog --account <email> drive mkdir "New Folder" --parent <parentFolderId>
gog --account <email> drive rename <fileId> "New Name" # ⚠️(无歧义时也建议)
gog --account <email> drive move <fileId> --parent <destFolderId> # ⚠️
场景:批量下载近期发票 PDF
gog --account <email> --json drive search "invoice filetype:pdf newer_than:30d" --max 50 \
| jq -r '.files[].id' \
| while read fid; do
gog --account <email> drive download "$fid" --out "/workspace/invoices/$fid.pdf"
done
场景:Markdown 报告发到 Drive 并分享
gog drive upload ./report.md --convert --parent <folderId> → 拿到 fileIdgog drive share <fileId> --to user --email stakeholder@x.com --role reader--convert 前 gogcli 默认剥离 Markdown 开头的 YAML frontmatter(--- ~ ---);需要保留时加 --keep-frontmatter。mimeType = '...', name contains '...', parents in '...' —— 用 --raw-query 时直接透传。