Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

error-detective

БесплатноЗапускает вложенные скриптыНе проверен

Systematic debugging and error resolution using the TRACE framework (Trace, Read, Analyze, Check, Execute). Use when debugging errors, analyzing stack traces…

AutumnsGroveот AutumnsGrove★ 41 звезда на GitHub12 установок в других каталогах

Об этом скилле

Error Detective - Systematic Debugging and Error Resolution

Overview

Error Detective is a comprehensive debugging skill that applies systematic methodologies to identify, analyze, and resolve errors efficiently. Using the TRACE framework and structured analysis techniques, this skill guides you through debugging from initial error discovery to verified resolution.

Core Capabilities

Stack Trace Analysis

  • Parse and interpret stack traces across multiple languages
  • Identify root cause vs. symptom errors
  • Extract relevant file paths and line numbers
  • Understand call chains and error propagation

Error Pattern Recognition

  • Categorize errors by type (syntax, runtime, logic, integration)
  • Identify common error patterns and anti-patterns
  • Recognize framework-specific errors
  • Map errors to likely root causes

Root Cause Analysis

  • Distinguish between symptoms and underlying issues
  • Follow error chains to original source
  • Identify environmental vs. code issues
  • Detect configuration and dependency problems

Debugging Workflow Management

  • Structured investigation process
  • Hypothesis generation and testing
  • Iterative refinement of understanding
  • Documentation of findings and solutions

The TRACE Framework

TRACE is a systematic five-step approach to debugging any error:

T - Trace the Error

Objective: Capture complete error information and context

  1. Collect the full error message

    • Complete stack trace (not just first few lines)
    • Error type and message
    • Timestamp and occurrence frequency
    • Environment where error occurred
  2. Identify error location

    • Exact file and line number
    • Function or method where error occurred
    • Code context (surrounding lines)
    • Call stack from entry point to error
  3. Gather reproduction steps

    • Minimal steps to reproduce
    • Input data or parameters used
    • Expected vs. actual behavior
    • Consistency of reproduction (always, intermittent, rare)

R - Read the Error Message

Objective: Extract all information from the error itself

  1. Parse error components

    • Error type/class (TypeError, ValueError, etc.)
    • Error message content
    • Suggested fixes (if provided)
    • Related errors or warnings
  2. Understand error semantics

    • What the error type means in this language/framework
    • What conditions trigger this error
    • What the error message is specifically telling you
    • Any error codes or status codes
  3. Identify error category

    • Syntax error (code won't parse)
    • Runtime error (code crashes during execution)
    • Logic error (wrong results, no crash)
    • Integration error (external system failure)
    • Performance error (timeout, resource exhaustion)

A - Analyze the Context

Objective: Understand the broader context around the error

  1. Code analysis

    • Review the failing line and surrounding code
    • Check recent changes to this code
    • Examine function/method signature and usage
    • Review related code that calls or is called by failing code
  2. Data analysis

    • Inspect input values at point of failure
    • Check data types and structures
    • Verify data meets expected format/constraints
    • Identify edge cases or unexpected values
  3. Environment analysis

    • Check dependencies and versions
    • Review configuration files
    • Verify environment variables
    • Confirm required resources are available (files, network, memory)
  4. State analysis

    • Application state at time of error
    • Previous operations that led to this state
    • Shared state or global variables involved
    • Database or external system state

C - Check for Root Cause

Objective: Identify the underlying issue, not just symptoms

  1. Follow the error chain

    • Start at bottom of stack trace (first error)
    • Work up to find originating cause
    • Distinguish between error origin and error handlers
    • Identify wrapped or re-thrown errors
  2. Test hypotheses

    • Generate specific, testable hypotheses
    • Isolate variables (change one thing at a time)
    • Use logging/debugging tools to verify assumptions
    • Document which hypotheses are confirmed or rejected
  3. Common root causes

    • Null/undefined values: Missing initialization or validation
    • Type mismatches: Incorrect data type passed or returned
    • Off-by-one errors: Array/loop boundary issues
    • Race conditions: Timing-dependent failures
    • Resource exhaustion: Memory, disk, connections depleted
    • Configuration errors: Wrong settings or missing config
    • Dependency issues: Version conflicts or missing libraries
    • Permission errors: Insufficient access rights
    • Network errors: Connectivity, timeout, DNS issues
    • Data corruption: Invalid or unexpected data format

E - Execute the Fix

Objective: Implement and verify the solution

  1. Design the fix
    • Address root cause, not symptoms
    • C
Полный SKILL.md на GitHub

Установить error-detective в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.mdexamples/common_errors.mdexamples/debugging_workflow.mdexamples/stack_traces.txtscripts/debug_helper.py

FAQ

Что делает скилл error-detective?

Systematic debugging and error resolution using the TRACE framework (Trace, Read, Analyze, Check, Execute). Use when debugging errors, analyzing stack traces, investigating failures, root cause analysis, or troubleshooting production issues.

Как установить скилл error-detective?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл error-detective запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить error-detective с