Productivity

recipe-organize-drive-folder

googleworkspace/cli · updated Apr 8, 2026

$npx skills add https://github.com/googleworkspace/cli --skill recipe-organize-drive-folder
summary

Automate Google Drive folder creation and file organization into structured hierarchies.

  • Creates nested folder structures and moves existing files into designated locations using gws-drive commands
  • Supports parent-child folder relationships and file reparenting across Drive locations
  • Includes verification steps to list and confirm folder contents after organization
skill.md

1d:["$","div",null,{"className":"prose prose-invert max-w-none prose-headings:font-semibold prose-headings:tracking-tight prose-h1:text-4xl prose-h1:mb-2 prose-h2:text-2xl prose-h2:mb-2 prose-h3:text-lg prose-h3:mb-2 prose-p:text-muted-foreground prose-li:text-muted-foreground prose-code:bg-muted prose-code:text-foreground prose-code:px-1 prose-code:py-0.5 prose-code:rounded-sm prose-code:text-sm prose-code:before:content-none prose-code:after:content-none prose-pre:bg-muted prose-pre:text-foreground prose-pre:border prose-pre:border-border prose-pre:rounded-md [&_table]:!border-[color:var(--border)] [&_th]:!border-[color:var(--border)] [&_td]:!border-[color:var(--border)]","dangerouslySetInnerHTML":{"__html":"<h1>Organize Files into Google Drive Folders</h1>\n<blockquote>\n<p><strong>PREREQUISITE:</strong> Load the following skills to execute this recipe: <code>gws-drive</code></p>\n</blockquote>\n<p>Create a Google Drive folder structure and move files into the right locations.</p>\n<h2>Steps</h2>\n<ol>\n<li>Create a project folder: <code>gws drive files create --json '{"name": "Q2 Project", "mimeType": "application/vnd.google-apps.folder"}'</code></li>\n<li>Create sub-folders: <code>gws drive files create --json '{"name": "Documents", "mimeType": "application/vnd.google-apps.folder", "parents": ["PARENT_FOLDER_ID"]}'</code></li>\n<li>Move existing files into folder: <code>gws drive files update --params '{"fileId": "FILE_ID", "addParents": "FOLDER_ID", "removeParents": "OLD_PARENT_ID"}'</code></li>\n<li>Verify structure: <code>gws drive files list --params '{"q": "FOLDER_ID in parents"}' --format table</code></li>\n</ol>"}}]