Google Workspace CLI (Gmail, Calendar, Drive) via gcli — use --for-ai flag for token-efficient structured output.
From devkitnpx claudepluginhub 5uck1ess/devkitThis skill uses the workspace's default tool permissions.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Executes pre-written implementation plans: critically reviews, follows bite-sized steps exactly, runs verifications, tracks progress with checkpoints, uses git worktrees, stops on blockers.
Single binary for Gmail, Calendar, and Drive. Always use --for-ai for structured, token-efficient output.
NEVER send, reply, forward, or delete email/calendar events without explicit user confirmation of the recipient(s), subject, and body. Always show the user what will be sent and wait for approval before executing. The same applies to cal create, cal edit, cal delete, and drive upload.
Before using any gcli command, verify it is installed:
command -v gcli >/dev/null 2>&1 && echo "gcli: installed" || echo "gcli: not installed — install from https://github.com/AryaLabsHQ/gcli and run 'gcli login'"
If gcli is not installed, tell the user and stop. Do not attempt gcli commands without this check.
# List inbox (default 20)
gcli mail list --for-ai
gcli mail list 10 --unread --for-ai
# Read a thread
gcli mail get <thread-id> --for-ai
# Search
gcli mail search "from:boss subject:review" --for-ai
# Send
gcli mail send -t "user@example.com" -s "Subject" --body-file msg.txt
# Reply (use thread-id from list/search)
gcli mail reply <thread-id> --body-file reply.txt
gcli mail reply <thread-id> --all --body-file reply.txt
# Forward / mark
gcli mail forward <thread-id> -t "other@example.com"
gcli mail mark <message-id> --read
gcli mail mark <message-id> --trash
# Today's events
gcli cal list --for-ai
# Next 7 days
gcli cal list 7 --for-ai
# All calendars
gcli cal list 7 --all-calendars --for-ai
# Event details
gcli cal get <event-id> --for-ai
# Create
gcli cal create "Meeting" -s "tomorrow 2pm" -d "1h" --attendee "person@example.com"
# Edit / delete
gcli cal edit <event-id> -s "tomorrow 3pm"
gcli cal delete <event-id>
# List root
gcli drive list --for-ai
# List folder
gcli drive list "path/to/folder" --for-ai
# Search
gcli drive search "quarterly report" --for-ai
# Shared files
gcli drive list -s --for-ai
# Download / upload
gcli drive download "path/to/file" -o ./local-file
gcli drive upload ./local-file "path/to/folder"
# Info / permissions
gcli drive info "path/to/file" --for-ai
gcli drive permissions "path/to/file" --for-ai
When writing email body:
tmp=$(mktemp)--body-file "$tmp" to send — avoids shell escaping issuesrm -f "$tmp"mail list and mail search feed into mail get, mail reply, mail forwardcal list feed into cal get, cal edit, cal delete--for-ai strips HTML and formats for LLM consumption — always use it for reads-A file1.pdf -A file2.pdf (repeatable)