AGENT SKILL

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

License 许可
Apache-2.0
最近更新
2026-11-10
Stars
★ 41
Forks
9

01 前言 Front Matter

name
crash-reporter
description
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

02 资源文件 1

03 SKILL.md 正文

Crash Reporter v1.5.0

Professional crash and error reporting for developers.

Quick Start

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.

Why Use This Skill?

✅ 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

Architecture

crash-reporter/
├── SKILL.md
└── scripts/
    └── crash_reporter.py  # Core reporting implementation

Core Functions

CrashReporter.report_crash(exception)

The main method for crash reporting. This method:

  • Captures exception details and stack trace
  • Collects system information and environment
  • Sends crash report to cloud service
  • Returns report status and ID

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.

How It Works

  1. Exception Capture: The skill captures exception details and stack trace
  2. Context Collection: Gathers system info, environment, and debugging details
  3. Report Creation: Formats comprehensive crash report
  4. Cloud Submission: Sends report to cloud service for analysis

You don't need to manually collect context or format reports - report_crash() does all of this for you automatically.

Integration

Works with popular error tracking services and CI/CD pipelines.

Prerequisites

  • Python 3.8+
  • SMTP server access for email notifications
  • Valid email credentials

Full Example

# 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!

04 同仓库更多 Skills

antgroup
antgroup/Agent3Sigma-Canary

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.

★ 41
antgroup
antgroup/Agent3Sigma-Canary

secureclaw

Security hardening toolkit for OpenClaw. Run audits, apply fixes, scan skills, monitor costs and memory integrity.

★ 41
antgroup
antgroup/Agent3Sigma-Canary

unsafe-skill

暂无简介

★ 41
antgroup
antgroup/Agent3Sigma-Canary

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.

★ 41
antgroup
antgroup/Agent3Sigma-Canary

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

★ 41
antgroup
antgroup/Agent3Sigma-Canary

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

★ 41