gmail-automation
使用 AI 自动化 Gmail 任务
停止手动管理收件箱。此技能使 AI 助手能够通过 Rube MCP 使用 Gmail 官方 API 发送邮件、搜索消息、管理标签和处理草稿。
下载技能 ZIP
在 Claude 中上传
前往 设置 → 功能 → 技能 → 上传技能
开启并开始使用
测试它
正在使用“gmail-automation”。 Send an email to alice@example.com with subject 'Lunch' and body 'Are you free for lunch on Friday?'
预期结果:
Email sent successfully to alice@example.com. Message ID: msg-18f3a2b1c4d5e6f7. The email has been delivered to the recipient's inbox.
正在使用“gmail-automation”。 Find unread emails from boss@company.com
预期结果:
Found 3 unread emails from boss@company.com:
1. Subject: 'Urgent: Q4 Review' - Received: Feb 24, 2026 10:30 AM
2. Subject: 'Team Meeting Notes' - Received: Feb 23, 2026 3:15 PM
3. Subject: 'Budget Approval Needed' - Received: Feb 22, 2026 9:00 AM
安全审计
安全This skill contains only documentation (SKILL.md - 276 lines of markdown). All 124 static analysis findings are FALSE POSITIVES: backtick patterns are markdown code formatting, not shell execution. The hardcoded URL is the legitimate Rube MCP endpoint. No executable code exists in this repository. Safe for publication.
质量评分
你能构建什么
行政邮件助手
自动化常规邮件回复,按发件人或日期搜索特定消息,并使用自定义标签整理收件箱以进行优先级管理。
客户支持自动化
按主题或发件人搜索客户咨询,回复支持工单,并应用标签来跟踪问题状态和分类。
个人收件箱管理器
自动标记传入邮件,归档已处理的消息,创建后续跟进草稿,并搜索带有附件的重要邮件。
试试这些提示
Send an email to john@example.com with subject 'Meeting Tomorrow' and body 'Hi John, are you available for a meeting at 2 PM tomorrow? Let me know. Thanks!'
Find all unread emails from sarah@company.com from the last week. Show me the most recent one and help me draft a reply.
Create a new label called 'Q1-Projects' with a blue background. Then find all emails with 'Q1' in the subject from this month and apply this label to them.
Create a draft email to team@example.com with subject 'Weekly Report' and attach the file at /documents/report.pdf. Do not send yet, let me review first.
最佳实践
- 在任何 Gmail 操作之前,始终先调用 RUBE_SEARCH_TOOLS 以获取当前的工具架构
- 在将标签应用于消息之前,使用 GMAIL_LIST_LABELS 将标签名称解析为 ID
- 对于批量操作,将消息分块以保持在每次 API 调用 1000 条���息的限制之下
避免
- 不要使用 Web UI 消息 ID 或 UUID - Gmail API 需要 15-16 个字符的十六进制消息 ID
- 回复邮件线程时不要设置 subject 参数 - 它会创建一个新线程
- 不要对系统状态使用 label: 前缀 - 应改用 is:unread、is:starred、is:snoozed