analyze-attachments

analyze-attachments is a skill for Claude Code from fatbobman/mail-mcp-bridge. It costs 22 tokens per session (2,258 once invoked), scanned A, original, MIT.

An email-attachment analysis workflow that extracts files and examines their contents and importance in the context of an email or thread.

In plain words
What is it for?
Use it to view attachments, analyze documents, identify important files and deadlines, classify files, and clean up unneeded attachments.
Why use it?
It helps turn attached PDFs, contracts, invoices, and other files into useful information instead of leaving them as unexplained downloads.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the mail-attachment-analyzer plugin — 3 skills, 3 commands shipped together

Good fit Use it to view attachments, analyze documents, identify important files and deadlines, classify files, and clean up unneeded attachments.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fatbobman/mail-mcp-bridge/analyze-attachments
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add fatbobman/mail-mcp-bridge --skill analyze-attachments
Clone the repo
git clone --depth 1 https://github.com/fatbobman/mail-mcp-bridge

Made for: Claude Code.

Or install mail-attachment-analyzer, the plugin that ships this one along with the rest of its 3 skills, 3 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for analyze-attachments

README.md
[![agentmods](https://agentmods.dev/badge/skills/fatbobman/mail-mcp-bridge/analyze-attachments/github.svg)](https://agentmods.dev/skills/fatbobman/mail-mcp-bridge/analyze-attachments)
Your own site
<a href="https://agentmods.dev/skills/fatbobman/mail-mcp-bridge/analyze-attachments"><img src="https://agentmods.dev/badge/skills/fatbobman/mail-mcp-bridge/analyze-attachments/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for analyze-attachments

Your own site · 80×15
<a href="https://agentmods.dev/skills/fatbobman/mail-mcp-bridge/analyze-attachments"><img src="https://agentmods.dev/badge/skills/fatbobman/mail-mcp-bridge/analyze-attachments.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,258 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00022 $0.02258
Opus 5 $0.00011 $0.01129
Sonnet 5 $0.00004 $0.00452
Haiku 4.5 $0.00002 $0.00226

Measured 10d ago against content hash e99a56ea0168, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

analyze-attachments scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/mail-attachment-analyzer/skills/analyze-attachments/SKILL.md · 385 lines

How it starts

The opening of the file, as written. The whole thing — 385 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

Read the full file on GitHub · 385 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 385 lines · 22 tokens per session scan A e99a56ea0168

Subscribe to this mod's changes

analyze-attachments is a skill published in the GitHub repository fatbobman/mail-mcp-bridge (19 stars, last pushed 5mo ago), licensed MIT. It adds 22 tokens to every session and 2,258 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.