360 Secure SkillHub
360 安全技能中心

Recipe Organize Drive Folder

该技能是Google Drive文件整理配方,需依赖gws-drive技能。核心功能为创建项目文件夹及子文件夹层级结构,将现有文件移动至对应文件夹,并可验证整理后的结构。适合项目文件归类、Drive文件杂乱时的整理场景,通过执行指定gws命令完成操作,输出有序的文件夹结构。

googleworkspace-bot
googleworkspace-bot
热度 71.91
最近更新 2026-05-11 17:31:42
分类:自动化依赖:MCP 服务应用场景:工作流 / 任务管理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add recipe-organize-drive-folder
Metadata
name
recipe-organize-drive-folder
description
Create a Google Drive folder structure and move files into the right locations.
metadata
{"version":"0.22.5","openclaw":{"category":"recipe","domain":"productivity","requires":{"bins":["gws"],"skills":["gws-drive"]}}}

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