微算力 · API 导航与自营网关
API 接入 EN
未登录登录
📧

Gmail 收件箱智能摘要管家

email-summary · vv1.0.0
入口已确认,内容待校验 文件树里有 SKILL.md,但正文还没采回,frontmatter 未核对。
办公 安全 A 级 作者 bbdyno 公开目录收录
899 下载 195 安装 4.1k 收藏 37.1k 浏览

简介

基于 Google 官方 API 的安全邮件摘要工具,通过本地 OAuth 认证为 Gmail 用户提供未读邮件的 AI 智能总结与行动建议,显著提升收件箱处理效率。

原始描述

Fetches recent emails from Gmail and provides concise summaries. Use when the user wants to check emails, get email summaries, or review their inbox.

通过你的 Agent 添加

安装目录:email-summary/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/email-summary/
Codex CLI~/.codex/skills/email-summary/
DeepSeek Harness~/.agents/skills/email-summary/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

email-summary 是一款基于 Gmail API 的邮件摘要 Skill,专为需要快速浏览收件箱的用户设计。用户通过 /email-summary 指令触发后,Skill 会读取环境变量 GMAIL_CREDENTIALS_PATH 指定的 OAuth 凭证,调用 Gmail API 获取最近未读邮件(默认 10 封),并利用 AI 为每封邮件生成结构化摘要:发件人信息、主题、2-3 句要点总结,以及建议操作(回复、归档、标记跟进等)。支持 --count 自定义数量、--all 获取全部未读邮件。

显著优点

  • 效率提升:将邮件浏览时间从分钟级压缩至秒级,特别适合邮件密集型工作场景
  • 安全合规:采用 Google 官方 OAuth2 标准流程,仅申请 gmail.readonly 最小权限,无数据持久化存储,符合 GDPR 数据最小化原则
  • 代码质量高:无危险函数调用(无 eval/exec/system),输入验证完善,依赖均为 Google 官方库(google-auth, google-api-python-client),供应链风险极低
  • 透明可审计:MIT 开源协议,代码结构清晰,开发者身份可追踪

潜在缺点与局限性

  • 配置门槛:需用户自行完成 Gmail API 凭证申请、OAuth 授权流程,对非技术用户不够友好
  • 网络依赖:完全依赖 Gmail API 可用性与 Google 网络服务,无离线能力
  • 权限约束:仅支持读取操作,无法直接执行回复、归档等操作(需用户手动完成建议动作)
  • 摘要质量:AI 生成的 2-3 句总结可能遗漏复杂邮件的关键细节或 nuances
  • 平台限制:虽支持 darwin/linux/win32,但 Python 3 环境配置可能带来额外摩擦

适合人群

  • 每日收件箱邮件量 >20 封的职场人士
  • 需要快速筛选重要邮件、识别跟进事项的项目经理、商务拓展、客户成功角色
  • 已熟悉 OAuth 配置流程的技术用户或团队
  • 重视数据隐私、希望邮件数据不经过第三方中转的隐私敏感型用户

常规风险

  1. 凭证泄露风险:OAuth 凭证文件若权限设置不当(如 644/666)可能被其他用户读取,建议严格设置为 600
  2. API 配额限制:频繁调用可能触发 Google API 速率限制,建议控制调用频率
  3. 授权范围确认:用户需仔细审核 OAuth 授权弹窗,确保仅授予只读权限
  4. 邮件数据外泄:邮件内容传输至 Google API 端点,虽经 TLS 加密,但用户需信任 Google 的数据处理政策

技能正文


name: email-summary description: Fetches recent emails from Gmail and provides concise summaries. Use when the user wants to check emails, get email summaries, or review their inbox. homepage: https://github.com/yourusername/email-summary-skill user-invocable: true metadata: openclaw: requires: bins: - python3 env: - GMAIL_CREDENTIALS_PATH os: - darwin - linux - win32

Email Summary Skill

This skill fetches recent emails from your Gmail account and provides AI-powered summaries.

How it works

When invoked, this skill will:

  1. Authenticate with Gmail API using credentials at $GMAIL_CREDENTIALS_PATH
  2. Fetch recent emails (default: last 10 unread emails)
  3. Summarize each email with:
    • Sender and subject
    • Key points from the email body
    • Recommended actions or responses
  4. Present results in an organized, easy-to-scan format

Instructions for the Agent

When this skill is invoked:

  1. First, verify that the Gmail API credentials exist at the path specified in $GMAIL_CREDENTIALS_PATH environment variable
  2. Run the helper script located at {baseDir}/scripts/fetch_emails.py with the appropriate arguments:
    • Default: python3 {baseDir}/scripts/fetch_emails.py --count 10
    • With arguments: python3 {baseDir}/scripts/fetch_emails.py $ARGUMENTS
  3. Parse the JSON output from the script
  4. For each email, provide a concise summary including:
    • From: Sender name and email
    • Subject: Email subject line
    • Summary: 2-3 sentence summary of key points
    • Action: Suggested action (reply, archive, flag for follow-up, etc.)
  5. Present all summaries in a well-formatted list

Usage Examples

/email-summary

Fetches and summarizes the last 10 unread emails.

/email-summary --count 20

Fetches and summarizes the last 20 unread emails.

/email-summary --all

Fetches and summarizes all unread emails.

Setup Requirements

Before using this skill, ensure:

  • Gmail API credentials are configured
  • Environment variable GMAIL_CREDENTIALS_PATH points to your credentials JSON file
  • Python 3 and required packages are installed (see setup guide in README.md)

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

productivityofficeapiautomationcontent-media

同类 Skill