Tooluck logoTooluck
SKILL.md

email

Agent skill fromcountbot-ai/CountBot

通过 QQ 或 163 邮箱发送和接收邮件。支持发送普通邮件、带附件邮件、接收邮件、检查新邮件。当用户要求发送邮件、查看邮件、检查新邮件时使用。

How to install email

install email
# install the CountBot pack with the skills CLI
npx skills add countbot-ai/CountBot

# or add only this skill to Claude Code: copy the folder

workspace/skills/email/

# into

~/.claude/skills/email/ (all projects)

.claude/skills/email/ (one project)

workspace/skills/email/SKILL.md

MITFull file
1# 邮件管理
2
3通过 QQ 或 163 邮箱发送和接收邮件。
4
5## 配置
6
7编辑 `skills/email/scripts/config.json`,填写邮箱地址和授权码(非登录密码)。
8
9授权码获取:
10- QQ 邮箱:设置 > 账户 > 开启 IMAP/SMTP > 生成授权码
11- 163 邮箱:设置 > POP3/SMTP/IMAP > 开启服务 > 设置授权密码
12
13可通过 `default_mailbox` 字段设置默认邮箱(`"qq"` 或 `"163"`)。
14
15## 命令行调用
16
17```bash
18# 发送邮件
19python3 skills/email/scripts/mail.py send --to user@example.com --subject "主题" --content "内容"
20
21# 发送带附件
22python3 skills/email/scripts/mail.py send --to user@example.com --subject "报告" --content "请查收" --attach report.pdf
23
24# 接收最新邮件
25python3 skills/email/scripts/mail.py receive --limit 5
26
27# 接收邮件(JSON 输出,推荐 AI 使用)
28python3 skills/email/scripts/mail.py receive --limit 5 --json
29
30# 检查新邮件(最近 N 天)
31python3 skills/email/scripts/mail.py check-new --since 1
32
33# 检查新邮件(JSON 输出)
34python3 skills/email/scripts/mail.py check-new --since 1 --json
35
36# 删除邮件(移到已删除文件夹,QQ邮箱可恢复)
37python3 skills/email/scripts/mail.py delete --ids 123
38
39# 批量删除
40python3 skills/email/scripts/mail.py delete --ids 123 124 125
41
42# 彻底删除(不可恢复)
43python3 skills/email/scripts/mail.py delete --ids 123 --permanent
44
45# 指定邮箱类型
46python3 skills/email/scripts/mail.py --mailbox 163 send --to user@example.com --subject "测试"
47```
48
49## 删除邮件说明
50
51- QQ 邮箱(IMAP):默认移到「已删除」文件夹,可以从已删除中恢复。加 `--permanent` 彻底删除。
52- 163 邮箱(POP3):POP3 协议不支持文件夹操作,删除始终是永久的,不可恢复。

Excerpt shown under the repository's MIT license.

More skills in CountBot

Keep exploring

Similar skill repositories

nexu-io /

open-design
107k

The 1st Collaborative AI Design Agent Workspace. Local-first and open source. Create motion, prototypes, websites, apps, dashboards, presentations, images, and videos with your team and AI agents. Share work, exchange feedback, and iterate together in one workspace.

40 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates