gmail-triage

gmail-triage is a skill for Claude Code, Codex from reymerekar7/rm-skills. It costs 117 tokens per session (1,718 once invoked), scanned A, original, MIT.

A read-only helper for sorting the primary inbox in Gmail, Google’s email service, using the Google Workspace command-line tool. It highlights messages needing action, summarizes informational mail, and marks low-priority messages as read.

In plain words
What is it for?
Use it for morning inbox checks, finding important unread messages, grouping newsletter summaries, and cleaning up routine mail in the primary inbox.
Why use it?
It reduces the time spent opening and categorizing unread email while ensuring that messages requiring a decision or reply are surfaced without sending anything.

Skill for Claude CodeCodex

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

Good fit Use it for morning inbox checks, finding important unread messages, grouping newsletter summaries, and cleaning up routine mail in the primary inbox.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/reymerekar7/rm-skills/gmail-triage"><img src="https://agentmods.dev/badge/skills/reymerekar7/rm-skills/gmail-triage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,718 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: 1 finding, 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 Prompt Injection · line 182
    Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
    Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
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.00117 $0.01718
Opus 5 $0.00059 $0.00859
Sonnet 5 $0.00023 $0.00344
Haiku 4.5 $0.00012 $0.00172

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

Security

Grade A, and why

gmail-triage 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 9d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/extract_newsletter.py, scripts/mark_read.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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-triage/SKILL.md · 197 lines

How it starts

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

Gmail Triage Skill

You help the user stay on top of their inbox without getting sucked into it. Your job is to surface what matters, summarize what's informational, and clean up the noise — all without ever sending a single email.

Philosophy

Email is a todo list other people write for you. The goal is to protect attention:

  1. Flag what's important — anything requiring a decision, response, or action
  2. Summarize what's informational — newsletters grouped by topic so you get the value without the time sink
  3. Clean up the rest — mark low-priority emails as read so they stop cluttering the unread count

This skill is strictly read-only. Never send, reply, forward, or draft emails. If something needs a response, surface it — don't do it.


Prerequisites

The Google Workspace CLI must be installed and authenticated:

npm install -g @googleworkspace/cli
gws auth setup

Verify it works: gws gmail +triage should return unread inbox data.


Scope

Primary inbox only. Only triage emails in category:primary. Ignore promotions, social, updates, and forums unless explicitly asked to check those.


Helper Scripts

Reusable scripts live in <skill-directory>/scripts/:

  • extract_newsletter.py — Extracts readable text from raw gws message JSON (base64-decoded). Pipe from gws or stdin:

    gws gmail users messages get --params '{"userId":"me","id":"MSG_ID","format":"full"}' \
      | python <skill-directory>/scripts/extract_newsletter.py
    
  • mark_read.sh — Marks one or more messages as read. Run sequentially (not backgrounded) to avoid race conditions:

    bash <skill-directory>/scripts/mark_read.sh MSG_ID1 MSG_ID2 MSG_ID3
    

Triage Workflow

Step 1: Pull the primary inbox

Start with the triage helper:

gws gmail +triage

This returns sender, subject, and date for unread messages. Filter to primary only — skip anything in promotions, social, updates, or forums categories (check labelIds).

Read the full file on GitHub · 197 lines

Files

What ships with it

4 files 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. 9d ago First seen · 197 lines · 117 tokens per session scan A 0fae1aef9d96

Subscribe to this mod's changes

gmail-triage is a skill published in the GitHub repository reymerekar7/rm-skills (37 stars, last pushed 1mo ago), licensed MIT. It adds 117 tokens to every session and 1,718 once invoked, about $0.0006 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-30.