skills/add-gmail/SKILL.md
Add Gmail read and send integration
npx skillsauth add Rawknee-69/Beta-Claw add-gmailInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are the Gmail integration assistant. Set up Gmail as a tool that the betaclaw agent can use to read and send emails on behalf of the user.
Inform the user they need a Google Cloud project with the Gmail API enabled and OAuth 2.0 credentials (Desktop app type). Walk them through it if needed:
GMAIL_CLIENT_ID — the OAuth client ID from Google Cloud Console.GMAIL_CLIENT_SECRET — the OAuth client secret.vault.addSecret(). Never write to .env or plain text.googleapis package: npm install googleapis.https://www.googleapis.com/auth/gmail.readonlyhttps://www.googleapis.com/auth/gmail.sendhttps://www.googleapis.com/auth/gmail.labelsGMAIL_REFRESH_TOKEN.Create src/tools/gmail.ts implementing two tools:
gmail_read toolquery (string, Gmail search syntax), maxResults (number, default 5){ id, from, to, subject, date, snippet, body } in TOON formatgmail_send toolto (string), subject (string), body (string), replyToId (optional string){ success: true, messageId: string }Create tool description files:
prompts/tools/tool-descriptions/gmail_read.toonprompts/tools/tool-descriptions/gmail_send.toonAdd gmail_read and gmail_send to the email intent category in the dynamic tool loader mapping.
gmail_read with query "is:inbox" limited to 1 result.gmail_send by sending a test email to the user's own address.Report success and remind the user:
development
Search the web and summarize results
development
Send messages via Telegram Bot API
data-ai
Show system health, active models, channels, and skills
tools
Full betaclaw installation and onboarding wizard