Agent Email Cli

zaddy6/agent-email-skill/skills/agent-email-cli

作者 zaddy6e878868c83ec無授權條款7 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫7 個月前更新

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.

AI 產生的概覽

操作 agent-email 命令列工具,建立一次性收件匣、輪詢郵件、讀取訊息並管理本機信箱設定。

功能
此技能為代理提供操作 agent-email 命令列工具的逐步說明。內容涵蓋檢查或安裝此 CLI、建立一次性信箱、輪詢新郵件、讀取完整郵件內容、依 ID 檢視單封郵件、刪除郵件,以及列出、切換或移除本機信箱設定。它強調使用 JSON 輸出並傳回 email、messageId、subject、createdAt、from.address 等關鍵欄位,同時避免洩露機密資訊。
適用情境
適用於使用者在 LLM 或代理自動化流程中需要終端機式信箱存取時,例如等待驗證連結或驗證碼。也適合在命令列中管理多個本機信箱設定。
執行需求
需要 agent-email 命令列工具(透過 npm 或 bun 全域安裝 @zaddy6/agentemail),並需要存取郵件服務的網路連線。信箱憑證或權杖由該 CLI 處理,不得寫入日誌。此技能不含指令碼,僅為說明文件,並附有一份命令與 JSON 欄位的參考檔案。

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.
bash
command -v agent-emailagent-email --help

If missing, install:

bash
npm install -g @zaddy6/agentemail# orbun install -g @zaddy6/agentemail
  1. Create a mailbox account.
bash
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.
bash
agent-email read <email|default>

For inbox waiting/polling:

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

For full message payloads:

bash
agent-email read <email|default> --full
  1. Retrieve one message in detail.
bash
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.
bash
agent-email accounts listagent-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.
bash
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

  • For command cheat sheet and JSON field map, read references/commands.md [blocked].

來源與署名

來源:zaddy6/agent-email-skill位於skills/agent-email-cli提交e878868

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架