Interactive wizard that sets up Gmail OAuth credentials via 1Password, builds the Gmail CLI from its lockfile, and verifies mailbox access. Handles credential discovery and configuration.
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.
Set up interactive Gmail access on this machine: find the OAuth credentials in 1Password, build the Gmail CLI, and prove it can read the intended mailbox.
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.
The interactive Telegram bot and the scheduled digest run unattended in a private Restate deployment on an always-on Mac mini, not on a workstation. This wizard installs no launchd jobs, launcher scripts or daemon env files, and it must not: the laptop jobs were retired on 2026-09-24, and a second bot poller on the same token breaks the deployed one. Provisioning the deployment (bot token, chat ID, Gmail refresh token, model settings) is done through its own repository's runbook. What the deployment needs from this plugin is listed in the plugin CLAUDE.md.
command -v op && echo "OK 1Password CLI" || echo "MISSING: 1Password CLI (macOS: brew install 1password-cli; Linux: 1Password's package repository)"
command -v proto && echo "OK proto" || echo "MISSING: proto (https://moonrepo.dev/docs/proto/install)"
command -v bun && echo "OK bun" || echo "MISSING: proto install bun"
On Linux there is no 1Password desktop app, so op works only with OP_SERVICE_ACCOUNT_TOKEN. Without 1Password at all, skip Phase 1's item discovery and supply the OAuth client through GMAIL_OAUTH_CLIENT_ID + GMAIL_OAUTH_CLIENT_SECRET or GMAIL_OAUTH_CLIENT_FILE, with GMAIL_OP_UUID set to any stable name for the account: env-setup.md § Without 1Password.
echo "GMAIL_OP_UUID: ${GMAIL_OP_UUID:-NOT_SET}"
If already set, use AskUserQuestion to ask if user wants to reconfigure.
op item list --vault Employee --format json | jq -r '.[] | select(.title | test("gmail|oauth"; "i")) | "\(.id)\t\(.title)"'
Use AskUserQuestion with discovered items or guide new credential creation.
Use the item UUID, not its title — the token cache is keyed by UUID. Pass it per command (GMAIL_OP_UUID=<selected-uuid> gmail list -n 1) or export GMAIL_OP_UUID=<selected-uuid> in the current shell. Per-command is safest when different projects use different mailboxes. See env-setup.md.
The binary is built from the committed lockfile so every machine resolves the same dependency tree:
cd "$HOME/.claude/plugins/marketplaces/cc-skills/plugins/gmail-commander/scripts/gmail-cli" && bun run build
If --frozen-lockfile fails, package.json and bun.lock disagree. Do not delete the lockfile to get past it; report the mismatch.
GMAIL_CLI="$HOME/.claude/plugins/marketplaces/cc-skills/plugins/gmail-commander/scripts/gmail-cli/gmail"
"$GMAIL_CLI" list -n 1 2>&1 | head -5
The first run opens a browser for Google OAuth consent. Sign in with the account that the chosen 1Password item belongs to, then confirm with the user that the listed message comes from the intended mailbox.
GMAIL_OP_UUID resolves to a 1Password item UUID (in the shell or on the command line), or, without 1Password, names the account while GMAIL_OAUTH_CLIENT_* supplies the clientscripts/gmail-cli/gmail exists (built with bun run build, which needs no install: @googleapis/gmail is vendored in vendor/)gmail list -n 1 returns a message from the intended mailboxgmail-commander background job exists locally: on macOS launchctl list | grep -F gmail-commander prints nothing; on Linux systemctl --user list-units --all | grep -F gmail-commander prints nothingDirect user to: gmail-api-setup.md
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
7 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/email-triageGmail Commander email triage - the three-category Haiku prompt and parser in lib/triage.ts, run on demand by the bot's /digest command. The scheduled digest runs in a private deployment with its own implementation. TRIGGERS - email digest, triage emails, digest categories/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./gmail-commander:setupfrom gmail-commander
npx claudepluginhub terrylica/cc-skills --plugin gmail-commanderOther plugins' skills for the same job