Install
openclaw skills install error-to-fixUse when (1) user pastes a programming error message, stack trace, or exception and asks what went wrong. (2) user says "this error means", "why is this broken", "what's the fix", or "how to resolve this error". (3) user pastes a bug description and asks for root cause analysis and solution.
openclaw skills install error-to-fixUse when (1) user pastes a programming error message, stack trace, or exception and asks what went wrong. (2) user says "this error means", "why is this broken", "what's the fix", or "how to resolve this error". (3) user pastes a bug description and asks for root cause analysis and solution.
This skill solves the specific problem of: an error message is cryptic — the user needs a plain-language explanation of what went wrong and how to fix it.
This skill IS NOT:
This skill IS activated ONLY when: an error message or stack trace + explanation/fix intent are both present.
/error-to-fixDefault mode. Analyzes the error and provides explanation, root cause, and fix suggestions.
When to use: User pastes an error and wants to understand and resolve it.
/error-to-fix/root-causeFocuses on the underlying system-level cause, not just the immediate symptom.
When to use: User wants deeper understanding beyond the surface-level fix.
/error-to-fix/preventSuggests patterns and practices to prevent this error from recurring.
When to use: User is in a review or learning context and wants to avoid the error long-term.
For each identified error type:
| Error Type | Common Root Cause | Quick Diagnostic |
|---|---|---|
| SyntaxError | Missing ), :, or } | Check line number and surrounding lines |
| ModuleNotFoundError | Typo in import, missing package | pip install / npm install |
| TypeError | Wrong type passed to function | Check the actual type vs. expected type |
| ReferenceError | Variable used before assignment | Check variable initialization |
| ConnectionError | Wrong URL, firewall, service down | Verify URL and network access |
| ImportError | Circular import, wrong path | Check __init__.py and import order |
| ValueError | Invalid argument value | Check the value against allowed range |
| KeyError | Missing dict key | Check if key exists before access |
Structure each response as:
A good output:
A bad output:
| Scenario | Bad Output | Good Output |
|---|---|---|
| Python TypeError | "Type error occurred" | "TypeError: list.append expects str, got int — add str() cast around the input" |
| Node ModuleNotFoundError | "Module is missing" | "ModuleNotFoundError: 'requests' not in requirements.txt — run pip install requests" |
| React undefined is not an object | "Something is undefined" | "The error means props.user.address is accessed before user is set. Add a guard: props.user?.address" |
| Connection refused | "Network is down" | "ECONNREFUSED: server at localhost:5432 is not accepting connections. Is PostgreSQL running?" |
references/ — Error type taxonomy, common stack trace patterns by language, quick-fix cheat sheet