Use BEFORE adding any new tool, parameter, or endpoint to the Apple Mail MCP server.

MITAuto-check passedBackend & APIs

Install API Design

skills CLI
$ npx skills add s-morgan-jeffries/apple-mail-fast-mcp --skill api-design -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install s-morgan-jeffries/apple-mail-fast-mcp api-design --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/s-morgan-jeffries/apple-mail-fast-mcp.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/api-design .claude/skills/api-design && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
api-design
GitHub stars
104
Token cost
~876 tokens
SKILL.md length
177 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
MIT

At a glance

Use BEFORE adding any new tool, parameter, or endpoint to the Apple Mail MCP server.

  • Works in 4 steps: Always return dict[str, Any] with… → Errors include "error" (message) and… → Never return formatted text strings —… → …
  • Considering API changes
  • SKILL.md covers Decision Tree: Use BEFORE…, Anti-Patterns (Never Do These), Response Format Rules and Tool Naming Convention, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

API Design is an agent skill from s-morgan-jeffries/apple-mail-fast-mcp. Use BEFORE adding any new tool, parameter, or endpoint to the Apple Mail MCP server. Also use when considering API changes, evaluating feature requests, or when tempted to create a specialized operation. Contains the decision tree that prevents tool sprawl and the anti-pattern catalog.

Its SKILL.md is about 880 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Backend & APIs, covering API design and MCP servers. It works with Model Context Protocol. The repository describes itself as: 🤖 MCP server for Apple Mail - Manage emails with AI using Claude Desktop. Search, send, organize mail with natural language. The licence is MIT.

When your agent uses it

  • Considering API changes
  • Evaluating feature requests
  • Tempted to create a specialized operation

Example prompts

  • “/api-design”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Always return dict[str, Any] with "success": bool
  2. Errors include "error" (message) and "error_type" (category)
  3. Never return formatted text strings — return structured data
  4. Include context fields — e.g., "messages_found": 5 alongside the results

What it can do on your machine

Read from SKILL.md and the folder at commit ed0cfbc. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are python).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

API Design loads about 876 tokens when it runs. Until then it costs about 74 tokens; SKILL.md has 177 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~74
When it runs · the whole SKILL.md, loaded when a task matches
~876

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from s-morgan-jeffries/apple-mail-fast-mcp at commit ed0cfbc, republished under its MIT licence (© s-morgan-jeffries). 177 words, ~876 tokens.

Download SKILL.mdSave it as .claude/skills/api-design/SKILL.md (or your agent's skills folder).
name
api-design
description
Use BEFORE adding any new tool, parameter, or endpoint to the Apple Mail MCP server. Also use when considering API changes, evaluating feature requests, or when tempted to create a specialized operation. Contains the decision tree that prevents tool sprawl and the anti-pattern catalog.

Apple Mail MCP API Design

The current API has 17 tools organized into 4 phases. Tool count should grow slowly and deliberately. Every new tool request must pass through the decision tree.

Decision Tree: Use BEFORE Adding Any Tool

Can an existing tool handle this with current parameters?  (70% of cases: YES)
  |-- Searching with a new filter? -> Add parameter to search_messages()
  |-- Reading with different format? -> Add parameter to get_messages()
  |-- Sending/composing with new options? -> Extend create_draft() or update_draft()
  |
Can an existing tool handle this with a NEW parameter?  (20% of cases: YES)
  |-- Example: search by date range -> add date_from, date_to to search_messages()
  |-- Example: search flagged only -> add is_flagged to search_messages()
  |
Is this truly a distinct operation?  (10% of cases: MAYBE)
  |-- Different Mail.app object? (accounts, rules, smart mailboxes)
  |-- Different action type? (not CRUD on messages/mailboxes)
  |
If NO to all three: You might need a new tool. This is rare.

Anti-Patterns (Never Do These)

Field-Specific Tools
python
# WRONG - creates tool sprawl
mark_as_flagged(message_id)
mark_as_unflagged(message_id)
mark_as_junk(message_id)

# RIGHT - one CRUD-style update tool with patch semantics
update_message(message_ids, read_status=True)
update_message(message_ids, flag_color="red")
update_message(message_ids, destination_mailbox="Archive", account="Gmail")
Specialized Search Tools
python
# WRONG - each filter becomes a tool
get_unread_messages()
get_flagged_messages()
get_messages_from_sender()

# RIGHT - parameters on existing search
search_messages(read_status="unread")
search_messages(is_flagged=True)
search_messages(sender_contains="user@example.com")
Formatted Text Returns
python
# WRONG - returns human-readable string
def list_mailboxes():
    return "Inbox (42 messages)\nSent (15 messages)"

# RIGHT - returns structured data
def list_mailboxes():
    return {"success": True, "mailboxes": [{"name": "Inbox", "count": 42}, ...]}

Response Format Rules

  1. Always return dict[str, Any] with "success": bool
  2. Errors include "error" (message) and "error_type" (category)
  3. Never return formatted text strings — return structured data
  4. Include context fields — e.g., "messages_found": 5 alongside the results

Tool Naming Convention

  • Verb + noun: search_messages, create_draft, delete_messages
  • Plural when accepting lists: delete_messages, get_messages
  • CRUD-style for multi-field mutation: update_message(read_status, flag_color, destination_mailbox, ...) over per-field verbs (mark_as_read, flag_message, move_messages). Patch semantics — unset fields are unchanged.

Adding a New Tool Checklist

  1. Verify it doesn't fit in an existing tool (run through decision tree above)
  2. Write unit tests (mock AppleScript)
  3. Write integration tests (real Mail.app)
  4. Implement in mail_connector.py
  5. Expose in server.py
  6. Run ./scripts/check_client_server_parity.sh
  7. Update docs/reference/TOOLS.md
  8. Add blind eval scenarios if tool has non-obvious parameters

© s-morgan-jeffries, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/api-design of s-morgan-jeffries/apple-mail-fast-mcp.

Open the folder on GitHubat commit ed0cfbc

Compare with similar skills

API Design next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

API Design compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
API Design this skills-morgan-jeffries/apple-mail-fast-mcp104—~876Automated safety check: PassMIT
Azsdk Common Pipeline FixerAzure/azure-sdk-tools134—~831Automated safety check: PassMIT
Build MCP Serveranthropics/claude-plugins-official38k1 repos~3kAutomated safety check: PassApache-2.0
MCP Server BuildershareAI-lab/Kode-CLI5.2k—~1.9kAutomated safety check: PassApache-2.0
Flutter MCP Boundary AuditArenukvern/mcp_flutter386—~3kAutomated safety check: PassMIT
Ue Live DebuggingJasonMa0012/MooaToon750—~2.9kAutomated safety check: NotesCustom licence

Similar skills

  • Azsdk Common Pipeline Fixer

    Azure/azure-sdk-tools

    Official

    Automatically fix Azure SDK CI/CD pipeline failures by applying code changes and verifying locally.

    134 GitHub stars~831 tokensUpdated today
    Backend & APIsAuto-check passed
  • Build MCP Server

    anthropics/claude-plugins-official

    Official

    Entry point for building an MCP server: asks about the use case, picks a deployment model and tool-design pattern, then hands off to more specialized skills.

    38k GitHub starsUsed in 1 repo~3k tokens
    Agent WorkflowsAuto-check passed
  • MCP Server Builder

    shareAI-lab/Kode-CLI

    Guide to designing and building MCP servers: tool, resource and prompt design for agent usability, with TypeScript or Python implementation workflows.

    5.2k GitHub stars~1.9k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Flutter MCP Boundary Audit

    Arenukvern/mcp_flutter

    Generic contract/schema boundary audit across authoring, discovery, validation, and execute—detecting split-brain between listings and invoke paths, gateway divergence, and permissive placeholders.

    386 GitHub stars~3k tokensUpdated 6 days ago
    MobileAuto-check passed
  • Ue Live Debugging

    JasonMa0012/MooaToon

    A skill your agent uses when debugging UE C++ crashes, runtime bugs, or unexpected behavior with Rider MCP available.

    750 GitHub stars~2.9k tokensUpdated 21 days ago
    DevelopmentAuto-check: notes
  • Official

    Run the Azure SDK generation pipeline for a release plan and create the generated SDK pull requests, for one language or for all languages.

    134 GitHub stars~1.5k tokensUpdated today
    DevelopmentAuto-check passed

More from s-morgan-jeffries/apple-mail-fast-mcp

  • Applescript Mail

    s-morgan-jeffries/apple-mail-fast-mcp

    A skill your agent uses when writing, modifying, or debugging ANY AppleScript that interacts with Apple Mail.

    104 GitHub stars~2.5k tokensUpdated 29 days ago
    Auto-check passed
  • Integration Testing

    s-morgan-jeffries/apple-mail-fast-mcp

    A skill your agent uses when setting up, running, or debugging integration tests against real Apple Mail.

    104 GitHub stars~1.2k tokensUpdated 29 days ago
    Auto-check passed
  • Performance Patterns

    s-morgan-jeffries/apple-mail-fast-mcp

    A skill your agent uses when optimizing Apple Mail MCP operations, diagnosing slow queries, adding new filtering logic, or modifying how data is fetched from Mail.app.

    104 GitHub stars~1.5k tokensUpdated 29 days ago
    Auto-check passed
  • Release

    s-morgan-jeffries/apple-mail-fast-mcp

    A skill your agent uses when the user wants to release a new version.

    104 GitHub stars~1.3k tokensUpdated 29 days ago
    Auto-check passed

Categories

Questions about API Design

What does API Design do?

Use BEFORE adding any new tool, parameter, or endpoint to the Apple Mail MCP server. API Design is an agent skill from s-morgan-jeffries/apple-mail-fast-mcp. Use BEFORE adding any new tool, parameter, or endpoint to the Apple Mail MCP server.

When should I use API Design?

API Design fits situations like: considering API changes; evaluating feature requests; tempted to create a specialized operation.

How do I install API Design in Claude Code?

Run `npx skills add s-morgan-jeffries/apple-mail-fast-mcp --skill api-design -a claude-code`. Or copy the skill folder (.claude/skills/api-design in s-morgan-jeffries/apple-mail-fast-mcp) into .claude/skills/api-design in your project. Claude Code loads it when a task matches its description.

How do I install API Design in Codex?

Run `npx skills add s-morgan-jeffries/apple-mail-fast-mcp --skill api-design -a codex`. Or copy the skill folder (.claude/skills/api-design in s-morgan-jeffries/apple-mail-fast-mcp) into .agents/skills/api-design in your project. Codex loads it when a task matches its description.

Can I use API Design in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add s-morgan-jeffries/apple-mail-fast-mcp --skill api-design -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/api-design, .gemini/skills/api-design, .github/skills/api-design and .opencode/skills/api-design in your project.

What does API Design need to run?

SKILL.md names no scripts, command-line tools or credentials: API Design is instructions for the agent only. Our summary lists: Python 3.

Does API Design access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is API Design safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does API Design use?

API Design is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does API Design use?

About 876 tokens (SKILL.md is roughly 3.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to API Design?

Skills that share tags, products or a category with API Design: Azsdk Common Pipeline Fixer (Azure/azure-sdk-tools, 134 stars), Build MCP Server (anthropics/claude-plugins-official, 38k stars), MCP Server Builder (shareAI-lab/Kode-CLI, 5.2k stars) and Flutter MCP Boundary Audit (Arenukvern/mcp_flutter, 386 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains API Design?

s-morgan-jeffries (a GitHub user) maintains it in s-morgan-jeffries/apple-mail-fast-mcp, which has 104 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on September 9, 2026.

Source: s-morgan-jeffries/apple-mail-fast-mcp on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.