che-apple-mail-mcp: Instructions file for Claude Code

CLAUDE.md

che-apple-mail-mcp CLAUDE.md is an instructions file for Claude Code from PsychQuant/che-apple-mail-mcp. It costs 1,697 tokens per session, scanned A, original, MIT.

Project instructions for a Swift mail-related MCP project that uses Spec-Driven Development, a workflow where written specifications guide proposed and implemented changes.

In plain words
What is it for?
Planning changes, applying specifications, continuing interrupted work, answering questions about specs, and archiving finished changes.
Why use it?
They tell the coding agent which workflow step and command to use for discussions, proposals, implementation, unfinished work, and completed changes.

Instructions file for Claude Code

Written for Claude Code: Claude Code plugin machinery. Also seen: mentions .claude-plugin.

This is PsychQuant/che-apple-mail-mcp's own configuration. It tells Claude Code how to work on che-apple-mail-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything che-apple-mail-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to PsychQuant/che-apple-mail-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/PsychQuant/che-apple-mail-mcp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/PsychQuant/che-apple-mail-mcp

Made for: Claude Code.

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 che-apple-mail-mcp CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/psychquant/che-apple-mail-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/psychquant/che-apple-mail-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,697 This file is loaded in full into every session.
When invoked 1,697 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.01697 $0.01697
Opus 5.5 $0.00679 $0.00679
Sonnet 5.5 $0.00339 $0.00339
Haiku 4.5 $0.00170 $0.00170

Measured 4d ago against content hash cf38d8c35ffc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

che-apple-mail-mcp CLAUDE.md 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 4d 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.

CLAUDE.md · 120 lines

How it starts

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

Spectra Instructions

This project uses Spectra for Spec-Driven Development(SDD). Specs live in openspec/specs/, change proposals in openspec/changes/.

Use /spectra:* skills when:

  • A discussion needs structure before coding → /spectra:discuss
  • User wants to plan, propose, or design a change → /spectra:propose
  • Tasks are ready to implement → /spectra:apply
  • There's an in-progress change to continue → /spectra:ingest
  • User asks about specs or how something works → /spectra:ask
  • Implementation is done → /spectra:archive

Workflow

discuss? → propose → apply ⇄ ingest → archive

  • discuss is optional — skip if requirements are clear
  • Requirements change mid-work? Plan mode → ingest → resume apply

Parked Changes

Changes can be parked(暫存)— temporarily moved out of openspec/changes/. Parked changes won't appear in spectra list but can be found with spectra list --parked. To restore: spectra unpark <name>. The /spectra:apply and /spectra:ingest skills handle parked changes automatically.

Testing: 測試郵件的收件人只能是維護者自己(CRITICAL,安全規則)

任何會產生、儲存或寄出郵件的測試,To/Cc/Bcc 只能是維護者自己的位址(list_accounts 可查)。適用於 live 測試、手動 smoke、診斷重現、agent 自動測試,人與 agent 都一樣。單元測試(不碰 Mail)不受影響。

禁止:

  • 拿真實往來中的信件當 reply_email/forward_email/redirect_email 的目標。這三個工具的預設收件人都來自原信,目標選錯,收件人就是真人。
  • 在有第三方的信上用 reply_all。
  • 用任何真實第三方的位址當測試收件人。

要測 reply/forward/redirect 這類工具,這樣做:

  1. 先用 compose_email 寄一封只寄給自己的測試信(主旨標明「測試」)。
  2. 在收件匣找到那封信,對它操作。
  3. 動手前先說出收件人與目標信件,並確認目標信件的寄件人與收件人都只有維護者自己。
  4. 草稿建出來後,先讀它的 To/Cc,確認只有自己,再做其他事。
  5. 測完刪除測試草稿與測試信,並回報刪了哪些。

為什麼這是安全邊界,不是風格規則:草稿一旦存在,就只差一次按鍵就寄出,所以 save_as_draft 不算安全邊界。這個 server 自己記錄的失敗模式也說明「只存草稿」不可靠:#461(成功回報但內文為空)、#242(送出階段失敗時寄送狀態未知,信可能已寄出)。2026-10-15 診斷 #510 時,agent 拿真實往來的信件當 reply_email(save_as_draft) 的目標,草稿的預設收件人是真實第三方;沒有寄出,但維護者要求此後一律只寄給自己,並要求寫進本檔(#511)。

Release Process

Releases are published with scripts/release.sh, which bundles the previously error-prone manual sequence (swift build → git tag → gh release create → gh release upload) into one command. Always use the script — the v2.1.1 release was broken because the manual gh release upload step was forgotten (see #13).

Read the full file on GitHub · 120 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. 4d ago Changed · +3 lines · +64 tokens per session cf38d8c35ffc
  2. 8d ago Changed · +20 lines · +543 tokens per session 0e94b339c30f
  3. 1mo ago First seen · 97 lines · 1,090 tokens per session scan A 145d7a4cb32f

Subscribe to this mod's changes

che-apple-mail-mcp CLAUDE.md is an instructions file published in the GitHub repository PsychQuant/che-apple-mail-mcp (10 stars, last pushed yesterday), licensed MIT. It adds 1,697 tokens to every session, about $0.0068 per session on Opus 5.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 instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,581 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens