bulk-operation-preview

bulk-operation-preview is a skill for Claude Code from PsychQuant/che-apple-mail-mcp. It costs 64 tokens per session (1,517 once invoked), scanned A, original, MIT.

A review step for operations affecting five or more emails. It shows the matching messages grouped into conversation threads, possible false matches, attachments, and the files, mailboxes, or other items the operation may change.

In plain words
What is it for?
Previewing bulk email searches and actions, reviewing thread grouping, spotting likely false positives, and confirming attachment downloads or other side effects.
Why use it?
It lets someone check the exact scope of a large email action before it runs, reducing accidental changes to unrelated messages or files.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the che-apple-mail-mcp plugin — 3 skills, 5 commands, 1 hook shipped together

Good fit Previewing bulk email searches and actions, reviewing thread grouping, spotting likely false positives, and confirming attachment downloads or other side effects.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/psychquant/che-apple-mail-mcp/bulk-operation-preview
Install

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.

Any agent
npx skills add PsychQuant/che-apple-mail-mcp --skill bulk-operation-preview
Clone the repo
git clone --depth 1 https://github.com/PsychQuant/che-apple-mail-mcp

Made for: Claude Code.

Or install che-apple-mail-mcp, the plugin that ships this one along with the rest of its 3 skills, 5 commands, 1 hook.

Wrote 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.

agentmods badge for bulk-operation-preview

README.md
[![agentmods](https://agentmods.dev/badge/skills/psychquant/che-apple-mail-mcp/bulk-operation-preview/github.svg)](https://agentmods.dev/skills/psychquant/che-apple-mail-mcp/bulk-operation-preview)
Your own site
<a href="https://agentmods.dev/skills/psychquant/che-apple-mail-mcp/bulk-operation-preview"><img src="https://agentmods.dev/badge/skills/psychquant/che-apple-mail-mcp/bulk-operation-preview/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.

agentmods 80×15 button for bulk-operation-preview

Your own site · 80×15
<a href="https://agentmods.dev/skills/psychquant/che-apple-mail-mcp/bulk-operation-preview"><img src="https://agentmods.dev/badge/skills/psychquant/che-apple-mail-mcp/bulk-operation-preview.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,517 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00064 $0.01517
Opus 5 $0.00032 $0.00758
Sonnet 5 $0.00013 $0.00303
Haiku 4.5 $0.00006 $0.00152

Measured 11d ago against content hash 1dd6d74d2ee1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

bulk-operation-preview 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 11d 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.

plugin/skills/bulk-operation-preview/SKILL.md · 155 lines

How it starts

The opening of the file, as written. The whole thing — 155 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Bulk Operation Preview

當 search 結果 ≥ 5 emails 或操作會 touch 多個 emails 時,先 show 結構化 preview 讓 user 過目。

Preview Format

基本結構

搜尋結果:{N} 封 emails (by {filter_summary})

Threads 分布(按時間排序):
  ✓ [{date}] {thread_key} ({M} msgs)
  ✓ [{date}] {thread_key} ({M} msgs)
  ⚠ [{date}] {thread_key} ({M} msgs)  ← potential false positive,reason: {reason}
  ...

附件:{K} 個檔案 ({total_size} 預估)
  - {file_1.pdf} ({size_1})
  - ...

⚠ {flag_count} 個 threads 標示為 potential false positive
要排除嗎?確認操作範圍?

Pipeline-style filter summary

借 nsql pipeline format:

Mail
  -> filter(sender = '[email protected]' 
            OR sender = '[email protected]'
            OR subject contains '陳君厚')
  -> group(thread_key)
  -> sort(first_message asc)

讓 user 一眼看出 search 邏輯。

False-positive flagging(整合 false-positive-detection.md)

每 thread 跑 false-positive detection:

Flag 條件
sender/recipient 直接匹配 filter 中的 email 地址
sender 不在 filter 但 subject 含 filter 關鍵字(可能 false positive)
⚠⚠ sender 完全不在 filter 且 subject 也只含通用詞(高機率 false positive)
metadata 不足以判斷(少於 1 封 email 在 thread)

詳見 rules/false-positive-detection.md

Side-effect scope counting

在 Phase 3 (Operation Confirmation) 之前,count operation 影響的 scope:

我將執行:
  - 寫入 {N} 個 markdown 檔到 {output_dir}/
  - 下載 {K} 個 attachments ({total_size}) 分流到:
      → {data_dir}/ ({data_count} 個資料檔)
      → {documents_dir}/ ({doc_count} 個文件附件)
  - 建立/更新 {index_count} 個 index files
  - {modify_mailapp ? "修改 Mail.app 標記/移動" : "不修改 Mail.app 內容(read-only)"}

預估磁碟用量:{disk_estimate}
預估執行時間:{time_estimate}

⚠ 此操作{reversible ? "可以 undo(刪除生成的檔案)" : "無法 undo"}
確認執行嗎?

Thread breakdown 細節

按 first message date 排序,format:

[YYYY-MM-DD] {thread_key} ({msg_count} msgs)
   Participants: {top 3 participants}
   First: {first_sender}, Last: {last_sender}

對 chchen 案例:

[2026-04-29] 新聘博士後研究學者繳交資料 (2 msgs)
   Participants: yijulee, che830621, cchen, coco891017
   First: yijulee, Last: che830621

[2026-04-19] 後續面試報告時間請教 (5 msgs)
   Participants: che830621, cchen, coco891017, yijulee, tsoping
   First: che830621, Last: che830621

⚠ [2026-03-15] 應徵資料科學統計合作社... (1 msg)
   Participants: che830621, scchen
   First/Last: che830621
   ⚠ Reason: sender (scchen) 不在 filter pattern,subject 含「陳」但實際對象是另一個 unit

Read the full file on GitHub · 155 lines

Changes

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.

  1. 11d ago First seen · 155 lines · 64 tokens per session scan A 1dd6d74d2ee1

Subscribe to this mod's changes

bulk-operation-preview is a skill published in the GitHub repository PsychQuant/che-apple-mail-mcp (8 stars, last pushed 2d ago), licensed MIT. It adds 64 tokens to every session and 1,517 once invoked, about $0.0003 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.

Related

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.

sweetrb/apple-mail-mcp · 47 tokens

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…

patrickfreyer/apple-mail-mcp · 61 tokens

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.

sweetrb/apple-notes-mcp · 54 tokens

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…

PsychQuant/che-ical-mcp · 0 tokens

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.

PsychQuant/che-ical-mcp · 38 tokens

c-email

Read, send, search, and label email via gog (Gmail CLI) or himalaya (IMAP). Supports inbox management, drafting replies, thread viewing, and label/folder operations across Gmail and standard IMAP accounts.

daxaur/openpaw · 49 tokens