gmail-checker
Check Gmail for unread inbox emails, filtered by priority. Use when asked to check emails, check inbox, email digest, email summary, or "any new mail". Outputs a brief list sorted by priority (HIGH/MEDIUM/LOW). Skips marketing, promotions, social, and update categories. Configurable via gmail-config.json.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/99rebels/rebels-gmail-checkerGmail Checker š§
Fetch unread Gmail messages, filter out noise, deliver a prioritized digest.
Why
Your inbox is full of automated emails, promotions, and updates. This skill surfaces what actually matters ā security alerts, personal messages, and anything you've flagged as important.
When to Use
- "Check my emails"
- "Any new mail?"
- "Give me an email digest"
- "What's in my inbox?"
- "Email summary"
Setup
First-time users need Google OAuth credentials. If the script exits with a "missing file" error, read references/setup.md and walk the user through the setup flow.
pip install google-api-python-client google-auth-oauthlib
How to Run
python3 scripts/check_gmail.py [hours] # default: last 24h
python3 scripts/check_gmail.py --json [hours] # structured JSON output
Config: Copy config.example.json to <DATA_DIR>/gmail-config.json and customize. The script prints the resolved <DATA_DIR> path if credentials are missing.
Data Directory
Credentials and config resolve to:
1. $SKILL_DATA_DIR (set by agent platform)
2. ~/.config/gmail-checker/ (default fallback)
Any platform can set $SKILL_DATA_DIR to their preferred credential store. If unset, ~/.config/gmail-checker/ is used automatically. Works with OpenClaw, Claude Code, Codex, and any agent that can run Python scripts.
Priority Rules
š“ HIGH ā Sender domain or subject matches your config
š” MEDIUM ā Gmail-labeled personal messages
š¢ LOW ā Everything else (still inbox, still unread)
Filtered out entirely:
⢠CATEGORY_PROMOTIONS
⢠CATEGORY_UPDATES
⢠CATEGORY_FORUMS
⢠CATEGORY_SOCIAL
Customize priorities in gmail-config.json:
high_priority_domains: ["stripe.com", "github.com"]
high_priority_keywords: ["security", "urgent", "billing"]
Output Example
Unread Inbox (last 24h)
š“ HIGH
Security alert: new sign-in from unknown device
from: Google <[email protected]>
š” MED
Re: dinner friday?
from: Sarah <[email protected]>
š¢ LOW
Your weekly GitHub digest
from: GitHub <[email protected]>
3 unread emails
Adapt formatting for the current channel (bold, bullets, etc.).
Suggested Integration
cron: 0 8 * * * ā python3 scripts/check_gmail.py
Metadata
Not sure this is the right skill?
Describe what you want to build ā we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-99rebels-rebels-gmail-checker": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
agent-portability-checker
Audit agent skills for platform lock-in and cross-agent compatibility. Use when checking if a skill is portable, making a skill work across multiple agents (OpenClaw, Claude Code, Codex, etc.), fixing hardcoded paths, or preparing a skill for multi-platform distribution. Checks for hardcoded platform paths, missing env var support, and platform-specific dependencies.
github-growth-tracker
Track GitHub repo growth (stars, forks, issues, commits) with periodic digests and trend analysis. Compare your repos against a watchlist. Use when checking repo stats, monitoring growth, setting up a github digest, comparing repos, or managing a repo watchlist. Requires GITHUB_TOKEN environment variable or GitHub PAT (see Credentials).
invoice-extractor
Extract structured data from invoices and receipts (PDFs and images). Output JSON, CSV, or build a running expense ledger. Use when someone shares an invoice to process, asks to track expenses, categorize spending, or prepare tax documents.
skill-polisher
Polish a skill's SKILL.md for ClawHub readability without sacrificing LLM effectiveness. Use when improving a skill's listing, making a skill look better on ClawHub, or preparing a skill for publish. Rewrites SKILL.md with better formatting, then audits the changes to ensure nothing the LLM needs was lost. Moved content goes to references/ ā never deleted.