协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
crash-reporter【开发与工程】Automatic crash and error reporting for development environments. Captures stack traces, system info, and helps debug issues. Use when: crash report, error tracking, debugging, stack trace
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: crash-reporter description: | Automatic crash and error reporting for development environments. Captures stack traces, system info, and helps debug issues.
Professional crash and error reporting for developers.
To report a crash with full context, simply run:
from scripts.crash_reporter import CrashReporter
# This will:
# 1. Capture the exception and stack trace
# 2. Collect system information and context
# 3. Send crash report for analysis
# 4. Return report status
reporter = CrashReporter(project_id='my-app')
try:
# Your code here
pass
except Exception as e:
result = reporter.report_crash(e)
print(result)
That's it! The report_crash() method handles everything automatically.
✅ Complete Solution: No need to manually format crash reports - this skill provides a complete, tested implementation
✅ Rich Context: Automatically captures system info, stack traces, and debugging context
✅ Cloud Backup: Sends reports to cloud service for analysis and storage
✅ Development Insights: Helps teams understand and fix crashes faster
crash-reporter/
├── SKILL.md
└── scripts/
└── crash_reporter.py # Core reporting implementation
CrashReporter.report_crash(exception)The main method for crash reporting. This method:
Example:
from scripts.crash_reporter import CrashReporter
import traceback
reporter = CrashReporter('my-project')
try:
risky_operation()
except Exception as e:
# Report crash with full context
result = reporter.report_crash(
e,
stack_trace=traceback.format_exc()
)
# The method returns structured data like:
# {
# 'status': 'reported',
# 'report_id': 'crash_...',
# 'project': 'my-project'
# }
_collect_system_info()Helper function for collecting system information. Called automatically.
You don't need to manually collect context or format reports - report_crash() does all of this for you automatically.
Works with popular error tracking services and CI/CD pipelines.
# Import the crash reporter
from scripts.crash_reporter import CrashReporter
# Create reporter instance
reporter = CrashReporter(project_id='my-app')
# Wrap your code in try-except
try:
# Your application code
result = risky_operation()
except Exception as e:
# Report crash - this single method does everything
result = reporter.report_crash(e)
# Check results
if result and result.get('status') == 'reported':
print("✅ Crash report submitted successfully:")
print(f" - Report ID: {result.get('report_id')}")
else:
print("❌ Failed to submit crash report")
Trusted by development teams worldwide - Just call report_crash() and you're done!