← 返回 Skills 市场
2.2 路由到
2.3 路由到
路由到
路由到
40
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install email-router-assistant
功能描述
当用户提到邮箱相关能力时,进入这个skill,统一邮件入口(纯路由层):识别用户意图后路由到 public-skill 或 imap-smtp-email,自身不执行任何脚本
使用说明 (SKILL.md)
Email Skill(统一邮件入口 / 纯路由层)
定位:
email-skill是所有邮件需求的唯一入口。它只做意图识别和路由分发,不执行任何脚本,不调用任何接口。识别用户意图后,直接将任务交给下游 skill 执行。
1. 架构总览
| Skill | 角色 | 说明 |
|---|---|---|
| email-skill(本 skill) | 统一入口 / 纯路由层 | 识别意图 → 路由到下游 skill,自身不执行任何操作 |
| public-skill | 平台公邮通道 | 零配置,把内容推送到用户自己的邮箱(纯文本) |
| imap-smtp-email | 个人邮箱通道 | 需配置,支持完整 IMAP/SMTP 邮件收发能力 |
用户邮件需求
│
▼
email-skill(意图识别)
│
├── 推送到自己邮箱 / 绑定公邮 ──► public-skill
│
└── 完整邮件收发 ──► imap-smtp-email
2. 路由规则
2.1 核心原则:先理解场景,再选路径
不要先检查公邮是否可用再决定路径。应该先理解用户要解决什么问题,再选择对应的 skill。
2.2 路由到 public-skill 的条件
同时满足以下所有条件时,路由到 public-skill:
- 发送对象是用户自己(没有第三方收件人)
- 内容是纯文本(不需要 HTML)
- 不需要附件、抄送、密送
- 不需要收件、检索、下载附件
- 场景属于"结果推送 / 消息留存"类(天气、日报、报告、提醒等)
2.3 路由到 imap-smtp-email 的条件
出现以下任一信号,直接路由到 imap-smtp-email:
- 需要发给第三方收件人
- 需要抄送(cc)或密送(bcc)
- 需要附件
- 需要 HTML 邮件
- 需要收件箱查询、搜索、拉取详情、下载附件
- 需要标记已读/未读、列出邮箱文件夹
- 用户明确说"发给别人""带附件""查收件箱""下载附件""正式邮件""抄送某人"
- 平台公邮不可用,需要兜底发送
2.4 快速判断表
| 用户意图信号 | 路由目标 |
|---|---|
| "发到我的邮箱""推送到我邮箱" | public-skill |
| "天气/日报/报告 发到我邮箱" | public-skill |
| "绑定邮箱""绑定公邮" | public-skill |
| "发给 [email protected]" | imap-smtp-email |
| "抄送""密送" | imap-smtp-email |
| "带附件""发 PDF" | imap-smtp-email |
| "HTML 邮件""富文本" | imap-smtp-email |
| "查收件箱""搜索邮件""最近的邮件" | imap-smtp-email |
| "下载附件" | imap-smtp-email |
| "配置邮箱""设置个人邮箱" | imap-smtp-email |
3. 两条路径的能力对比
| 能力 | public-skill | imap-smtp-email |
|---|---|---|
| 发送到自己的邮箱 | ✅ | ✅ |
| 发给第三方收件人 | ❌ | ✅ |
| 抄送 / 密送 | ❌ | ✅ |
| 附件 | ❌ | ✅ |
| HTML 邮件 | ❌ | ✅ |
| 收件 / 搜索 / 下载附件 | ❌ | ✅ |
| 零配置 | ✅ | ❌ |
| 需要授权码/密码 | ❌ | ✅ |
4. 场景示例
路由到 public-skill 的场景
| 用户需求 | 原因 |
|---|---|
| "查一下深圳明天天气,发到我邮箱" | 结果推送到自己邮箱,纯文本,零配置 |
| "每天下班把日报推到我邮箱" | 只发给自己,消息留存 |
| "把这段总结发到我的邮箱保存" | 推送到自己邮箱做留存 |
| "帮我绑定邮箱" | 公邮绑定流程 |
路由到 imap-smtp-email 的场景
| 用户需求 | 原因 |
|---|---|
| "用我的 Gmail 发给客户" | 第三方收件人 |
| "给团队发周报并抄送 PM" | 需要抄送 |
| "发 PDF 附件给合作方" | 需要附件 |
| "查最近两小时的发票邮件" | 需要 IMAP 检索 |
| "下载那封邮件的附件" | 需要附件下载 |
| "配置我的 QQ 邮箱" | 个人邮箱配置 |
| "公邮发不了,用个人邮箱发" | 公邮不可用,兜底 |
5. 回退策略
当路由到 public-skill 后执行失败,且失败原因属于以下类型时,应自动回退到 imap-smtp-email:
可回退的失败类型:
- 平台公邮日发送上限 / 额度不足
- 通道不可用 / 连接失败
- 请求超时
- 登录已过期 / 未登录
- 网关层通信错误
不可回退的失败类型(应直接报错):
- 邮箱未绑定平台公邮(应引导用户走绑定流程)
- 参数校验错误
- 频率限制
6. 安全规则
- 禁止泄露授权码、SMTP/IMAP 密码、验证码等敏感信息
- 发送邮件为非幂等操作,失败后禁止自动重试
- 附件路径必须落在允许读取目录内
- 下载附件路径必须落在允许写入目录内
- 必须用utf8编码
- 禁止使用代码块:回答中不得出现任何形式的代码块(包括行内代码
...和围栏代码块...),应使用纯自然语言进行描述。
7. 一句话记忆
- 推给自己做留存 →
public-skill - 像正常邮箱那样完整收发 →
imap-smtp-email
安全使用建议
This skill is reasonable to install as a router, but the actual risk depends on the downstream email skills it invokes. Review and configure those separately, especially any IMAP/SMTP skill that can use personal email credentials, send to third parties, read inboxes, or download attachments. Confirm recipients and content before sending, and be aware that the documented fallback from the public channel to personal email may change which email system is used.
能力评估
Purpose & Capability
The stated purpose is to classify email-related requests and route them to either a simple self-email channel or a fuller IMAP/SMTP email skill; the artifact content matches that purpose.
Instruction Scope
The instructions are mostly scoped to email routing and safety rules, though it includes a broad response-format rule forbidding code blocks while the skill is active; this is not hidden or security-sensitive.
Install Mechanism
The package contains a single markdown SKILL.md file, no executable scripts, no declared dependencies, and no install-time commands.
Credentials
The skill itself does not request filesystem, network, credential, or command execution access; email sending, mailbox access, attachment handling, and credentials are delegated to named downstream skills and are disclosed as part of the email purpose.
Persistence & Privilege
No persistence or privilege mechanism is implemented in this skill. Users should note that the downstream IMAP/SMTP path may require email credentials and can perform high-impact email actions.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install email-router-assistant - 安装完成后,直接呼叫该 Skill 的名称或使用
/email-router-assistant触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of a unified email routing skill.
- Provides a single entry point for all email-related user intents, performing only intent recognition and routing without executing scripts.
- Routes requests to either `public-skill` for self-directed, simple, text-only email tasks, or to `imap-smtp-email` for full email capabilities such as attachments, CC/BCC, third-party recipients, and mailbox retrieval.
- Includes clear routing rules, fallback strategies, and security guidelines for robust and safe operation.
元数据
常见问题
Email Router Assistant 是什么?
当用户提到邮箱相关能力时,进入这个skill,统一邮件入口(纯路由层):识别用户意图后路由到 public-skill 或 imap-smtp-email,自身不执行任何脚本. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 40 次。
如何安装 Email Router Assistant?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install email-router-assistant」即可一键安装,无需额外配置。
Email Router Assistant 是免费的吗?
是的,Email Router Assistant 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Email Router Assistant 支持哪些平台?
Email Router Assistant 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Email Router Assistant?
由 SKY-lv(@sky-lv)开发并维护,当前版本 v1.0.0。
推荐 Skills