Generate troubleshooting guide from common issues
✓Works with OpenClaudeYou are a technical documentation specialist. The user wants to generate a comprehensive troubleshooting guide by analyzing common issues, error patterns, and their solutions.
What to check first
- Review existing issue tracker (GitHub Issues, Jira, or similar) to gather actual reported problems
- Check application logs or error monitoring tools (Sentry, LogRocket, DataDog) for recurring error patterns
- Verify you have access to solution documentation, pull requests, or commit messages that fixed these issues
Steps
- Query your issue tracker with filters like
is:closed label:bugandis:closed label:resolvedto find historical problems - Extract the top 15–20 most frequently occurring issues by counting duplicates and related reports
- For each issue, identify the root cause category (configuration, dependency, environment, user error, etc.)
- Group similar issues under logical parent categories (e.g., "Installation & Setup", "Performance", "Authentication")
- For each grouped issue, write a symptom description (what the user observes), cause explanation, and step-by-step resolution
- Add a "Quick Diagnosis" section with command snippets or log patterns users can check themselves
- Include links to relevant documentation, GitHub discussions, or external resources for deeper dives
- Generate a table of contents with anchor links for easy navigation
- Add a feedback section at the end to encourage users to report new issues
Code
#!/usr/bin/env node
const fs = require('fs');
const path = require('path');
const issues = [
{
title: "Application fails to start with 'Module not found'",
category: "Installation & Setup",
symptoms: "Error: Cannot find module 'X' when running `npm start`",
causes: ["Dependencies not installed", "Node version mismatch", "Corrupted node_modules"],
resolution: [
"Run `npm install` to install all dependencies",
"Verify Node version matches requirement: `node --version` (check package.json engines field)",
"Clear cache: `npm cache clean --force`",
"Remove and reinstall: `rm -rf node_modules package-lock.json && npm install`"
],
diagnosis: "Run `npm ls` to check dependency tree; look for red warnings or missing packages",
relatedLinks: ["https://docs.npmjs.com/cli/v8/configuring-npm/package-json#engines"]
},
{
title: "API requests timeout or return 503 Service Unavailable",
category: "Performance & Connectivity",
symptoms: "Requests hang for 30+ seconds then fail; logs show ECONNREFUSED or timeout",
causes: ["Server overload", "Network connectivity issues", "Incorrect API endpoint URL", "Missing authentication"],
resolution: [
"Check server status: `curl -I https://api.example.com/health`",
"Verify endpoint URL in config: `grep -r 'API_URL' src/`",
"
Note: this example was truncated in the source. See the GitHub repo for the latest full version.
Common Pitfalls
- Treating this skill as a one-shot solution — most workflows need iteration and verification
- Skipping the verification steps — you don't know it worked until you measure
- Applying this skill without understanding the underlying problem — read the related docs first
When NOT to Use This Skill
- When a simpler manual approach would take less than 10 minutes
- On critical production systems without testing in staging first
- When you don't have permission or authorization to make these changes
How to Verify It Worked
- Run the verification steps documented above
- Compare the output against your expected baseline
- Check logs for any warnings or errors — silent failures are the worst kind
Production Considerations
- Test in staging before deploying to production
- Have a rollback plan — every change should be reversible
- Monitor the affected systems for at least 24 hours after the change
Related Documentation Skills
Other Claude Code skills in the same category — free to download.
README Generator
Generate comprehensive README.md
API Docs Generator
Generate API documentation
JSDoc Generator
Add JSDoc comments to functions and classes
Architecture Doc
Generate architecture documentation with diagrams
Contributing Guide
Create CONTRIBUTING.md with guidelines
Code of Conduct
Generate CODE_OF_CONDUCT.md
License Picker
Choose and add appropriate LICENSE file
Env Example
Generate .env.example from existing .env files
Want a Documentation skill personalized to YOUR project?
This is a generic skill that works for everyone. Our AI can generate one tailored to your exact tech stack, naming conventions, folder structure, and coding patterns — with 3x more detail.