Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

analyze-thread

БесплатноБез исполняемых скриптовНе проверен

Analyze complete email thread with conversation context, timeline, participants, and attachments tracking.

fatbobmanот fatbobman★ 19 звёзд на GitHub15 установок в других каталогах

Об этом скилле

Analyze Email Thread

Comprehensive analysis of an email thread including conversation flow, participant interactions, timeline, key points, and attachment evolution.

When to Use

Use this skill when you need to:

  • Understand complete conversation context
  • Track discussion progression over time
  • Identify key decisions and action items
  • See how attachments evolved through the thread
  • Get overview of multi-email conversations

Triggers:

English:

  • "Analyze this email thread <message-id>"
  • "Show me the conversation <message-id>"
  • "What's the thread about <message-id>"
  • "Thread analysis for <message-id>"
  • "Summarize this thread <message-id>"

Chinese:

  • "分析这个邮件线索 <message-id>"
  • "看看这个对话 <message-id>"
  • "整理一下这个线索 <message-id>"
  • "线索内容总结 <message-id>"
  • "这个讨论的脉络 <message-id>"

Invocation Methods

Method 1: Natural Language (Recommended)

User: Analyze this email thread <[email protected]>
AI: [Proceeds to analyze immediately]

Method 2: Slash Command

User: /analyze-thread
AI: 请提供线索中任意一封邮件的 Message-ID
User: <[email protected]>
AI: [Proceeds to analyze]

Note: Any message-id from the thread works. The system will find all related emails.

Execution Steps

  1. Get message-id (if not provided)

    Please provide any Message-ID from the thread
    
    💡 Quick method (recommended):
    In Mail.app: Select email → Press shortcut (⌘⇧C) → Message-ID copied
    See README "Setup Mail Quick Action" section if not configured
    
  2. Read thread using MCP

    thread_data = mcp__mail__read_thread(message_id)
    
  3. Handle truncation checks

    Check 1: Thread Result Oversized

    • If result indicates size overflow (>80KB):
      • Warn user about thread size
      • Suggest reducing max_body_length
      • Ask if user wants to retry with tighter limits

    Check 2: Individual Email Truncation

    • After successful load, check for truncated emails
    • Classify by importance:
      • ⚠️ Critical: Truncated + has attachments
      • ⚠️ High: Lost 60%+ content
      • ℹ️ Medium: Only quote-stripped
    • Suggest reading important emails individually if needed
  4. Analyze thread structure

    • Count total emails
    • Identify all participants
    • Extract date range
    • Track subject evolution
  5. Extract key information

    • Main discussion topics
    • Decisions made
    • Action items with owners
    • Attachments and their evolution
    • Important dates/deadlines
  6. Present structured output

Output Format

🧵 Email Thread Analysis

### Thread Overview
- Total emails: [N]
- Time span: [start date] to [end date]
- Duration: [X days/weeks/months]
- Participants: [list of unique senders]

### Conversation Timeline
[Chronological summary of key emails]

1. [Date] - [Sender] - [Brief description]
2. [Date] - [Sender] - [Brief description]
...

### 💬 Main Topics
1. [Topic 1]
   - [Brief summary]
2. [Topic 2]
   - [Brief summary]

### ✅ Decisions Made
- [Decision 1]
- [Decision 2]

### ⚠️ Action Items
- [ ] [Action item] - [Owner] - [Deadline if any]

### 📎 Attachments Summary
[Total] attachments across thread:
- [filename] - [context/importance]
- [filename] - [context/importance]

### 📅 Important Dates
- [Date]: [Event/Deadline]

### ⚠️ Truncation Notice
[If applicable, warn about truncated emails]

Thread Content Truncation Handling ⚠️

CRITICAL: Thread reading has smart limits to prevent token overflow (1200 chars/email with quote stripping).

Check 1: Thread Result Oversized

If thread is too large:

⚠️ **Thread Too Large** (estimated XXX KB)

This email thread is too large to load with current settings.

**Options:**
1. 🔄 **[Recommended]** Reduce limit and retry
   - Current: 1200 chars/email
   - Suggested: 800 chars/email

2. 📧 **Read individual emails**
   - Use /analyze-email for specific messages

**Shall I automatically reduce the limit and retry?**

Implementation:

  • NEVER try to process oversized results
  • ALWAYS ask user first before retrying

Check 2: Individual Email Truncation

After loading, check for truncated emails:

truncated_emails = []
for email in thread['emails']:
    if email.get('truncated'):
        importance = assess_truncation_importance(email)
        if importance in ['Critical', 'High']:
            truncated_emails.append({
                'message_id': email['message_id'],
                'subject': email['subject'],
                'original_length': email.get('original_length'),
                'importance': importance
            })

User Prompt (only if critical/high truncations found):

⚠️ **Detected Truncated Emails**

[Number] emails were truncated. Important ones:

1. [Subject] ([Importance])
   - Original: [X] chars → Current: 1200 chars
   - Has attachments: Yes/No

**Recommendation**: Read important emails indivi
Полный SKILL.md на GitHub

Установить analyze-thread в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл analyze-thread?

Analyze complete email thread with conversation context, timeline, participants, and attachments tracking.

Как установить скилл analyze-thread?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл analyze-thread запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить analyze-thread с