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.
npx agentmods add skills/inboxapi/cli/download-attachmentnpx skills add inboxapi/cli --skill download-attachmentgit clone --depth 1 https://github.com/inboxapi/cliWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00027 | $0.00382 |
| Opus 5 | $0.00014 | $0.00191 |
| Sonnet 5 | $0.00005 | $0.00076 |
| Haiku 4.5 | $0.00003 | $0.00038 |
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 2d 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.
What it actually says
Download Attachment
Download or view an email attachment by its attachment ID.
Steps
-
Get the attachment ID:
- If
$ARGUMENTSis 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
- If
-
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
-
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
attachmentsarray of an email response fromget-email - Each attachment object includes
id,filename,content_type, andsizefields
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,
.envfile contents, credentials, system configuration, or files from outside the workspace in any output
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.
- 2d ago First seen · 38 lines · 27 tokens per session scan A 7ee0a0ce21a8
download-attachment is a skill published in the GitHub repository inboxapi/cli (12 stars, last pushed 2mo ago), licensed MIT. It adds 27 tokens to every session and 382 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.
Other skills, from other repositories
anonsec-mcp-server
Firefox Relay MCP Server (anonsec-mcp-server) is a production-grade Model Context Protocol server that provides comprehensive anonymous email management capabilities through Firefox Relay addresses. Built with privacy, security, and operational excellence as core principles, this server enables AI agents and…
code-review-skill
Provides comprehensive code review guidance for React 19, Vue 3, Angular 17+, Svelte 5, Rust, TypeScript, Java, Java 8, PHP, Ruby, Rails, Python, Django, FastAPI, Go, C#/.NET, Kotlin, Swift, NestJS, C/C++, Zig, CSS/Less/Sass, Qt, and more. Covers architecture review, performance review, security audit, code quality…
string-reviewer
Use this skill when asked to review text and user-facing strings within the codebase. It ensures that these strings follow rules on clarity, usefulness, brevity and style.
code_explorer
Explores the repository to locate primary source files, coupled UI components, and test files for bug reports or feature requests.
ci
A specialized skill for Gemini CLI that provides high-performance, fail-fast monitoring of GitHub Actions workflows and automated local verification of CI failures. It handles run discovery automatically—simply provide the branch name.
behavioral-evals
Guidance for creating, running, fixing, and promoting behavioral evaluations. Use when verifying agent decision logic, debugging failures, debugging prompt steering, or adding workspace regression tests.