earlyaidopters/claudeclaw/gmail
Claude Code and agent skill by earlyaidopters/claudeclaw
- community
Checking that the SKILL.md file is still in the repository.
Manage your Gmail inbox from Claude Code. List, read, triage, reply, send, and create filters.
Install
npx vskill@latest install earlyaidopters/claudeclaw/gmailSKILL.md
The same SKILL.md was published earlier as earlyaidopters/claudeclaw-os/gmail.
Gmail Skill
Purpose
Read, triage, reply, and send emails from your Gmail inbox via Claude Code.
Environment
The Gmail CLI reads credential paths from environment variables, loaded from ClaudeClaw's .env via CLAUDECLAW_DIR. Every command MUST use this prefix:
Your .env should contain:
If these aren't set, the script falls back to ~/.config/gmail/credentials.json and ~/.config/gmail/token.json.
Commands
List inbox (full inbox, grouped by thread)
Returns JSON array grouped by thread. Each entry has: id, threadId, from, subject, date, snippet, unread, thread_count. If thread_count > 1, also includes all_ids.
This is the default command. Always use --all unless the user specifically asks for a time-filtered view.
List with time filter
Read full email
Move email to label/folder
- If the label doesn't exist, it creates it automatically
- Removes from INBOX, adds to target label, marks as read
List all labels
Reply to an email
- Automatically threads correctly (In-Reply-To, References headers)
- Prefixes subject with "Re:" if not already there
- Replies to the sender's From/Reply-To address
Reply with attachments
Send a new email
Send with attachments
Create a Gmail filter (auto-sort rule)
--from/--to/--subject/--queryfor criteria--labelto apply a label,--archiveto skip inbox,--readto mark as read,--trashto trash- Creates the label automatically if it doesn't exist
List existing filters
Re-authenticate
Workflow
- Run
list --allto show all inbox emails - Display as a table with columns: #, Unread, From, Subject, Replies, Time
- Ask the user which to move and where
- Run
movefor each, confirm results
Display Format
Use a proper markdown table for the inbox:
| # | Unread | From | Subject | Replies | Time | |
|---|---|---|---|---|---|---|
| 1 | * | someone@example.com | Re: Project update | 3 | 2h ago | |
| 2 | newsletter@co.com | Your weekly digest | 1 | 5h ago |
- Replies column shows
thread_count(1 = single message, 2+ = thread) - Each row is one thread (conversation), not individual messages
Drafting Rules
- Always draft email content and show the user before sending
- Never send without confirmation
One-Time Setup
If credentials.json is missing:
- Go to Google Cloud Console
- Create a project (or select existing)
- Enable the Gmail API (APIs & Services > Library)
- Go to APIs & Services > Credentials
- Create an OAuth 2.0 Client ID > Desktop app
- Download the JSON file
- Save it to the path in your
GOOGLE_CREDS_PATH(default:~/.config/gmail/credentials.json) - Run the
authcommand (see above) - Browser opens, sign in, authorize, done
Error Handling
- If
credentials.jsonmissing, show setup instructions above - If
token.jsonmissing, run auth automatically - If label not found, the script creates it
- If any command fails, show the error and ask the user what to do
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/gmail/SKILL.md
Popularity
- 7-day trend score
- 0
Refreshed 23 Oct 2026, 7 days ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/earlyaidopters/claudeclaw/gmail)