跳到正文
Skillpedia
写作32k · #9232

recipe-organize-drive-folder

它能做什么

这个工具可以帮你整理 Google Drive 中的文件。它会按照你设定的结构创建文件夹,并自动把文档移入对应的文件夹中。

适用场景

  • ✓当你收到大量文件,需要整理的时候。
  • ✓开始一个新项目,想为所有内容准备一个有条理的存放位置时。
  • ✓想整理下载文件夹或文档文件夹时。

技能链接

https://github.com/googleworkspace/cli/blob/main/skills/recipe-organize-drive-folder/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/googleworkspace/cli/blob/main/skills/recipe-organize-drive-folder/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“在我的 Google Drive 中新建“开胃菜”“主菜”“甜点”三个文件夹,并把我的菜谱文件分别放进去。”

每周 5 个新技能,1 分钟读完。

工作原理

工具会先为你的项目创建一个主文件夹,然后在其中创建子文件夹,并把你指定的文件移入这些新文件夹。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Organize Files into Google Drive Folders

PREREQUISITE: Load the following skills to execute this recipe: gws-drive

Create a Google Drive folder structure and move files into the right locations.

Steps

  1. Create a project folder: gws drive files create --json '{"name": "Q2 Project", "mimeType": "application/vnd.google-apps.folder"}'
  2. Create sub-folders: gws drive files create --json '{"name": "Documents", "mimeType": "application/vnd.google-apps.folder", "parents": ["PARENT_FOLDER_ID"]}'
  3. Move existing files into folder: gws drive files update --params '{"fileId": "FILE_ID", "addParents": "FOLDER_ID", "removeParents": "OLD_PARENT_ID"}'
  4. Verify structure: gws drive files list --params '{"q": "FOLDER_ID in parents"}' --format table
常见问题

我需要安装 Google Drive 吗?

不需要。你只需要一个 Google 账户,并授权工具访问你的 Drive 即可。

工具怎么知道要移动哪些文件?

你需要指定要移动哪些文件,以及它们应该放进哪个文件夹。工具会根据文件和文件夹的名称及 ID 来识别。

我可以创建任意类型的文件夹吗?

可以。你可以用任何名称创建文件夹,并按自己喜欢的方式整理文件。

详情

作者的原始描述

Create a Google Drive folder structure and move files into the right locations.

repo: googleworkspace/cli

热度

GitHub 星标
32k
排名
#9232
许可证
Apache-2.0
更新时间
2026/10/6

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能