Uploading To GDrive
Upload files to Google Drive and get shareable/embeddable links.
bash
~/.claude/skills/uploading-to-gdrive/scripts/upload.sh <file_path> [folder_id]
Example:
bash
~/.claude/skills/uploading-to-gdrive/scripts/upload.sh /path/to/screenshot.png # Output: # Uploaded: screenshot.png # File ID: 1abc...xyz # View: https://drive.google.com/file/d/1abc...xyz/view?usp=drivesdk # Embed: https://drive.google.com/thumbnail?id=1abc...xyz&sz=w1000 # # Markdown: 
Appendix
Uses OAuth 2.0 via shell scripts (no SDK needed). Lightweight option for low-risk file hosting (screenshots, demo videos).
How It Works
- •
upload.shreads OAuth credentials fromcredentials/client.json - •Uses refresh token from
credentials/tokens.jsonto get access token - •Uploads file via Google Drive API
- •Sets "anyone with link can view" permission
- •Returns embeddable links
Credentials
Stored in ~/.claude/skills/uploading-to-gdrive/credentials/.
- •
client.json— OAuth client ID for GCP projectclaude-skill-uploads. Identifies the app to Google. - •
tokens.json— User tokens. Scope isdrive.fileso can only access files the app creates, nothing else in Drive.