email

An email skill for sending and receiving messages through QQ Mail or 163 Mail, China's email services. It uses an email authorization code rather than the normal login password.

In plain words
What is it for?
Use it to send regular emails or attachments, receive recent messages, check for new mail, and delete messages from a configured QQ or 163 mailbox.
Why use it?
It lets the coding assistant handle email without requiring manual use of the mailbox website. Messages can also be deleted, with some deletions recoverable from the trash folder.

Skill for Claude CodeCodex

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/countbot-ai/countbot/email
Any agent
npx skills add countbot-ai/CountBot --skill email
Clone the repo
git clone --depth 1 https://github.com/countbot-ai/CountBot

Made for: Claude Code, Codex.

Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 540 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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 $0.00046 $0.00540
Opus 5 $0.00023 $0.00270
Sonnet 5 $0.00009 $0.00108
Haiku 4.5 $0.00005 $0.00054

Measured 2d ago against content hash 64cfafa7a591, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

email 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.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/email_manager.py, scripts/mail.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

workspace/skills/email/SKILL.md · 59 lines

What it actually says

邮件管理

通过 QQ 或 163 邮箱发送和接收邮件。

配置

编辑 skills/email/scripts/config.json,填写邮箱地址和授权码(非登录密码)。

授权码获取:

  • QQ 邮箱:设置 > 账户 > 开启 IMAP/SMTP > 生成授权码
  • 163 邮箱:设置 > POP3/SMTP/IMAP > 开启服务 > 设置授权密码

可通过 default_mailbox 字段设置默认邮箱("qq""163")。

命令行调用

# 发送邮件
python3 skills/email/scripts/mail.py send --to [email protected] --subject "主题" --content "内容"

# 发送带附件
python3 skills/email/scripts/mail.py send --to [email protected] --subject "报告" --content "请查收" --attach report.pdf

# 接收最新邮件
python3 skills/email/scripts/mail.py receive --limit 5

# 接收邮件(JSON 输出,推荐 AI 使用)
python3 skills/email/scripts/mail.py receive --limit 5 --json

# 检查新邮件(最近 N 天)
python3 skills/email/scripts/mail.py check-new --since 1

# 检查新邮件(JSON 输出)
python3 skills/email/scripts/mail.py check-new --since 1 --json

# 删除邮件(移到已删除文件夹,QQ邮箱可恢复)
python3 skills/email/scripts/mail.py delete --ids 123

# 批量删除
python3 skills/email/scripts/mail.py delete --ids 123 124 125

# 彻底删除(不可恢复)
python3 skills/email/scripts/mail.py delete --ids 123 --permanent

# 指定邮箱类型
python3 skills/email/scripts/mail.py --mailbox 163 send --to [email protected] --subject "测试"

删除邮件说明

  • QQ 邮箱(IMAP):默认移到「已删除」文件夹,可以从已删除中恢复。加 --permanent 彻底删除。
  • 163 邮箱(POP3):POP3 协议不支持文件夹操作,删除始终是永久的,不可恢复。
Files

What ships with it

4 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. 2d ago First seen · 59 lines · 46 tokens per session scan A 64cfafa7a591

Subscribe to this mod's changes

email is a skill published in the GitHub repository countbot-ai/CountBot (773 stars, last pushed 6d ago), licensed MIT. It adds 46 tokens to every session and 540 once invoked, about $0.0002 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.