gmail
Read and search Gmail for $USER@gmail.com using gog CLI — authoritative method for all Gmail access
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 6
- Forks
- 0
01 前言 Front Matter
- name
- gmail
- type
- reference
- scope
- global
- description
- Read and search Gmail for $USER@gmail.com using gog CLI — authoritative method for all Gmail access
03 SKILL.md 正文
Gmail Access via gog CLI
Tool: gog — Google CLI with Gmail/Calendar/Drive/Sheets support
Binary: /opt/homebrew/bin/gog
Auth: macOS keychain (persistent, no re-auth needed)
Account: $USER@gmail.com
Core Commands
# Search (Gmail query syntax)
gog gmail search -a $USER@gmail.com "<query>" --limit 10
# Get full message body by ID
gog gmail get -a $USER@gmail.com <messageId>
# Recent inbox
gog gmail search -a $USER@gmail.com "in:inbox newer_than:1d" --limit 20
# JSON output for scripting
gog gmail search -a $USER@gmail.com "<query>" --json --limit 5
Gmail Query Syntax Examples
subject:[Consulting] # subject contains [Consulting]
from:noreply@github.com # from a sender
newer_than:1d # last 24 hours
newer_than:1h # last 1 hour
in:inbox is:unread # unread inbox
has:attachment # messages with attachments
Output Format
ID DATE FROM SUBJECT LABELS
19e656a13d3ad37d 2026-05-26 10:51 AI Universe Contact... [Consulting] New... INBOX
Use the ID with gog gmail get to read the full body.
Anti-patterns (NEVER use these for Gmail)
- ❌ Browser automation / Chrome MCP tabs
- ❌
mcp-agent-mail(that's inter-agent messaging via port 8765, not Gmail) - ❌
@gongrzhe/server-gmail-autoauth-mcp(not configured) - ❌ Navigating to mail.google.com in browser
Slash Command
/gmail <query> — calls gog gmail search -a $USER@gmail.com "<query>"
04 同仓库更多 Skills
instinct
Use when the user invokes /instinct or /in, or asks to "message Instinct", "ask Instinct", "tell Instinct", "check Instinct", or read replies from the configured peer assistant. iMessage first, WhatsApp Web as fallback.
hr
Compatibility alias for history-resume; produce the same fresh-state, provenance-aware resume briefing.
history-resume
Resume briefing for the current repository branch or worktree using fresh state and admitted history sources.
grok
Alias for the canonical grokbot browser conversation workflow; /grok talks to the Grok bot the same way /dot talks to Dot.
codexa-bench
Compare `codexa` and normal `codex` on a fair split of comparable work by default; use `--strict` for duplicate runs of the exact same task.
frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.