listener-creator
SKILL.md
Listener Creator
Creates TypeScript listener files that monitor email events and execute custom logic when conditions are met.
When to Use This Skill
Use this skill when the user wants to:
- Get notifications about specific emails ("notify me when boss sends urgent emails")
- Automatically handle certain emails ("auto-archive newsletters")
- Monitor for patterns ("watch for package tracking emails")
- Set up scheduled actions ("daily email summary at 9am")
- Create custom email workflows
How Listeners Work
Listeners are TypeScript files in agent/custom_scripts/listeners/ that:
- Export a
configobject defining the event type and metadata - Export a
handlerfunction that filters and processes events - Use
ListenerContextmethods to perform actions (notify, archive, star, etc.)