English | 中文
A Claude Code skill that watches an Agent Mail inbox in real time (via agently-cli) and lets the AI read each new message and auto-reply with a context-aware response.
npx skills add yongfenggu/monitor-mail --skill -g -yPrerequisites:
- Node.js ≥ 18
- Agent Mail CLI installed and authorized. See https://agent.qq.com/doc/cli-setup.md.
In Claude Code, just say:
Enable auto-reply for my mailWatch my inboxMonitor incoming mail
Claude will verify auth, ask you for a polling interval, run a self-test, and start the monitor. New mail triggers: read full body → AI drafts a reply → two-phase send → report to you in chat.
To stop:
Stop monitoring/stop
node bin/watch.mjs --interval 30
↓ execSync('agently-cli message +list')
agent.qq.com REST API
↓ diff against seen message_ids
{"event":"new_mail",...} → stdout
↓ Monitor tool consumes
Claude reads full → drafts reply → +reply (two-phase) → reports
The monitor only runs while your Claude Code session is alive. End the session, the monitor stops, no more auto-replies.
MIT