AgentSkillsCN

watching-gmail

监控 Gmail 收件箱中的新邮件,根据优先级对邮件进行分类,并自动生成任务文件。适用于邮件监控的部署、未读邮件的处理,以及基于邮件创建任务的配置。但请注意:此技能不适用于发送邮件(请改用“发送邮件”技能)。

SKILL.md
--- frontmatter
name: watching-gmail
description: |
  Monitor Gmail inbox for new emails, classify by priority, and create task files.
  Use when setting up email monitoring, processing unread messages, or configuring
  email-based task creation. NOT when sending emails (use sending-emails skill).

Gmail Watcher Skill

Monitors Gmail inbox and creates task files in Obsidian vault.

Quick Start

bash
python scripts/run.py

Configuration

Required in config/:

  • credentials.json - Google OAuth client credentials
  • token.json - Auto-created on first run

Environment variables:

  • GMAIL_POLL_INTERVAL - Seconds between checks (default: 60)
  • DRY_RUN - Test mode (default: false)

Priority Classification

PriorityKeywords
Urgenturgent, asap, emergency, critical
Highimportant, invoice, payment, deadline
Mediumquestion, request, update
Lowthanks, fyi, newsletter

Verification

Run: python scripts/verify.py