debug-error
Trace tool failures and Error messages systematically. Use when tools fail or the user pastes a stack trace.
by HenriGrimm★ 25 GitHub stars
Install debug-error in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Debug errors
When to use
- Tool result starts with
Error:or HTTP failure - User pastes stack trace, test failure, or "it doesn't work"
Steps
- Reproduce — identify the exact command, tool call, or user action.
- Read the full error — include stderr, status code, and tool name.
- Hypothesis — one sentence: most likely cause (path, permissions, missing dep, wrong args).
- Verify — use minimal read-only checks (
read_file,list_directory,get_file_metadata,git_status). - Fix — smallest change that addresses root cause; explain why.
- Confirm — re-run the same tool or test command.
Tool-loop patterns
- Path errors → check
resolveSafePath/ project root; use relative paths from repo root git_*failures → run from project root; check clean/staged stateexecute_commandtimeout → shorten command or increase scope clarity- Sub-agent errors → check
spawn_sub_agentargs and parent turn id
Output
- Root cause (factual)
- Fix applied or steps for the user
- How to avoid recurrence (one line)
Tools
read_file, execute_command, git_status, list_directory, search_in_file
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the debug-error skill do?
Trace tool failures and Error messages systematically. Use when tools fail or the user pastes a stack trace.
How do I install the debug-error skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the debug-error skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…