Agent skill

Agentmail

by Tommy-yw in Tommy-yw/RunbookHermes

Give the agent its own dedicated email inbox via AgentMail. An agent skill from Tommy-yw/RunbookHermes.

MITAuto-check: notesProductivity & Automation

Install Agentmail

skills CLI
$ npx skills add Tommy-yw/RunbookHermes --skill agentmail -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Tommy-yw/RunbookHermes agentmail --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Tommy-yw/RunbookHermes.git skills-src && mkdir -p .claude/skills && cp -r skills-src/optional-skills/email/agentmail .claude/skills/agentmail && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
agentmail
GitHub stars
546
Used in
1 other repo
Token cost
~1k tokens
SKILL.md length
425 words
Files
1
Skills in repo
38
Repo updated
First seen
Licence
MIT

At a glance

Give the agent its own dedicated email inbox via AgentMail. An agent skill from Tommy-yw/RunbookHermes.

  • Works in 3 steps: Get an API Key → Configure MCP Server → Restart Hermes
  • Tasks that involve Email management
  • SKILL.md covers Requirements, When to Use, Setup and Available Tools (via MCP), plus 5 more sections
  • Calls npx and pip; needs AGENTMAIL_API_KEY

What it does

Agentmail is an agent skill from Tommy-yw/RunbookHermes. Give the agent its own dedicated email inbox via AgentMail. Send, receive, and manage email autonomously using agent-owned email addresses (e.g. hermes-agent@agentmail.to).

Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Productivity & Automation, covering Email management. It works with Model Context Protocol. The repository describes itself as: Hermes-native AIOps agent for evidence-driven incident response, approval-gated remediation, and runbook learning. The licence is MIT.

When your agent uses it

  • Tasks that involve Email management

Example prompts

  • “/agentmail”

Requirements

  • Python 3
  • Node.js
  • A credential in AGENTMAIL_API_KEY

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Get an API Key
  2. Configure MCP Server
  3. Restart Hermes

What it can do on your machine

Read from SKILL.md and the folder at commit 7fd2b9a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx
    • pip

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • console.agentmail.to
    • docs.agentmail.to
    • github.com
    • agentmail.to

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • AGENTMAIL_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Agentmail loads about 1k tokens when it runs. Until then it costs about 46 tokens; SKILL.md has 425 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~46
When it runs · the whole SKILL.md, loaded when a task matches
~1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:37
    key — MCP env vars are not expanded from .env):

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Tommy-yw/RunbookHermes at commit 7fd2b9a, republished under its MIT licence (© Tommy-yw). 425 words, ~1,030 tokens.

Download SKILL.mdSave it as .claude/skills/agentmail/SKILL.md (or your agent's skills folder).
name
agentmail
description
Give the agent its own dedicated email inbox via AgentMail. Send, receive, and manage email autonomously using agent-owned email addresses (e.g. hermes-agent@agentmail.to).
version
1.0.0

AgentMail — Agent-Owned Email Inboxes

Requirements

  • AgentMail API key (required) — sign up at https://console.agentmail.to (free tier: 3 inboxes, 3,000 emails/month; paid plans from $20/mo)
  • Node.js 18+ (for the MCP server)

When to Use

Use this skill when you need to:

  • Give the agent its own dedicated email address
  • Send emails autonomously on behalf of the agent
  • Receive and read incoming emails
  • Manage email threads and conversations
  • Sign up for services or authenticate via email
  • Communicate with other agents or humans via email

This is NOT for reading the user's personal email (use himalaya or Gmail for that). AgentMail gives the agent its own identity and inbox.

Setup

1. Get an API Key
2. Configure MCP Server

Add to ~/.hermes/config.yaml (paste your actual key — MCP env vars are not expanded from .env):

yaml
mcp_servers:
  agentmail:
    command: "npx"
    args: ["-y", "agentmail-mcp"]
    env:
      AGENTMAIL_API_KEY: "am_your_key_here"
3. Restart Hermes
bash
hermes

All 11 AgentMail tools are now available automatically.

Available Tools (via MCP)

ToolDescription
list_inboxesList all agent inboxes
get_inboxGet details of a specific inbox
create_inboxCreate a new inbox (gets a real email address)
delete_inboxDelete an inbox
list_threadsList email threads in an inbox
get_threadGet a specific email thread
send_messageSend a new email
reply_to_messageReply to an existing email
forward_messageForward an email
update_messageUpdate message labels/status
get_attachmentDownload an email attachment

Procedure

Create an inbox and send an email
  1. Create a dedicated inbox:
    • Use create_inbox with a username (e.g. hermes-agent)
    • The agent gets address: hermes-agent@agentmail.to
  2. Send an email:
    • Use send_message with inbox_id, to, subject, text
  3. Check for replies:
    • Use list_threads to see incoming conversations
    • Use get_thread to read a specific thread
Show full SKILL.md (148 more words)Show less
Check incoming email
  1. Use list_inboxes to find your inbox ID
  2. Use list_threads with the inbox ID to see conversations
  3. Use get_thread to read a thread and its messages
Reply to an email
  1. Get the thread with get_thread
  2. Use reply_to_message with the message ID and your reply text

Example Workflows

Sign up for a service:

1. create_inbox (username: "signup-bot")
2. Use the inbox address to register on the service
3. list_threads to check for verification email
4. get_thread to read the verification code

Agent-to-human outreach:

1. create_inbox (username: "hermes-outreach")
2. send_message (to: user@example.com, subject: "Hello", text: "...")
3. list_threads to check for replies

Pitfalls

  • Free tier limited to 3 inboxes and 3,000 emails/month
  • Emails come from @agentmail.to domain on free tier (custom domains on paid plans)
  • Node.js (18+) is required for the MCP server (npx -y agentmail-mcp)
  • The mcp Python package must be installed: pip install mcp
  • Real-time inbound email (webhooks) requires a public server — use list_threads polling via cronjob instead for personal use

Verification

After setup, test with:

hermes --toolsets mcp -q "Create an AgentMail inbox called test-agent and tell me its email address"

You should see the new inbox address returned.

References

© Tommy-yw, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in optional-skills/email/agentmail of Tommy-yw/RunbookHermes.

Open the folder on GitHubat commit 7fd2b9a

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in Tommy-yw/RunbookHermes, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Agentmail next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Agentmail compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Agentmail this skillTommy-yw/RunbookHermes5461 repos~1kAutomated safety check: NotesMIT
Gmail Query Syntaxprovos/ironcurtain612—~971Automated safety check: PassApache-2.0
Email CheckAgriciDaniel/claude-email130—~2.4kAutomated safety check: PassMIT
Setup Lanes Linklanes-sh/app273—~2.3kAutomated safety check: PassNone
SupercompressSupercompress/Supercompress107—~366Automated safety check: PassMIT
Triage Inboxpedrohcgs/claude-code-my-workflow1.7k—~2.7kAutomated safety check: NotesMIT

Similar skills

  • Gmail Query Syntax

    provos/ironcurtain

    Reference for Gmail's search query syntax — operators like is:sent, newerthan:, from:, has:attachment, label:, and how they compose.

    612 GitHub stars~971 tokensUpdated 2 days ago
    Productivity & AutomationAuto-check passed
  • Email Check

    AgriciDaniel/claude-email

    Intelligent inbox triage that connects to Gmail or Outlook, scores emails by importance (0-100) using sender recognition, urgency keywords, thread depth, time sensitivity, and business relevance…

    130 GitHub stars~2.4k tokensUpdated 4 mo ago
    Productivity & AutomationAuto-check passed
  • Setup Lanes Link

    lanes-sh/app

    A skill your agent uses when installing or standing up Lanes Link, the self-hostable MCP endpoint that gives an agent someone's own accounts, memory, tasks, assets, skills, identity and vault.

    273 GitHub stars~2.3k tokensUpdated 3 days ago
    Productivity & AutomationAuto-check passed
  • Supercompress

    Supercompress/Supercompress

    Always-on context compression for OpenClaw. An agent skill from Supercompress/Supercompress.

    107 GitHub stars~366 tokensUpdated 2 days ago
    Productivity & AutomationAuto-check passed
  • Triage Inbox

    pedrohcgs/claude-code-my-workflow

    Triage academic email and calendar (Gmail / Google Calendar via the session's MCP) into a prioritized digest plus a referee-obligations tracker — classifying referee requests, R&R and editor…

    1.7k GitHub stars~2.7k tokensUpdated 12 days ago
    Productivity & AutomationAuto-check: notes
  • Obsidian Helper

    aiskillstore/marketplace

    Obsidian 智能笔记助手。当用户提到 obsidian、日记、笔记、知识库、capture、review 时激活。

    430 GitHub starsUsed in 1 repo~2k tokens
    Productivity & AutomationAuto-check passed

More from Tommy-yw/RunbookHermes

All 38 skills in this repo
  • Fastmcp

    Tommy-yw/RunbookHermes

    Build, test, inspect, install, and deploy MCP servers with FastMCP in Python.

    546 GitHub starsUsed in 3 repos~2.1k tokens
    Auto-check passed
  • Drug Discovery

    Tommy-yw/RunbookHermes

    Pharmaceutical research assistant for drug discovery workflows.

    546 GitHub starsUsed in 1 repo~2.3k tokens
    Auto-check passed
  • Youtube Content

    Tommy-yw/RunbookHermes

    Fetch YouTube video transcripts and transform them into structured content (chapters, summaries, threads, blog posts).

    546 GitHub starsUsed in 1 repo~785 tokens
    Auto-check passed
  • Oss Forensics

    Tommy-yw/RunbookHermes

    Supply chain investigation, evidence recovery, and forensic analysis for GitHub repositories.

    546 GitHub starsUsed in 3 repos~5k tokens
    Auto-check passed
  • P5js

    Tommy-yw/RunbookHermes

    Production pipeline for interactive and generative visual art using p5.js.

    546 GitHub starsUsed in 1 repo~6.8k tokens
    Auto-check passed
  • Touchdesigner MCP

    Tommy-yw/RunbookHermes

    Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals.

    546 GitHub starsUsed in 2 repos~3.4k tokens
    Auto-check passed

Questions about Agentmail

What does Agentmail do?

Give the agent its own dedicated email inbox via AgentMail. An agent skill from Tommy-yw/RunbookHermes. Agentmail is an agent skill from Tommy-yw/RunbookHermes. Give the agent its own dedicated email inbox via AgentMail.

When should I use Agentmail?

Agentmail fits situations like: tasks that involve Email management.

How do I install Agentmail in Claude Code?

Run `npx skills add Tommy-yw/RunbookHermes --skill agentmail -a claude-code`. Or copy the skill folder (optional-skills/email/agentmail in Tommy-yw/RunbookHermes) into .claude/skills/agentmail in your project. Claude Code loads it when a task matches its description.

How do I install Agentmail in Codex?

Run `npx skills add Tommy-yw/RunbookHermes --skill agentmail -a codex`. Or copy the skill folder (optional-skills/email/agentmail in Tommy-yw/RunbookHermes) into .agents/skills/agentmail in your project. Codex loads it when a task matches its description.

Can I use Agentmail in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Tommy-yw/RunbookHermes --skill agentmail -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/agentmail, .gemini/skills/agentmail, .github/skills/agentmail and .opencode/skills/agentmail in your project.

What does Agentmail need to run?

Going by SKILL.md and its folder, Agentmail needs the command-line tools its instructions call (npx and pip) and credentials named AGENTMAIL_API_KEY. Our summary lists: Python 3; Node.js; A credential in AGENTMAIL_API_KEY.

Does Agentmail access the network?

SKILL.md names 4 domains. As links in the text: console.agentmail.to, docs.agentmail.to, github.com and agentmail.to. This is read from the text; nothing was executed.

Is Agentmail safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Agentmail use?

Agentmail is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Agentmail use?

About 1k tokens (SKILL.md is roughly 4.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Agentmail?

Skills that share tags, products or a category with Agentmail: Gmail Query Syntax (provos/ironcurtain, 612 stars), Email Check (AgriciDaniel/claude-email, 130 stars), Setup Lanes Link (lanes-sh/app, 273 stars) and Supercompress (Supercompress/Supercompress, 107 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Agentmail?

Tommy-yw (a GitHub user) maintains it in Tommy-yw/RunbookHermes, which has 546 GitHub stars. The repository holds 38 skills in this directory. The repository was last updated on May 18, 2026.

Source: Tommy-yw/RunbookHermes on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.