360 Secure SkillHub
360 安全技能中心

Se Gmail Monitor

这是为指定机构打造的Gmail监控管理工具,支持主账号、Admin、Agent三类账号,通过命令行实现邮件列表、读取、发送、检索功能。适用于日常邮箱核查、紧急邮件处理、内部/外部邮件发送,以及周期性心跳巡检(扫描重要联系人、含紧急关键词的邮件等)。发送邮件需遵循规则:主账号发件需用户许可,Agent账号可自由发送内部运维邮件;发现紧急邮件需立即告知用户。

boris148
boris148
热度 42.87
最近更新 2026-05-18 12:34:47
分类:协作依赖:代码执行 / 第三方 API / 读写文件应用场景:邮件起草 / 自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add se-gmail-monitor
Metadata
name
se-gmail-monitor
description
Monitor and manage Gmail accounts for Your Agency Name. Use when checking emails, sending emails, scanning for urgent messages, or performing email triage. Supports dual accounts (info@ and agent@) via IMAP/SMTP with app passwords. Use during heartbeats for periodic inbox checks.
version
1.0.0

Email Monitor

Gmail monitoring and management for Your Agency Name accounts.

Accounts

Account Email Type
Primary YourName@yourdomain.com Main business
Admin info@yourdomain.com Admin/general
Agent agent@yourdomain.com AI operator

Config: ~/.openclaw/workspace/.gmail-config.json

Commands

# List recent emails (default: info@ account)
python3 scripts/gmail-monitor.py list

# List from specific account
python3 scripts/gmail-monitor.py list --account boris

# Read specific email
python3 scripts/gmail-monitor.py read <message_id>

# Send email (CONFIRM WITH the user FIRST)
python3 scripts/gmail-monitor.py send --to recipient@email.com --subject "Subject" --body "Body text" --account boris

# Search emails
python3 scripts/gmail-monitor.py search "query"

Heartbeat Routine

During periodic checks, scan for:

  1. Emails from known contacts (team, clients, partners)
  2. Urgent keywords: "urgent", "ASAP", "deadline", "payment", "invoice"
  3. Security alerts from Google, banks, or services
  4. Client responses or new leads

Rules

  • NEVER send emails as YourName without explicit permission
  • Boris account can send operational/internal emails freely
  • Flag urgent emails to the user immediately
  • Do not auto-reply to external contacts without approval