/debugging-diagnostics:log-driven-diagnosisfrom debugging-diagnostics
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.
Ships in debugging-diagnostics. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole 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.
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.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub yeaight7/agent-powerups --plugin debugging-diagnostics8 skills in this plugin
/bug-huntUse when reproducing, isolating, and fixing a bug with the smallest safe change./failure-triageUse when confronted with an unknown failure in CI or production, before committing to a deep debugging approach./flaky-test-investigationUse when tests pass and fail intermittently without code changes, or a test passes alone but fails in the full suite.Other plugins' skills for the same job