gcmd
Export and access Google Drive files (docs, sheets, meeting notes)
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Export and access Google Drive files (docs, sheets, meeting notes)
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | gcmd |
| description | Export and access Google Drive files (docs, sheets, meeting notes) |
Quick reference for using gcmd CLI tool to work with Google Drive files.
Repository: /Users/ben/git/gcmd
gcmd is a Python CLI tool for working with Google Drive from the command line. Useful for:
Use this skill when:
All commands must be run from the gcmd directory with uv run gcmd.
RECOMMENDED: Export to /tmp/ for easy reading by Claude Code
cd /Users/ben/git/gcmd
uv run gcmd export "https://docs.google.com/document/d/FILE_ID/edit" -o /tmp/
# Creates: /tmp/Document Title.md (uses document title as filename)
Export to specific file path:
uv run gcmd export FILE_ID -o /tmp/meeting-notes.md
# Creates: /tmp/meeting-notes.md
Export all tabs as separate files:
uv run gcmd export --all-tabs FILE_ID -o /tmp/
# Creates: /tmp/Document Title - Tab1.md, /tmp/Document Title - Tab2.md, etc.
How -o works:
-o: Saves to /Users/ben/git/gcmd/ using document title + .exported.md-o /tmp/ (directory): Saves to /tmp/ using document title + .md extension (no .exported)-o /tmp/file.md (file): Saves to exact path /tmp/file.mdAfter exporting, ALWAYS read the file to provide the user with the content.
cd /Users/ben/git/gcmd
# List recent files (default 20, sorted by modified date)
uv run gcmd list
# Search for files by name or content
uv run gcmd list -q "quarterly report"
# List only Google Docs
uv run gcmd list -t docs
# List with verbose details
uv run gcmd list -v -n 10
# List only folders
uv run gcmd list -t folders
# List Google Sheets
uv run gcmd list -t sheets
cd /Users/ben/git/gcmd
# Basic file metadata
uv run gcmd info "https://docs.google.com/document/d/FILE_ID/edit"
# Detailed info with permissions, tabs, structure, and comments
uv run gcmd info -v "https://docs.google.com/document/d/FILE_ID/edit"
# Show only comments (without other verbose details)
uv run gcmd info --show-comments "https://docs.google.com/document/d/FILE_ID/edit"
# Also works with just file ID
uv run gcmd info FILE_ID -v
Detailed info shows:
cd /Users/ben/git/gcmd
# Download to current directory
uv run gcmd download FILE_ID
# Download to specific path
uv run gcmd download FILE_ID -o ~/Downloads/myfile.pdf
# Works with URLs
uv run gcmd download "https://drive.google.com/file/d/FILE_ID/view"
All commands accept multiple URL formats:
# Google Docs
https://docs.google.com/document/d/FILE_ID/edit
https://docs.google.com/document/d/FILE_ID/edit?tab=t.0
# Google Sheets
https://docs.google.com/spreadsheets/d/FILE_ID/edit
# Google Slides
https://docs.google.com/presentation/d/FILE_ID/edit
# Drive files
https://drive.google.com/file/d/FILE_ID/view
# Just the file ID
FILE_ID
When user provides a Google Drive URL:
Export the document to /tmp/:
cd /Users/ben/git/gcmd
uv run gcmd export "URL" -o /tmp/
Read the exported file:
The file will be in /tmp/ with the document title as filename.
Provide the content to the user or answer their questions about it.
Optional cleanup: After helping the user, you can delete the exported file:
rm /tmp/exported-filename.md
cd /Users/ben/git/gcmd
# Search for the document
uv run gcmd list -q "MCP Server Analysis" -t docs
# Get detailed info (tabs, structure)
uv run gcmd info -v "https://docs.google.com/document/d/FILE_ID/edit"
# Export all tabs to /tmp/ for easy reading
uv run gcmd export --all-tabs FILE_ID -o /tmp/
cd /Users/ben/git/gcmd
# View detailed permissions
uv run gcmd info -v FILE_ID
# Shows:
# - Who has access (users, groups, domains, public)
# - Permission levels (owner, writer, reader, commenter)
# - Your capabilities (can edit, share, download, etc.)
cd /Users/ben/git/gcmd
# View all comments and replies on a document
uv run gcmd info --show-comments "https://docs.google.com/document/d/FILE_ID/edit"
# Shows:
# - All comments with quoted/highlighted text
# - Authors and timestamps
# - Replies with their authors
# - Status (resolved, deleted)
# - Total comment count
cd /Users/ben/git/gcmd
# List recent Google Docs with details
uv run gcmd list -t docs -v -n 20
--all-tabs to export each tab separately.exported.md extension (auto-ignored by git) when no -o specified~/.config/gcmd/credentials.json~/.config/gcmd/token.jsonIf authentication fails, delete token and re-authenticate:
rm ~/.config/gcmd/token.json
cd /Users/ben/git/gcmd
uv run gcmd list # Will trigger new auth flow
/tmp/ for exports - Makes files easy to find and readcd /Users/ben/git/gcmduv run gcmd - Not just gcmd"credentials.json not found": Follow setup steps to create OAuth credentials (see gcmd README)
"Authentication failed": Delete token and re-authenticate:
rm ~/.config/gcmd/token.json
cd /Users/ben/git/gcmd
uv run gcmd list
"Not a Google Doc": Use download command instead of export for non-Doc files
Browser won't open: The CLI will provide a manual URL to paste in your browser
uv run gcmd from the gcmd directory-o /tmp/ when exporting so files are in a predictable location for easy reading-o, exported files use .exported.md extension (auto-ignored by git). With -o /dir/, uses .md--all-tabs to export each tab as a separate file-v for detailed information (permissions, structure, comments, etc.)--show-comments to view just comments without other verbose details-q flag searches both file names and content