Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

gmail

Skill by gemini-cli-extensions

Guides an AI assistant through Gmail API tasks, including HTML email formatting, search operators, labels and attachments. It is aimed at users who want help composing, searching or managing Gmail.

  • Score 80
  • 656 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install gmail

Built from the published package, never by AI.

git clone --depth 1 https://github.com/gemini-cli-extensions/workspace /tmp/workspace && mkdir -p ~/.claude/skills && cp -r /tmp/workspace/skills/gmail ~/.claude/skills/gmail

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install gmail in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The gmail skill gives an AI assistant guidelines for composing and managing email through the Gmail API. When composing with gmail.send or gmail.createDraft, it asks for HTML formatting with isHtml set to true unless the user wants plain text. It lists supported HTML tags and inline CSS rules. It also covers Gmail search operators for gmail.search, applying and removing system and custom labels with gmail.modify, downloading attachments to absolute paths, and creating threaded reply drafts.

The skill is written as a set of instructions in a SKILL.md file. It warns against script tags, style blocks, external stylesheets and form elements, which email clients do not support reliably. It is aimed at people who want an assistant to handle Gmail tasks in a consistent, professional way. Its description says it should be activated before composing, sending, drafting or searching emails.

Written from the project's SKILL.md and checked against it.

What it can do

  • gmail.sendSends email, using HTML with isHtml set to true unless plain text is requested.
  • gmail.createDraftCreates drafts, including reply drafts linked to a thread with threadId.
  • gmail.searchSearches mail with Gmail operators such as from:, has:attachment and newer_than:.
  • gmail.modifyAdds or removes system labels such as INBOX, UNREAD and STARRED, and custom labels by ID.
  • gmail.listLabelsLists all labels with their IDs so a custom label can be matched by name.
  • gmail.getGets message metadata, including attachment IDs and filenames, when format is 'full'.
  • gmail.downloadAttachmentDownloads an attachment by messageId and attachmentId to an absolute local path.

What you need

  • Gmail API access

Try asking

  • Draft an HTML email to my team summarizing the Q4 results.
  • Search my Gmail for unread messages from alice@example.com this month.
  • Download the PDF attachment from Bob's latest email to my Downloads folder.

Good to know

  • Relative paths for attachment downloads are rejected, so absolute paths are required.
  • Gmail strips style blocks, so styling must be inline.
  • Properties such as position, float, flexbox and grid are unreliable in email.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/gmail/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to gmail

All alternatives →

Compare with setup-zoom-webhooks, baoyu-post-to-weibo or add-dial-number

gmail: common questions

Does this skill send HTML emails by default?

Yes. Unless the user asks for plain text, it uses HTML with isHtml set to true. It advises inline CSS because Gmail strips style blocks.

How does it handle replies in a thread?

Use threadId with gmail.createDraft. The service fetches In-Reply-To and References headers from the thread to keep threading intact.

Can it apply custom Gmail labels?

Yes. It calls gmail.listLabels to find the label ID by name, then uses that ID in gmail.modify.

How do I install gmail?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is gmail free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is gmail safe to use?

It scores 80 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to gmail?

Similar skills: setup-zoom-webhooks, baoyu-post-to-weibo, add-dial-number, setup-zoom-websockets.

Add to stack

Loading.