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.

3,891 stars

Best use case

gmail-checker is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

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.

Teams using gmail-checker should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/rebels-gmail-checker/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/99rebels/rebels-gmail-checker/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/rebels-gmail-checker/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How gmail-checker Compares

Feature / Agentgmail-checkerStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

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.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# Gmail 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](references/setup.md) and walk the user through the setup flow.

```bash
pip install google-api-python-client google-auth-oauthlib
```

## How to Run

```bash
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 <no-reply@google.com>

🟡 MED
  Re: dinner friday?
  from: Sarah <sarah@gmail.com>

🟢 LOW
  Your weekly GitHub digest
  from: GitHub <noreply@github.com>

3 unread emails
```

Adapt formatting for the current channel (bold, bullets, etc.).

## Suggested Integration

```
cron: 0 8 * * * → python3 scripts/check_gmail.py
```

Related Skills

time-checker

3891
from openclaw/skills

Check accurate current time, date, and timezone information for any location worldwide using time.is. Use when the user asks "what time is it in X", "current time in Y", or needs to verify timezone offsets.

General Utilities

paper-reference-checker

3891
from openclaw/skills

This skill should be used when the user asks to "check paper citations", "verify references", "detect fake citations", "validate bibliography", "check if papers exist", "查文献真伪", "检查论文引用", "验证参考文献", "识别虚假引用", or uploads a PDF/Overleaf document and wants to verify whether the cited papers genuinely exist. Provides systematic verification of academic references against Google Scholar, CNKI, arXiv, and other academic databases to detect AI-hallucinated or fabricated citations.

agent-portability-checker

3891
from openclaw/skills

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.

symptom-checker-triage

3891
from openclaw/skills

Suggest triage levels (Emergency, Urgent, Outpatient) based on red flag symptoms using a rule-based engine. For AI-assisted decision support only — not a substitute for professional medical diagnosis.

hna-666-flight-checker

3891
from openclaw/skills

查询海南航空 666Plus 权益可往返航班,自动遍历指定目的地

SKILL: stock-checker

3891
from openclaw/skills

## Description

Skill: Gmail Auto-Reply for Client

3891
from openclaw/skills

## Purpose

minimax-plan-checker

3891
from openclaw/skills

获取 MiniMax 平台的套餐信息,包括套餐名称、额度、当前使用情况。当用户询问 MiniMax 套餐、额度使用情况、API 调用量、计费信息时使用此技能。

vibe-coding-checker

3891
from openclaw/skills

描述一个功能或项目,AI 快速评估用 Cursor/Windsurf/Bolt 等 AI 编程工具能否独立实现, 给出可行性判断、推荐工具、拆解路径和风险提示。

gold-price-checker

3891
from openclaw/skills

国内金价查询工具。用于查询黄金实时价格、银行金条价格、金店零售价、国际金价和黄金未来趋势分析。当用户询问金价、黄金价格、今日金价、金店价格、银行金条、国际金价、伦敦金、黄金走势或未来趋势时触发此技能。

weather-checker

3891
from openclaw/skills

Get current weather information for any city

hollow-validation-checker

3891
from openclaw/skills

Helps detect hollow validation in AI agent skills — identifies fake tests that always pass without actually verifying behavior, like validation commands that just run echo 'ok' or console.log('passed').