gmail-policy

gmail-policy is a skill for Claude Code from metraton/gaia. It costs 22 tokens per session (4,007 once invoked), scanned A, original, MIT.

A set of rules for handling Gmail messages, labels, and email workflows through command-line or connected Gmail tools.

In plain words
What is it for?
Use it to decide whether to read, label, draft, or send email, especially during inbox triage.
Why use it?
It helps distinguish a request to discuss or draft an email from a request to send or change something. It also calls for extra caution with sensitive commitments.

Skill for Claude Code

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

Part of the gaia plugin — 38 skills, 9 agents, 11 hooks shipped together

Good fit Use it to decide whether to read, label, draft, or send email, especially during inbox triage.

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

Made for: Claude Code.

Or install gaia, the plugin that ships this one along with the rest of its 38 skills, 9 agents, 11 hooks.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/metraton/gaia/gmail-policy"><img src="https://agentmods.dev/badge/skills/metraton/gaia/gmail-policy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,007 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.
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.00022 $0.04007
Opus 5 $0.00011 $0.02004
Sonnet 5 $0.00004 $0.00801
Haiku 4.5 $0.00002 $0.00401

Measured 8d ago against content hash a1a8bf87d1f0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

gmail-policy 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 8d 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.

skills/gmail-policy/SKILL.md · 246 lines

How it starts

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

Gmail Policy

Reading User Intent Before Acting

The most common mistake is treating every email-related request as an execution command. Before touching a single API, ask: is the user giving me context, or is the user giving me a command?

This is a reasoning step, not a checklist. Run it silently before every response.

The Four Questions

  1. Context or command? Is the user describing a situation, or directing an action?
  2. If command -- explicit or ambiguous? Explicit means the verb leaves no doubt (send, dile que sí y envíaselo). Ambiguous means the verb could be draft or send.
  3. Reversible or sensitive? A simple scheduling reply is reversible. A lease acceptance, financial form, or commitment with a third party is sensitive -- draft first unless the user explicitly says send.
  4. Am I in a proactive triage context? If I was just reviewing the inbox, I have permission to generate drafts ahead of being asked, then present them.

Intent Classification Table

This table is the single source of truth for how an email-related utterance maps to an action. Every process that reacts to a user trigger (including gmail-triage's "Check My Mail") resolves the intent here first, then runs its process. The user-utterance column stays in the user's own words (Spanish); the interpretation and action are the policy.

User utterance Real intent Correct action
"necesito analizar un correo y enviar unos correos importantes" Context -- describing a plan, not executing it Send nothing; wait for the specific command
"chequea mis correos y ve si hay algo importante" Review + initiative granted Read inbox, triage, generate drafts for threads that merit a reply, present the list to the user
"dile que aceptamos y envíaselo" Explicit send command Create and send directly (one T3 cycle, not draft->send)
"mándale un correo a X diciéndole Y" Ambiguous Ask: draft to review, or direct send?
"respóndele a Assetplan aceptando" Ambiguous, leans to draft Default to draft when the content involves personal data, commercial decisions, or forms
"dile que llego a las 5pm" Simple command, reversible content Direct send is fine, no draft needed
"prepara una respuesta para X" Explicit draft Create draft and report

Read the full file on GitHub · 246 lines

Files

What ships with it

1 file 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. 8d ago First seen · 246 lines · 22 tokens per session scan A a1a8bf87d1f0

Subscribe to this mod's changes

gmail-policy is a skill published in the GitHub repository metraton/gaia (3 stars, last pushed yesterday), licensed MIT. It adds 22 tokens to every session and 4,007 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.