技能 gmail-automation
📧

gmail-automation

安全

使用 AI 自动化 Gmail 任务

停止手动管理收件箱。此技能使 AI 助手能够通过 Rube MCP 使用 Gmail 官方 API 发送邮件、搜索消息、管理标签和处理草稿。

支持: Claude Codex Code(CC)
🥉 74 青铜
1

下载技能 ZIP

2

在 Claude 中上传

前往 设置 → 功能 → 技能 → 上传技能

3

开启并开始使用

测试它

正在使用“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

安全审计

安全
v1 • 2/25/2026

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.

1
已扫描文件
276
分析行数
0
发现项
1
审计总数
未发现安全问题
审计者: claude

质量评分

38
架构
100
可维护性
87
内容
50
社区
100
安全
91
规范符合性

你能构建什么

行政邮件助手

自动化常规邮件回复,按发件人或日期搜索特定消息,并使用自定义标签整理收件箱以进行优先级管理。

客户支持自动化

按主题或发件人搜索客户咨询,回复支持工单,并应用标签来跟踪问题状态和分类。

个人收件箱管理器

自动标记传入邮件,归档已处理的消息,创建后续跟进草稿,并搜索带有附件的重要邮件。

试试这些提示

发送简单邮件
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

常见问题

如何将我的 Gmail 账户连接到此技能?
将 Rube MCP 服务器(https://rube.app/mcp)添加到您的客户端配置中。然后使用工具集 'gmail' 调用 RUBE_MANAGE_CONNECTIONS,并按照 OAuth 链接授权 Google 访问权限。
我可以发送带附件的邮件吗?
可以。首先下载文件以获取 s3key,然后将其包含在附件参数中,并指定 mimetype(例如 'application/pdf')和文件名。总大小必须小于 25MB。
如何查找特定邮件?
使用 GMAIL_FETCH_EMAILS 配合 Gmail 查询语法。示例:'from:alice subject:invoice'、'is:unread after:2024/01/01' 或 'has:attachment label:work'。
thread_id 和 message_id 有什么区别?
thread_id 将对话中的相关邮件分组(用于回复)。message_id 识别单个邮件(用于获取详细信息或单邮件操作)。
我可以在未经批准的情况下自动发送邮件吗?
GMAIL_SEND_EMAIL 立���发送。对于需要审核的草稿,首先使用 GMAIL_CREATE_EMAIL_DRAFT,然后仅在获得用户明确确认后使用 GMAIL_SEND_DRAFT。
为什么我无法删除标签?
系统标签(INBOX、SENT、DRAFT、SPAM)无法删除。此外,请确保在删除操作时使用标签 ID(例如 'Label_123'),而非显示名称。

开发者详情

文件结构

📄 SKILL.md