parklan2046/clawproject/error-triage

Claude Code and agent skill by parklan2046/clawproject

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Parse stack traces and error logs to identify root cause, find related code, and suggest fixes with severity classification

Install

npx vskill@latest install parklan2046/clawproject/error-triage

SKILL.md

The same SKILL.md was published earlier as weisser-dev/awesome-opencode/error-triage.

What I do

  • Parse stack traces, error logs, and exception output
  • Identify the root cause and distinguish it from symptoms
  • Locate the relevant source code files and lines
  • Classify severity and assess blast radius
  • Suggest concrete fixes with code examples

When to use me

Use this skill when you need to:

  • Debug a stack trace or error message from production or development
  • Triage an error report from a monitoring system
  • Understand why a specific exception is being thrown
  • Get a quick diagnosis and fix suggestion for a failing test or build

Process

  1. Parse the error: Extract structured information
  • Error type/class (e.g., NullPointerException, TypeError, ConnectionRefused)
  • Error message text
  • Stack trace frames (file, line number, function name)
  • Originating frame vs. propagation frames
  • Relevant context (request URL, input data, environment)
  1. Identify the root frame: Find where the error originates
  • Filter out framework and library frames
  • Focus on application code in the stack trace
  • Identify the first application frame where the error was thrown
  1. Read the source code: Examine the relevant code
  • Read the file and function where the error originates
  • Check for obvious issues (null access, type mismatch, missing config)
  • Look at recent changes to the file (git log -5 <file>)
  1. Classify the error: Determine type and severity
  1. Diagnose root cause: Explain why the error occurs
  • What condition triggers it?
  • Is it a code bug, configuration issue, or environment problem?
  • Can it be reproduced reliably?
  1. Suggest fix: Provide a concrete remediation

Error Classification

By Severity
SeverityCriteriaResponse
CriticalData loss, security breach, full outageImmediate fix required
HighFeature broken for all users, degraded performanceFix within hours
MediumFeature broken for some users, workaround existsFix within days
LowCosmetic, non-blocking, edge caseFix in next sprint
By Category
CategoryExamplesTypical Cause
Null/UndefinedNPE, TypeError: undefinedMissing null check, uninitialized variable
Type MismatchClassCastException, TypeErrorWrong type passed, serialization issue
ConnectionConnectionRefused, TimeoutService down, wrong config, network
Authentication401, 403, InvalidTokenExpired token, wrong credentials, permissions
Validation400, ValidationErrorInvalid input, schema mismatch
ResourceOOM, disk full, file not foundResource exhaustion, missing file
ConcurrencyDeadlock, race conditionShared state, missing synchronization
ConfigurationMissing env var, invalid configMissing or incorrect configuration

Diagnosis Output Format

markdown
## Error Diagnosis
**Error:** `TypeError: Cannot read property 'id' of undefined`
**File:** `src/services/user-service.ts:47`
**Severity:** High
**Category:** Null/Undefined
### Root Cause
The `getUser()` function returns `undefined` when the user is not found in the
database, but the caller at line 47 accesses `.id` without a null check.
### Stack Trace Analysis
| # | Location | Notes |
|---|----------|-------|
| 1 | `src/services/user-service.ts:47` | **Root frame** - `.id` access on undefined |
| 2 | `src/handlers/order.ts:23` | Caller that passes userId |
| 3 | `src/routes/api.ts:15` | Route handler |
### Suggested Fix
\`\`\`typescript
// Before
const userName = getUser(userId).id;
// After
const user = getUser(userId);
if (!user) {
throw new NotFoundError(`User ${userId} not found`);
}
const userName = user.id;
\`\`\`
### Related Considerations
-Check if other callers of `getUser()` have the same issue
-Consider making `getUser()` throw instead of returning undefined
-Add a test case for the "user not found" scenario

Common Patterns

JavaScript/TypeScript
  • Cannot read property 'x' of undefined -> null check missing
  • is not a function -> wrong import, wrong type, or typo
  • ECONNREFUSED -> target service not running
Java
  • NullPointerException -> null check missing, use Optional
  • ClassNotFoundException -> missing dependency or classpath issue
  • OutOfMemoryError -> memory leak or undersized heap
Python
  • AttributeError: 'NoneType' -> null check missing
  • ImportError -> missing package or circular import
  • KeyError -> missing dict key, use .get() with default

Rules

  • Always read the actual source code before diagnosing; do not guess
  • Distinguish between the root cause and downstream symptoms
  • Check recent git history for the file to see if a recent change caused it
  • Suggest defensive fixes (null checks, validation) even if the upstream bug is also fixed
  • If the error is environment-specific, note the environment details
  • Provide a test case suggestion that would catch the bug

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/parklan2046/clawproject/error-triage/badge)](https://verified-skill.com/skills/parklan2046/clawproject/error-triage)

Something wrong with this skill or its page? Tell us.