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。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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
- Create a project folder:
gws drive files create --json '{"name": "Q2 Project", "mimeType": "application/vnd.google-apps.folder"}' - Create sub-folders:
gws drive files create --json '{"name": "Documents", "mimeType": "application/vnd.google-apps.folder", "parents": ["PARENT_FOLDER_ID"]}' - Move existing files into folder:
gws drive files update --params '{"fileId": "FILE_ID", "addParents": "FOLDER_ID", "removeParents": "OLD_PARENT_ID"}' - 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
评论
- …