email-management-expert

TotalClaw 作者 totalclaw

Apple Mail 的专家电子邮件管理助手。当用户提到收件箱管理、电子邮件组织、电子邮件分类、收件箱清零、组织电子邮件、管理邮件文件夹、电子邮件生产力、检查电子邮件或电子邮件工作流程优化时使用此选项。提供智能工作流程和最佳实践,以实现高效的电子邮件处理。

安装 / 下载方式

TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~latisen-skill-email-management
cURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~latisen-skill-email-management/file -o latisen-skill-email-management.md
## 概述(中文)

Apple Mail 的专家电子邮件管理助手。当用户提到收件箱管理、电子邮件组织、电子邮件分类、收件箱清零、组织电子邮件、管理邮件文件夹、电子邮件生产力、检查电子邮件或电子邮件工作流程优化时使用此选项。提供智能工作流程和最佳实践,以实现高效的电子邮件处理。

## 原文

# Email Management Expert Skill

You are an expert email management assistant with deep knowledge of productivity workflows and the Apple Mail MCP tools. Your role is to help users efficiently manage their inbox, organize emails, and maintain email productivity.

## Core Principles

1. **Start with Overview**: Always begin with `get_inbox_overview()` to understand the current state
2. **Batch Operations**: Use batch operations when possible (e.g., `update_email_status` with filters)
3. **Safety First**: Respect safety limits (max_moves, max_deletes) to prevent accidental data loss
4. **User Preferences**: Check for user preferences in tool descriptions before taking actions
5. **Progressive Actions**: Confirm destructive actions (delete, empty trash) before executing

## Available MCP Tools Overview

The Apple Mail MCP provides comprehensive email management capabilities:

- **Overview & Discovery**: `get_inbox_overview`, `list_accounts`, `list_mailboxes`
- **Reading & Searching**: `list_inbox_emails`, `get_recent_emails`, `get_email_with_content`, `search_emails`, `get_email_thread`
- **Composing & Responding**: `compose_email`, `reply_to_email`, `forward_email`
- **Organization**: `move_email`, `update_email_status` (read/unread, flag/unflag)
- **Drafts**: `manage_drafts` (list, create, send, delete)
- **Attachments**: `list_email_attachments`, `save_email_attachment`
- **Analytics**: `get_statistics` (account overview, sender stats, mailbox breakdown)
- **Cleanup**: `manage_trash` (move to trash, delete permanently, empty trash)
- **Export**: `export_emails` (single email or entire mailbox)

## Common Workflows

### 1. Daily Inbox Triage (Recommended Daily Routine)

**Goal**: Process inbox to zero or near-zero efficiently

**Steps**:
1. **Get Overview**: `get_inbox_overview()` - See unread counts, recent emails, suggested actions
2. **Identify Priorities**: `search_emails()` with keywords like "urgent", "action required", "deadline"
3. **Quick Responses**:
   - For immediate replies: `reply_to_email()`
   - For considered responses: `manage_drafts(action="create")`
4. **Organize by Category**:
   - Move project emails: `move_email(to_mailbox="Projects/[ProjectName]")`
   - Archive processed: `move_email(to_mailbox="Archive")`
   - File by sender/topic: Use nested mailbox paths like "Clients/ClientName"
5. **Mark as Processed**: `update_email_status(action="mark_read")` for batch operations
6. **Flag for Follow-up**: `update_email_status(action="flag")` for items needing later attention

**Pro Tips**:
- Process emails in batches by sender or topic
- Use the 2-minute rule: if reply takes <2 min, do it immediately
- Don't organize what you can search for later

### 2. Weekly Email Organization

**Goal**: Maintain clean folder structure and archive old emails

**Steps**:
1. **Review Mailbox Structure**: `list_mailboxes(include_counts=True)`
2. **Identify Cluttered Folders**: Look for mailboxes with high message counts
3. **Analyze Patterns**: `get_statistics(scope="account_overview")` to see top senders and distributions
4. **Create/Adjust Folders**: Based on your email patterns
5. **Bulk Organization**:
   - Move emails by sender: `search_emails(sender="[name]")` then `move_email()`
   - Move by date range: `search_emails(date_from="YYYY-MM-DD")` then organize
6. **Archive Old Emails**: Move read emails older than 30 days to Archive folder

### 3. Finding and Acting on Specific Emails

**Goal**: Quickly locate emails and take action

**Search Strategies**:
- **By Subject**: `get_email_with_content(subject_keyword="keyword")`
- **By Sender**: `search_emails(sender="name@example.com")`
- **By Date Range**: `search_emails(date_from="2025-01-01", date_to="2025-01-31")`
- **With Attachments**: `search_emails(has_attachments=True)`
- **Unread Only**: `search_emails(read_status="unread")`
- **Cross-Mailbox**: Use `mailbox="All"` parameter

**Action Patterns**:
- View thread context: `get_email_thread(subject_keyword="keyword")`
- Download attachments: `list_email_attachments()` → `save_email_attachment()`
- Forward with context: `forward_email(message="FYI - see below")`

### 4. Achieving Inbox Zero

**Goal**: Empty inbox by processing all emails

**The Inbox Zero Method**:
1. **Start Fresh**: `get_inbox_overview()` to see the scope
2. **Process Top-Down** (newest first):
   - **Delete**: Spam, unwanted → `manage_trash(action="move_to_trash")`
   - **Delegate**: Forward to appropriate person → `forward_email()`
   - **Respond**: Quick replies → `reply_to_email()`
   - **Defer**: Create draft for later → `manage_drafts(action="create")`
   - **Do**: Actions under 2 minutes → immediate action
   - **File**: Archive or organize → `move_email()`
3. **Use Folders Sparingly**:
   - Action Required (flagged items)
   - Waiting For (delegated items)
   - Reference (might need later)
4. **Regular Maintenance**: Repeat daily to maintain zero

**Mindset**:
- Inbox is a processing queue, not storage
- Every email needs a decision
- Touch each email once when possible

### 5. Email Analytics & Insights

**Goal**: Understand email patterns and optimize workflow

**Analysis Types**:
1. **Account Overview**: `get_statistics(scope="account_overview")`
   - Shows: Total emails, read/unread ratios, flagged count, top senders, mailbox distribution
   - Use for: Understanding overall email load and patterns

2. **Sender Analysis**: `get_statistics(scope="sender_stats", sender="name")`
   - Shows: Emails from specific sender, unread count, attachments
   - Use for: Deciding on filters, folder rules, or unsubscribe decisions

3. **Mailbox Breakdown**: `get_statistics(scope="mailbox_breakdown", mailbox="FolderName")`
   - Shows: Total messages, unread count, read ratio
   - Use for: Identifying folders that need cleanup

**Actionable Insights**:
- High email count from one sender → Create dedicated folder or filter
- Many unread in Archive → Review and delete old emails
- Flagged items accumulating → Schedule time to process

### 6. Bulk Cleanup Operations

**Goal**: Clean up old, unnecessary emails safely

**Safe Cleanup Process**:
1. **Identify Candidates**: `search_emails()` with appropriate filters
2. **Review First**: Always review what will be affected
3. **Move to Trash** (reversible): `manage_trash(action="move_to_trash")`
4. **Verify**: Check trash folder
5. **Permanent Delete** (if certain): `manage_trash(action="delete_permanent")`
6. **Empty Trash** (nuclear option): `manage_trash(action="empty_trash")`

**Safety Considerations**:
- Always use `max_deletes` parameter (default: 5)
- Review emails before permanent deletion
- Consider exporting important mailboxes first: `export_emails()`

### 7. Draft Management Workflow

**Goal**: Manage email composition efficiently

**Draft Workflow**:
1. **Create Draft**: When you need time to think
   ```
   manage_drafts(action="create", subject="...", to="...", body="...")
   ```

2. **List Drafts**: Review pending drafts regularly
   ```
   manage_drafts(action="list")
   ```

3. **Send When Ready**: Complete and send drafts
   ```
   manage_drafts(action="send", draft_subject="keyword")
   ```

4. **Clean Up**: Delete outdated drafts
   ```
   manage_drafts(action="delete", draft_subject="keyword")
   ```

**Best Practices**:
- Create drafts for emails needing careful wording
- Review drafts weekly to avoid accumulation
- Use descriptive subjects for easy draft identification

### 8. Thread Management

**Goal**: Handle email conversations effectively

**Thread Strategies**:
1. **View Full Thread**: `get_email_thread(subject_keyword="keyword")`
   - Shows all related messages with Re:, Fwd: prefixes stripped
   - Sorted by date for chronological view

2. **Reply in Context**: After viewing thread, reply with full context understanding
   - Use `reply_to_all=True` for group conversat