技能 gmail-automation
📧

gmail-automation

安全

使用 AI 自動化 Gmail 任務

停止手動管理您的收件匣。此技能使 AI 助理能夠透過 Rube MCP 使用 Gmail 官方 API 發送電子郵件、搜尋郵件、管理標籤和處理草稿。

支援: Claude Codex Code(CC)
📊 71 充足
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
內容
32
社群
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)新增到您的客戶端設定。然後使用 toolkit 'gmail' 呼叫 RUBE_MANAGE_CONNECTIONS 並遵循 OAuth 連結以授權 Google 存取。
我可以發送帶有附件的電子郵件嗎?
可以。首先下載檔案以取得 s3key,然後將其包含在 attachment 參數中並附上 mimetype(例如 'application/pdf')和 filename。總大小必須低於 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