This skill empowers you to manage Gmail via CLI, enabling search, read threads, send messages, and handle drafts and labels efficiently.
npx playbooks add skill badlogic/pi-skills --skill gmcli
Command-line interface for Gmail operations.
npm install -g @mariozechner/gmcli
First check if already configured:
gmcli accounts list
If no accounts, guide the user through setup:
gmcli accounts credentials ~/path/to/credentials.jsongmcli accounts add <email> (use --manual for browserless OAuth)Run gmcli --help for full command reference.
Common operations:
gmcli <email> search "<query>" - Search emails using Gmail query syntaxgmcli <email> thread <threadId> - Read a thread with all messagesgmcli <email> send --to <emails> --subject <s> --body <b> - Send emailgmcli <email> labels list - List all labelsgmcli <email> drafts list - List drafts~/.gmcli/credentials.json - OAuth client credentials~/.gmcli/accounts.json - Account tokens~/.gmcli/attachments/ - Downloaded attachmentsWeekly roundup of top Claude Code skills, MCP servers, and AI coding tips.