google-drive
Google Drive Skill
Full CRUD Drive management for AI agents. List, search, upload, download, export, organize, and share files.
Features
- List: Browse files in any folder (default: root), sorted by folders first then modified time.
- Search: Find files by name or full-text content, with optional MIME type filtering.
- Get: Fetch file metadata by ID.
- Upload: Upload local files to Drive (resumable, auto-detects MIME type).
- Download: Download files from Drive to local disk.
- Export: Export Google Workspace docs (Docs → DOCX/PDF/TXT, Sheets → XLSX/CSV, Slides → PPTX/PDF).
- Mkdir: Create folders.
- Move: Move files between folders.
- Copy: Duplicate files (optionally to a different folder with a new name).
- Rename: Rename files.
- Trash / Untrash: Reversible soft-delete.
- Delete: Permanent deletion (irreversible).
- Share: Share files with users, groups, domains, or make public. Supports reader/commenter/writer/owner roles.
- Unshare: Remove permissions.
- Permissions: List all permissions on a file.
Prerequisites
- Google Cloud Project with Google Drive API enabled.
- OAuth 2.0 Credentials — either
gcloudADC orcredentials.json.
Setup
⚡ Quick Setup (Recommended)
Set up Gmail, Calendar, Contacts, and Drive all at once:
uv run ~/.agents/skills/gmail/scripts/setup_workspace.py
Manual Setup
-
Using gcloud ADC:
gcloud auth application-default login \ --scopes https://www.googleapis.com/auth/drive,https://www.googleapis.com/auth/cloud-platformThen verify:
uv run skills/google-drive/scripts/google_drive.py verify -
Alternative (credentials.json):
- Place
credentials.jsonin~/.drive_credentials/. - Run
uv run skills/google-drive/scripts/google_drive.py setup
- Place
Usage
List Files
# Root folder
uv run skills/google-drive/scripts/google_drive.py list
# Specific folder
uv run skills/google-drive/scripts/google_drive.py list --folder "FOLDER_ID" --limit 20
Search Files
# By name or content
uv run skills/google-drive/scripts/google_drive.py search --query "Death Star plans"
# Filter by type
uv run skills/google-drive/scripts/google_drive.py search --query "budget" --mime-type "application/vnd.google-apps.spreadsheet"
Get File Metadata
uv run skills/google-drive/scripts/google_drive.py get --id "FILE_ID"
Upload a File
uv run skills/google-drive/scripts/google_drive.py upload \
--file "./blueprints.pdf" \
--folder "FOLDER_ID" \
--description "Thermal exhaust port schematics"
Download a File
uv run skills/google-drive/scripts/google_drive.py download --id "FILE_ID" --output "./local_copy.pdf"
Export a Google Workspace Doc
# Google Doc → DOCX
uv run skills/google-drive/scripts/google_drive.py export --id "DOC_ID" --output "./report.docx" --format docx
# Google Sheet → CSV
uv run skills/google-drive/scripts/google_drive.py export --id "SHEET_ID" --output "./data.csv" --format csv
# Google Slides → PDF
uv run skills/google-drive/scripts/google_drive.py export --id "SLIDES_ID" --output "./deck.pdf" --format pdf
Create a Folder
uv run skills/google-drive/scripts/google_drive.py mkdir --name "Project Stardust" --parent "PARENT_FOLDER_ID"
Move / Copy / Rename
# Move
uv run skills/google-drive/scripts/google_drive.py move --id "FILE_ID" --to "DEST_FOLDER_ID"
# Copy
uv run skills/google-drive/scripts/google_drive.py copy --id "FILE_ID" --name "Copy of Plans" --folder "DEST_FOLDER_ID"
# Rename
uv run skills/google-drive/scripts/google_drive.py rename --id "FILE_ID" --name "Updated Plans v2"
Trash / Untrash / Delete
# Soft delete (reversible)
uv run skills/google-drive/scripts/google_drive.py trash --id "FILE_ID"
# Restore
uv run skills/google-drive/scripts/google_drive.py untrash --id "FILE_ID"
# Permanent delete (irreversible!)
uv run skills/google-drive/scripts/google_drive.py delete --id "FILE_ID"
Share a File
# Share with a user
uv run skills/google-drive/scripts/google_drive.py share \
--id "FILE_ID" --email "luke@tatooine.net" --role writer
# Make public (anyone with the link)
uv run skills/google-drive/scripts/google_drive.py share --id "FILE_ID" --type anyone --role reader
# Share with a domain
uv run skills/google-drive/scripts/google_drive.py share --id "FILE_ID" --domain "jedi.org" --role reader
List / Remove Permissions
# List
uv run skills/google-drive/scripts/google_drive.py permissions --id "FILE_ID"
# Remove
uv run skills/google-drive/scripts/google_drive.py unshare --id "FILE_ID" --permission-id "PERM_ID"
JSON Output
File:
{
"id": "1a2b3c...",
"name": "Death Star Plans.pdf",
"mimeType": "application/pdf",
"size": "4200000",
"modifiedTime": "2026-02-16T10:00:00.000Z",
"parents": ["0B1234..."],
"webViewLink": "https://drive.google.com/...",
"trashed": false,
"shared": true,
"isFolder": false,
"owner": "vader@empire.gov"
}
More from baphomet480/claude-skills
kitchen-sink-design-system
Kitchen Sink design system workflow for Next.js and React projects, with secondary support for Astro, SvelteKit, Nuxt, and static HTML. Use when asked for a Kitchen Sink page, Design System, UI Audit, Style Guide, or Component Inventory, or when a project needs a component inventory plus component creation and a sink page implementation. Covers CVA variant architecture, Tailwind v3/v4 token systems, shadcn/ui integration, and TinaCMS content modeling.
40deep-research
Conduct comprehensive, multi-round research that produces rich visual reports. Use when asked for "deep research", "comprehensive analysis", "compare frameworks", "evaluate options", "research the state of X", or any task requiring investigation across 10+ sources. NOT for quick lookups — this is a 5-15 minute deep dive that produces a briefing-quality artifact with screenshots, diagrams, tables, and cited findings.
37design-lookup
Search and retrieve CSS components, SVG icons, design patterns, and visual inspiration from the web. Use when the user asks to find, look up, or search for CSS snippets, SVG icons, UI components, loading spinners, animations, design inspiration, or any visual/frontend design resource. Triggers on requests like "find me a CSS button", "look up an SVG spinner", "search for a card component", "find a wave divider SVG", or "get design inspiration for a dashboard".
34nextjs-tinacms
Build Next.js 16 + React 19 + TinaCMS sites with visual editing, blocks-based page builder, and complete SEO. Use this skill whenever the user mentions TinaCMS, Tina CMS, Next.js with a CMS, visual editing with Next.js, click-to-edit, content-managed Next.js site, blocks pattern page builder, or migrating to Next.js + TinaCMS. Also trigger for TinaCMS schema design, self-hosted TinaCMS, TinaCMS media configuration, or any TinaCMS troubleshooting. Covers Day 0-2 setup from scaffolding through production deployment on Vercel.
32cloudflare-pages
Deploy static sites to Cloudflare Pages with custom domains and CI/CD. Use when the user wants to deploy a site to Cloudflare Pages, add a custom domain to a Pages project, set up GitHub Actions CI/CD for Cloudflare Pages, roll back a deployment, or verify deployment status. Triggers on "deploy to Cloudflare", "Cloudflare Pages", "add custom domain", "pages deploy", or any Cloudflare Pages hosting workflow.
31local-ocr
Local OCR pipeline for AI agents featuring auto-rotation, deskew, and searchable PDF generation via ocrmypdf and Tesseract.
23