gmail
Manage Gmail inbox triage, mailbox search, thread summaries, action extraction, reply drafting, and email forwarding through connected Gmail data. Use when the user wants to inspect a mailbox or thread, search email with Gmail query syntax, summarize messages, extract decisions and follow-ups, prepare replies or forwarded messages, or organize messages with explicit confirmation before send, archive, delete, or label actions.
Best use case
gmail is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Manage Gmail inbox triage, mailbox search, thread summaries, action extraction, reply drafting, and email forwarding through connected Gmail data. Use when the user wants to inspect a mailbox or thread, search email with Gmail query syntax, summarize messages, extract decisions and follow-ups, prepare replies or forwarded messages, or organize messages with explicit confirmation before send, archive, delete, or label actions.
Teams using gmail should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/gmail/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How gmail Compares
| Feature / Agent | gmail | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Manage Gmail inbox triage, mailbox search, thread summaries, action extraction, reply drafting, and email forwarding through connected Gmail data. Use when the user wants to inspect a mailbox or thread, search email with Gmail query syntax, summarize messages, extract decisions and follow-ups, prepare replies or forwarded messages, or organize messages with explicit confirmation before send, archive, delete, or label actions.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Gmail ## Overview Use this skill to turn noisy email threads into clear summaries, action lists, and ready-to-send drafts. Prefer Gmail-native search and read workflows, preserve message context, and avoid changing message state without explicit user intent. ## Preferred Deliverables - Thread briefs that capture the latest status, decisions, open questions, and next actions. - Reply or forward drafts that are ready to paste, review, or send. - Inbox triage lists that group messages by urgency or follow-up state. ## Workflow Skills | Workflow | Skill | | --- | --- | | Inbox triage, urgency ranking, and follow-up detection | [../gmail-inbox-triage/SKILL.md](../gmail-inbox-triage/SKILL.md) | ## Reference Notes | Task | Reference | | --- | --- | | Search planning, refinement, pagination, and body-fetch strategy | [references/search-workflow.md](./references/search-workflow.md) | | Label application, relabeling, and label-based cleanup | [references/label-actions.md](./references/label-actions.md) | | Reply drafting, reply-all decisions, and tone matching | [references/reply-workflow.md](./references/reply-workflow.md) | | Email forwarding, context notes, and intent framing | [references/forward-workflow.md](./references/forward-workflow.md) | ## Mailbox Analysis Pattern For mailbox analysis requests such as triage, follow-up detection, topic summaries, cleanup, thread understanding, or "what matters here" questions, use this pattern: 1. Strongly prefer Gmail-native `search_emails` first. Use Gmail query syntax for most mailbox tasks because it gives the model precise control over dates, senders, unread state, attachments, subjects, and exclusions, and `search_emails` returns richer summaries than `search_email_ids` without requiring an extra hop. 2. `search_emails` returns message-level summaries, not thread-grouped results. If several messages look related or a conversation may matter, expand the specific items of interest with `read_email_thread`. 3. Use `tags` only in the connector's expected shape: `list[str]`. Do not pass a single string. Prefer uppercase Gmail system labels when filtering by built-in labels. 4. Label search is supported. Use Gmail query syntax for label-aware search, for example `label:foo`, and use `tags` for built-in/system-label filtering when that is cleaner. 5. Common system labels to use in `tags` include `INBOX`, `STARRED`, `TRASH`, `DRAFT`, `SENT`, `SPAM`, `UNREAD`, and `IMPORTANT`. For All Mail, prefer Gmail query syntax such as `in:anywhere` rather than guessing a tag value. 6. Use Gmail-native `batch_read_email` when you need the body of multiple shortlisted emails, and escalate to `read_email_thread` only when the surrounding conversation changes the answer. 7. Use `search_email_ids` only when the next tool specifically needs message IDs and the richer `search_emails` response would not help you decide what to do. 8. Summarize before writing when the request is ambiguous, and keep analysis separate from actions like send, archive, trash, or label changes unless the user explicitly asked for them. ## Write Safety - Preserve exact recipients, subject lines, quoted facts, dates, and links from the source thread unless the user asks to change them. - When drafting a reply, call out any assumptions, missing context, or information that still needs confirmation. - Treat send, archive, trash, label, and move operations as explicit actions that require clear user intent. - If a thread has multiple possible recipients or parallel conversations, identify the intended thread before drafting or acting. - When supporting context such as policy docs, CRM notes, or Slack history is unavailable, do not foreground that limitation unless it materially changes the recommendation. Prefer a draft grounded in the email thread itself, and mention missing internal context only as a brief confidence note when necessary. ## Output Conventions - Summaries should lead with the latest status, then list decisions, open questions, and action items. - Inbox triage should use explicit buckets such as urgent, waiting, and FYI when that helps the user scan quickly. - When ranking urgency or follow-up state, state the search scope and coverage, such as "from the most recent 15 inbox messages" or "from unread inbox messages matching this query." - When the task depends on whether the user "opened" or ignored email, treat that as an inference from Gmail read state unless the connector exposes stronger engagement data. - Avoid absolute claims like "the only urgent email" unless the mailbox scan was comprehensive enough to support that conclusion. - When the result comes from a narrowed search or shortlist, report that confidence and mention what was excluded. - Draft replies should be concise and ready to paste or send, with greeting, body, and closing when appropriate. - If a reply depends on missing facts, present a short draft plus a list of unresolved details. - When multiple emails are involved, reference the sender and timestamp of the message that matters most. - Avoid repetitive meta-explanations about inaccessible internal sources in normal deliverables. If the user wants provenance, summarize the evidence used; otherwise keep the output focused on the draft, summary, or next action. ## Example Requests - "Summarize the latest thread with Acme and tell me what I still owe them." - "Draft a reply that confirms Tuesday works and asks for the final agenda." - "Go through my unread inbox and group emails into urgent, waiting, and low priority." - "Prepare a polite follow-up to the recruiter thread if I have not replied yet." ## Light Fallback If thread or inbox data is missing, say that Gmail access may be unavailable or scoped to the wrong account and ask the user to reconnect or clarify which mailbox or thread should be used.
Related Skills
gmail-inbox-triage
Triage a Gmail inbox into actionable buckets such as urgent, needs reply soon, waiting, and FYI using connected Gmail data. Use when the user asks to triage the inbox, rank what needs attention, find what still needs a reply, or separate important mail from noise.
workflow
Vercel Workflow DevKit (WDK) expert guidance. Use when building durable workflows, long-running tasks, API routes or agents that need pause/resume, retries, step-based execution, or crash-safe orchestration with Vercel Workflow.
verification
Full-story verification — infers what the user is building, then verifies the complete flow end-to-end: browser → API → data → response. Triggers on dev server start and 'why isn't this working' signals.
vercel-storage
Vercel storage expert guidance — Blob, Edge Config, and Marketplace storage (Neon Postgres, Upstash Redis). Use when choosing, configuring, or using data storage with Vercel applications.
vercel-services
Vercel Services — deploy multiple services within a single Vercel project. Use for monorepo layouts or when combining a backend (Python, Go) with a frontend (Next.js, Vite) in one deployment.
vercel-sandbox
Vercel Sandbox guidance — ephemeral Firecracker microVMs for running untrusted code safely. Supports AI agents, code generation, and experimentation. Use when executing user-generated or AI-generated code in isolation.
vercel-queues
Vercel Queues guidance (public beta) — durable event streaming with topics, consumer groups, retries, and delayed delivery. $0.60/1M ops. Powers Workflow DevKit. Use when building async processing, fan-out patterns, or event-driven architectures.
vercel-functions
Vercel Functions expert guidance — Serverless Functions, Edge Functions, Fluid Compute, streaming, Cron Jobs, and runtime configuration. Use when configuring, debugging, or optimizing server-side code running on Vercel.
vercel-flags
Vercel Flags guidance — feature flags platform with unified dashboard, Flags Explorer, gradual rollouts, A/B testing, and provider adapters. Use when implementing feature flags, experimentation, or staged rollouts.
vercel-firewall
Vercel Firewall and security expert guidance. Use when configuring DDoS protection, WAF rules, rate limiting, bot filtering, IP allow/block lists, OWASP rulesets, Attack Challenge Mode, or any security configuration on the Vercel platform.
vercel-cli
Vercel CLI expert guidance. Use when deploying, managing environment variables, linking projects, viewing logs, managing domains, or interacting with the Vercel platform from the command line.
vercel-api
Vercel MCP and REST API expert guidance. Use when the agent needs live access to Vercel projects, deployments, environment variables, domains, logs, or documentation through the MCP server or REST API.