gmail-tool

gmail-tool is a skill for Claude Code, Codex from xuiltul/animaworks. It costs 55 tokens per session (289 once invoked), scanned A, original, Apache-2.0.

A command-line connection to Gmail, Google's email service, using account authorisation. It can check unread messages, read email bodies, and create drafts.

In plain words
What is it for?
Use it to list unread mail, fetch a message by its ID, or create a draft addressed to someone, optionally within an existing conversation.
Why use it?
It avoids switching tools when an agent needs to inspect email or prepare a reply without sending it.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to list unread mail, fetch a message by its ID, or create a draft addressed to someone, optionally within an existing conversation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xuiltul/animaworks/gmail-tool
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 xuiltul/animaworks --skill gmail-tool
Clone the repo
git clone --depth 1 https://github.com/xuiltul/animaworks

Made for: Claude Code, Codex.

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-tool

README.md
[![agentmods](https://agentmods.dev/badge/skills/xuiltul/animaworks/gmail-tool/github.svg)](https://agentmods.dev/skills/xuiltul/animaworks/gmail-tool)
Your own site
<a href="https://agentmods.dev/skills/xuiltul/animaworks/gmail-tool"><img src="https://agentmods.dev/badge/skills/xuiltul/animaworks/gmail-tool/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-tool

Your own site · 80×15
<a href="https://agentmods.dev/skills/xuiltul/animaworks/gmail-tool"><img src="https://agentmods.dev/badge/skills/xuiltul/animaworks/gmail-tool.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 289 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
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 51
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • medium Rogue Agent · line 35
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
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.00055 $0.00289
Opus 5.5 $0.00022 $0.00116
Sonnet 5.5 $0.00011 $0.00058
Haiku 4.5 $0.00006 $0.00029

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

Security

Grade A, and why

gmail-tool 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 20d ago.

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.

templates/en/common_skills/gmail-tool/SKILL.md · 47 lines

What it actually says

Gmail Tool

An external tool that directly operates on Gmail emails using OAuth2.

How to Invoke

Bash: Run with animaworks-tool gmail <サブコマンド> [引数]

Available Actions

unread — List unread emails

animaworks-tool gmail unread [-n 20]

read_body — Read email body

animaworks-tool gmail read MESSAGE_ID

draft — Create draft

animaworks-tool gmail draft --to ADDR --subject SUBJ --body BODY [--thread-id TID]

CLI Usage

animaworks-tool gmail unread [-n 20]
animaworks-tool gmail read MESSAGE_ID
animaworks-tool gmail draft --to ADDR --subject SUBJ --body BODY [--thread-id TID]

Notes

  • OAuth2 authentication flow is required on first use
  • credentials.json and token.json must be placed in ~/.animaworks/
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. 20d ago Changed · -5 lines · +13 tokens per session f2092fa109b9
  2. 1mo ago First seen · 52 lines · 42 tokens per session scan A c832def7e142

Subscribe to this mod's changes

gmail-tool is a skill published in the GitHub repository xuiltul/animaworks (267 stars, last pushed yesterday), licensed Apache-2.0. It adds 55 tokens to every session and 289 once invoked, about $0.0002 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

email

Send emails directly from your agent. Supports HTML and plain text. Works with Unosend (5,000 free emails/month) or any SMTP provider.

citedy/adclaw · 33 tokens

imap-smtp-email

Read, search, and manage email via IMAP protocol. Send email via SMTP. Supports Gmail, Outlook, 163.com, 126.com, QQ Mail, and any standard IMAP/SMTP server with multi-account support.

wentorai/Research-Claw · 51 tokens

inbox-triage

Email inbox triage for AI agents — scan, categorize, draft replies, surface urgent items, and archive noise. Supports Gmail and IMAP for inbox zero workflows.

theagentledger/agent-skills · 39 tokens

agent-inbox

Read and answer the messages people send your agent, and reach the person you're working for, via the Agent Inbox CLI (npx @agentinbox/cli inbox list|show|send|reply). Use it to pick up unread conversations in background/autonomous/scheduled runs, and when you need a decision, approval, or notification and no one is…

novuhq/novu · 93 tokens

novu-design-workflow

Design notification workflows the Novu way — choose channels, set severity, decide when a workflow is critical, configure digests, and route based on subscriber state. Applies to BOTH dashboard-authored and code-first (@novu/framework) workflows. Use when planning a new workflow, deciding which channels to include…

novuhq/novu · 114 tokens

novu-manage-preferences

Configure notification preferences in Novu at the workflow and subscriber level. Set default channel preferences (email, SMS, push, chat, in-app), mark preferences as read-only or subscriber-editable, and manage subscriber-specific overrides. Use when setting up notification opt-in/opt-out, configuring per-channel…

novuhq/novu · 76 tokens