ワンクリックで
analyze-attachments
Deep attachment analysis with extraction, importance classification, and content analysis for emails and threads.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Deep attachment analysis with extraction, importance classification, and content analysis for emails and threads.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | analyze-attachments |
| description | 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 analysisQuick single email analysis - read metadata, content summary, and list attachments without extracting them.
Analyze complete email thread with conversation context, timeline, participants, and attachments tracking.