troubleshooting

Solid

Systematic backend debugging — reproduce, isolate root cause, implement fix with regression test.

AI & Automation 15 stars 3 forks Updated today MIT

Install

View on GitHub

Quality Score: 86/100

Stars 20%
40
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Troubleshooting Skill > **Expertise:** Systematic debugging, log analysis, query profiling, memory/CPU profiling, regression tests. ## Debugging Framework (RRCA) ``` 1. REPRODUCE — make the bug happen reliably before touching code 2. REDUCE — find the smallest input that triggers the bug 3. CAUSE — identify the specific code line/condition responsible 4. ADDRESS — fix + regression test + verify fix doesn't reappear ``` Never fix what you can't reproduce. A guess-and-check fix is technical debt. ## Log Analysis Patterns ```bash # Find all errors in last hour (structured logs with jq) journalctl -u myapp --since "1 hour ago" | jq 'select(.level == "error")' # Count errors by type cat app.log | jq -r '.error_code' | sort | uniq -c | sort -rn | head -20 # Find slowest requests cat access.log | jq 'select(.duration > 1000)' | jq -r '[.method, .path, .duration] | @csv' # Trace a specific request by request_id grep "request_id=req_abc123" app.log # Find N+1 patterns: same query repeated many times in same request grep "request_id=req_abc123" app.log | grep "db.query" | wc -l # > 10 is suspicious ``` ## Database Query Debugging ```sql -- Show currently running queries (PostgreSQL) SELECT pid, now() - pg_stat_activity.query_start AS duration, query, state FROM pg_stat_activity WHERE state != 'idle' AND query_start < now() - interval '5 seconds' ORDER BY duration DESC; -- Kill a blocking query SELECT pg_terminate_backend(<pid>); -- Find slow queries from pg_st...

Details

Author
sawrus
Repository
sawrus/agent-guides
Created
3 months ago
Last Updated
today
Language
Shell
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

debug

Systematic debugging workflow for tracking down bugs and issues

10 Updated 6 days ago
jmylchreest
AI & Automation Listed

debugging-patterns

Isolate root causes through structured evidence gathering, pattern analysis, hypothesis testing (max 3 at a time, highest confidence first), and fix validation with a reproducing test before implementation. Use when any verification step fails, tests break, or debugging a reported bug. This skill MUST be consulted because symptom-fixing creates new bugs, and unbounded hypothesis testing causes tunnel vision; root cause must be proven before any fix attempt.

5 Updated 3 days ago
synaptiai
AI & Automation Listed

systematic-debugging

Use when a bug, failing test, incident, or unexpected behavior has unknown cause and scope is not yet frozen.

8 Updated today
funky-eyes
AI & Automation Featured

bug-hunter

Systematically finds and fixes bugs using proven debugging techniques. Traces from symptoms to root cause, implements fixes, and prevents regression.

39,350 Updated today
sickn33
AI & Automation Listed

ai-debug

Diagnoses broken behavior systematically with a 4-phase root-cause loop: test failures, runtime errors, crashes, regressions. Never patches symptoms. Trigger for 'it is not working', 'something broke', 'this used to work', 'I am getting an error', 'CI is failing', 'why is X happening'. Not for adding tests; use /ai-test instead. Not for security findings; use /ai-security instead.

49 Updated today
arcasilesgroup