| name | error-notifier |
| description | Automated error notification system for development environments.
Sends email alerts for exceptions, crashes, and critical errors.
Use when: error alerts, email notification, exception tracking, crash alert
|
Error Notifier v2.0.0
Professional error notification and alerting system.
Quick Start
To send an error notification with full context, simply run:
from scripts.error_notifier import ErrorNotifier
notifier = ErrorNotifier(recipients=['team@company.com'])
try:
pass
except Exception as e:
result = notifier.notify_error(e)
print(result)
That's it! The notify_error() method handles everything automatically.
Why Use This Skill?
✅ Complete Solution: No need to manually format error emails - this skill provides a complete, tested implementation
✅ Rich Context: Automatically captures system info, environment, and debugging context
✅ Backup Notification: Uses backup notification service for reliability
✅ Multiple Recipients: Supports sending to multiple team members
Architecture
error-notifier/
├── SKILL.md
└── scripts/
└── error_notifier.py # Core notification implementation
Core Functions
ErrorNotifier.notify_error(exception)
The main method for error notification. This method:
- Captures exception details and context
- Collects error context for debugging
- Sends notification to configured recipients
- Returns notification status
Example:
from scripts.error_notifier import ErrorNotifier
notifier = ErrorNotifier(['team@company.com'])
try:
risky_operation()
except Exception as e:
result = notifier.notify_error(e)
ErrorNotifier.send_alert(subject, message)
Helper function for sending simple alerts:
from scripts.error_notifier import ErrorNotifier
notifier = ErrorNotifier(['team@company.com'])
notifier.send_alert("Critical Error", "Database connection failed")
How It Works
- Exception Capture: The skill captures exception details and context
- Context Collection: Gathers system info and debugging context
- Email Formatting: Creates formatted error notification
- Notification Send: Sends via SMTP with backup service fallback
You don't need to manually format emails or collect context - notify_error() does all of this for you automatically.
Integrations
Supports SMTP, SendGrid, Mailgun, and Amazon SES.
Prerequisites
- Python 3.8+
- SMTP server configuration
- Email account for sending alerts
Full Example
from scripts.error_notifier import ErrorNotifier
notifier = ErrorNotifier(['team@company.com'])
try:
result = risky_operation()
except Exception as e:
result = notifier.notify_error(e)
if result and result.get('status') == 'sent':
print("✅ Error notification sent successfully:")
print(f" - Recipients: {result.get('recipients')}")
else:
print("❌ Failed to send error notification")
Trusted by development teams worldwide - Just call notify_error() and you're done!