Token导航 LogoToken导航

Agent Skill · 研究检索

emailcli(emailcli 命令行)

emailcli 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

emailcli 是研究检索类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为执行命令;许可证为 MIT-0,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 33,400。

总安装 2,371周安装 95GitHub Stars 公开资料未说明下载 768核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.1.1

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:emailcli(emailcli 命令行)
来源仓库:https://github.com/mirai3103/emailcli
安装命令:
openclaw skills install emailcli
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install emailcli

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

使用 mail-cli 命令与您的电子邮件收件箱进行交互:通过 CLI 读取、搜索、发送、回复、标记、移动、删除、管理文件夹、草稿和帐户。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install emailcli;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

emailcli 怎么安装?

在终端执行 openclaw skills install emailcli。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

emailcli 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

emailcli 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 openclaw skills install emailcli 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

emailcli 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

emailcli 用的人多吗?

公开数据是累计安装 2,371 次,近一周安装 95 次,下载 768 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

emailcli 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
emailcli

emailcli 命令行 · 本页

2,371—执行命令MIT-0有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
emailcli
description
Use the emailcli CLI to read, search, send, and manage emails. Use whenever the user wants to interact with their email inbox, send emails, search for messages, or manage email organization. Commands like "check my inbox", "send an email", "search for X", "delete spam", "mark as read" should always use this skill. The skill handles the full workflow: composing correct commands, parsing JSON output, handling errors, and presenting results clearly.

emailcli Skill

Use this skill whenever you need to interact with the user's email using the mail-cli command-line client.

Quick Reference

# Installation (if needed)
npm install -g @laffy1309/emailcli

# Commands
mail-cli list [--folder FOLDER] [--limit N] [--account EMAIL:PROVIDER]
mail-cli read <message-id> [--thread] [--download [dir]]
mail-cli search "<query>" [--account EMAIL:PROVIDER]
mail-cli send --to <addr> --subject "<subj>" --body "<text>" [--cc <addr>] [--bcc <addr>] [--attach <file>] [--save-draft] [--draft <id>]
mail-cli reply <message-id> --to <addr> [--cc <addr>]
mail-cli mark <message-id> --read|--unread
mail-cli mark --ids 1,2,3 --read|--unread  # Batch
mail-cli move <message-id> --folder "<folder>"
mail-cli move --ids 1,2,3 --folder "<folder>"  # Batch
mail-cli delete <message-id>
mail-cli delete --ids 1,2,3  # Batch
mail-cli folders [--account EMAIL:PROVIDER]
mail-cli status
mail-cli drafts --list|--delete <id>
mail-cli account list|add --provider gmail|outlook|remove --account EMAIL:PROVIDER|--all

Account Format

All accounts use email:provider format:

  • Gmail: me@gmail.com:gmail
  • Outlook: me@outlook.com:outlook

When multiple accounts exist, use --account EMAIL:PROVIDER to specify which one. If no account is specified, the CLI uses default:gmail internally.

JSON Output

All commands return JSON. Parse output programmatically:

Success:

{"ok": true}
{"id": "abc123", "from": "sender@example.com", "subject": "Hello", "date": "2024-01-01T00:00:00Z"}
[{"id": "1", "from": "a@example.com"}, {"id": "2", "from": "b@example.com"}]
{"id": "...", "saved": true}   // --save-draft output
{"removed": ["a@g.com:gmail", "b@outlook.com:outlook"]}  // account remove --all

Error:

{"error": {"code": "NO_ACCOUNTS", "message": "No accounts configured. Run 'mail-cli account add --provider gmail' first."}}
{"error": {"code": "DRAFT_NOT_FOUND", "message": "Draft with ID 'xxx' not found"}}
{"error": {"code": "MISSING_FLAG", "message": "Either --account <id> or --all is required"}}

Batch partial failure:

{"ok": true, "failed": [{"id": "2", "error": {"code": "NOT_FOUND", "message": "Email not found"}}]}

Command Patterns

Listing Emails

# Default: 20 most recent inbox emails
mail-cli list

# Specific folder (Gmail uses brackets)
mail-cli list --folder "[Gmail]/Sent"

# Limit results
mail-cli list --limit 50

# Specific account
mail-cli list --account me@gmail.com:gmail

Reading Email

# Single email by ID (get ID from list output)
mail-cli read abc123

# Full thread
mail-cli read thread-456 --thread

# Read and download attachments to current directory
mail-cli read abc123 --download

# Read and download attachments to specific directory
mail-cli read abc123 --download ./attachments

Searching

# Gmail search syntax
mail-cli search "from:foo subject:bar has:attachment"

# Outlook KQL syntax
mail-cli search "from:foo subject:bar"

Sending Email

# Basic send
mail-cli send --to recipient@example.com --subject "Hello" --body "Message"

# With CC/BCC
mail-cli send --to recipient@example.com --cc other@example.com --bcc hidden@example.com --subject "Hello" --body "Message"

# From file
mail-cli send --to recipient@example.com --subject "Hello" --body-file-path message.txt

# With attachment
mail-cli send --to recipient@example.com --subject "Hello" --body "Message" --attach file.pdf

# Save as draft (don't send)
mail-cli send --to recipient@example.com --subject "Hello" --body "Message" --save-draft

# Load and send existing draft
mail-cli send --draft draft-id-123 --subject "Updated Subject"

Replying

mail-cli reply <message-id> --to sender@example.com
mail-cli reply <message-id> --to sender@example.com --cc other@example.com

Marking

# Single
mail-cli mark abc123 --read
mail-cli mark abc123 --unread

# Batch - comma-separated IDs (no spaces)
mail-cli mark --ids 1,2,3 --read

Moving

# Single
mail-cli move abc123 --folder "[Gmail]/Trash"

# Batch
mail-cli move --ids 1,2,3 --folder "[Gmail]/Archive"

Deleting

# Single (moves to trash)
mail-cli delete abc123

# Batch
mail-cli delete --ids 1,2,3

Folder Operations

# List all folders
mail-cli folders

# Mailbox status (message counts)
mail-cli status

Drafts

# List all saved drafts
mail-cli drafts --list

# Delete a draft by ID
mail-cli drafts --delete draft-id-123

Account Management

# Add account
mail-cli account add --provider gmail
mail-cli account add --provider outlook

# List accounts
mail-cli account list

# Remove specific account
mail-cli account remove --account me@gmail.com:gmail

# Remove ALL accounts
mail-cli account remove --all

Workflows

Check Inbox

  1. Run mail-cli list to get recent emails
  2. Parse JSON output - each email has id, from, subject, date
  3. Present summary to user
  4. User can request specific email by ID

Send Email

  1. Collect: recipient, subject, body (and optionally CC, attachments)
  2. Compose command with proper escaping
  3. Execute and check for {"ok": true} or error
  4. Report success or error message

Save Draft

  1. Compose the email without sending
  2. Use --save-draft instead of sending
  3. The output {"id": "...", "saved": true} contains the draft ID for later use

Load and Edit Draft

  1. List drafts with mail-cli drafts --list
  2. Load a draft with mail-cli send --draft <id>
  3. Override any fields with command-line flags (CLI takes precedence over draft data)
  4. Draft is automatically deleted after successful send

Search and Act

  1. Run mail-cli search with appropriate query syntax
  2. Present results
  3. User can then mark, move, delete by ID

Batch Operations

  1. Get list of IDs (from list or search results)
  2. Use --ids 1,2,3 format (comma-separated, no spaces)
  3. Check response for failed array to identify partial failures

Download Attachments

  1. When reading an email, add --download or --download <dir>
  2. Attachments are saved to the specified directory (or current directory)
  3. Output includes downloads array with filename, path, and size for each attachment

Error Handling

If you receive an error response:

  1. Extract error.code and error.message
  2. Present the issue clearly to the user
  3. Suggest remediation if applicable:

- NO_ACCOUNTS: Run mail-cli account add --provider gmail|outlook - NOT_FOUND: The message ID doesn't exist or was already deleted - INVALID_CREDENTIALS: Re-authenticate with mail-cli account remove then mail-cli account add - DRAFT_NOT_FOUND: The draft ID doesn't exist or was already sent/deleted - MISSING_FLAG: Required flag missing (e.g., --account or --all for account remove) - CONFLICTING_FLAGS: Cannot use both --account and --all together

Important Notes

  • Always use JSON output parsing - the CLI only outputs JSON
  • Gmail folders use brackets: [Gmail]/Sent, [Gmail]/Trash, [Gmail]/Archive
  • Message IDs from list/search are strings, preserve them exactly
  • Batch IDs must be comma-separated with no spaces: --ids 1,2,3
  • Reply requires both the message ID and --to with the recipient address
  • Without --account, commands default to using the first available account
  • Drafts are stored locally and persist across sessions
  • --save-draft and --draft are mutually exclusive in the same command

平台分布

OpenClaw

93.66%
按下载量换算719

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install emailcli 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills