agentleFS
AaqibhafeezkhanAaqibhafeezkhan/skillself/skills/log-triage/SKILL.md

log-triage

Skill0 starsChanged 5 days agoMITView on GitHub

The skill groups error logs by normalized stack trace, ranks repeated failures and identifies the first failing component; use it when asking to triage logs, compare exceptions or find a likely root cause.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 8 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Use this skill when asked to triage application logs, group similar exceptions, summarize an error dump, compare stack traces or identify a …

    line 13
  2. Distinctive:

    Read the supplied log file and preserve original line numbers.

    line 25
  3. Very specific:

    Run python3 skills/log-triage/scripts/group_traces.py application.log and capture stdout and exit code.

    line 27
  4. Very specific:

    Start with First failing component: component name or unknown.

    line 37
  5. Distinctive:

    If no stack trace exists, report that no groups were detected.

    line 42
  6. Distinctive:

    If a trace is cut off, mark it truncated and do not invent frames.

    line 43
  7. Distinctive:

    Keep different exception types separate even if their framework frames match.

    line 45
  8. Distinctive:

    Do not print tokens or secret-bearing log values.

    line 50
  9. Distinctive:

    Do not treat the most frequent exception as proven root cause.

    line 51
  10. Distinctive:

    Do not merge traces solely because they share the last framework frame.

    line 52

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Purpose

Group repeated log failures by normalized stack trace, rank frequent patterns and identify the first failing component.

When to use

Use this skill when asked to triage application logs, group similar exceptions, summarize an error dump, compare stack traces or identify a likely first failure.

Inputs needed

  • A log file path or complete log text.
  • The service and runtime when known.
  • The incident time window when the file contains unrelated events.

Step-by-step procedure

  1. Read the supplied log file and preserve original line numbers.
  2. Normalize UUIDs, numeric identifiers, hexadecimal addresses and timestamps while preserving exception names and frame order.
  3. Run python3 skills/log-triage/scripts/group_traces.py application.log and capture stdout and exit code.
  4. Group stack traces using the script's normalized form; preserve the first source line for each group.
  5. Inspect the highest-frequency traces and identify the first application-owned component in each causal chain.
  6. Correlate timestamps and surrounding messages without merging distinct failures merely because they share a generic framework frame.
  7. Rank probable root causes using frequency, temporal onset, component ownership and causal evidence.
  8. Return the normalized groups and identify uncertainty where logs do not prove the cause.

Exact output format

Start with First failing component: component name or unknown. Then provide a table with columns rank, count, first line, normalized trace, probable cause. Sort by descending count, then ascending first line. Finish with Evidence limits in one sentence.

Edge cases

  • If no stack trace exists, report that no groups were detected.
  • If a trace is cut off, mark it truncated and do not invent frames.
  • Normalize UUIDs, numeric identifiers, hexadecimal addresses and timestamps while preserving exception names and frame order.
  • Keep different exception types separate even if their framework frames match.

Do not

  • Do not print tokens or secret-bearing log values.
  • Do not treat the most frequent exception as proven root cause.
  • Do not merge traces solely because they share the last framework frame.

Worked example summary

Repeated OrderNotFound and ConnectionTimeout traces are grouped despite different order IDs and timestamps. The timeout appears first in the sequence and originates in the inventory client, which becomes the leading root-cause candidate.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.