All skills
sanjay3290 avatar

/google-drive

@eab1642

Interact with Google Drive - search files, find folders, list contents, download files, upload files, create folders, move, copy, rename, and trash files. Use when user asks to: search Google Drive, find a file/folder, list Drive contents, download or upload files, create folders, move files, or organize Drive content. Lightweight integration with standalone OAuth authentication supporting full read/write access.

Use this Skill: https://skilld.dev/gh/sanjay3290/ai-skills/google-drive

This session only. Nothing lands on disk.

README.md

≈846 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Google Drive Skill

An AI agent skill for interacting with Google Drive - search files, find folders, list contents, and download files. Works with Claude Code, Gemini CLI, Cursor, OpenAI Codex, Goose, and other AI clients supporting the Agent Skills Standard.

Features

  • Search - Full-text search across files
  • Find Folders - Locate folders by name
  • List Contents - Browse folder contents
  • Download - Download files locally

Read-only access. Lightweight alternative to the full Google Workspace MCP server.

⚠️ Requires Google Workspace account. Personal Gmail accounts are not supported.

Quick Start

1. Install dependencies

pip install keyring

2. Authenticate

python scripts/auth.py login

This opens a browser for Google OAuth. Tokens are stored securely in your system keyring.

3. Test connection

python scripts/auth.py status

Usage Examples

# Search for files (full-text search)
python scripts/drive.py search "quarterly report"

# Search by title only
python scripts/drive.py search "title:budget"

# Search using Google Drive URL
python scripts/drive.py search "https://drive.google.com/drive/folders/1ABC123..."

# Search files shared with you
python scripts/drive.py search --shared-with-me

# Search with pagination
python scripts/drive.py search "report" --limit 5 --page-token "..."

# Find a folder by exact name
python scripts/drive.py find-folder "Project Documents"

# List files in root Drive
python scripts/drive.py list

# List files in a specific folder
python scripts/drive.py list 1ABC123xyz --limit 20

# Download a file
python scripts/drive.py download 1ABC123xyz ./downloads/report.pdf

Command Reference

Command Description Arguments
search [query] Search files query, --shared-with-me, --limit
find-folder <name> Find folder by name folder name
list [folder_id] List folder contents optional folder ID, --limit
download <id> <path> Download file file ID, local path

Search Query Formats

Format Example Description
Full-text "quarterly report" Searches file contents and names
Title "title:budget" Searches file names only
URL https://drive.google.com/... Extracts and uses file/folder ID
Folder ID 1ABC123... Lists folder contents
Native query mimeType='application/pdf' Drive query syntax

Download Limitations

  • Regular files (PDFs, images, etc.) download directly
  • Google Docs/Sheets/Slides cannot be downloaded via this tool
  • For Google Workspace files, use export or dedicated tools

Token Management

Tokens stored securely using the system keyring:

  • macOS: Keychain
  • Windows: Windows Credential Locker
  • Linux: Secret Service API (GNOME Keyring, KDE Wallet)

Service name: google-drive-skill-oauth

Troubleshooting

"Failed to get access token"

Run python scripts/auth.py login to authenticate.

"File not found"

Check the file ID and your access permissions.

"Cannot download Google Workspace file"

Use the dedicated skill (google-docs, google-sheets, google-slides) for Google Workspace files.

License

Apache 2.0

Source: SKILL.md on GitHub

3 warnings16d4 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    The skill is generally safe but connects to an external third-party domain for OAuth token management and possesses an indirect prompt injection surface due to processing untrusted file data from Google Drive.

  • Socket16d

    2 alerts: gptAnomaly

  • Snyk16d

    Risk: MEDIUM · 2 issues

  • Runlayer7mo

    6/6 files flagged

Signed by skilld at eab1642. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 weeks ago.

Activeupdated 7 months ago
metadata
{
  "author": "sanjay3290",
  "version": "1.0"
}

README badge

README badge for sanjay3290/ai-skills/google-drive