做什么
读取、搜索、发送和起草 Gmail 邮件和 Google 联系人
技能库 智客分类:Agent 工作流 gmail-skill
阅读,搜索,发送,并起草Gmail邮件和Google联系人. 当用户要求检查电子邮件,找到电子邮件,搜索信件,发送电子邮件,创建草稿,查询联系人,或者找到某人的电子邮件/手机时使用. 支持多个账户.
官方网址:skills.sh
先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。
读取、搜索、发送和起草 Gmail 邮件和 Google 联系人
用户要求检查电子邮件, 找到电子邮件, 搜索信件, 发送电子邮件, 创建草稿, 查找联系人, 或找到某人的电子邮件/ 手机 。 支持多个账户
按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:Gmail Skill - Email & Contacts Access、CRITICAL: Email Sending Confirmation Required、First-Time Setup (One-Time, ~2 minutes)、Commands、Search Emails、Read Email。
文件分析:这是一份仅含 SKILL.md 的指令型技能,代理激活后整份正文进入上下文。
Read, search, send, and draft Gmail emails and Google contacts. Use when the user asks to check email, find emails, search messages, send emails, create drafts, look up contacts, or find someone's email/phone. Supports multiple accounts.
Gmail Skill - Email & Contacts AccessCRITICAL: Email Sending Confirmation RequiredFirst-Time Setup (One-Time, ~2 minutes)CommandsSearch EmailsRead EmailList Recent EmailsSend Email (Requires Confirmation)Mark as ReadMark as UnreadMark Done (Archive)Unarchive
· allowed-tools:Bash, Read
来源分类:skills.sh agent-skill
namegmail-skilldescriptionallowed-tools具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗
先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。
复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。
把 Agent Skill「gmail-skill」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-7921dad6a0eaf54b-%E9%82%AE%E4%BB%B6%E6%8A%80%E8%83%BD.html 请存为 .cursor/skills/gmail-skill/SKILL.md 或 .claude/skills/gmail-skill/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。
需要 Node.js 与 npx。先查看仓库技能列表,确认实际名称。
npx skills add 'https://github.com/idanbeck/claude-skills' --list
npx skills add 'https://github.com/idanbeck/claude-skills' --skill 'gmail-skill'
CLI 会交互选择目标 Agent,默认安装到项目;用户级安装使用 -g。先通过查看命令核对仓库内容,再用 npx skills list 检查已安装技能。
Read, search, and send Gmail emails. Access Google contacts.
Before sending ANY email, you MUST get explicit user confirmation.
When the user asks to send an email:
This applies even when:
Always confirm first. No exceptions.
On first run, the script will guide you through setup. You need to create a Google Cloud OAuth client once:
gmail.readonly, gmail.send, gmail.modify, contacts.readonly~/.claude/skills/gmail-skill/credentials.jsonThen just run any command - browser opens, you approve, done. Works for all your accounts.
Note: If you previously used gmail-reader, you'll need to re-authenticate to grant the new gmail.send scope.
python3 ~/.claude/skills/gmail-skill/gmail_skill.py search "query" [--max-results N] [--account EMAIL]
Query examples:
from:[email protected] - from specific sendersubject:meeting after:2026/01/01 - subject + datehas:attachment filename:pdf - with PDF attachmentsis:unread - unread emails"exact phrase" - exact matchpython3 ~/.claude/skills/gmail-skill/gmail_skill.py read EMAIL_ID [--account EMAIL]
python3 ~/.claude/skills/gmail-skill/gmail_skill.py list [--max-results N] [--label LABEL] [--account EMAIL]
python3 ~/.claude/skills/gmail-skill/gmail_skill.py send --to EMAIL --subject "Subject" --body "Body text" [--cc EMAIL] [--bcc EMAIL] [--account EMAIL]
Required arguments:
--to / -t - Recipient email address--subject / -s - Email subject line--body / -b - Email body textOptional arguments:
--cc - CC recipients (comma-separated)--bcc - BCC recipients (comma-separated)--account / -a - Send from specific accountExample:
python3 ~/.claude/skills/gmail-skill/gmail_skill.py send \
--to "[email protected]" \
--subject "Meeting Tomorrow" \
--body "Hi, just confirming our meeting at 2pm tomorrow." \
--account [email protected]
python3 ~/.claude/skills/gmail-skill/gmail_skill.py mark-read EMAIL_ID [--account EMAIL]
python3 ~/.claude/skills/gmail-skill/gmail_skill.py mark-unread EMAIL_ID [--account EMAIL]
Both mark-read and mark-unread support multiple IDs (comma-separated):
python3 ~/.claude/skills/gmail-skill/gmail_skill.py mark-read "id1,id2,id3" --account [email protected]
Archives email(s) by removing from inbox. Equivalent to Gmail's 'e' keyboard shortcut.
python3 ~/.claude/skills/gmail-skill/gmail_skill.py mark-done EMAIL_ID [--account EMAIL]
Moves email(s) back to inbox (undo archive).
python3 ~/.claude/skills/gmail-skill/gmail_skill.py unarchive EMAIL_ID [--account EMAIL]
python3 ~/.claude/skills/gmail-skill/gmail_skill.py star EMAIL_ID [--account EMAIL]
python3 ~/.claude/skills/gmail-skill/gmail_skill.py unstar EMAIL_ID [--account EMAIL]
All label commands support multiple IDs (comma-separated):
python3 ~/.claude/skills/gmail-skill/gmail_skill.py star "id1,id2,id3" --account [email protected]
Creates a draft email. Use --reply-to-id when replying to an existing email to ensure proper threading in email clients like Superhuman.
python3 ~/.claude/skills/gmail-skill/gmail_skill.py draft --to EMAIL --subject "Subject" --body "Body text" [--reply-to-id EMAIL_ID] [--cc EMAIL] [--bcc EMAIL] [--account EMAIL]
Required arguments:
--to / -t - Recipient email address--subject / -s - Email subject line--body / -b - Email body textOptional arguments:
--reply-to-id / -r - Message ID to reply to (adds proper In-Reply-To and References headers for threading)--cc - CC recipients (comma-separated)--bcc - BCC recipients (comma-separated)--account / -a - Create draft in specific accountExample (new email):
python3 ~/.claude/skills/gmail-skill/gmail_skill.py draft \
--to "[email protected]" \
--subject "Draft for Review" \
--body "Here's my draft message."
Example (reply to existing email):
python3 ~/.claude/skills/gmail-skill/gmail_skill.py draft \
--to "[email protected]" \
--subject "Re: Original Subject" \
--body "Thanks for your email..." \
--reply-to-id 19b99b3127793843 \
--account [email protected]
python3 ~/.claude/skills/gmail-skill/gmail_skill.py labels [--account EMAIL]
python3 ~/.claude/skills/gmail-skill/gmail_skill.py contacts [--max-results N] [--account EMAIL]
python3 ~/.claude/skills/gmail-skill/gmail_skill.py search-contacts "query" [--account EMAIL]
# List all authenticated accounts
python3 ~/.claude/skills/gmail-skill/gmail_skill.py accounts
# Remove an account
python3 ~/.claude/skills/gmail-skill/gmail_skill.py logout --account [email protected]
Add accounts by using --account with a new email - browser opens for that account:
# First account (auto-authenticates)
python3 ~/.claude/skills/gmail-skill/gmail_skill.py list
# Add work account
python3 ~/.claude/skills/gmail-skill/gmail_skill.py list --account [email protected]
# Add personal account
python3 ~/.claude/skills/gmail-skill/gmail_skill.py list --account [email protected]
# Use specific account
python3 ~/.claude/skills/gmail-skill/gmail_skill.py search "from:boss" --account [email protected]
Tokens are stored per-account in ~/.claude/skills/gmail-skill/tokens/
python3 ~/.claude/skills/gmail-skill/gmail_skill.py search "is:unread after:2026/01/01"
python3 ~/.claude/skills/gmail-skill/gmail_skill.py read 18d5a3b2c1f4e5d6
python3 ~/.claude/skills/gmail-skill/gmail_skill.py send \
--to "[email protected]" \
--subject "Hello!" \
--body "Just wanted to say hi."
python3 ~/.claude/skills/gmail-skill/gmail_skill.py search-contacts "John Smith"
python3 ~/.claude/skills/gmail-skill/gmail_skill.py list --account [email protected] --max-results 5
All commands output JSON for easy parsing.
pip install google-auth google-auth-oauthlib google-auth-httplib2 google-api-python-client requests~/.claude/skills/gmail-skill/tokens/Agent 工作流
创造有效技能指南。 当用户想创造出新的技能(或更新现有的技能),以专业知识,工作流程,或工具集成来扩展克洛德的能力时,应该使用这种技能.
Agent 工作流
使用ClawdHub CLI搜索,安装,更新并发布从taladhub.com的代理技能. 需要获取苍蝇上的新技能时使用,将安装的技能同步到最新版本或特定版本,或者发布 npm-instainddhub CLI 的新/更新的技能文件夹.
Agent 工作流
管弦乐团多代理团队,任务设定周期,交接协议,审查工作流程. 使用时间: (1)建立2+特派员队伍,具有不同专业,(2)确定任务路线和生命周期(收录框_ spec_建设_审查_完成),(3)在特派员之间制定交接协议,(4)建立审查和质量关口,(5)管理特派员之间的交流和文物共享.
Agent 工作流
Spec-first,TDD,子代理驱动的软件开发工作流程. 当:(1)构建任何新功能或应用——触发脑暴_计划_子代理执行回路,(2)调试出一个bug或测试失败——触发系统性的根起过程,(3)用户说"让我们构建","帮助我计划","我想添加X",或"这个被打破",(4)完成一个功…