Sorts Gmail inbox into SYSTEM & SECURITY, WORK, and PERSONAL & FAMILY categories. Supports on-demand /digest command and scheduled digests via a private deployment.
Ships in gmail-commander. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
How Gmail Commander sorts recent email into what needs attention, and where each digest actually comes from.
Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.
| Digest | Trigger | Code |
|---|---|---|
On-demand /digest [hours] | A user sends it to the bot (default 6 h) | This plugin: scripts/lib/commands.ts + scripts/lib/triage.ts |
| Scheduled digest | Several times a day, unattended | The private deployment's GmailDigest service — its own implementation |
The scheduled digest runs in a private Restate tenant on an always-on Mac mini and does not import this plugin's triage code. Its schedule, prompt, alerting and failures are operated through that deployment's own repository runbook.
This plugin no longer ships a scheduled digest entry point: the laptop launchd job com.example.gmail-commander-digest was retired on 2026-09-24, and its scripts/digest.ts (with the Kokoro podcast-style voice briefing in scripts/lib/tts-client.ts) was removed on 2026-09-26 once nothing imported it. Do not recreate either.
PLUGIN="$HOME/.claude/plugins/marketplaces/cc-skills/plugins/gmail-commander"
ls -la "$PLUGIN/scripts/lib/triage.ts" 2>/dev/null || echo "TRIAGE_NOT_FOUND"
ls -la "$HOME/.claude/plugins/marketplaces/cc-skills/plugins/gmail-commander/scripts/gmail-cli/gmail" 2>/dev/null || echo "BINARY_NOT_FOUND"
If BINARY_NOT_FOUND: Build it from the committed lockfile:
cd "$HOME/.claude/plugins/marketplaces/cc-skills/plugins/gmail-commander/scripts/gmail-cli" && bun run build
| Category | Examples |
|---|---|
| SYSTEM & SECURITY | Exchange alerts, 2FA codes, password resets, new device logins |
| WORK | Deadlines, invoices, contracts, GitHub PRs, professional requests |
| PERSONAL & FAMILY | Friends/family messages, appointments, vehicle service, health |
Urgency levels within each: CRITICAL > HIGH > MEDIUM > LOW. When nothing qualifies, the model answers exactly NO_SIGNIFICANT_EMAILS and the bot reports a quiet window.
/digest [hours])fetchRecentEmails(hours) runs gmail search newer_than:<hours>h -n 50 --json through GMAIL_CLI_BIN.formatEmailsForTriage() renders the messages; ANTI_SKILL_PREFIX is prepended so the model ignores any skill or tool listings in its context.TRIAGE_SYSTEM_PROMPT on HAIKU_MODEL (no tools, one turn).isSkillContaminated() discards a response that role-plays a skill instead of triaging.parseTriageResponse() turns the text into typed items, and formatDigestHtml() renders them with the category and urgency emoji maps.| Concern | File |
|---|---|
| System prompt, anti-skill prefix, parser | scripts/lib/triage.ts |
/digest command handler | scripts/lib/commands.ts |
| Category/urgency emoji maps, digest HTML | scripts/lib/telegram-format.ts |
| Gmail fetch | scripts/lib/gmail-client.ts |
lib/triage.ts exports unchanged in shape (the bot and its deployment import them)After this skill completes, reflect before closing the task:
Do NOT defer. The next invocation inherits whatever you leave behind.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/gmail-commander:email-triagefrom gmail-commander
npx claudepluginhub terrylica/cc-skills --plugin gmail-commander7 skills in this plugin
/bot-process-controlGmail Commander bot and digest process control - they run unattended in a private Restate deployment, never as workstation launchd jobs. Where they run, how to check them, what not to start locally. TRIGGERS - bot start, bot stop, bot restart, bot status, gmail bot down/gmail-accessAccess Gmail via CLI with 1Password OAuth: read, search and export email, and create drafts. Replies quote the sender verbatim as styled blockquotes and can carry file attachments, built and verified in one command. TRIGGERS - gmail, read email, search inbox, export emails, create draft, compose email, reply to email, draft a reply, quote their words, quoted reply, attach a file to a draft./Other plugins' skills for the same job