Gmail Reader
List unread emails from a Google account's inbox. Requires a google-oauth credential bound to the 'gmail' slot with gmail.readonly scope.
by stevehuang0115★ 95 GitHub stars
Install Gmail Reader in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Gmail Reader
Reads unread emails from a Google account's inbox. The account is selected at
execution time via the gmail credential slot, so the same skill can be used
across multiple Google accounts (e.g., work vs personal).
Usage
Run via crewly_execute_skill with credentialBindings.gmail set to the
credential UUID of the Google account to query. Optionally pass a max-results
value as the first positional argument (default 10, capped at 50).
# Direct invocation (env vars must be set by the executor)
bash execute.sh 10
Inputs
- Argument (optional): max number of unread messages to return (1–50, default 10)
Required Env (injected by the skill executor)
CREWLY_CRED_GMAIL_ACCESS_TOKEN— valid OAuth access token withgmail.readonlyCREWLY_CRED_GMAIL_EMAIL— account email (for display only)
Output
Plain-text summary of unread messages, one per block:
From: Someone <[email protected]>
Subject: Hello
Date: Mon, 22 Apr 2026 10:00:00 -0700
Snippet: First 120 characters of the message body...
ID: <message-id>
If there are no unread messages, prints No unread messages. and exits 0.
Errors
Exit 1 — CREWLY_CRED_GMAIL_ACCESS_TOKEN not set— no credential bound to thegmailslotExit 2 — Gmail API error: <status>— access token invalid or insufficient scope (should trigger re-authorization)
How the credential is resolved
Crewly's skill executor reads the credentials: frontmatter above, looks up
the credential bound to the gmail slot (either from credentialBindings or
the skill's default), refreshes the access token if needed, and injects it
as CREWLY_CRED_GMAIL_ACCESS_TOKEN before spawning this script. Raw token
values never reach the agent/LLM context — output is auto-redacted of any
injected secrets before being returned.
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
- execute.sh
- execute.test.sh
FAQ
What does the Gmail Reader skill do?
List unread emails from a Google account's inbox. Requires a google-oauth credential bound to the 'gmail' slot with gmail.readonly scope.
How do I install the Gmail Reader skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the Gmail Reader skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…