google-drive
它能做什么
该技能管理 Google Drive 中的文件,包括文件夹、评论和导出。适合在 Google Drive 中整理共享工作的人。
适用场景
- ✓当你需要在特定的 Drive 文件夹中创建文件的时候。
- ✓当你想移动、重命名或共享 Drive 文件的时候。
- ✓当你想把 Markdown 或 CSV 内容转换为 Google 文档或表格的时候。
技能链接
https://github.com/cursor/plugins/blob/main/third_party/google-drive/skills/google-drive/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“把这个 CSV 放进我的 Q3 Reports 文件夹里的一个 Google 表格中。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会在 Drive 中搜索正确的文件或文件夹,然后在该位置创建、移动或共享文件。当它无法确认某个 ID 时,会重新搜索。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Google Drive files
Ids come from search, never guesses
Every tool takes Drive file ids. Get them from search (or
list_folder for a known folder,
list_recent_files for "what was I just working on"), or from
the id in a URL the user pasted. exact_name beats query for a known
filename; add mime_type_filter to cut noise. Never invent an id or reuse
one from a stale conversation - re-search first.
Folder targeting
create_foldertakesparent_folder_id; without it the folder lands in My Drive root. When the user names a destination folder, resolve its id and pass it - a file created in root when a folder was specified is a wrong result even if the content is perfect.create_filealso takesparent_folder_id, so create files directly where they belong instead of creating then moving.- The Docs/Sheets/Slides providers' own create tools CANNOT target a folder
(their APIs have no parent parameter). When placement matters, either
create the artifact there with
create_file(Markdown to Doc, CSV to Sheet), or create it and thenmove_or_renamewithdestination_folder_id. move_or_renamedoes either or both in one call; renaming does not change the id.update_fileis the same rename/move with the hosted Drive tool's argument names (fileId;titlerenames,parentIdmoves by replacing the current parent); it exists on both the translator and hosted surfaces, so prefer it in guidance that must work on either.- Grant limits: this app's grant is
drive.file, so moving into or writing files/folders this app never created (and the user never picked) can 403. That 403 is a permission fact, not a transient error; do not retry it.
Markdown and CSV conversion
create_file with target_mime_type: application/vnd.google-apps.document converts Markdown (headings, lists,
tables) into a real Google Doc in one call; ...spreadsheet converts CSV
into a Sheet. This is the fastest correct way to produce a formatted Doc:
prefer it over create-then-insert when the content is known up front.
update_file_content converts in place the same way.
Copying, metadata, and sharing
copy_fileduplicates a file (optionally into a folder) - the right way to instantiate a template without touching the original.get_file_metadatareturns the full record (mime type, parents, size, owners, modified time); use it to confirm a move landed.get_file_permissionslists who has access;share_filegrants a role to an email. Share only when the user asked; report the link rather than widening access speculatively.download_filereturns the raw bytes base64-encoded for non-Google files (images, PDFs, plain text).
Reading and exporting
read_filereturns text: Docs as Markdown, Sheets as CSV per tab, Slides as plain text. Use it to verify content after writes.export_filereturns rendered bytes base64-encoded:pdffor Docs/Sheets/Slides (Sheets PDF renders every tab, charts included),png/svgfor Drawings, plus office formats (docx/xlsx/pptx). Use PDF when the user wants to see the final look; exports cap at 10 MB.- For one slide as PNG use the google-slides
get_slide_thumbnailtool, not Drive export.
Comments
Comments live on the Drive file, so one tool set covers Docs, Sheets, and Slides alike:
list_commentsreturns each comment's text, quoted document text, resolved state, and replies; it pages, so follownextPageTokenbefore concluding a thread does not exist.add_commentadds a file-level comment (no text anchor).reply_to_commentreplies by comment id, and itsaction: "resolve"(content optional) is the ONLY way to resolve a thread; editing document text near a comment never resolves it. Leave already-resolved threads alone.
Deleting
trash_file is recoverable (~30 days) and works on files and
folders (a trashed folder takes its contents). Permanent deletion is
deliberately not available; never promise it.
Verify your work
After creates and moves, confirm placement with list_folder
on the destination or get_file_metadata (check parents).
After content writes, read_file is the ground truth for text
and export_file (pdf) for the rendered result.
常见问题
文件会被放到正确的文件夹中吗?
当你指定目标文件夹时,该技能会传递该文件夹,因此文件不会留在“我的云端硬盘”根目录中。
它能导出 PDF 吗?
能。该技能涵盖导出渲染好的 PDF。
它如何找到文件?
它按名称或类型搜索,或列出最近的文件,并且不会编造文件 ID。
详情
作者的原始描述
Work with Google Drive through its MCP tools - search, read, create, organize, share, comment, and export files. Use when creating files in specific folders, moving or renaming, converting Markdown/CSV into Docs/Sheets, managing comments, or exporting a rendered PDF.
repo: cursor/plugins
热度
- GitHub 星标
- 15k
- 排名
- #11016
- 许可证
- —
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
advisor
15k如果你开启该功能,让你的智能体在关键节点咨询一个更强的第二模型,例如在重大决定之前,或在错误上卡住时。
check-agent-compatibility
15k全面检查 AI 编程智能体能否启动、验证和记录某个代码仓库,并返回一个兼容性评分以及主要问题。
cli-for-agents
15k教你的智能体设计或审查命令行工具,使 AI 智能体无需提示即可运行,并提供清晰的帮助文字和示例。
continual-learning
15k通过把回顾过往对话的工作交给专门的记忆更新程序,使你的 AGENTS.md 笔记保持最新。