troubleshooting
FreeRuns bundled scriptsNot checkedSystematic debugging and problem diagnosis using structured troubleshooting methodologies applicable to any domain - technical issues, process failures…
by jkitchin★ 45 GitHub starsAbout this skill
Troubleshooting & Debugging Skill
Guide users through systematic problem diagnosis and resolution using structured methodologies applicable to any domain.
Quick Start Workflow
When a troubleshooting request arrives, follow this systematic approach:
- Understand - What's expected vs actual, when started, what changed
- Gather - Collect diagnostic information (logs, errors, environment, steps to reproduce)
- Hypothesize - List possible causes ranked by probability
- Design - Create tests that isolate variables
- Test - Execute systematically, document results
- Identify - Distinguish symptoms from root cause
- Verify - Confirm fix resolves the issue
- Document - Record solution for future reference
When to Use This Skill
Activate for requests involving:
- "Debug this..." / "Troubleshoot..."
- "Why isn't this working..." / "Getting an error..."
- "Something's wrong with..." / "How do I fix..."
- Any problem description or malfunction report
- Unexpected behavior or failures
- Performance issues or degradation
- Intermittent problems
Problem Understanding Phase
Essential First Questions
Before diving into solutions, gather critical context:
Problem Description:
- What are you trying to do? (expected behavior)
- What's actually happening? (actual behavior)
- What error messages or symptoms do you see?
- Can you reproduce it consistently?
Timeline:
- When did this start?
- Did it ever work correctly?
- What changed recently? (code, config, environment, data, dependencies)
Scope:
- Does this happen every time or intermittently?
- Does it happen for everyone or just some users?
- Does it happen in all environments or just specific ones?
Environment:
- What system/platform/version?
- What's the configuration?
- What are the dependencies and their versions?
Reproduction:
- What are the exact steps to reproduce?
- Can you provide a minimal example that demonstrates the issue?
- What's the simplest case that fails?
Problem Type Classification
Categorize to guide troubleshooting approach:
By Consistency:
- Consistent - Happens every time (easier to debug)
- Intermittent - Happens sometimes (harder, often timing/race conditions)
- Progressive - Gets worse over time (resource leaks, degradation)
By History:
- Regression - Worked before, broke recently (what changed?)
- Never worked - New feature/setup (design or setup issue)
By Scope:
- Universal - Happens everywhere (likely code/logic issue)
- Environmental - Happens in specific environment (config, dependencies, resources)
- User-specific - Happens for specific users (permissions, data, state)
By Domain:
- Code/Logic - Software bugs, algorithmic errors
- Configuration - Settings, parameters, environment variables
- Data - Input validation, corruption, format issues
- Infrastructure - Network, storage, resources, services
- Integration - API failures, service dependencies
- Human process - Workflow, communication, missing steps
Classification helps prioritize hypotheses and diagnostic approaches.
Diagnostic Information Gathering
Log and Error Analysis
Error Messages:
- Copy exact error text (don't paraphrase)
- Note error code/type if provided
- Identify stack trace or error location
- Look for nested/chained errors (root cause often deeper)
Log Examination:
- Check timestamps (when did issue occur)
- Look for ERROR, WARN, EXCEPTION entries near failure time
- Trace request/operation ID through logs
- Check for patterns (repeating errors, sequences)
- Review logs before failure (what was system doing)
System State:
- Resource usage (CPU, memory, disk, network)
- Process/service status
- Recent restarts or crashes
- System event logs
Environment Documentation
Capture complete environment picture:
Versions:
- Application/service version
- Runtime/interpreter version (Node, Python, Java, etc.)
- OS version
- Dependency versions (libraries, packages)
- Database/cache versions
Configuration:
- Config files and their values
- Environment variables
- Feature flags or toggles
- Settings that differ from defaults
Infrastructure:
- Network topology
- Service endpoints and connectivity
- Firewall/security rules
- Load balancers, proxies
- DNS configuration
Reproduction Case Development
Goal: Find minimal reproducible example (MRE)
Process:
- Document exact steps from clean state
- Strip away non-essential steps
- Minimize data/input to simplest case
- Remove dependencies where possible
- Verify it still reproduces
Good reproduction case:
- Anyone can follow steps and see same issue
- Minimal (fewest steps, smallest data)
- Self-contained (no external dependencies if possible)
- Deterministic (reproduces consistently)
See references/information-gathering.md for detailed techniques.
Hypothesis Generation
Forming Testable Hypotheses
Install troubleshooting 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
Allowed tools
Tools this skill is permitted to call.
*Bundled files
FAQ
What does the troubleshooting skill do?
Systematic debugging and problem diagnosis using structured troubleshooting methodologies applicable to any domain - technical issues, process failures, system problems, or general obstacles. Use when users report errors, describe malfunctions, encounter unexpected behavior, or need help diagnosing root causes. Triggers include 'debug this,' 'troubleshoot,' 'why isn't this working,' 'getting an error,' 'something's wrong with,' 'how do I fix,' or any problem description.
How do I install the troubleshooting 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 troubleshooting skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
by AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
by Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
by Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
by Anthropic