gmail

gmail is a skill for Claude Code, Codex from pbc-os/smb-starter-kit. It costs 31 tokens per session (1,837 once invoked), scanned A, original, MIT.

An email-management assistant for small business Gmail accounts. Gmail is Google's email service, and the tool works through the gws command-line program.

In plain words
What is it for?
Use it to summarise and triage an inbox, draft or send replies and forwards, watch for new messages, create templates, and test email filters before applying them.
Why use it?
It reduces the time spent sorting unread messages and handling repeated customer or supplier communication. It also makes email automation easier to review before changes affect future mail.

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/pbc-os/smb-starter-kit/gmail
Any agent
npx skills add pbc-os/smb-starter-kit --skill gmail
Clone the repo
git clone --depth 1 https://github.com/pbc-os/smb-starter-kit

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/pbc-os/smb-starter-kit/gmail.svg)](https://agentmods.dev/skills/pbc-os/smb-starter-kit/gmail)
Your own site
<a href="https://agentmods.dev/skills/pbc-os/smb-starter-kit/gmail"><img src="https://agentmods.dev/badge/skills/pbc-os/smb-starter-kit/gmail.svg" alt="Measured on agentmods" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,837 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.00031 $0.01837
Opus 5 $0.00015 $0.00919
Sonnet 5 $0.00006 $0.00367
Haiku 4.5 $0.00003 $0.00184

Measured 5d ago against content hash 43c102af397b, 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 5d 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/tier-2-communication/gmail/SKILL.md · 241 lines

How it starts

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

Gmail

Email management built for how small businesses actually use email.

Uses the gws CLI for all Gmail operations. See the google-workspace skill for setup.

Triggers

  • "check my email"
  • "triage inbox"
  • "send an email to..."
  • "reply to..."
  • "email summary"
  • "set up email filters"
  • Any request involving reading, sending, or managing email

Prerequisites

  • gws CLI installed and authenticated with Gmail scope
  • Run gws auth login -s gmail if not already done

Core Commands

gws gmail +triage              # Unread inbox summary (sender, subject, date)
gws gmail +triage --max 10     # Limit to 10 messages
gws gmail +send                # Send a new email
gws gmail +reply               # Reply to a message (handles threading)
gws gmail +reply-all           # Reply-all
gws gmail +forward             # Forward a message
gws gmail +watch               # Stream new emails as NDJSON (real-time)

Sending and filters are consequential. Draft every outbound email and show it to the user for approval before +send / +reply / +forward. Before creating a filter (which silently diverts or archives future mail), run it with --dry-run, show the user what it would match, and get a yes.

Daily Triage Workflow

The most valuable email workflow for an SMB owner. Run this every morning.

Step 1: Get the inbox snapshot

gws gmail +triage --max 20 --format table

Step 2: Categorize by priority

When triaging, sort emails into these buckets:

Priority What Goes Here Action
Urgent Customer complaints, payment issues, time-sensitive vendor requests Handle immediately
Today Orders, supplier confirmations, employee questions Handle before end of day
This week Marketing emails, partnership inquiries, non-urgent vendor comms Batch process
Archive Newsletters, notifications, FYI-only Label and archive

Read the full file on GitHub · 241 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. 5d ago First seen · 241 lines · 31 tokens per session scan A 43c102af397b

Subscribe to this mod's changes

gmail is a skill published in the GitHub repository pbc-os/smb-starter-kit (10 stars, last pushed 3mo ago), licensed MIT. It adds 31 tokens to every session and 1,837 once invoked, about $0.0002 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.