Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计提醒

gmailGmail 邮件管理

Agent Skill

用于辅助云资源、部署、容器、基础设施和运维自动化任务。它适合让 Agent 检查配置、整理部署步骤、分析资源状态、生成排障思路或辅助云服务接入。使用时需要明确目标环境、账号权限、区域和资源组,区分本地测试与生产操作;涉及删除资源、重启服务、修改网络或权限配置时,应先确认影响范围。

总安装

618

周安装

25

GitHub Stars

151

下载量

194
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/aws-samples/sample-strands-agent-with-agentcore --skill gmail

简介

用于管理 Gmail 邮箱的标签分类、邮件检索与自动化处理任务。

  • 它适合让 Agent 按自定义标签筛选邮件,或通过自然语言搜索定位特定通信记录。
  • 使用时可指定最大返回数量及是否包含垃圾邮件文件夹内容。
  • 安装需通过 npx skills add 命令从 aws-samples/sample-strands-agent-with-agentcore 仓库添加 gmail 技能。
  • 涉及邮件删除或转发操作时应二次确认收件人地址与正文内容准确性。

SKILL.md

Gmail

Available Tools

  • list_labels(): List all Gmail labels (system: INBOX, SENT, TRASH, SPAM, DRAFT, IMPORTANT, STARRED, UNREAD; plus user-created labels).
  • list_emails(label?, max_results?, include_spam_trash?): List emails by label.

- label (string, optional, default: "INBOX"): Label to filter by (INBOX, SENT, DRAFT, TRASH, SPAM, STARRED, IMPORTANT, or custom label ID) - max_results (integer, optional, default: 10, max: 100): Number of emails to return - include_spam_trash (boolean, optional, default: false): Include SPAM and TRASH

  • search_emails(query, max_results?): Search Gmail using query syntax.

- query (string, required): Gmail search query (from:, to:, subject:, is:unread, has:attachment, after:, before:, older_than:, newer_than:) - max_results (integer, optional, default: 10, max: 50): Number of results

  • read_email(message_id): Read a full email including body and attachments.

- message_id (string, required): Gmail message ID (from list_emails or search_emails)

  • send_email(to, subject, body, cc?, bcc?, reply_to?, in_reply_to?, html_body?): Send an email.

- to (string, required): Recipient(s), comma-separated - subject (string, required): Email subject - body (string, required): Plain text email body - cc (string, optional): CC recipient(s) - bcc (string, optional): BCC recipient(s) - reply_to (string, optional): Reply-To address - in_reply_to (string, optional): Message-ID to reply to (for threading) - html_body (string, optional): HTML version of email body

  • draft_email(to, subject, body, cc?, bcc?, reply_to?, in_reply_to?, html_body?): Create a draft for later editing/sending. Same parameters as send_email.
  • delete_email(message_id, permanent?): Delete an email.

- message_id (string, required): Gmail message ID - permanent (boolean, optional, default: false): If true, permanently delete; if false, move to Trash

  • bulk_delete_emails(query, reason, max_delete?): Permanently delete multiple emails by query. Cannot be undone.

- query (string, required): Gmail search query to find emails - reason (string, required): Human-readable explanation (shown to user for approval) - max_delete (integer, optional, default: 50, max: 100): Maximum emails to delete

  • modify_email(message_id, add_labels?, remove_labels?): Add/remove labels on an email.

- message_id (string, required): Gmail message ID - add_labels (string, optional): Comma-separated label IDs to add (e.g., "STARRED,IMPORTANT") - remove_labels (string, optional): Comma-separated label IDs to remove (e.g., "UNREAD,INBOX")

  • get_email_thread(thread_id): Get all messages in an email thread/conversation.

- thread_id (string, required): Gmail thread ID (from read_email or search_emails)

Usage Guidelines

  • Use list_labels first to discover available labels before filtering.
  • Gmail search query syntax: from:sender, to:recipient, subject:text, is:unread, has:attachment, after:2024/01/01, before:2024/12/31.
  • Use get_email_thread to view entire conversation context before replying.

Common Operations

Label operations via modify_email:

OperationParameters
Mark as readremove_labels="UNREAD"
Mark as unreadadd_labels="UNREAD"
Archiveremove_labels="INBOX"
Staradd_labels="STARRED"
Unstarremove_labels="STARRED"
Mark importantadd_labels="IMPORTANT"

Bulk Deletion

bulk_delete_emails(query, reason) permanently deletes all emails matching a Gmail query. This cannot be undone.

  • Always provide a reason parameter explaining the intent.
  • Always explain what will be deleted and get user confirmation before calling.

Common queries:

  • Spam cleanup: "is:spam older_than:7d"
  • Old unread: "in:inbox is:unread older_than:14d"
  • Promotions purge: "category:promotions older_than:30d"
  • From specific sender: "from:noreply@example.com older_than:30d"

UI Guidance (from tools-config)

Gmail Tool Usage:

  • list_labels: Get all available labels before filtering emails
  • list_emails: Browse emails by label (INBOX, SENT, DRAFT, TRASH, etc.)
  • search_emails: Use Gmail query syntax (from:, to:, subject:, is:unread, has:attachment, after:, before:)
  • read_email: Get full email content with attachments
  • send_email: Send emails with optional CC, BCC, and HTML body
  • draft_email: Create drafts for later editing/sending
  • delete_email: Move to trash (permanent=True for permanent deletion)
  • bulk_delete_emails: Permanently delete multiple emails by query (requires user approval)
  • modify_email: Add/remove labels (mark read: remove UNREAD, archive: remove INBOX, star: add STARRED)
  • get_email_thread: View entire conversation thread

Bulk Deletion (bulk_delete_emails):

  • Use for spam cleanup, old email purge, etc.
  • Always provide 'reason' parameter explaining the intent
  • Common queries: "is:spam older_than:7d", "in:inbox is:unread older_than:14d", "category:promotions older_than:30d"
  • WARNING: Permanently deletes emails - cannot be recovered

Common Operations:

  • Mark as read: modify_email(id, remove_labels="UNREAD")
  • Archive: modify_email(id, remove_labels="INBOX")
  • Star: modify_email(id, add_labels="STARRED")
  • Mark important: modify_email(id, add_labels="IMPORTANT")

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.06%
按下载量换算70

Claude

31.09%
按下载量换算60

Cursor

16.66%
按下载量换算32

Gemini CLI

9.39%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

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

来源信息

继续浏览同类 Skills