gmail

A Gmail command-line interface for searching, reading, and managing email. Gmail is Google's email service.

In plain words
What is it for?
Use it to check unread mail, search by sender or subject, read specific messages, summarize them, and change their read status.
Why use it?
It lets the agent find relevant messages without browsing the inbox manually. It can also mark messages read or unread while avoiding deletion unless explicitly requested.

Skill for Claude CodeCodex

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.

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

Made for: Claude Code, Codex.

Per session 10 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 406 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00010 $0.00406
Opus 5 $0.00005 $0.00203
Sonnet 5 $0.00002 $0.00081
Haiku 4.5 $0.00001 $0.00041

Measured 2d ago against content hash 07f8223d56cf, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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/skills/gmail/SKILL.md · 54 lines

What it actually says

Gmail Access

Read, search, and manage emails using gws-cli gmail. Auth is pre-configured.

Triggers

  • User says "check email", "any new emails?", "check my inbox"
  • Cron task fires for scheduled email check
  • User asks about a specific email or sender

Commands

# List unread emails
gws-cli gmail list -q "is:unread" -n 20

# Read a message by ID
gws-cli gmail read MSG_ID

# Search
gws-cli gmail search -q "from:someone subject:invoice"

# Mark as read
gws-cli gmail mark-read MSG_ID

# Mark as unread
gws-cli gmail mark-unread MSG_ID

Search query syntax

Standard Gmail operators: from:, to:, subject:, is:unread, newer_than:1d, has:attachment, label:, after:2026/03/01.

Workflow: checking emails

  1. gws-cli gmail list -q "is:unread" -n 20
  2. For each unread email: gws-cli gmail read <id>
  3. Send a SHORT summary to the user (one message per email)
  4. Summary format: From: / Subject: / 1-2 sentence gist
  5. After summarizing, mark as read: gws-cli gmail mark-read <id>
  6. Do NOT create files, reports, or .md documents — deliver summaries directly in chat

Rules

  • Never delete or trash emails without explicit user request
  • If no unread emails, do not send any message — stay silent
  • This is the ONLY gmail skill — do not create sub-skills for check/read/mark separately
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. 2d ago First seen · 54 lines · 10 tokens per session scan A 07f8223d56cf

Subscribe to this mod's changes

gmail is a skill published in the GitHub repository aksika/abtars (9 stars, last pushed 2d ago), licensed Apache-2.0. It adds 10 tokens to every session and 406 once invoked, about $0.0001 per session on Opus 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-31.