mail-163

mail-163 is a skill for Claude Code, Codex from idea2realClaw/myAgent. It costs 100 tokens per session (1,079 once invoked), scanned A, original, MIT.

An email tool for 163 Mail, a Chinese email service, using the standard IMAP and SMTP mail protocols. It can work with a temporary authorization code or a saved local configuration.

In plain words
What is it for?
Use it to view, read, search, send, and reply to 163 Mail messages.
Why use it?
It lets you manage a 163 mailbox from scripts without opening a webmail interface. Temporary credentials can be used without saving them to disk.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to view, read, search, send, and reply to 163 Mail messages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/idea2realclaw/myagent/mail-163
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 idea2realClaw/myAgent --skill mail-163
Clone the repo
git clone --depth 1 https://github.com/idea2realClaw/myAgent

Made for: Claude Code, Codex.

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-163

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/idea2realclaw/myagent/mail-163"><img src="https://agentmods.dev/badge/skills/idea2realclaw/myagent/mail-163.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 100 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,079 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.00100 $0.01079
Opus 5 $0.00050 $0.00540
Sonnet 5 $0.00020 $0.00216
Haiku 4.5 $0.00010 $0.00108

Measured 8d ago against content hash 37b997024647, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

mail-163 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 8d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/mail163_tool.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.

skills/mail-163/SKILL.md · 128 lines

How it starts

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

163 邮箱邮件工具

概述

通过 163 邮箱的 IMAP / SMTP 协议,在命令行中收邮件、读正文、发邮件、搜索和回复邮件。

默认使用 imap.163.com:993smtp.163.com:465 的 SSL 连接,并兼容“临时凭证直传”与“本地配置文件”两种使用方式。

适用场景

当出现以下需求时,触发本 Skill:

  • 用户要查看 163 邮箱最近邮件
  • 用户要打开某封 163 邮件正文
  • 用户要搜索、回复或发送 163 邮件
  • 用户给出 @163.com 邮箱和授权码,要求直接收邮件
  • 用户给出加密后的 163 授权码,要求先解密再读取邮箱

工作流程

1. 确认认证方式

优先区分当前属于哪一种:

  1. 临时使用

    • 用户直接给邮箱地址和授权码
    • 或用户给邮箱地址和加密后的授权码
    • 优先走命令行参数:不落盘,用完即止
  2. 长期配置

    • 用户明确要求把邮箱地址和授权码写入本地配置
    • 使用 config set 保存到 ~/.workbuddy/mail163.conf

2. 若用户给的是加密后的授权码

先调用共享密钥加解密流程处理,再立即执行 163 邮件脚本。

推荐做法:

  1. 先用 shared-secret-crypto 解密密文
  2. 不在普通回复中回显完整明文
  3. 优先把明文作为命令行参数 --auth-code 传给脚本
  4. 除非用户明确要求,否则不要把明文写入 mail163.conf

3. 调用脚本

主脚本:C:\Users\zhuxi\.workbuddy\skills\mail-163\scripts\mail163_tool.py

临时凭证模式(推荐)
python mail163_tool.py --email [email protected] --auth-code xxxxx inbox
python mail163_tool.py --email [email protected] --auth-code xxxxx read 1234
python mail163_tool.py --email [email protected] --auth-code xxxxx send [email protected] "主题" "正文"
本地配置模式
python mail163_tool.py config set email [email protected]
python mail163_tool.py config set auth_code xxxxxxxxxxxxxxxx
python mail163_tool.py inbox

命令参考

查看收件箱

python mail163_tool.py inbox
python mail163_tool.py inbox 20

阅读邮件

python mail163_tool.py read <邮件ID>

搜索邮件

python mail163_tool.py search <关键词>
python mail163_tool.py search "发票" 20

回复邮件

python mail163_tool.py reply <邮件ID> <回复内容>
python mail163_tool.py reply <邮件ID> /path/to/reply.txt

发送邮件

python mail163_tool.py send [email protected] "主题" "正文"
python mail163_tool.py send [email protected] "资料" "请查收附件" /path/to/file.zip

查看或设置配置

python mail163_tool.py config
python mail163_tool.py config set email [email protected]
python mail163_tool.py config set auth_code xxxxxxxxxxxxxxxx

注意事项

  • 163 邮箱第三方客户端登录应使用“客户端授权码”,不要直接使用网页登录密码
  • IMAP 推荐用于收件箱同步;脚本默认使用 IMAP
  • 默认优先采用临时凭证模式,减少明文落盘风险
  • 邮件正文超过 3000 字符时会自动截断显示
  • 若搜索中文关键词失败,可改为先列出收件箱再按邮件 ID 阅读

Read the full file on GitHub · 128 lines

Files

What ships with it

2 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. 8d ago First seen · 128 lines · 100 tokens per session scan A 37b997024647

Subscribe to this mod's changes

mail-163 is a skill published in the GitHub repository idea2realClaw/myAgent (2 stars, last pushed 19d ago), licensed MIT. It adds 100 tokens to every session and 1,079 once invoked, about $0.0005 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-31.