gmail

gmail is a skill for Claude Code from sanjay3290/ai-skills. It costs 70 tokens per session (1,265 once invoked), scanned A, original, Apache-2.0.

A connection to Gmail, Google's email service, for searching, reading, sending, drafting, and organizing messages.

In plain words
What is it for?
Use it to find and read emails, send messages, create drafts, manage labels, mark messages as read, archive them, and star them.
Why use it?
It lets a coding agent work with email through commands and Gmail search queries instead of requiring manual inbox work. It requires a Google Workspace account, not a personal Gmail account.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the ai-skills plugin — 24 skills shipped together

Good fit Use it to find and read emails, send messages, create drafts, manage labels, mark messages as read, archive them, and star them.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sanjay3290/ai-skills/gmail
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sanjay3290/ai-skills --skill gmail
Clone the repo
git clone --depth 1 https://github.com/sanjay3290/ai-skills

Made for: Claude Code.

Or install ai-skills, the plugin that ships this one along with the rest of its 24 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gmail

README.md
[![agentmods](https://agentmods.dev/badge/skills/sanjay3290/ai-skills/gmail/github.svg)](https://agentmods.dev/skills/sanjay3290/ai-skills/gmail)
Your own site
<a href="https://agentmods.dev/skills/sanjay3290/ai-skills/gmail"><img src="https://agentmods.dev/badge/skills/sanjay3290/ai-skills/gmail/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gmail

Your own site · 80×15
<a href="https://agentmods.dev/skills/sanjay3290/ai-skills/gmail"><img src="https://agentmods.dev/badge/skills/sanjay3290/ai-skills/gmail.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,265 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket warn 14 Sept 2026
  • Snyk warn 14 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00070 $0.01265
Opus 5.5 $0.00028 $0.00506
Sonnet 5.5 $0.00014 $0.00253
Haiku 4.5 $0.00007 $0.00127

Measured 1mo ago against content hash d0cd4ce59fa0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

gmail scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/auth.py, scripts/gmail.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • gmail — 100% identical, 0 lines differ
skills/gmail/SKILL.md · 184 lines

How it starts

The opening of the file, as written. The whole thing — 184 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Gmail

Lightweight Gmail integration with standalone OAuth authentication. No MCP server required.

⚠️ Requires Google Workspace account. Personal Gmail accounts are not supported.

First-Time Setup

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

Commands

All operations via scripts/gmail.py. Auto-authenticates on first use if not logged in.

Search Emails

# 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

Read Email Content

# 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 Emails

# 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

Draft Management

# 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

Read the full file on GitHub · 184 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 184 lines · 70 tokens per session scan A d0cd4ce59fa0

Subscribe to this mod's changes

gmail is a skill published in the GitHub repository sanjay3290/ai-skills (443 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 70 tokens to every session and 1,265 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

obsidian-workout-export

Export workout data to an Obsidian-formatted Markdown file. Always trigger immediately when the user types "owd". Also trigger on "export workout", "obsidian workout", "save workout to obsidian", or related requests to export workout data into Obsidian. Read the current conversation first before searching prior…

mickpletcher/AI-Skills · 87 tokens

golang-spf13-cobra

Golang CLI command tree library using spf13/cobra — cobra.Command, RunE vs Run, PersistentPreRunE hook chain, Args validators (NoArgs, ExactArgs, MatchAll, custom), persistent vs local flags, command groups, ValidArgsFunction, RegisterFlagCompletionFunc, ShellCompDirective, usage/help template customization, man-page…

aiskillstore/marketplace · 180 tokens

cc-best-practices

Guidance on how to use Claude Code effectively — covering context management, verification strategies, the explore-plan-implement workflow, prompting techniques, session management, parallel sessions, and common failure patterns. Use this skill whenever the user asks how to get the most out of Claude Code, how to…

aiskillstore/marketplace · 100 tokens

always-current-datetime

Use when replying. Refresh current date and time.

aiskillstore/marketplace · 15 tokens

adhd-mode

Use when the user asks for ADHD mode or focus mode, mentions overwhelm, stuck starting, too many open threads or options, losing the plot after an interruption, executive-function friction, or needs low-friction multi-turn work. Structures replies with Answer/Action/Artifact/Project contracts, working-set limits…

aiskillstore/marketplace · 114 tokens

application-form-filler

Fill out job application form fields with context-aware, tailored answers drawn from the candidate's CV and the job description.

aiskillstore/marketplace · 27 tokens