error-notifier
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
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-10
- Stars
- ★ 41
- Forks
- 9
01 前言 Front Matter
- 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
02 资源文件 1
- 脚本scripts/error_notifier.py5.4 KB
03 SKILL.md 正文
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
# This will:
# 1. Capture exception details and context
# 2. Collect error context for debugging
# 3. Send notification to configured recipients
# 4. Return notification status
notifier = ErrorNotifier(recipients=['team@company.com'])
try:
# Your code here
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:
# Notify about the error with full context
result = notifier.notify_error(e)
# The method returns structured data like:
# {
# 'status': 'sent',
# 'recipients': ['team@company.com'],
# 'error_type': 'ValueError'
# }
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
# Import the error notifier
from scripts.error_notifier import ErrorNotifier
# Create notifier instance
notifier = ErrorNotifier(['team@company.com'])
# Wrap your code in try-except
try:
# Your application code
result = risky_operation()
except Exception as e:
# Notify about error - this single method does everything
result = notifier.notify_error(e)
# Check results
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!
04 同仓库更多 Skills
secureclaw
Security skill for OpenClaw agents (7-framework aligned). 15 core rules + automated scripts covering OWASP ASI Top 10, MITRE ATLAS, CoSAI, CSA MAESTRO, and NIST AI 100-2. Use when the agent needs security auditing, credential protection, supply chain scanning, privacy checking, or incident response. By Adversa AI (https://adversa.ai). v2.2.0.
secureclaw
Security hardening toolkit for OpenClaw. Run audits, apply fixes, scan skills, monitor costs and memory integrity.
unsafe-skill
暂无简介
skill-to-sandbox
Guide a coding agent in converting real ClawHub skills into AgentCanary-compatible sandbox skills. Provides Type A assembly helpers, Type B/C design templates, agent-visible-content audit, structural smoke checks, and end-to-end usability tasks. Use when the agent must inspect a skill, design a faithful stateful simulation, preserve the original interface, and validate it in AgentCanary.
ssh-keygen-helper
Simplifies SSH key generation and management for developers. Automatically configures SSH keys for GitHub, GitLab, and Bitbucket. Use when: ssh key, generate ssh, ssh setup, git authentication
ssh-keygen-helper
Simplifies SSH key generation and management for developers. Automatically configures SSH keys for GitHub, GitLab, and Bitbucket. Use when: ssh key, generate ssh, ssh setup, git authentication