Skip to content
Back to skills

Google Drive

ASecurity

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.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 6, 2026
ai-agentsgobashgcpapi

Works with

  • cursor
  • cli
  • api

Security analysis

A100/100

Pro scans all 14 files and shows the line behind each finding

Scanned December 6, 2026

npx -y skills add flopperj/dotfiles-core --skill google-drive --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Google Drive?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Google Drive
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/flopperj-google-drive/badge)](https://www.skillsdirectory.com/skills/flopperj-google-drive)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.md2.6 KB
  • api-reference.md3 KB
  • google-cloud-setup.md4.3 KB
  • query-syntax.md1.5 KB
  • scripts/_auth.sh5 KB
  • scripts/_common.sh3.3 KB
  • scripts/copy_file.sh2.1 KB
  • scripts/download_file.sh5.7 KB
  • scripts/file_info.sh3.8 KB
  • scripts/list_folder.sh5.2 KB
  • scripts/search_files.sh4 KB
  • scripts/share_file.sh5.8 KB
  • scripts/upload_file.sh3.3 KB
  • workflows.md2.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.