AgentSkillsCN

check-email

对受监控的邮箱收件箱进行轮询,查找尚未处理的新邮件。在每次邮件处理周期的开端使用,以及时发现客户的来信与反馈。

SKILL.md
--- frontmatter
name: check-email
description: Poll the monitored email inbox for new unprocessed messages. Use at the start of each email processing cycle to discover incoming client communications and feedback.
tools:
  - poll_inbox
user-invokable: false
version: 1.0.0

Check Email

Purpose

Scan the monitored inbox for incoming messages that have not yet been recorded in the processed-message log.

Instructions

  1. Call poll_inbox to retrieve messages received since the last poll timestamp
  2. For each message, check whether its ID exists in the processed-message log
  3. If the ID is already recorded, skip the message entirely — take no action
  4. For each new message, create a Task entry with status Pending and log the receipt
  5. Determine whether the message is a client email or a feedback item:
    • If the subject matches the configured feedback label pattern → route to categorize-feedback
    • Otherwise → route to respond-to-client
  6. Return the list of new Task IDs for downstream processing

Error Handling

  • If the inbox is unreachable: log a warning with full error context and skip this cycle
  • If credentials are expired: emit a Critical alert immediately via AlertService
  • If the API rate-limits the request: wait 30 seconds and retry once; if still rate-limited, skip this cycle and log a warning

Expected Output

A list of Task IDs (may be empty if no new messages arrived).