Skill Gmail API — Development skill for Claude Code
Claude Agent Skill for Gmail API - read, draft, send, archive, label, batch operations.
How to install Skill Gmail API
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open tmustier/skill-gmail-api and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Skill Gmail API does
Claude Agent Skill for Gmail API - read, draft, send, archive, label, batch operations.
Alternatives in Development
- Gmail Sync — /gmail-sync - Sync Application Status from Gmail 36.6k ★
- Label Issue 1.3k ★
- Gmail AutoAuth MCP Installation Guide — This guide will help you install and configure the Gmail AutoAuth MCP server for managing Gmail operations thr 1.1k ★
README
Gmail API Skill
A Claude Agent Skill for Gmail operations via CLI. Read, draft, send, archive, label, and batch-process emails.
Setup
**Create OAuth credentials** at [Google Cloud Console](https://console.cloud.google.com/apis/credentials):
- Create project → Enable Gmail API
- Configure OAuth consent screen (External, add yourself as test user)
- Create OAuth Client ID (Desktop app)
**Configure credentials**:
cp credentials.example.json credentials.json # Edit credentials.json with your client_id and client_secret**Install dependencies**:
python3 -m venv .venv .venv/bin/pip install -r requirements.txt**First run** opens browser for OAuth consent:
.venv/bin/python scripts/gmail.py read --limit 3
Usage
# Read emails
scripts/gmail.py read --limit 10
scripts/gmail.py read --query "is:unread" --full
# Create draft
scripts/gmail.py draft --to "x@y.com" --subject "Hi" --body "Hello"
scripts/gmail.py draft --reply-to MSG_ID --body "Thanks!"
# Send
scripts/gmail.py send --draft-id DRAFT_ID
scripts/gmail.py send --to "x@y.com" --subject "Hi" --body "Hello"
# Manage
scripts/gmail.py archive --id MSG_ID
scripts/gmail.py trash --id MSG_ID
scripts/gmail.py mark-read --id MSG_ID
# Batch operations
scripts/gmail.py batch-archive --query "from:newsletters@"
Run `scripts/gmail.py --help` for all 24 commands.
As a Claude Skill
This repo follows the [Agent Skills spec](https://docs.claude.com/en/docs/claude-code/skills). Drop it in your skills directory and Claude will discover it via the `SKILL.md` metadata.
License
MIT
Related Skills
Proton Mail Bridge Client
🌉 Local-first Proton Mail MCP and CLI through Proton Bridge. Search, read, draft, send, sync, and act on mail
Sweep
Daily end-of-day Gmail inbox sweep — auto-label the obvious, flag the rest for review, log decisions for futur
Chrome Extension Prospector
A Claude Code skill: find free Chrome extensions in a niche, pull dev emails, lowball acquisition offers, auto
Followup Check
Midday inbox check — sync Gmail, classify new replies, send alerts if serious. No outbound emails sent.
Accuracy Comment
Accuracy-scout step 5 — draft accuracy comment, update issue, add label
Tui Agent Channel
Use when Claude needs to send MDL commands to a running mxcli TUI, execute operations with human oversight, or
Related Agents
Email Reader
Read-only Gmail reader. Use it to search, open and summarize email threads (inbox sweeps, Google Scholar alert
Email Manager
Manage internal project email: read inbox, send messages, archive processed items, run the periodic delivery a
Email Classifier
Classify a chunk of Gmail emails into Action Required, Waiting On, or Reference categories. Used by gmail-labe