jpskill.com
💬 コミュニケーション コミュニティ

agent-email-cli

使い捨てメールアドレスの作成、新着メールの確認、メール内容の取得、メールボックスの管理などをターミナルから行い、LLMやエージェントの自動化ワークフローでメールの受信箱にアクセスする作業を効率化するSkill。

📜 元の英語説明(参考)

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.

🇯🇵 日本人クリエイター向け解説

一言でいうと

使い捨てメールアドレスの作成、新着メールの確認、メール内容の取得、メールボックスの管理などをターミナルから行い、LLMやエージェントの自動化ワークフローでメールの受信箱にアクセスする作業を効率化するSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o agent-email-cli.zip https://jpskill.com/download/21233.zip && unzip -o agent-email-cli.zip && rm agent-email-cli.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/21233.zip -OutFile "$d\agent-email-cli.zip"; Expand-Archive "$d\agent-email-cli.zip" -DestinationPath $d -Force; ri "$d\agent-email-cli.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して agent-email-cli.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → agent-email-cli フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
2

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Agent Email CLI

概要

このスキルは、受信トレイへのアクセスが必要なエージェントワークフローのために、agent-email コマンドを安全かつ予測可能に操作するために使用します。

JSONネイティブのコマンド出力を好み、要約には主要なフィールド(emailmessageIdsubjectcreatedAtfrom.address)を返してください。

ワークフロー

  1. CLIの可用性を確認します。
command -v agent-email
agent-email --help

不足している場合は、インストールします。

npm install -g @zaddy6/agentemail
# or
bun install -g @zaddy6/agentemail
  1. メールボックスアカウントを作成します。
agent-email create

JSON出力から以下のフィールドを記録します。

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

メールボックスのパスワードやトークンなどの秘密の値を記録、繰り返し、または印刷しないでください。

  1. 最新のメッセージを読み取ります。
agent-email read <email|default>

受信トレイの待機/ポーリングの場合:

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

完全なメッセージペイロードの場合:

agent-email read <email|default> --full
  1. 1つのメッセージを詳細に取得します。
agent-email show <email|default> <messageId>

検証リンク、コード、または完全なコンテンツ抽出のために本文/ソースの詳細が必要な場合は、show を使用します。

  1. メールボックスプロファイルを管理します。
agent-email accounts list
agent-email use <email|default>
agent-email accounts remove <email>

エージェントログでコマンドラインに秘密を入力する必要があるコマンドは避けてください。

  1. 処理済み/無関係なメッセージが要求されたら削除します。
agent-email delete <email|default> <messageId>

運用ガイダンス

  • コマンド出力は機械可読に保ち、要求されない限り人間向けの出力を強制しないでください。
  • ユーザーがメールを指定しない場合は、default エイリアスを優先してください。
  • コマンド出力から秘密の値(passwordtoken)をエコー、保存、または要約しないでください。
  • コマンドが失敗した場合は、JSONエラーの code および hint フィールドを直接表示してください。
  • 認証失敗(AUTH_REQUIRED/401)の場合、コマンドを一度再実行し、資格情報の再確立が必要な場合はユーザーの介入を要求してください。
  • レート制限(RATE_LIMITED/429)の場合、短い遅延の後に再試行してください。

トラブルシューティング

  • command not found: ~/.bun/bin または npm グローバル bin パスが PATH に含まれていることを確認してください。
  • NO_ACTIVE_ACCOUNT: agent-email create または agent-email use <email> を実行してください。
  • ACCOUNT_NOT_FOUND: agent-email accounts list を実行し、有効なアドレスを選択してください。
  • npm publish 中の EOTP: CI には npm trusted publishing を使用するか、OTP を使用してローカルで公開してください。

参考文献

  • コマンドチートシートとJSONフィールドマップについては、references/commands.md を参照してください。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

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

同梱ファイル

※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。