Back to skills
SKILL.md
Google Drive
ASecuritySearch, list, download, upload, and copy files from Google Drive. Set sharing permissions. Supports Google Docs, Sheets, Slides, PDFs, images, and folders. Use when the user mentions Google Drive, asks to find a file, needs to download a document for context, wants to upload images, set sharing, list folder contents, asks to create a document from a template, or references a drive.google.com URL.
- 3 stars
- 0 votes
- 0 copies
- 0 views
- Added December 6, 2026
Works with
Security analysis
100/100Pro scans all 14 files and shows the line behind each finding
npx -y skills add flopperj/dotfiles-core --skill google-drive --agent claude-codeAre you the author of Google Drive?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/flopperj-google-drive)---
name: google-drive
description: Search, list, download, upload, and copy files from Google Drive. Set sharing permissions. Supports Google Docs, Sheets, Slides, PDFs, images, and folders. Use when the user mentions Google Drive, asks to find a file, needs to download a document for context, wants to upload images, set sharing, list folder contents, asks to create a document from a template, or references a drive.google.com URL.
user-invocable: true
---
# Google Drive
## Prerequisites
**Quota project:** `<your-gcp-project>` — the Google Cloud project your org enabled the Docs and Drive APIs on (see [google-cloud-setup.md](google-cloud-setup.md)).
```bash
gcloud auth application-default login \
--scopes="https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/documents,https://www.googleapis.com/auth/drive" \
--client-id-file=/workspace/google-cloud-sdk/<your-org>_client_secrets.json \
--set-quota-project=<your-gcp-project>
```
## Scripts
Scripts location: `scripts/` subdirectory of this skill (resolves via `~/.claude/skills/google-drive/scripts/` or `~/.cursor/skills/google-drive/scripts/`)
File IDs are extracted automatically from URLs:
- Docs: `docs.google.com/document/d/FILE_ID/edit`
- Sheets: `docs.google.com/spreadsheets/d/FILE_ID/edit`
- Drive: `drive.google.com/file/d/FILE_ID/view`
## Operations
| Operation | Command |
|-----------|---------|
| Search | `scripts/search_files.sh --name "report" --type doc` |
| Download | `scripts/download_file.sh FILE_ID [--stdout] [--format md]` |
| Upload | `scripts/upload_file.sh image.png [--folder FOLDER_ID]` |
| Share | `scripts/share_file.sh FILE_ID --anyone` |
| Copy | `scripts/copy_file.sh FILE_ID --name "New Name"` |
| Info | `scripts/file_info.sh FILE_ID` |
| List folder | `scripts/list_folder.sh [FOLDER_ID] [--tree]` |
**Search types:** `doc`, `sheet`, `slide`, `pdf`, `image`, `folder`, `all`
**Export formats:**
- Docs: `text`, `md`, `pdf`, `docx`, `html`
- Sheets: `csv`, `xlsx`, `pdf`
- Slides: `pdf`, `pptx`
## Share Files
```bash
scripts/share_file.sh FILE_ID --anyone # Anyone with link
scripts/share_file.sh FILE_ID --email user@example.com # Specific user
scripts/share_file.sh FILE_ID --domain example.com # Domain-wide
```
**Note:** Corporate policies may block `--anyone`. See [workflows.md](workflows.md) for workarounds.
## Additional Resources
- Common workflows and examples: [workflows.md](workflows.md)
- Advanced query syntax: [query-syntax.md](query-syntax.md)
- API reference: [api-reference.md](api-reference.md)
- Google Cloud project setup: [google-cloud-setup.md](google-cloud-setup.md)
Files in this skill
- SKILL.md
- api-reference.md
- google-cloud-setup.md
- query-syntax.md
- scripts/_auth.sh
- scripts/_common.sh
- scripts/copy_file.sh
- scripts/download_file.sh
- scripts/file_info.sh
- scripts/list_folder.sh
- scripts/search_files.sh
- scripts/share_file.sh
- scripts/upload_file.sh
- workflows.md
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.