Interact with Gmail: search, read, send, draft, and manage labels via CLI. Lightweight with standalone OAuth, no MCP server needed.
Ships in ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Lightweight Gmail integration with standalone OAuth authentication. No MCP server required.
⚠️ Requires Google Workspace account. Personal Gmail accounts are not supported.
Authenticate with Google (opens browser):
python scripts/auth.py login
Check authentication status:
python scripts/auth.py status
Logout when needed:
python scripts/auth.py logout
All operations via scripts/gmail.py. Auto-authenticates on first use if not logged in.
# Search with Gmail query syntax
python scripts/gmail.py search "from:[email protected] is:unread"
# Search recent emails (no query returns all)
python scripts/gmail.py search --limit 20
# Filter by label
python scripts/gmail.py search --label INBOX --limit 10
# Include spam and trash
python scripts/gmail.py search "subject:important" --include-spam-trash
# Get full message content
python scripts/gmail.py get MESSAGE_ID
# Get just metadata (headers)
python scripts/gmail.py get MESSAGE_ID --format metadata
# Get minimal response (IDs only)
python scripts/gmail.py get MESSAGE_ID --format minimal
# Send a simple email
python scripts/gmail.py send --to "[email protected]" --subject "Hello" --body "Message body"
# Send with CC and BCC
python scripts/gmail.py send --to "[email protected]" --cc "[email protected]" --bcc "[email protected]" \
--subject "Team Update" --body "Update message"
# Send from an alias (must be configured in Gmail settings)
python scripts/gmail.py send --to "[email protected]" --subject "Hello" --body "Message" \
--from "Mile9 Accounts <[email protected]>"
# Send HTML email
python scripts/gmail.py send --to "[email protected]" --subject "HTML Email" \
--body "<h1>Hello</h1><p>HTML content</p>" --html
# Create a draft
python scripts/gmail.py create-draft --to "[email protected]" --subject "Draft Subject" \
--body "Draft content"
# Send an existing draft
python scripts/gmail.py send-draft DRAFT_ID
# Mark as read (remove UNREAD label)
python scripts/gmail.py modify MESSAGE_ID --remove-label UNREAD
# Mark as unread
python scripts/gmail.py modify MESSAGE_ID --add-label UNREAD
# Archive (remove from INBOX)
python scripts/gmail.py modify MESSAGE_ID --remove-label INBOX
# Star a message
python scripts/gmail.py modify MESSAGE_ID --add-label STARRED
# Unstar a message
python scripts/gmail.py modify MESSAGE_ID --remove-label STARRED
# Mark as important
python scripts/gmail.py modify MESSAGE_ID --add-label IMPORTANT
# Multiple label changes at once
python scripts/gmail.py modify MESSAGE_ID --remove-label UNREAD --add-label STARRED
# List all Gmail labels (system and user-created)
python scripts/gmail.py list-labels
Gmail supports powerful search operators:
| Query | Description |
|---|---|
from:[email protected] | Emails from a specific sender |
to:[email protected] | Emails to a specific recipient |
subject:meeting | Emails with "meeting" in subject |
is:unread | Unread emails |
is:starred | Starred emails |
is:important | Important emails |
has:attachment | Emails with attachments |
after:2024/01/01 | Emails after a date |
before:2024/12/31 | Emails before a date |
newer_than:7d | Emails from last 7 days |
older_than:1m | Emails older than 1 month |
label:work | Emails with a specific label |
in:inbox | Emails in inbox |
in:sent | Sent emails |
in:trash | Trashed emails |
Combine with AND (space), OR, or - (NOT):
python scripts/gmail.py search "from:[email protected] is:unread newer_than:1d"
python scripts/gmail.py search "subject:urgent OR subject:important"
python scripts/gmail.py search "from:[email protected] -is:starred"
| Label | ID |
|---|---|
| Inbox | INBOX |
| Sent | SENT |
| Drafts | DRAFT |
| Spam | SPAM |
| Trash | TRASH |
| Starred | STARRED |
| Important | IMPORTANT |
| Unread | UNREAD |
Tokens stored securely using the system keyring:
Service name: gmail-skill-oauth
Tokens automatically refresh when expired using Google's cloud function.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
gmail, email, oauth, google-workspace, cli, email-automation
25 skills in this plugin
/apple-containerApple's open-source `container` CLI to build, run, and manage OCI/Linux containers as
lightweight per-container VMs on Apple-silicon macOS — no Docker daemon required. Use when
the user mentions the `container` CLI, "apple container", running or building containers on
macOS without Docker/Podman, `container run`, `container build`, `container images`,
`container system start`, pushing/pulling images to a registry, or container networking on
macOS. This is Apple's `container` tool specifically (repo `apple/container`), NOT Docker,
Podman, containerd, nerdctl, or Kubernetes — the CLI is Docker-like but is a different tool.
/atlassianManage Jira issues and Confluence wiki pages in Atlassian Cloud.
Use when: (1) searching/creating/updating Jira issues with JQL, (2) searching/reading/creating Confluence pages
with CQL, (3) managing Jira workflows, transitions, and comments, (4) browsing Confluence spaces and page
hierarchies. Supports OAuth 2.1 via MCP server (recommended) or API token authentication (fallback).
/azure-devopsManage Azure DevOps projects, work items, repos, PRs, pipelines, wikis, test plans, security alerts,
variable groups, environments/approvals, branch policies, and attachments. Use when user asks to: manage
sprints, create/update work items, list repos, create PRs, run pipelines, search code, manage wiki pages,
check security alerts, manage variable groups, approve deployments, or configure branch policies.
Covers 13 domains with 99 tools via REST API.
/deep-researchExecute autonomous multi-step research using Google Gemini Deep Research Agent. Use for: market analysis, competitive landscaping, literature reviews, technical research, due diligence. Takes 2-10 minutes but produces detailed, cited reports. Costs $2-5 per task./elevenlabsConvert documents and text to audio using ElevenLabs text-to-speech.
Use this skill when the user wants to create a podcast, narrate a document,
read aloud text, generate audio from a file, or convert text to speech.
/gemini-apiCall the Gemini API from the shell with Google's `gemini-api` CLI, when that binary is installed — text and reasoning, image generation and editing, text-to-speech, music, video, document/audio/video/YouTube analysis, transcription and captions, file uploads, and managed agents (Deep Research) run in the background. Use when the task needs a Gemini model or a second opinion from one, a generated image/voiceover/soundtrack/clip, an answer out of a PDF or recording, an SRT caption file, or a long-running research agent. Triggers: 'use gemini', 'ask gemini', 'gemini-api', 'generate an image', 'make a voiceover', 'transcribe this', 'analyze this PDF', 'deep research'. Not for writing application code against the Gemini SDK or Vertex AI./ai-skills:gmailfrom ai-skills
npx claudepluginhub sanjay3290/ai-skills --plugin ai-skillsOther plugins' skills for the same job