Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add PsychQuant/che-apple-mail-mcp --skill email-search-disambiguationgit clone --depth 1 https://github.com/PsychQuant/che-apple-mail-mcpWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/psychquant/che-apple-mail-mcp/email-search-disambiguation)<a href="https://agentmods.dev/skills/psychquant/che-apple-mail-mcp/email-search-disambiguation"><img src="https://agentmods.dev/badge/skills/psychquant/che-apple-mail-mcp/email-search-disambiguation/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/psychquant/che-apple-mail-mcp/email-search-disambiguation"><img src="https://agentmods.dev/badge/skills/psychquant/che-apple-mail-mcp/email-search-disambiguation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00091 | $0.01127 |
| Opus 5 | $0.00046 | $0.00563 |
| Sonnet 5 | $0.00018 | $0.00225 |
| Haiku 4.5 | $0.00009 | $0.00113 |
Grade A, and why
email-search-disambiguation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 147 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Email Search Disambiguation
借鑑 nsql 的 disambiguation triggers,adapt 到 email search 領域。
Triggers
E1 — Vague Contact Reference
Examples:
- 中文人名:「陳老師」、「王教授」、「林助理」
- 角色稱呼:「老闆」、「主管」、「指導教授」、「客戶」
- 公司/組織:「中研院的人」、「stat.sinica 的信」
Resolution pattern:
「{contact}」可能對應到:
1. {email_1} ({description_1},推薦)
2. {email_2} ({description_2})
3. 其他({user 補充})
你要哪一個?
範例:
「陳老師」可能對應到:
1. [email protected] (陳君厚老師,中研院統計所,推薦)
2. [email protected] (統計所其他「陳」)
3. 其他
你要哪一個?
怎麼找候選:
- 從
.claude/emails.md的participant_aliases讀別名對應 - 從 contacts 或之前 archive 的 thread participants 找匹配
- 如果完全找不到,問 user「我找不到匹配的 contact,你能給我 email 地址嗎?」
E2 — Vague Time Reference
Examples: 「最近」、「上週」、「這個月」、「之前」、「半年內」
Resolution pattern:
「{term}」可以有不同解釋:
1. 過去 7 天 (今天 - 7d)
2. 上一個完整週/月
3. 自從某事件 (例如:上次 archive 之後)
你指的是哪一個?
E3 — Vague Scope
Examples: 「全部」、「所有」、「都」、「整個 thread」
Resolution pattern:
「全部」可能指:
1. 符合 filter 的 emails (用 search criteria 限縮)
2. 整個 mailbox 的 emails (沒有 filter)
3. 過去 N 天/月的 emails (時間限縮)
範圍多大?
E4 — Ambiguous Operation Direction
Examples:
- 「寄給陳老師的信」← 我寄出?還是收到?
- 「跟陳老師往來的信」← 雙向
Resolution pattern:
「{phrase}」可能指:
1. 我寄出去給 {contact} 的(Sent direction)
2. {contact} 寄給我的(Received direction)
3. 雙向(整個 thread)
你要哪一個?
E5 — Mailbox Ambiguity
Examples: 「INBOX 的信」當有多個 accounts、「Drafts」當不確定哪個 account
Resolution pattern:
你有 {N} 個 mail accounts:
1. {account_1}
2. {account_2}
3. ...
「{mailbox}」要在哪一個 account 找?還是全部?
Disambiguation skip 條件
不需要 disambiguate(直接 execute):
- 明確 email 地址(
[email protected]) - 精確日期區間(
2026-04-01 to 2026-04-30) - Message-ID 直接指定
- 之前 session 已經 disambiguate 過同一個 term(且 user 沒改)
與 confirmation-protocol 的關係
E1-E5 是 confirmation-protocol 的 Phase 1(Disambiguation)。
完成 disambiguation 後進入 Phase 2(Search Preview),由 bulk-operation-preview skill 接手。
範例 dialogue
user: 把 jonathan 寄給我的信都歸檔
AI [E1 trigger]:
「jonathan」可能對應到:
1. [email protected] (Jonathan Tong,合作研究者)
2. [email protected] (其他)
你要哪一個?
user: 1
AI [E4 trigger - direction is "寄給我的" so direction is implicitly received, but let me double check via E3]:
「[email protected] 寄給我的信」我理解是:
- Direction: received only (不含我寄出去的)
- Mailbox: 預設 INBOX(若要包含其他 mailbox 例如 archived 請說)
- Time range: 全部歷史
確認嗎?
user: 對,但是要包含 archived 的
AI: [proceed to Phase 2 with refined filter]
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 13d ago First seen · 147 lines · 91 tokens per session scan A ab49f5a89c23
email-search-disambiguation is a skill published in the GitHub repository PsychQuant/che-apple-mail-mcp (8 stars, last pushed today), licensed MIT. It adds 91 tokens to every session and 1,127 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
apple-mail
Use this skill when the user wants to manage Apple Mail on macOS - reading, searching, sending, replying to, forwarding, and organizing emails and mailboxes. This skill provides access to Apple Mail through MCP tools.
email-management-expert
Expert email management assistant for Apple Mail. Use this when the user mentions inbox management, email organization, email triage, inbox zero, organizing emails, managing mail folders, email productivity, checking emails, or email workflow optimization. Provides intelligent workflows and best practices for…
apple-notes
Use this skill when the user wants to interact with Apple Notes on macOS - creating, searching, reading, updating, deleting, organizing, or formatting notes and folders. This skill provides access to Apple Notes through MCP tools and includes safe formatting guidance.
archive-event
Archive a meeting or event into Calendar from a narrative source — a meeting notice, an announcement, a message thread — deriving the time from the thread's authoritative correction, recording the source in the event notes, and labelling any value the source did not state. Use when the user hands over a notice…
calendar-management
Guide for effective use of che-ical-mcp for macOS Calendar & Reminders management. Use when user asks about calendar events, reminders, scheduling, or time management.
messages
Browse conversations, read messages, and send texts in Apple Messages.