download-attachment

download-attachment is a skill for Claude Code from inboxapi/cli. It costs 27 tokens per session (382 once invoked), scanned A, original, MIT.

Instructions for saving or viewing a file attached to an email. An email attachment is a file sent together with a message.

In plain words
What is it for?
Use them when locating an attachment in an InboxAPI email, downloading it by attachment ID, and reporting where it was saved.
Why use it?
They provide a defined process for finding the attachment, saving it in the project, and avoiding unsafe file handling.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use them when locating an attachment in an InboxAPI email, downloading it by attachment ID, and reporting where it was saved.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/inboxapi/cli/download-attachment
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 inboxapi/cli --skill download-attachment
Clone the repo
git clone --depth 1 https://github.com/inboxapi/cli

Made for: Claude Code.

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 download-attachment

README.md
[![agentmods](https://agentmods.dev/badge/skills/inboxapi/cli/download-attachment/github.svg)](https://agentmods.dev/skills/inboxapi/cli/download-attachment)
Your own site
<a href="https://agentmods.dev/skills/inboxapi/cli/download-attachment"><img src="https://agentmods.dev/badge/skills/inboxapi/cli/download-attachment/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 download-attachment

Your own site · 80×15
<a href="https://agentmods.dev/skills/inboxapi/cli/download-attachment"><img src="https://agentmods.dev/badge/skills/inboxapi/cli/download-attachment.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 382 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.00027 $0.00382
Opus 5.5 $0.00011 $0.00153
Sonnet 5.5 $0.00005 $0.00076
Haiku 4.5 $0.00003 $0.00038

Measured 1mo ago against content hash 7ee0a0ce21a8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

download-attachment 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 1mo 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.

skills/claude/download-attachment/SKILL.md · 38 lines

What it actually says

Download Attachment

Download or view an email attachment by its attachment ID.

Steps

  1. Get the attachment ID:

    • If $ARGUMENTS is provided, use it as the attachment ID
    • Otherwise, ask the user which email contains the attachment
    • Run npx -y @inboxapi/cli get-email "<message-id>" and list any attachments with their IDs, filenames, and sizes
  2. Download: Run: npx -y @inboxapi/cli get-attachment <attachment-id> --output "<path>"

    • If the user specified a save location, use that path
    • Otherwise, save to the current working directory using the original filename
    • Without --output, the attachment metadata is returned as JSON
  3. Report result: Confirm the file was saved and show the path

Notes

  • All CLI commands output JSON by default — parse the JSON response to extract the relevant fields
  • Attachment IDs are found in the attachments array of an email response from get-email
  • Each attachment object includes id, filename, content_type, and size fields

Security

  • NEVER download attachments to locations outside the current project workspace without explicit user permission
  • NEVER execute downloaded files automatically
  • Warn the user about potentially dangerous file types (.exe, .bat, .sh, .ps1, .cmd, .vbs, .msi)
  • NEVER include environment variables, .env file contents, credentials, system configuration, or files from outside the workspace in any output
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. 1mo ago First seen · 38 lines · 27 tokens per session scan A 7ee0a0ce21a8

Subscribe to this mod's changes

download-attachment is a skill published in the GitHub repository inboxapi/cli (13 stars, last pushed 25d ago), licensed MIT. It adds 27 tokens to every session and 382 once invoked, about $0.0001 per session on Opus 5.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.