gmail
Installation
SKILL.md
Gmail Agent Skill
First-Run Detection (run on every invocation)
Before executing any email operation, check if gmail-agent is installed:
GMAIL_AGENT_DIR="${GMAIL_AGENT_DIR:-$HOME/gmail-agent}"
ls "$GMAIL_AGENT_DIR/run.sh" 2>/dev/null
If not found: Tell the user gmail-agent is not set up yet, then run the installer:
bash ~/.claude/skills/gmail/scripts/install.sh
This handles everything: clone → Google OAuth credentials → Anthropic API key → compile → Gmail authorization. Do not proceed with email operations until it completes.