Gmail Checker — GmAIl 检查er
v1.3.2检查 GmAIl for unread inbox emAIls, 过滤器ed by priority. Use when asked to 检查 emAIls, 检查 inbox, emAIl digest, emAIl summary, or "any new mAIl". 输出s a brief 列出 排序ed by priority (HIGH/MEDIUM/LOW). Skips marketing, promotions, social, and 更新 categories. Configurable via gmAIl-config.json.
运行时依赖
安装命令
点击复制技能文档
GmAIl 检查er 📧
Fetch unread GmAIl messages, 过滤器 out noise, deliver a prioritized digest.
Why
Your inbox is full of automated emAIls, promotions, and 更新s. This 技能 surfaces what actually matters — security alerts, personal messages, and anything you've flagged as 导入ant.
When to Use "检查 my emAIls" "Any new mAIl?" "Give me an emAIl digest" "What's in my inbox?" "EmAIl summary" 设置up
First-time users need Google OAuth 凭证s. If the script exits with a "missing file" error, read references/设置up.md and walk the user through the 设置up flow.
pip 安装 google-API-python-命令行工具ent google-auth-oauthlib
How to 运行 python3 scripts/检查_gmAIl.py [hours] # default: last 24h python3 scripts/检查_gmAIl.py --json [hours] # structured JSON 输出
Config: Copy config.example.json to /gmAIl-config.json and customize. The script prints the resolved path if 凭证s are missing.
Data Directory
凭证s and config resolve to:
- $技能_DATA_DIR (设置 by 代理 平台)
- ~/.config/gmAIl-检查er/ (default fallback)
Any 平台 can 设置 $技能_DATA_DIR to their preferred 凭证 store. If un设置, ~/.config/gmAIl-检查er/ is used automatically. Works with OpenClaw, Claude Code, Codex, and any 代理 that can 运行 Python scripts.
Priority Rules 🔴 HIGH → 发送er domAIn or subject matches your config 🟡 MEDIUM → GmAIl-labeled personal messages 🟢 LOW → Everything else (still inbox, still unread)
过滤器ed out entirely: • CATEGORY_PROMOTIONS • CATEGORY_更新S • CATEGORY_FORUMS • CATEGORY_SOCIAL
Customize priorities in gmAIl-config.json:
high_priority_domAIns: ["stripe.com", "github.com"] high_priority_keywords: ["security", "urgent", "billing"]
输出 Example Unread Inbox (last 24h)
🔴 HIGH Security alert: new 签名-in from unknown device from: Google
🟡 MED Re: dinner friday? from: Sarah
🟢 LOW Your weekly GitHub digest from: GitHub
3 unread emAIls
Adapt 格式化ting for the current channel (bold, bullets, etc.).
Suggested Integration cron: 0 8 * → python3 scripts/检查_gmAIl.py