Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计异常

gmailGmail 邮件管理

Agent Skill

gmail 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

192

周安装

8

GitHub Stars

公开资料未说明

下载量

64
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:gmail(Gmail 邮件管理)
来源仓库:https://github.com/baphomet480/claude-skills
仓库路径:skills/gmail
安装命令:
npx skills add https://github.com/baphomet480/claude-skills --skill gmail
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/baphomet480/claude-skills --skill gmail

简介

Gmail 技能提供邮件搜索、阅读、撰写和回复功能,支持高级过滤和线程管理。

  • 适用于在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。
  • 可结合来源仓库、安装命令和原始 README 继续核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • gmail 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Gmail Skill

Full CRUD Gmail management for AI agents. Search, read, compose, reply, forward, and manage messages.

Features

  • Search: Advanced filtering using Gmail query syntax (from, to, subjects, labels, date ranges).
  • Read: Fetch full message body, headers, and metadata.
  • Thread: Read entire conversation threads.
  • Draft: Create draft emails for the user to review.
  • Send: Send emails directly.
  • Reply: Reply to the sender of a message.
  • Reply All: Reply to all recipients (sender + To + Cc, minus self).
  • Forward: Forward a message with attribution header to new recipients.
  • Trash / Untrash: Move messages to/from the trash.
  • Labels: List labels. Add/remove labels on messages.
  • Attachments: List and download message attachments.

Prerequisites

  1. Google Cloud Project with Gmail API enabled.
  2. OAuth 2.0 Credentials — either gcloud ADC or credentials.json.

Setup

⚡ Quick Setup (Recommended)

Set up Gmail, Calendar, and Contacts all at once:

uv run ~/.agents/skills/gmail/scripts/setup_workspace.py

Manual Setup

  1. Using gcloud ADC: gcloud auth application-default login \ --scopes https://mail.google.com/,https://www.googleapis.com/auth/cloud-platform Then verify: uv run skills/gmail/scripts/gmail.py verify
  2. Alternative (credentials.json):

- Place credentials.json in ~/.gmail_credentials/. - Run uv run skills/gmail/scripts/gmail.py setup

Usage

Search for Emails

# Find unread emails from Obi-Wan
uv run skills/gmail/scripts/gmail.py search --query "from:obiwan@jedi.org is:unread"

# Find emails with attachments about Death Star plans
uv run skills/gmail/scripts/gmail.py search --query "has:attachment subject:plans" --limit 5

Read a Single Message (Full Body)

uv run skills/gmail/scripts/gmail.py read --id "18e..."

Read an Entire Thread

uv run skills/gmail/scripts/gmail.py thread --id "18e..."

Create a Draft

Safest option — creates a draft for the user to review before sending.

uv run skills/gmail/scripts/gmail.py draft \
  --to "yoda@dagobah.net" \
  --subject "Training Schedule" \
  --body "Master, when shall we begin the next session?" \
  --cc "mace@jedi.org"

Send an Email Directly

uv run skills/gmail/scripts/gmail.py send \
  --to "yoda@dagobah.net" \
  --subject "Urgent: Sith Sighting" \
  --body "Master, I sense a disturbance in the Force."

Reply to a Message

# Reply (creates a draft by default)
uv run skills/gmail/scripts/gmail.py reply --id "18e..." --body "Acknowledged, Master."

# Reply and send immediately
uv run skills/gmail/scripts/gmail.py reply --id "18e..." --body "Acknowledged." --send

Reply to All

uv run skills/gmail/scripts/gmail.py reply-all --id "18e..." --body "Council noted." --send

Forward a Message

# Forward with a note (creates a draft by default)
uv run skills/gmail/scripts/gmail.py forward \
  --id "18e..." \
  --to "luke@tatooine.net" \
  --body "FYI — see the original message below."

# Forward and send immediately
uv run skills/gmail/scripts/gmail.py forward \
  --id "18e..." \
  --to "luke@tatooine.net" \
  --send

Trash / Untrash

uv run skills/gmail/scripts/gmail.py trash --id "18e..."
uv run skills/gmail/scripts/gmail.py untrash --id "18e..."

Label Management

# List all labels
uv run skills/gmail/scripts/gmail.py labels

# Add/remove labels
uv run skills/gmail/scripts/gmail.py modify-labels --id "18e..." --add STARRED --remove UNREAD

Download Attachments

uv run skills/gmail/scripts/gmail.py attachments --id "18e..." --output-dir ./downloads

Safety Guidelines

  1. Prefer draft over send for new compositions — let the user review first.
  2. Reply/Forward defaults to draft — use --send flag only when explicitly requested.
  3. Trash is reversible — messages can be untrashed. Permanent deletion is intentionally not exposed.
  4. Threading: Reply, reply-all, and forward use proper In-Reply-To and References headers so Gmail threads them correctly.

JSON Output Structure

All commands produce JSON for easy parsing.

Search Result:

[
  {
    "id": "18e...",
    "threadId": "18e...",
    "snippet": "Help me, Obi-Wan Kenobi...",
    "from": "Leia Organa <leia@alderaan.gov>",
    "to": "obiwan@jedi.org",
    "subject": "Urgent Message",
    "date": "Mon, 13 Feb 2026 10:00:00 -0700",
    "labels": ["INBOX", "UNREAD"]
  }
]

Read Result (includes full body):

{
  "id": "18e...",
  "threadId": "18e...",
  "body": "Full message text...",
  "attachments": [
    { "filename": "plans.pdf", "mimeType": "application/pdf", "size": "42000" }
  ]
}

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.47%
按下载量换算24

Claude

29.48%
按下载量换算19

Cursor

19.83%
按下载量换算13

Gemini CLI

8.91%
按下载量换算6

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills