AgentSkillsCN

email-ops

WHAT:通过 Gmail 集成发送邮件、检查已发送邮件,并管理草稿。WHEN:当用户说“发送邮件”、“起草回复”、“检查已发送邮件”时触发。触发条件:沟通任务、客户响应、邮件自动化。

SKILL.md
--- frontmatter
name: email-ops
description: "WHAT: Send emails, check sent items, and manage drafts via Gmail integration. WHEN: User says 'send email', 'draft reply', 'check sent emails'. Trigger on: communication tasks, client response, email automation."

Email Operations

When to Use

  • Sending approved emails to clients or contacts
  • Drafting responses to inquiries
  • Verifying sent emails
  • Managing email templates

Instructions

  1. Send Email:

    bash
    python3 .claude/skills/email-ops/scripts/main_operation.py --action send --to "RECIPIENT" --subject "SUBJECT" --body "BODY"
    

    Note: Requires approval for new contacts. Use --attachment "PATH" for attachments.

  2. List Recent Sent:

    bash
    python3 .claude/skills/email-ops/scripts/main_operation.py --action list-sent --limit 5
    
  3. Check Status:

    bash
    python3 .claude/skills/email-ops/scripts/main_operation.py --action status
    

Validation

  • Email sent successfully (or logged in dry-run)
  • Audit log entry created
  • Error logged if failure occurs

See REFERENCE.md for detailed credentials setup.