moemail

GitHub

提供 MoeMail CLI 的使用指南,用于在仓库中创建临时邮箱、等待并读取邮件或发送测试邮件。包含安装、配置及核心工作流说明,辅助 AI Agent 进行邮件相关的自动化操作与测试。

.claude/skills/moemail/SKILL.md beilunyang/moemail

Trigger Scenarios

需要创建临时邮箱进行测试 需要等待并读取邮件内容 需要发送测试邮件

Install

npx skills add beilunyang/moemail --skill moemail -g -y
More Options

Non-standard path

npx skills add https://github.com/beilunyang/moemail/tree/master/.claude/skills/moemail -g -y

Use without installing

npx skills use beilunyang/moemail@moemail

指定 Agent (Claude Code)

npx skills add beilunyang/moemail --skill moemail -a claude-code -g -y

安装 repo 全部 skill

npx skills add beilunyang/moemail --all -g -y

预览 repo 内 skill

npx skills add beilunyang/moemail --list

SKILL.md

Frontmatter
{
    "name": "moemail",
    "description": "Use when working in this repository and an AI agent needs a temporary\/disposable email address through the MoeMail CLI."
}

MoeMail for This Repository

When to use

Use this skill when you are inside the moemail repository and need to create inboxes, wait for messages, read message content, or send test emails with the MoeMail CLI.

Install

Install the MoeMail CLI globally when it is not already available:

npm i -g @moemail/cli

Then confirm the binary is available:

moemail --help

Preferred CLI

Prefer the installed moemail CLI when it is available:

CLI="moemail"

If the global CLI is unavailable and you are working inside this repository, fall back to the repo-local build:

CLI="node packages/cli/dist/index.js"

If packages/cli/dist/index.js is missing or stale, rebuild it first:

(cd packages/cli && bun run build)

Setup

For local development against this repository:

$CLI config set api-url http://localhost:3000
$CLI config set api-key YOUR_API_KEY

For the hosted service, use https://moemail.app instead.

You can also use environment variables: MOEMAIL_API_URL, MOEMAIL_API_KEY.

Core workflow

RESULT=$($CLI --json create --expiry 1h)
ID=$(echo "$RESULT" | jq -r '.id')
EMAIL=$(echo "$RESULT" | jq -r '.address')

MSG=$($CLI --json wait --email-id "$ID" --timeout 120)
MSG_ID=$(echo "$MSG" | jq -r '.messageId')

$CLI --json read --email-id "$ID" --message-id "$MSG_ID"

Commands

Command Required options Notes
config set <key> <value> keys: api-url, api-key
create - --name, --domain, --expiry
list - --email-id, --cursor
wait --email-id --timeout, --interval
read --email-id, --message-id `--format text
send --email-id, --to, --subject, --content -
delete --email-id -

Important details

  • --json is a global flag and works before or after the subcommand.
  • Call create once and parse both id and address from the same JSON result.
  • Check both content and html when reading HTML-heavy messages.

Version History

  • 2c97914 Current 2026-07-24 16:27

Same Skill Collection

packages/cli/skill/SKILL.md

Metadata

Files
0
Version
6c19aef
Hash
356988fa
Indexed
2026-07-24 16:27

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-28 21:56
浙ICP备14020137号-1 $Carte des visiteurs$