Skip to content
Back to skills

Log Driven Diagnosis

ASecurity

Use when debugging complex runtime failures, distributed systems, or issues where a local debugger cannot be attached.

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 29, 2026
ai-agentsdebugging

Security analysis

A100/100

Scanned May 29, 2026

npx -y skills add yeaight7/agent-powerups --skill log-driven-diagnosis --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Log Driven Diagnosis?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Log Driven Diagnosis
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yeaight7-log-driven-diagnosis/badge)](https://www.skillsdirectory.com/skills/yeaight7-log-driven-diagnosis)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: log-driven-diagnosis
description: "Use when debugging complex runtime failures, distributed systems, or issues where a local debugger cannot be attached."
---

# Log-Driven Diagnosis

When you cannot step through code, logs are your only visibility. You must be methodical in how you extract signals from noise.

## Protocol

1. **Time-Bound Search**: Never dump the whole log file. Always `grep` for timestamps around the reported incident, or use tail.
2. **Identify the Request ID**: If the system uses distributed tracing or request IDs, find the ID associated with the error, then `grep` the entire log corpus for *only* that ID to trace the complete lifecycle of the failed request.
3. **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).
4. **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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…