analyze-attachments
БесплатноБез исполняемых скриптовНе проверенDeep attachment analysis with extraction, importance classification, and content analysis for emails and threads.
Об этом скилле
Analyze Attachments
Comprehensive attachment analysis including extraction, importance classification, content analysis, and intelligent cleanup.
When to Use
Use this skill when you need to:
- Extract and view email attachments
- Analyze document content (PDFs, contracts, invoices)
- Identify important files and deadlines
- Understand attachment context in conversation
- Classify attachments by importance
Triggers:
English:
- "Analyze attachments in
<message-id>" - "Extract attachments from
<message-id>" - "What files are attached
<message-id>" - "Show me attachments
<message-id>" - "Analyze the files in this email
<message-id>"
Chinese:
- "分析附件
<message-id>" - "提取邮件附件
<message-id>" - "这封邮件有什么附件
<message-id>" - "查看附件内容
<message-id>" - "附件分析
<message-id>"
Invocation Methods
Method 1: Natural Language (Recommended)
User: Analyze attachments <[email protected]>
AI: [Proceeds to analyze immediately]
Method 2: Slash Command
User: /analyze-attachments
AI: 请提供邮件 Message-ID
User: <[email protected]>
AI: [Proceeds to analyze]
Note: Can analyze attachments from single emails or entire threads.
Operation Modes
1. Quick Mode (Default) ⚡
Token Usage: Minimal
- List all attachments (filename, type, size)
- Classify by importance
- Identify context
- ❌ Do NOT extract content
Use when: Just need to know what's attached
2. Interactive Mode 🔄
Token Usage: On-demand
- Show attachment list with importance
- Ask which to extract
- Extract only selected files
- Analyze content
Use when: Selective analysis needed
3. Auto Mode 🤖
Token Usage: Higher
- Auto-extract high-importance files
- Full content analysis
- Extract deadlines and action items
- Auto-cleanup temporary files
Use when:
- Email from important senders (HMRC, IRS, legal, finance)
- Subject keywords (invoice, contract, urgent, tax)
- User explicitly requests full analysis
Execution Steps
Step 1: Get Message-ID
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
Step 2: Read Email Data
email_data = mcp__mail__read_email(message_id)
Step 3: Analyze Attachments
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?
Step 4: Classify Attachments
Importance levels:
🚨 High Importance
- Government notices (HMRC, IRS, tax documents)
- Legal documents (contracts, agreements, NDAs)
- Financial documents (invoices, receipts, bills)
- Certificates (licenses, permits)
- File type:
.pdffrom official sources
⚠️ Medium Importance
- Technical documentation
- Reports and analysis
- Spreadsheets and presentations
- File types:
.pdf,.docx,.xlsx,.pptx
💡 Low Importance
- Images (unless specified as evidence)
- Signatures
- Plain text files
- File types:
.png,.jpg,.txt,.mov
Step 5: Choose Mode Based on Context
Auto Mode triggers:
- Sender contains: "hmrc", "irs", "tax", "court", "legal"
- Subject contains: "invoice", "contract", "urgent", "deadline", "tax"
- High-importance attachments detected
Interactive Mode:
- Mixed importance attachments
- User seems uncertain
Quick Mode:
- Only low-importance attachments
- User just browsing
Step 6: Execute Based on 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]
Step 7: Extract and Analyze (if applicable)
# 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)
Step 8: Cleanup
CRITICAL: Always cleanup after analysis
mcp__mail__cleanup_attachments(message_ids=[message_id])
Output Format
Quick Mode Output
📧 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]
Interactive/Auto Mode Output
📧 Attachment Analysis
### Email Information
- From:
Установить analyze-attachments в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл analyze-attachments?
Deep attachment analysis with extraction, importance classification, and content analysis for emails and threads.
Как установить скилл analyze-attachments?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл analyze-attachments запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic