微算力 · API 导航与自营网关
API 接入 EN
未登录登录
📬

终端级一次性邮箱,专为 Agent 自动化而生

Agent Email · v1.0.0
效率 安全 B 级 作者 zaddy6 公开目录收录
1k 下载 1 安装 2.9k 收藏 12 浏览

简介

面向 Agent 与 LLM 的终端级一次性邮箱管理工具,支持无头创建、轮询收件、JSON 原生输出,适合自动化工作流但依赖第三方服务可用性。

原始描述

Operate the agent-email CLI to create disposable inboxes, poll for new mail, retrieve full message details, and manage local mailbox profiles. Use when the u...

通过你的 Agent 添加

安装目录:agent-email-cli/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/agent-email-50092/
Codex CLI~/.codex/skills/agent-email-50092/
DeepSeek Harness~/.agents/skills/agent-email-50092/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

agent-email-cli 是一套围绕 agent-email 命令行工具的封装技能,专为需要「无头」邮箱访问的自动化场景设计。典型工作流包括:

  1. 环境校验:通过 command -v 与 --help 确认 CLI 已安装,缺失时以 npm/bun -g 全局安装。
  2. 账户创建:agent-email create 生成一次性邮箱,返回 email、accountId、activeEmail 等关键字段,密码与 Token 需严格脱敏。
  3. 邮件读取:agent-email read 支持基础轮询(--wait/--interval)与完整载荷拉取(--full),满足验证码提取、链接点击等需求。
  4. 单信详览:agent-email show <email> <messageId> 用于解析邮件正文或原始源码。
  5. 账户管理:accounts list/use/remove 维护本地配置文件,default 别名简化多账户切换。
  6. 清理:delete 移除已处理邮件,降低隐私暴露面。

输出强制 JSON,便于下游 LLM/Agent 直接消费。

显著优点

  • 原生 JSON 输出:无需正则解析,字段映射清晰,适合程序化处理。
  • 无头友好:全程无需浏览器或 GUI,CI/CD、容器、远程服务器均可运行。
  • 一次性邮箱:有效隔离主邮箱,降低垃圾邮件与追踪风险。
  • 轮询机制:--wait 参数实现阻塞式等待,简化验证码等待逻辑。
  • 本地配置:账户元数据存储于本地,避免重复输入。

潜在缺点与局限性

  • 第三方服务依赖:实际邮件收发依赖 @zaddy6/agentemail 后端,服务宕机或 API 变更将直接导致技能失效;文档未披露服务 SLA 或自托管方案。
  • 安全凭证管理:虽然技能要求「不记录密码/Token」,但 CLI 本身如何存储这些敏感数据(配置文件权限、加密方式)未在文档中说明,存在本地泄露风险。
  • 速率与频率限制:RATE_LIMITED 错误码暗示存在后端限流,高频自动化场景可能触发 429,需自行实现退避重试。
  • 邮件持久性:一次性邮箱通常有短生命周期,长期验证码或异步确认链接可能因邮箱回收而失效。
  • Node/Bun 生态依赖:全局包安装可能带来依赖冲突、供应链攻击面(如恶意 npm 包)及版本漂移问题。

适合人群

  • 自动化测试工程师:需要批量注册、验证、重置密码的 E2E 测试场景。
  • LLM/Agent 开发者:构建需要「接收外部确认」的自治代理(如自动订阅、OAuth 回调)。
  • 隐私敏感用户:临时接收验证码而不暴露真实邮箱。
  • DevOps/CI 维护者:在流水线中完成需要邮箱交互的部署步骤。

常规风险

  • 凭证泄露:CLI 输出或本地配置若未妥善保护,可能导致邮箱账户被接管。
  • 中间人攻击:若与后端通信未强制 TLS 或证书校验失效,邮件内容可能被窃听。
  • 服务终止风险:后端为个人或小团队维护(@zaddy6),无商业保障,随时可能停止运营。
  • 垃圾邮件滥用:一次性邮箱易被用于批量注册,可能导致 IP 或域名被列入黑名单。
  • 供应链安全:通过 npm/bun 全局安装,需警惕 typosquatting 包或 compromised dependencies。

技能正文


name: agent-email-cli description: Operate the agent-email CLI to create disposable inboxes, poll for new mail, retrieve full message details, and manage local mailbox profiles. Use when the user needs terminal-based email inbox access for LLM or agent automation workflows.

Agent Email CLI

Overview

Use this skill to operate the agent-email command safely and predictably for agent workflows that need inbox access.

Prefer JSON-native command output and return key fields (email, messageId, subject, createdAt, from.address) in your summaries.

Workflow

  1. Verify CLI availability.
command -v agent-email
agent-email --help

If missing, install:

npm install -g @zaddy6/agentemail
# or
bun install -g @zaddy6/agentemail
  1. Create a mailbox account.
agent-email create

Record these fields from JSON output:

  • data.email
  • data.accountId
  • data.activeEmail

Do not record, repeat, or print secret values such as mailbox passwords or tokens.

  1. Read latest messages.
agent-email read <email|default>

For inbox waiting/polling:

agent-email read <email|default> --wait 30 --interval 2

For full message payloads:

agent-email read <email|default> --full
  1. Retrieve one message in detail.
agent-email show <email|default> <messageId>

Use show when you need body/source details for verification links, codes, or full content extraction.

  1. Manage mailbox profiles.
agent-email accounts list
agent-email use <email|default>
agent-email accounts remove <email>

Avoid commands that require entering secrets on the command line in agent logs.

  1. Delete processed/irrelevant message when requested.
agent-email delete <email|default> <messageId>

Operational Guidance

  • Keep command output machine-readable; avoid forcing human output unless requested.
  • Prefer default alias when user does not specify an email.
  • Never echo, store, or summarize secret values (password, token) from command output.
  • If command fails, surface the JSON error code and hint fields directly.
  • For auth failures (AUTH_REQUIRED/401), rerun command once and request user intervention if credentials must be re-established.
  • For rate limits (RATE_LIMITED/429), retry after short delay.

Troubleshooting

  • command not found: ensure ~/.bun/bin or npm global bin path is on PATH.
  • NO_ACTIVE_ACCOUNT: run agent-email create or agent-email use <email>.
  • ACCOUNT_NOT_FOUND: run agent-email accounts list and pick a valid address.
  • EOTP during npm publish: use npm trusted publishing for CI or publish locally with OTP.

References

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

emailcliautomationdisposable-inboxagent-workflowjson-apiprivacytesting

同类 Skill