log-triage

log-triage is a skill for Claude Code, Codex from AnEntrypoint/freddie. It costs 21 tokens per session (659 once invoked), scanned A, original, MIT.

A guide for examining application and system logs to find errors, unusual patterns, and likely root causes. Logs are records of events produced by software, servers, or containers.

In plain words
What is it for?
Use it with plain-text logs, JSONL, system logs, web-server logs, or Kubernetes logs to group errors, follow request or trace IDs, count recurring failures, and identify causes.
Why use it?
It helps turn noisy log files into a focused timeline, error summary, and explanation of what likely failed first.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/anentrypoint/freddie/log-triage
Any agent
npx skills add AnEntrypoint/freddie --skill log-triage
Clone the repo
git clone --depth 1 https://github.com/AnEntrypoint/freddie

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for log-triage

README.md
[![agentmods](https://agentmods.dev/badge/skills/anentrypoint/freddie/log-triage.svg)](https://agentmods.dev/skills/anentrypoint/freddie/log-triage)
Your own site
<a href="https://agentmods.dev/skills/anentrypoint/freddie/log-triage"><img src="https://agentmods.dev/badge/skills/anentrypoint/freddie/log-triage.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 659 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00021 $0.00659
Opus 5 $0.00010 $0.00329
Sonnet 5 $0.00004 $0.00132
Haiku 4.5 $0.00002 $0.00066

Measured 5d ago against content hash 243b19751898, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

log-triage scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ops/log-triage/SKILL.md · 80 lines

How it starts

The opening of the file, as written. The whole thing — 80 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Log Triage

Given logs, structured JSONL, or excerpts — identify errors, anomalies, and root causes quickly.

What you do

  1. Parse — identify format (plain text, JSON, syslog, nginx, k8s).
  2. Classify — group by level (ERROR/WARN/INFO) and origin (service, host, pod).
  3. Correlate — link errors by request ID, trace ID, or timestamp.
  4. Identify root cause — find the first error in the causal chain.
  5. Summarise — triage report with counts, timeline, top errors.

Triage process

Step 1 — Extract errors

# JSON logs
jq 'select(.level == "error" or .level == "fatal")' app.log | jq -c '{ts, msg, service, err}'
# Plain text
grep -E 'ERROR|FATAL|panic|exception' app.log | sort | uniq -c | sort -rn | head -20

Step 2 — Find the first error (usually root cause)

grep -m1 -E 'ERROR|FATAL' app.log

Step 3 — Correlate by request/trace ID

grep '"trace_id":"abc123"' *.log | sort -k1

Step 4 — Count error frequency

jq -r 'select(.level=="error") | .msg' app.log | sort | uniq -c | sort -rn

Common patterns

Error pattern Likely cause
connection refused on DB port DB down or pool exhausted
timeout on upstream Upstream slow or dead; check circuit breaker
OOM killed in k8s Memory limit too low or memory leak
too many open files File descriptor limit; check ulimit -n
certificate has expired TLS cert needs renewal
ECONNRESET in Node.js Client disconnected; benign unless spike
deadlock detected in Postgres Competing transactions; check slow query log

Triage report format

LOG TRIAGE REPORT — <date>
Source: <file or service>
Time range: <start> → <end>

SUMMARY
  Total lines: N | ERROR: N | WARN: N | INFO: N

TOP ERRORS
  1. [N×] "message" — first seen <ts>
  2. [N×] "message" — first seen <ts>

ROOT CAUSE HYPOTHESIS
  First error at <ts>: "<message>"
  Caused by: <analysis>
  Likely trigger: <deploy/traffic/dependency>

RECOMMENDED ACTIONS
  1. ...

Read the full file on GitHub · 80 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 80 lines · 21 tokens per session scan A 243b19751898

Subscribe to this mod's changes

log-triage is a skill published in the GitHub repository AnEntrypoint/freddie (0 stars, last pushed yesterday), licensed MIT. It adds 21 tokens to every session and 659 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.