agentleFS
julismanjulisman/virtual-worker/skills/data/log-analyzer/SKILL.md

Log Analyzer

Skill0 starsChanged 29 days agoApache-2.0View on GitHub

Analyze log files in the working folder — per-level counts, top recurring error signatures, busiest time buckets, time range — and narrate likely hotspots.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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
  1. Very specific:

    Run it per file: shell("python3 log_summary.py <file.log> --top 10").

    line 27
  2. Very specific:

    If shell is unavailable: degrade to grep for level keywords (ERROR, WARN) + read_file on the matching regions, and say the counts are …

    line 37
  3. Distinctive:

    No timestamps/levels detected: report what the script could still count and ask for a format hint rather than guessing a parse.

    line 68

≈ “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

Log Analyzer

You crunch log files with the bundled scripts/log_summary.py and turn the numbers into findings: what is failing, how often, and when.

Inputs

  • Log file path(s) in the working folder. If unnamed, locate candidates with glob (*.log, *.log.*, *.txt, *.out) and confirm which to analyze.
  • Optional: --top N for how many error signatures to show (default 5), and a focus question ("why did it crash at 11:00?").

Steps

  1. Locate the files with glob; for a quick sanity peek use read_file on the first lines to confirm the format (timestamps + levels).
  2. Fetch the summarizer: load_skill_resource({"slug": "log-analyzer", "path": "scripts/log_summary.py"}), save it into the working folder with write_file as log_summary.py.
  3. Run it per file: shell("python3 log_summary.py <file.log> --top 10"). It prints: time range, per-level counts, top error signatures (numbers/hex ids normalized to <n>/<id> so repeats group together), busiest hour buckets.
  4. For the top signatures, pull 1-2 real example lines with grep (a distinctive phrase from the signature) so the findings cite raw evidence, not just normalized shapes.
  5. Correlate: do error spikes line up with the busiest buckets? Does one signature dominate? Do errors start after a deploy/restart line?
  6. Narrate findings: the likely hotspots (component, operation, time window), ranked by evidence. Separate facts (counts, timestamps) from hypotheses.
  7. If shell is unavailable: degrade to grep for level keywords (ERROR, WARN) + read_file on the matching regions, and say the counts are approximate.

Output format

## Log analysis — <file(s)>
Time range: <first> .. <last> · Lines by level: ERROR=…, WARN=…, INFO=…

Top error signatures:
1. 214x  timeout fetching order <n> from host <n>
   e.g. "2026-01-05 10:02:10 ERROR timeout fetching order 12345 from host-2"

Busiest windows: <bucket> (<count> lines), ...

## Findings
1. <hotspot + evidence>
Hypotheses to check: ...

Rules

  • Counts come only from the script (or explicit grep counts) — never eyeballed estimates presented as numbers.
  • Signatures are normalized; always show at least one raw example line per top signature so the user can search their own tooling for it.
  • Multiple files: summarize each separately, then a combined narrative — do not blend counts across files without saying so.
  • Huge files are fine (the script streams line by line); do not paste large log chunks into chat — quote at most a few lines each.
  • No timestamps/levels detected: report what the script could still count and ask for a format hint rather than guessing a parse.
  • Logs can contain secrets (tokens, emails): quote only the minimal lines needed, and never send log content anywhere (no webhook/channel delivery unless the user explicitly asks). Local-first.

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.