Deep attachment analysis with extraction, importance classification, and content analysis for emails and threads.
Comprehensive attachment analysis including extraction, importance classification, content analysis, and intelligent cleanup.
Use this skill when you need to:
Triggers:
English:
<message-id>"<message-id>"<message-id>"<message-id>"<message-id>"Chinese:
<message-id>"<message-id>"<message-id>"<message-id>"<message-id>"User: Analyze attachments <E42FF77C-C563-466D-8544-3E0C16EA24EC@taler.net>
AI: [Proceeds to analyze immediately]
User: /analyze-attachments
AI: ่ฏทๆไพ้ฎไปถ Message-ID
User: <E42FF77C-C563-466D-8544-3E0C16EA24EC@taler.net>
AI: [Proceeds to analyze]
Note: Can analyze attachments from single emails or entire threads.
Token Usage: Minimal
Use when: Just need to know what's attached
Token Usage: On-demand
Use when: Selective analysis needed
Token Usage: Higher
Use when:
Please provide the email Message-ID
๐ก Quick method (recommended):
In Mail.app: Select email โ Press shortcut (โโงC) โ Message-ID copied
See README "Setup Mail Quick Action" section if not configured
email_data = mcp__mail__read_email(message_id)
Check if email is part of thread:
thread_paths = mcp__mail__get_thread_paths(message_id)
if len(thread_paths) > 1:
# This is a thread
# Ask user: analyze this email only or entire thread?
Importance levels:
๐จ High Importance
.pdf from official sourcesโ ๏ธ Medium Importance
.pdf, .docx, .xlsx, .pptx๐ก Low Importance
.png, .jpg, .txt, .movAuto Mode triggers:
Interactive Mode:
Quick Mode:
Quick Mode: Just list and classify
Interactive Mode:
Found 3 attachments:
๐จ High Importance:
1. invoice_2025.pdf (2.3 MB)
โ ๏ธ Medium Importance:
2. report.docx (156 KB)
๐ก Low Importance:
3. screenshot.png (45 KB)
Would you like me to extract and analyze the high-importance file?
Auto Mode:
Auto-extracting high-importance attachments...
[Extract and analyze]
# Extract attachments
attachments = mcp__mail__extract_attachments(message_id, filenames)
# Analyze content
for file_path in extracted_files:
content = read_file(file_path)
analysis = analyze_content(content)
CRITICAL: Always cleanup after analysis
mcp__mail__cleanup_attachments(message_ids=[message_id])
๐ง Email Attachments
### Email Information
- From: [sender]
- Subject: [subject]
- Date: [date]
### ๐ Attachments Found ([N] files)
๐จ High Importance ([X]):
1. [filename] ([type]) - [size]
- Reason: [why it's important]
โ ๏ธ Medium Importance ([Y]):
2. [filename] ([type]) - [size]
- Context: [usage]
๐ก Low Importance ([Z]):
3. [filename] ([type]) - [size]
๐ง Attachment Analysis
### Email Information
- From: [sender]
- Subject: [subject]
- Date: [date]
### ๐ Extracted Files Analysis
๐จ High Importance Files:
**1. invoice_20250115.pdf**
- Type: PDF document
- Size: 2.3 MB
- **Content Summary**:
- Invoice number: INV-2025-001
- Amount: ยฃ1,500.00
- Due date: January 30, 2025
- Status: Pending payment
- **โ ๏ธ Action Required**: Payment due in 15 days
โ ๏ธ Medium Importance Files:
**2. project_report.docx**
- Type: Word document
- Size: 156 KB
- **Content Summary**:
- Q4 performance report
- Key metrics and KPIs
- **๐ก Recommendation**: Review for quarterly planning
๐ก Low Importance Files:
**3. screenshot.png**
- Type: Image
- Size: 45 KB
- Context: Visual reference
### ๐
Important Dates
- Jan 30, 2025: Invoice payment due
### โ ๏ธ Action Items
- [ ] Pay invoice INV-2025-001 by Jan 30
โ
Temporary files cleaned up
User: Analyze attachments tax-notice@example.com
AI detects:
AI: Auto Mode triggered ๐ง Attachment Analysis
๐จ High Importance Files:
1. tax_return_2025.pdf
โ Temporary files cleaned up
User: /analyze-attachments AI: ่ฏทๆไพ้ฎไปถ Message-ID User: project-update@example.com AI: ๐ง Email Attachments
๐จ High Importance (1):
โ ๏ธ Medium Importance (2): 2. budget_2025.xlsx (245 KB)
๐ก Low Importance (1): 4. team_photo.jpg (1.2 MB)
๐ก Would you like me to extract and analyze the contract draft?
User: Yes, please
AI: [Extracts and analyzes contract]
User: Analyze attachments thread-start@example.com
AI: This email is part of a thread (15 emails).
Would you like to:
User: Option 2
AI: [Analyzes attachments across thread, shows evolution]
๐ Thread Attachment Evolution
Version History:
๐จ Most Recent: contract_final.pdf
/analyze-email - For single email analysis/analyze-thread - For complete thread analysis