# Log Triage

> Count log lines per level with the bundled script and write a triage report

- Skill: `emadmokhtar/log-triage` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx skillmds@latest add emadmokhtar/log-triage`
- Raw SKILL.md: https://api.skillmd.com/api/skills/emadmokhtar/log-triage/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: EmadMokhtar (https://skillmd.com/u/emadmokhtar)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/emadmokhtar/log-triage

---


# log-triage

When asked to triage a log file:

1. Run `scripts/count_levels.py` with `run_script`, passing the log file's name as its
   one argument. It prints one `LEVEL: count` line per level, sorted by level name.
   Do not count the lines yourself; the script is the source of truth.
2. Read `references/report-format.md` with `read_skill_file` and follow it exactly.
3. Write `triage.md` with `write_file`.

Never report a level the script did not print.

