listener-creator

Generate event-driven email listeners with config objects and handlers.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/dinequickly/agentsGUI --skill listener-creator-dinequickly
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: listener-creator
Source: https://github.com/dinequickly/agentsGUI/tree/main/email-agent/agent/.claude/skills/listener-creator
Command: npx skills add https://github.com/dinequickly/agentsGUI --skill listener-creator-dinequickly

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables you to create event-driven listeners that monitor incoming emails and trigger actions such as notifications, archiving, or labeling, reducing manual inbox management.

Core Features & Use Cases

  • Define event types (e.g., email_received, email_archived, scheduled_time) and filter conditions
  • Provide a handler that runs when events occur, using context methods to perform actions
  • Examples: "Notify on urgent emails from boss", "Auto-archive newsletters", "Daily email summary"

Quick Start

Create a listener named boss-urgent-watcher.ts that watches for urgent emails from a specific sender and uses AI to determine urgency before notifying with high priority.

Frequently Asked Questions about listener-creator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate email actions like notifications and archiving?

Email listeners automate inbox management by monitoring events like email_received or email_archived and triggering actions such as notifications, labeling, or archiving. Define event types, set filter conditions, and provide a handler function that uses ListenerContext methods to perform actions when events occur.

Can I use AI to classify and route emails automatically?

Yes. Listeners support AI-assisted decision-making through context.callAgent, enabling intelligent email classification and routing. Your handler can invoke the agent to analyze email content and determine whether to notify, archive, label, or perform other actions based on urgency or custom criteria.

How do I create an event-driven email listener in TypeScript?

Create a TypeScript file under agent/custom_scripts/listeners that exports a config object defining the event type and filter conditions, plus a handler function. The handler receives ListenerContext and uses methods like notify, archiveEmail, starEmail, and addLabel to respond to events like email_received, email_sent, or scheduled_time.

What email events can I listen for and act on?

Supported events include email_received, email_sent, email_starred, email_archived, email_labeled, and scheduled_time. Each event triggers your handler, allowing you to monitor incoming and outgoing emails or execute scheduled actions across your Gmail account.

What's the best way to set up daily email summaries or urgent alerts?

Use scheduled_time events for daily summaries or email_received with AI classification for urgent alerts. Configure your listener to query recent emails, apply AI analysis via context.callAgent to determine priority, then notify or aggregate results using ListenerContext methods.

Do I need prior experience with event-driven architecture to use listeners?

No. Listeners abstract event-driven complexity into a simple config-and-handler pattern. If you're familiar with TypeScript functions and email workflows, you can define conditions and write handlers; AI-assisted classification and ListenerContext methods handle the technical details.