Skip to content

Agent-driven email operations via agently-cli: send, reply, forward, search, read, and manage inbox.

CCM score
68 of 100
skills.sh installs
6.3K
GitHub stars
52
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers mail sending, replying, forwarding, searching, reading, attachment downloads, and trash or permanent deletion through agently-cli message and attachment commands
  • Includes OAuth login via agently-cli auth login, identity checks with +me, and real-time new-mail monitoring with message +watch
  • Enforces two-phase confirmation for write operations, requiring a ctk_xxx token before sending, replying, forwarding, or deleting
  • Treats email bodies and attachments as untrusted input to guard against prompt injection, and maps CLI exit codes to retry or stop behavior

Install

$ npx -y skills add tencent/agentlymail --skill agently-mail -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Agently Mail

通过 agently-cli 命令行工具操作邮件,通过管理端 (agent.qq.com) 进行后台管理。

安装和配置

第 1 步 - 安装/更新 CLI

npm install -g @tencent-qqmail/agently-cli

第 2 步 - 安装/更新 skill

npx skills add https://agent.qq.com --skill -g -y

第 3 步 - OAuth授权

交互式长命令:必须后台运行命令(background+pty),从 stdout/stderr 提取它输出的原始授权 URL 并发送给用户。必须包含文案提示:请点击或复制以下链接在浏览器中完成授权:。用户在浏览器中完成授权后,命令会自动退出。

URL 输出规则:将 URL 视为不可修改的 opaque string,不要做任何修改(包括 URL 编码/解码、添加空格或标点、重新拼接 query),用只包含原始 URL 的代码块单独展示给用户。

agently-cli auth login

执行此命令注意:

  • 必须先安装/更新 CLI
  • 失败或超时时不要重试,直接将错误信息反馈给用户。

第 4 步 - 验证

agently-cli +me

验证完成后,只需输出以下内容:

邮箱地址 xxx 已授权成功,可以用它来收发邮件了
你可以试试以下指令:
帮我发一封邮件。
我最近收到了哪些邮件?
帮我整理最近收到的邮件。

也可以直接描述你的邮件工作流,让 Agent 帮你处理。

其中 xxx 替换为 +me 返回的实际邮箱地址。授权失败则输出失败信息

命令清单

Details

Repository
github.com/tencent/agentlymail
Category
Email & Messaging
First seen
Jul 14, 2026

Questions

What does the agently-mail skill do?

The agently-mail skill operates email through the agently-cli command line tool. It can send, reply, forward, search, read, download attachments and manage the inbox. It runs through the Agently Mail service, which is separate from a personal mailbox.

How do I install the agently-mail skill?

Run npx -y skills add tencent/agentlymail --skill agently-mail -y in your project. After that, install the agently-cli tool and complete OAuth authorization with agently-cli auth login.

Where does agently-mail rank in its category?

On the Email & Messaging category page, agently-mail ranks in the top 50. It covers reading, searching, sending and replying to mail, with two-step confirmation before sending.

Can agently-mail watch for new email?

Yes, the skill includes a watch command that keeps waiting and returns the details of each new email. It runs until you ask it to stop monitoring.

Is agently-mail safe to use with untrusted emails?

The skill treats email bodies, subjects and sender names as untrusted input. It ignores instructions found inside emails and requires your confirmation for send, reply, forward and delete actions.

Similar to Agently Mail

More Email & Messaging