← ClaudeAtlas

google-drive-operatorlisted

Analyze, restructure, and manage Google Drive shared folders. List contents, read documents, rename files, create professional documents, and organize folder hierarchies -- all through the Google Drive and Docs APIs.
HermeticOrmus/claude-code-skills · ★ 0 · Data & Documents · score 65
Install: claude install-skill HermeticOrmus/claude-code-skills
# Google Drive Operator A Claude Code skill for full CRUD operations on Google Drive: list, read, rename, move, create, delete, and format professional documents. Drop a Google Drive folder link and this skill handles the rest -- from understanding the structure to reorganizing it and generating formatted documents. ## Prerequisites - Python 3.10+ - Google Cloud project with **Google Docs API** and **Google Drive API** enabled - OAuth 2.0 Client ID (Desktop app) credentials file - Python packages: `google-api-python-client`, `google-auth-httplib2`, `google-auth-oauthlib` ## Setup ```bash pip install google-api-python-client google-auth-httplib2 google-auth-oauthlib ``` 1. Go to [Google Cloud Console](https://console.cloud.google.com/) 2. Create a project (or use existing) 3. Enable **Google Docs API** and **Google Drive API** 4. Create OAuth 2.0 Client ID (Desktop app) 5. Download credentials JSON 6. On first run, a browser window opens for authorization -- token is cached for future use ## Workflow When a user drops a Google Drive link, follow these 7 steps: ### 1. PARSE -- Extract folder/doc ID from URL ```python import re # Folder: https://drive.google.com/drive/folders/{FOLDER_ID}?usp=sharing # Doc: https://docs.google.com/document/d/{DOC_ID}/edit folder_match = re.search(r'/folders/([a-zA-Z0-9_-]+)', url) doc_match = re.search(r'/d/([a-zA-Z0-9_-]+)', url) folder_id = folder_match.group(1) if folder_match else None doc_id = doc_match.group(1) if doc_match e