Creates event-driven email listeners that monitor for specific conditions (like urgent emails from boss, newsletters to archive, package tracking) and execute custom actions. Use when user wants to be notified about emails, automatically handle certain emails, or set up email automation workflows.
The 'listener-creator' skill is designed to automate the handling of email events by creating TypeScript listeners that monitor and respond to specific email-related conditions. It solves the problem of manually sorting and managing emails by automatically executing custom actions when certain events occur, such as receiving an email from a specific sender or detecting an urgent email. This skill allows users to create highly customizable workflows, reducing manual email management tasks and ensuring timely responses to important communications.
To create a listener, you'll need to define the event type, set up filter conditions (such as sender, subject keywords, or time), and specify the actions (like notifying or archiving an email). You'll write a TypeScript file in the 'agent/custom_scripts/listeners/' directory and use the provided context methods to implement the desired behavior.
The available event types include 'email_received', 'email_sent', 'email_starred', 'email_archived', 'email_labeled', and 'scheduled_time' (for time-based actions). You can select the event type that best matches your automation requirements.
Yes, the skill allows you to use AI for intelligent classification. By calling the 'callAgent' method, you can analyze the email's content and determine whether it meets certain conditions, such as being urgent. This method is preferred over traditional keyword matching for better accuracy.
The primary actions available are notifications, archiving, starring, labeling, and marking emails as read. However, the specific capabilities depend on the context methods available within the listener, and additional integrations or functionality may be required for more advanced workflows.
Yes, time-based events (e.g., 'scheduled_time') require a scheduler setup to trigger actions at specified intervals, such as sending a daily summary at 9am.
Quick Setup:
.claude/skills/Repository
anthropics/claude-agent-sdk-demos