log-analysis

Installation
SKILL.md

log-analysis Skill

Goal

This skill helps agents and engineers interpret logging data to find root causes of issues.

Steps

1. Structured Logging (The Prerequisite)

  • Format: JSON. Always.
  • Why: Allows querying level="ERROR" AND service="user-api". Text logs require fragile regex.
  • Context: Every log must have trace_id, user_id, and environment.

2. Analysis Workflow

  1. Scope the Timeframe: "Last 15 minutes" or "Since deployment at 14:00".
  2. Filter by Level: Start with ERROR and FATAL. Ignore INFO initially.
  3. Group by Message:
    • Bad: Reading 1000 lines of Connection timeout.
    • Good: "Count of errors by message type: Timeout (800), Auth Fail (200)".
  4. Trace Correlation: take one trace_id from an error and filter ALL logs (inc INFO) for that ID to see the sequence of events leading to failure.
Installs
1
GitHub Stars
23
First Seen
Oct 14, 2026