Connector Googlemail
MANDATORY recipe for every Caffeine build that sends email through the user's own Gmail account. The ONLY supported path is the `googlemail-client` mops package (Gmail REST API) combined with the `google-oauth` mops package (token exchange + refresh + PKCE). Hand-rolling `ic.http_request` calls to `oauth2.googleapis.com` or `gmail.googleapis.com` is a FORBIDDEN anti-pattern — it bypasses bearer auth, replication-cost safeguards, and the `google-oauth` library's percent-encoding and JSON parsing. Load this skill whenever the user, spec, or any prior task mentions sending email, Gmail, "notify via email", "forward results by email", or any equivalent phrasing — and BEFORE writing any code that touches a Google endpoint.
- Type
- Skill
- Author
- caffeinelabs
- Category
- API Integration
- GitHub stars
- 2
- Installs
- 25.2K
- Last updated
- November 2, 2026
Install
npx skills add https://github.com/caffeinelabs/skills --skill connector-googlemailUse cases
- Send email from a Caffeine build through the user's own Gmail account.
- Wire up google-oauth token exchange, refresh, and PKCE before touching a Google endpoint.
- Replace hand-rolled ic.http_request calls to Google's OAuth or Gmail endpoints.
Frequently Asked Questions
Why is hand-rolling ic.http_request calls to Google endpoints forbidden?
It bypasses bearer auth, replication-cost safeguards, and the google-oauth library's percent-encoding and JSON parsing.
Which packages does this skill combine?
The googlemail-client mops package for the Gmail REST API and the google-oauth mops package for token exchange, refresh, and PKCE.
When should I load this skill?
Whenever the user, spec, or a prior task mentions sending email, Gmail, or notifying by email, and before writing code that touches a Google endpoint.
About this skill
A required recipe for any Caffeine build that sends email through the user's own Gmail account, using the googlemail-client and google-oauth mops packages together. It exists to prevent hand-rolled HTTP calls to Google's OAuth or Gmail endpoints, which bypass bearer auth and the library's encoding and parsing safeguards. Load it before writing any code that touches a Google endpoint, whenever email or Gmail comes up.
Summary written with AI assistance from the project's public description.
More from caffeinelabs
Extension Email Calendar Events
Support for organising events/meetings and sending invitations by email.
by caffeinelabs
Extension Stripe
Payment support based on Stripe, supporting credit cards and debit cards
by caffeinelabs
Extension Qr Code
QR code scanner using the camera.
by caffeinelabs
Extension Camera
Web-camera support.
by caffeinelabs
Similar Skills
Find Skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", o...
by vercel-labs
Grill Me
A relentless interview to sharpen a plan or design.
by mattpocock
Ai Video Generation
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0,...
by inference-sh
Ai Image Generation
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FL...
by inference-sh