본문으로 건너뛰기
Skillpedia
일반 코딩33k · #8753

Error Resolver

하는 일

이 스킬은 AI 에이전트가 오류 메시지를 구조적으로 다루도록 돕습니다. 헷갈리는 충돌, 스택 트레이스, 예상치 못한 동작을 만난 누구에게나 유용합니다.

사용하는 경우

  • ✓오류 메시지나 스택 트레이스를 붙여 넣고 뜻을 알고 싶을 때.
  • ✓프로그램이 예상과 다르게 동작하고 원인이 분명하지 않을 때.
  • ✓같은 오류가 계속 되돌아와 근본적인 해결이 필요한 경우.

스킬 링크

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/error-resolver/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/error-resolver/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“저장을 클릭하면 앱이 'Cannot read properties of undefined'를 보여 줍니다. 원인을 찾도록 도와주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 오류를 분류하고 핵심 정보를 뽑아낸 뒤, 알려진 패턴과 대조해 가능성이 큰 근본 원인을 분석합니다. 그다음 수정안과 재발을 막는 방법을 제안합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Error Resolver

A first-principle approach to diagnosing and resolving errors across all languages and frameworks.

Core Philosophy

The 5-step Error Resolution Process:

1. CLASSIFY  ->  2. PARSE  ->  3. MATCH  ->  4. ANALYZE  ->  5. RESOLVE
     |              |             |             |              |
  What type?    Extract key    Known       Root cause      Fix +
               information    pattern?     analysis       Prevent

Quick Start

When you encounter an error:

  1. Paste the full error (including stack trace if available)
  2. Provide context (what were you trying to do?)
  3. Share relevant code (the file/function involved)

Error Classification Framework

Primary Categories

Category Indicators Common Causes
Syntax Parse error, Unexpected token Typos, missing brackets, invalid syntax
Type TypeError, type mismatch Wrong data type, null/undefined access
Reference ReferenceError, NameError Undefined variable, scope issues
Runtime RuntimeError, Exception Logic errors, invalid operations
Network ECONNREFUSED, timeout, 4xx/5xx Connection issues, wrong URL, server down
Permission EACCES, PermissionError File/directory access, sudo needed
Dependency ModuleNotFound, Cannot find module Missing package, version mismatch
Configuration Config error, env missing Wrong settings, missing env vars
Database Connection refused, query error DB down, wrong credentials, bad query
Memory OOM, heap out of memory Memory leak, large data processing

Secondary Attributes

  • Severity: Fatal / Error / Warning / Info
  • Scope: Build-time / Runtime / Test-time
  • Origin: User code / Framework / Third-party / System

Analysis Workflow

Step 1: Classify

Identify the error category by examining:

  • Error name/code (e.g., ENOENT, TypeError)
  • Error message keywords
  • Where it occurred (compile, runtime, test)

Step 2: Parse

Extract key information:

- Error code: [specific code if any]
- File path: [where the error originated]
- Line number: [exact line if available]
- Function/method: [context of the error]
- Variable/value: [what was involved]
- Stack trace depth: [how deep is the call stack]

Step 3: Match Patterns

Check against known error patterns:

  • See patterns/ directory for language-specific patterns
  • Match error signatures to known solutions
  • Check replay history for previous solutions

Step 4: Root Cause Analysis

Apply the 5 Whys technique:

Error: Cannot read property 'name' of undefined
  Why 1? -> user object is undefined
  Why 2? -> API call returned null
  Why 3? -> User ID doesn't exist in database
  Why 4? -> ID was from stale cache
  Why 5? -> Cache invalidation not implemented

Root Cause: Missing cache invalidation logic

Step 5: Resolve

Generate actionable solution:

  1. Immediate fix - Get it working now
  2. Proper fix - The right way to solve it
  3. Prevention - How to avoid in the future

Output Format

When resolving an error, provide:

## Error Diagnosis

**Classification**: [Category] / [Severity] / [Scope]

**Error Signature**:
- Code: [error code]
- Type: [error type]
- Location: [file:line]

## Root Cause

[Explanation of why this error occurred]

**Contributing Factors**:
1. [Factor 1]
2. [Factor 2]

## Solution

### Immediate Fix
[Quick steps to resolve]

### Code Change
[Specific code to add/modify]

### Verification
[How to verify the fix works]

## Prevention

[How to prevent this error in the future]

## Replay Tag

[Unique identifier for this solution - for future reference]

Replay System

The replay system records successful solutions for future reference.

Recording a Solution

After resolving an error, record it:

# Create solution record in project
mkdir -p .claude/error-solutions

# Solution file format: [error-type]-[hash].yaml

Solution Record Format

# .claude/error-solutions/[error-signature].yaml
id: "nodejs-module-not-found-express"
created: "2024-01-15T10:30:00Z"
updated: "2024-01-20T14:22:00Z"

error:
  type: "dependency"
  category: "ModuleNotFound"
  language: "nodejs"
  pattern: "Cannot find module 'express'"
  context: "npm project, missing dependency"

diagnosis:
  root_cause: "Package not installed or node_modules corrupted"
  factors:
    - "Missing npm instal
자주 묻는 질문

에이전트와 무엇을 공유해야 하나요?

전체 오류, 하려던 작업, 가능하다면 관련 코드를 공유하는 것이 좋습니다.

재생 기능은 무엇인가요?

스킬은 해결책을 기록해 비슷한 오류가 다시 나타나면 재사용할 수 있습니다.

모든 언어에 적용되나요?

네. 이 접근 방식은 모든 언어와 프레임워크를 위해 만들어졌습니다.

상세 정보

작성자의 원본 설명

Systematic error diagnosis and resolution using first-principle analysis. Use when encountering any error message, stack trace, or unexpected behavior. Supports replay functionality to record and reuse solutions.

repo: davila7/claude-code-templates

인기도

GitHub 스타
33k
순위
#8753
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬