用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/drn/dots --skill email命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | |
| description | Search and read Gmail messages. Use when looking up emails, reading email threads, or checking inbox labels. |
Search and read Gmail messages using the gmail CLI.
You are helping read Gmail data. Auth uses OAuth tokens stored at ~/.dots/sys/gmail/tokens/. Additional env vars (if any) are loaded from ~/.dots/sys/env.
# Search emails
gmail search "from:emily subject:kickoff" # Search by sender and subject
gmail search "is:unread" --limit 10 # Recent unread
gmail search "after:2025/01/01 from:sarah" # Date-filtered search
# Read a specific email
gmail read MESSAGE_ID # Read full email by ID
# List labels with message counts
gmail labels
# List configured accounts
gmail accounts
# Use a specific account
gmail search "budget" --account personal
gmail labels --account work
# Re-authenticate an account (opens browser for OAuth)
gmail auth personal
# JSON output
gmail search "quarterly review" --json
gmail accounts --json
Run gmail accounts to see configured accounts with names and emails. The default account is marked with *.
gmail search "from:emily" --limit 10
# First search to find message IDs
gmail search "subject:technical kickoff" --limit 5
# Then read the specific message
gmail read MESSAGE_ID
gmail labels
The CLI resolves accounts in this order:
--account NAME flag — uses ~/.dots/sys/gmail/tokens/NAME.json~/.dots/sys/gmail/accounts.json~/.dots/sys/gmail/tokens/Gmail search supports standard Gmail query operators:
from:sender — messages from a specific senderto:recipient — messages to a specific recipientsubject:words — subject line searchafter:YYYY/MM/DD / before:YYYY/MM/DD — date rangeis:unread / is:starred — message statehas:attachment — messages with attachmentslabel:NAME — messages with a specific labelin:inbox / in:sent — location filtersIf a search or read fails with invalid_grant or Token has been expired or revoked, re-authenticate:
gmail auth ACCOUNT_NAME
This opens the browser for OAuth consent and saves the new token.