Methodically extracts root causes from log files using time-bounded searches, request IDs, and preceding-warning analysis. For runtime failures where a debugger cannot be attached.
How this skill is triggered — by the user, by Claude, or both
Slash command
/debugging-diagnostics:log-driven-diagnosisThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
When you cannot step through code, logs are your only visibility. Be methodical about extracting signal from noise — never dump whole log files into context.
When you cannot step through code, logs are your only visibility. Be methodical about extracting signal from noise — never dump whole log files into context.
Time-bound the search. Never dump the whole log file — always grep for timestamps around the reported incident, or use tail:
tail -n 200 app.log # most recent context
grep -n "2026-06-06T14:0" app.log # window around the incident
awk '/14:02:00/,/14:05:00/' app.log # bounded slice between timestamps
Identify the request ID. If the system uses distributed tracing or request IDs, find the ID associated with the error, then search the log corpus for only that ID to trace the complete lifecycle of the failed request:
grep -n "ERROR" app.log | head -5 # find the failing entry and its ID
grep -n "<request-id>" app.log # full lifecycle of that request
# structured (JSON) logs:
jq -c 'select(.request_id == "<request-id>")' app.log.json
Look for preceding warnings. The ERROR log is usually just the final crash. The actual root cause is often a WARNING or unexpected INFO log that occurred milliseconds earlier (e.g., a connection retry failing, or an empty array being returned):
grep -n -B 20 "<error-text>" app.log | grep -inE "warn|retry|timeout|empty"
Add missing logs. If the logs do not provide enough visibility, your first action must be to add temporary logging to the application, reproduce the bug, and gather the new signals. Do not guess blindly if the logs are insufficient.
npx claudepluginhub yeaight7/agent-powerups --plugin debugging-diagnosticsGuides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.
Dispatches multiple subagents concurrently for independent tasks without shared state. Use when facing 2+ unrelated failures or subsystems that can be investigated in parallel.