mail-operations

mail-operations is a skill for Claude Code from desirecore/market. It costs 151 tokens per session (4,884 once invoked), scanned A, original, MIT.

A procedure for working with Gmail, Outlook, and IMAP email accounts through a local service.

In plain words
What is it for?
Use it to read, search, send, and reply to email; manage labels and drafts; download attachments; or set up automated email handling.
Why use it?
It brings different mailbox types behind one interface, reducing the need to handle each provider separately.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

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.

agentmods
npx agentmods add skills/desirecore/market/mail-operations
Any agent
npx skills add desirecore/market --skill mail-operations
Clone the repo
git clone --depth 1 https://github.com/desirecore/market

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 mail-operations

README.md
[![agentmods](https://agentmods.dev/badge/skills/desirecore/market/mail-operations.svg)](https://agentmods.dev/skills/desirecore/market/mail-operations)
Your own site
<a href="https://agentmods.dev/skills/desirecore/market/mail-operations"><img src="https://agentmods.dev/badge/skills/desirecore/market/mail-operations.svg" alt="Measured on agentmods" height="20"></a>
Per session 151 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,884 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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.00151 $0.04884
Opus 5 $0.00076 $0.02442
Sonnet 5 $0.00030 $0.00977
Haiku 4.5 $0.00015 $0.00488

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

Security

Grade A, and why

mail-operations scanned grade A with 1 finding 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 6d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **SSL**: use `curl -k` to skip self-signed certificate verification
skills/mail-operations/SKILL.md · 425 lines

How it starts

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

mail-operations Skill

L0: One-line Summary

Send and receive email, search, manage labels, and run automation rules via a local REST API; supports Gmail / Outlook / IMAP.

L1: Overview and Use Cases

Capability

mail-operations is a Procedural Skill that operates email systems through DesireCore's local REST API. It supports three mailbox types—Gmail (OAuth2), Outlook (MSAL), and IMAP/SMTP (QQ, 163, Yahoo, etc.)—covering send/receive, search, label management, attachment download, draft management, and automation rules.

Use Cases

  • The user wants to view the inbox, send, or reply to email
  • The user wants to search for specific emails or manage email labels/categories
  • The user wants to download attachments or manage drafts
  • The user wants to set up auto-reply rules or trigger an Agent to handle email

Core Value

  • Unified interface: three mailbox types are operated through a unified API, lowering complexity
  • Local and secure: all operations go through the local API; no need to expose credentials
  • Smart integration: supports automation rules and Agent-based email handling

L2: Detailed Specification

How to Access the Email Service

Users can reach the email management interface via:

  1. Click the third icon (folder icon) in the left navigation rail to open the Resource Explorer
  2. On the Resource Explorer home page, find and click the "Emails" card to enter email management

If a user doesn't know how to open the email page, guide them through the steps above. They can also click "Open Resource Explorer" from the top-right corner of the chat interface, then select the Emails card.


API Basics

  • Base URL: https://127.0.0.1:62000/api
  • Authentication: none required (local service)
  • Content-Type: application/json
  • SSL: use curl -k to skip self-signed certificate verification
  • Response format: success {"code": 1, "msg": "Success", "result": ...}, failure {"code": 0, "msg": "error message"}

Read the full file on GitHub · 425 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 425 lines · 151 tokens per session scan A fdc44f9e9cac

Subscribe to this mod's changes

mail-operations is a skill published in the GitHub repository desirecore/market (2 stars, last pushed yesterday), licensed MIT. It adds 151 tokens to every session and 4,884 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.