Error Diagnosis

# Error Diagnosis

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "Error Diagnosis" with this command: npx skills add charlie-morrison/error-diagnosis

Error Diagnosis

Analyze error messages, stack traces, and log output to diagnose root causes and suggest fixes. Use when debugging crashes, runtime errors, build failures, or unexpected behavior.

Usage

Diagnose this error: [paste error message or stack trace]

Or with context:

Diagnose: [error]. Language: [lang]. Framework: [framework]. Recent changes: [what changed].

How It Works

  1. Parse — extract error type, message, file locations, line numbers from raw output
  2. Classify — categorize the error (syntax, runtime, dependency, config, permission, network, OOM, etc.)
  3. Trace — follow the call stack to identify the originating code vs. where the error surfaced
  4. Diagnose — determine root cause using error patterns, common pitfalls, and framework-specific knowledge
  5. Fix — provide actionable fix with code snippets

Supported Error Sources

  • Stack traces: Python, JavaScript/Node.js, Java, Go, Rust, C/C++, Ruby, PHP
  • Build errors: npm, pip, cargo, gradle, maven, webpack, vite, tsc
  • Runtime errors: segfaults, OOM, deadlocks, race conditions, type errors
  • Infrastructure: Docker, Kubernetes, systemd, nginx, database connection errors
  • CI/CD: GitHub Actions, GitLab CI, CircleCI failure logs

Output Format

## Error Type
[Classification: e.g., "TypeError — accessing property of undefined"]

## Root Cause
[1-2 sentences explaining WHY this happened]

## Fix
[Code snippet or command to resolve]

## Prevention
[How to avoid this in the future: type check, test, lint rule, etc.]

Advanced Features

Multi-Error Analysis

Paste multiple errors — the skill identifies whether they share a root cause or are independent issues.

Regression Detection

This error started after [commit/change]. Analyze whether the change could cause this.

Environment Comparison

Works in dev, fails in prod. Error: [error]. Dev config: [config]. Prod config: [config].

Scripts

scripts/parse_stacktrace.py

Extracts structured data from raw stack traces:

python3 scripts/parse_stacktrace.py < error.log

Returns JSON with error type, message, frames (file, line, function), and suggested search queries.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Moss Skill-9

Give your AI agent eyes to see the entire internet. Install and configure upstream tools for Twitter/X, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu, Douyi...

Registry SourceRecently Updated
Coding

Codex Deep Search

Deep web search using Codex CLI for complex queries that need multi-source synthesis. Use when web_search (Brave) returns insufficient results, when the user...

Registry SourceRecently Updated
Coding

Matz Swarm

Orchestrate OpenClaw Agent Swarm workflows for multi-project coding automation with Obsidian task intake, Claude coding, Codex review, GitLab MR flow, merge+...

Registry SourceRecently Updated
4610matzoh
Coding

xfetch

Use xfetch CLI to fetch X/Twitter data - tweets, user profiles, search results, timelines, lists, DMs, and notifications. Use this skill whenever you need to...

Registry SourceRecently Updated