gmail

gmail is a skill for Claude Code, Codex from naoterumaker/openclaw-gog-skills. It costs 76 tokens per session (2,182 once invoked), scanned A, original, MIT.

A Gmail operating guide for the gog command-line tool, which lets you work with email from a terminal. It covers searching, reading, sending, replying, labeling, and handling attachments.

In plain words
What is it for?
Use it to find messages, retrieve full email threads, send or reply to mail, manage labels, and search for emails with particular attachments.
Why use it?
It provides ready-made commands for common mail tasks, including filters for unread messages, senders, dates, labels, and file types. This avoids having to remember the command syntax.

Skill for Claude CodeCodex

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

Good fit Use it to find messages, retrieve full email threads, send or reply to mail, manage labels, and search for emails with particular attachments.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/naoterumaker/openclaw-gog-skills/gmail"><img src="https://agentmods.dev/badge/skills/naoterumaker/openclaw-gog-skills/gmail.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,182 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.00076 $0.02182
Opus 5 $0.00038 $0.01091
Sonnet 5 $0.00015 $0.00436
Haiku 4.5 $0.00008 $0.00218

Measured 11d ago against content hash bc82b9984860, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 11d 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.

gmail/SKILL.md · 337 lines

How it starts

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

Gmail 操作スキル (gog v0.10.0)

gog CLI でGmailを操作する。

実行パス: gog

認証アカウント: (gogで認証したアカウント)

Execution Notes

  • exec ツールで実行時、timeout: 60 を指定
  • 大量検索は --max で制限

メール検索

基本検索

gog gmail search "<query>"
gog gmail search "is:unread" --max 10
gog gmail search "from:[email protected]"

検索クエリ一覧

クエリ 説明
is:unread 未読
is:starred スター付き
is:important 重要
from:xxx 送信者
to:xxx 宛先
cc:xxx CC
subject:xxx 件名に含む
"キーワード" 完全一致検索
has:attachment 添付ファイルあり
filename:pdf PDFファイル添付
larger:5M 5MB以上
smaller:1M 1MB以下
after:YYYY/MM/DD 指定日以降
before:YYYY/MM/DD 指定日以前
older_than:7d 7日より前
newer_than:3d 3日以内
label:xxx 特定ラベル
in:inbox 受信トレイ
in:sent 送信済み
in:trash ゴミ箱
in:anywhere すべて(ゴミ箱含む)

複合検索例

# 田中さんから今週届いた未読メール
gog gmail search "from:tanaka is:unread newer_than:7d"

# 請求書関連の添付ファイル付きメール
gog gmail search "subject:請求書 has:attachment"

# 2026年1月以降のPDF添付メール
gog gmail search "filename:pdf after:2026/01/01"

メール取得

スレッド・メッセージ取得

# メッセージ詳細(本文込み)
gog gmail get <messageId>

# メタデータのみ
gog gmail messages get <messageId> --format metadata

添付ファイルダウンロード

gog gmail attachment <messageId> <attachmentId>
gog gmail attachment <messageId> <attachmentId> --output "./download.pdf"

メール送信

基本送信

gog gmail send \
  --to "[email protected]" \
  --subject "件名" \
  --body "本文テキスト"

CC/BCC付き

gog gmail send \
  --to "[email protected]" \
  --cc "[email protected],[email protected]" \
  --bcc "[email protected]" \
  --subject "件名" \
  --body "本文"

添付ファイル付き

gog gmail send \
  --to "[email protected]" \
  --subject "資料送付" \
  --body "添付ファイルをご確認ください。" \
  --attach "./report.pdf" \
  --attach "./data.xlsx"

HTML本文

gog gmail send \
  --to "[email protected]" \
  --subject "HTMLメール" \
  --body-html "<h1>見出し</h1><p>本文です。</p>"

Read the full file on GitHub · 337 lines

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. 11d ago First seen · 337 lines · 76 tokens per session scan A bc82b9984860

Subscribe to this mod's changes

gmail is a skill published in the GitHub repository naoterumaker/openclaw-gog-skills (4 stars, last pushed 6mo ago), licensed MIT. It adds 76 tokens to every session and 2,182 once invoked, about $0.0004 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.