Community生產力與協作github.com

claude-office-skills/gmail-workflows

使用智慧化工作流程自動化 Gmail - 附件管理、郵件整理、自動歸檔以及 Google Drive 整合。

gmail-workflows 是什麼?

這個技能讓 AI 代理(如 Claude Code、Cursor 或 Codex)能夠直接與 Gmail 互動,執行從簡單的郵件查閱到複雜的多步驟工作流程等任務。其核心功能包括:從郵件中提取並儲存附件至 Google Drive、根據規則(如寄件者或關鍵字)自動歸檔或整理郵件、以及設定智慧過濾條件以減少收件匣雜亂。此技能特別適合需要自動化處理大量郵件的開發者、業務團隊或個人使用者,例如自動歸檔行銷郵件、備份發票附件,或將特定郵件移入標籤資料夾。由於它是基於 Gmail API 與 Google Drive API 建構,因此使用前需啟用相關 API 並取得授權憑證,通常透過 OAuth 2.0 流程完成設定。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/claude-office-skills/skills/tree/main/skills/gmail-workflows

Installed? Explore more 生產力與協作 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

gmail-workflows 是做什麼的?

使用智慧化工作流程自動化 Gmail - 附件管理、郵件整理、自動歸檔以及 Google Drive 整合

功能

  • 附件管理:從郵件中下載附件並儲存至 Google Drive 指定資料夾。
  • 郵件整理:根據寄件者、主題關鍵字或標籤規則,自動移動郵件至標籤或執行其他動作。
  • 自動歸檔:設定條件(例如來自特定網域的郵件)自動歸檔,減少收件匣雜亂。
  • Google Drive 整合:將附件或郵件內容直接建立為 Google Drive 檔案。

前置需求

  • 啟用 Gmail API 與 Google Drive API(可透過 Google Cloud Console 設定)。
  • 取得 OAuth 2.0 用戶端憑證(Client ID 與 Client Secret),並設定授權重新導向 URI。
  • 使用者必須授權 AI 代理存取其 Gmail 帳號與 Google Drive 帳號。

使用方式

  1. 初始化 OAuth 2.0 授權流程以取得存取權杖。

  2. 使用以下指令呼叫技能功能:

    /gmail-workflows list --max-results 10
    /gmail-workflows archive --query "from:[email protected]"
    /gmail-workflows save-attachment --message-id <郵件ID> --folder "發票"
    
  3. 進階工作流程可以串聯多個步驟:

    /gmail-workflows workflow "自動歸檔行銷郵件並備份附件"
    

授權與憑證

  • 將 credentials.json 放置於專案根目錄(從 Google Cloud Console 下載)。
  • 第一次執行時會開啟瀏覽器要求授權,權杖會自動儲存為 token.json。
  • 環境變數 GMAIL_WORKFLOWS_CLIENT_ID 與 GMAIL_WORKFLOWS_CLIENT_SECRET 可取代 credentials.json。

支援的平台

  • Claude Code
  • Cursor
  • Codex
  • 其他支援 MCP(Model Context Protocol)的工具

注意事項

  • 請確保遵守 Google 的服務條款與隱私權政策。
  • 此技能不會永久刪除郵件,只會歸檔或移動至標籤。
  • 建議定期檢閱授權權杖的有效性並更新。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

claude-office-skills/academic-search

Search and analyze academic literature. Find papers, understand research methodologies, and synthesize academic findings for research projects.

claude-office-skills/ads-copywriter

Multi-platform ad copy generation for Google Ads, Meta/Facebook, TikTok, LinkedIn with A/B testing variants

claude-office-skills/ai-agent-builder

Build AI agents with tools, memory, and multi-step reasoning - ChatGPT, Claude, Gemini integration patterns

claude-office-skills/airtable-automation

Airtable database automation - views, automations, integrations, and workflow triggers

claude-office-skills/ai-slides

Generate complete presentations with AI - from outline to polished slides

claude-office-skills/amazon-seller

Automate Amazon seller operations including inventory, orders, pricing, and advertising management

claude-office-skills/apple-shortcuts-integration

Create and trigger Apple Shortcuts for iOS/macOS automation and cross-platform workflows

claude-office-skills/applicant-screening

Screen job applications against requirements and score candidates

claude-office-skills/asana-automation

Automate Asana project management workflows, task tracking, team collaboration, and reporting

claude-office-skills/batch-convert

Batch convert documents between multiple formats using a unified pipeline

claude-office-skills/batch-processor

Process multiple documents in bulk with parallel execution

claude-office-skills/brand-guidelines-generator

Create and maintain brand style guides for consistent visual identity

claude-office-skills/browser-automation

Automate web browser interactions, scraping, testing, and workflow automation with Puppeteer/Playwright

claude-office-skills/calendar-automation

Google Calendar and Outlook automation - scheduling optimization, meeting workflows, time blocking, and Slack/Sheets integration

claude-office-skills/changelog-generator

Generate release notes from git commits, updates, or feature lists

claude-office-skills/chart-designer

Design effective data visualizations and charts. Generate chart configurations for ECharts, Chart.js, and other libraries. Create dashboards and reports.

claude-office-skills/chat-with-pdf

Answer questions about PDF content, summarize, and extract information

claude-office-skills/clickup-automation

Automate ClickUp workspace management, task workflows, time tracking, and team productivity

claude-office-skills/company-research

Conduct comprehensive company research and due diligence. Analyze business model, competitive landscape, management, and market position.

claude-office-skills/competitive-analysis

Analyze competitors systematically. Compare products, features, pricing, positioning, and market strategies. Generate comprehensive competitive intelligence reports.

相關技能