log-triage
Skill0 starsChanged 54 days agoMITView on GitHub
Triage application logs and find the root cause fast. Parses multi-format logs (JSON lines, plain text, syslog, nginx, Python/Java stacktraces), rebuilds the event timeline, correlates error chains, detects repeating patterns, and produces an actionable root-cause report with severity and fix suggestions. Use when the user says: analyze these logs, what went wrong, find the error, root cause this, why did it crash, triage the logs, debug this failure, 日志分析, 报错排查, 找根因, 日志定位, 崩溃原因.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- MakiDevelop/claude-skillstheir own version, first seen Nov 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- MakiDevelop/claude-skills★ 3same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 46
Unknown: keep as raw with level=info.
- Very specific: line 50
Multi-line stacktraces or custom log formats: read references/parsing-recipes.md for regex patterns and format-specific guidance.
- Very specific: line 51
Correlating across services (distributed tracing): read references/correlation-patterns.md for request-id propagation, trace-id stitching, …
- Very specific: line 52
Writing the final report for different audiences: read references/report-templates.md for incident-postmortem vs.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.
Files
log-triage
Turn raw logs into a root-cause report. The agent never just greps — it parses, correlates, and ranks.
Workflow
- Collect — identify the log source: a file, directory, command output (
kubectl logs,docker logs,journalctl), or pasted text. If the user gives a directory, scan for*.log,*.jsonl, and files without extension modified recently. - Parse — run
scripts/parse_logs.py <path>to auto-detect the format and emit structured events. Supports JSON lines,LEVEL timestamp messageplain logs, syslog, nginx access/error, Python tracebacks, and Java stacktraces. Unknown lines are kept asrawevents, never dropped. - Triage — run
scripts/triage.py <parsed-json>to classify errors, rebuild the timeline, correlate error chains (same request-id / thread / 5-second window), detect repeating patterns, and rank root-cause hypotheses by confidence. - Report — present: most-likely root cause, impact (how many events / users / requests affected), a compact timeline of key events, and concrete next steps (fix, add monitoring, roll back).
Quick commands
# Parse a log file or directory (auto-detects format)
python scripts/parse_logs.py /var/log/app > events.json
# Triage parsed events and print a root-cause report
python scripts/triage.py events.json
# One-liner: parse and triage in one shot
python scripts/parse_logs.py app.log | python scripts/triage.py -What the report contains
- Root cause hypothesis — ranked by confidence (high/medium/low), with the evidence lines
- Severity — critical / error / warning / info, derived from event levels and impact
- Timeline — the 5–15 most significant events in chronological order
- Error chains — correlated events sharing a request-id, thread, or close timestamps
- Repeat offenders — errors that recur across the log window
- Next steps — concrete actions: fix the bug, roll back, scale up, add a circuit breaker, etc.
Parsing rules
- JSON lines: each line is one event; map
level/severity,timestamp/time,msg/message, and anyrequest_id/trace_id/threadfields. - Plain text: detect
LEVEL(DEBUG/INFO/WARN/ERROR/FATAL/CRITICAL) at line start; extract ISO-8601 or common timestamps; multi-line stacktraces are attached to the preceding event. - Nginx: parse
$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent; status ≥500 = error, 4xx = warning. - Syslog: parse
<priority>timestamp host process[pid]: message. - Unknown: keep as
rawwithlevel=info; the triage step still catches anomalies via pattern matching.
When to read references
- Multi-line stacktraces or custom log formats: read
references/parsing-recipes.mdfor regex patterns and format-specific guidance. - Correlating across services (distributed tracing): read
references/correlation-patterns.mdfor request-id propagation, trace-id stitching, and cross-service timeline merge. - Writing the final report for different audiences: read
references/report-templates.mdfor incident-postmortem vs. developer-debug vs. executive-summary formats.
Exit codes
parse_logs.py: 0 = parsed at least one event, 1 = no events found, 2 = file not foundtriage.py: 0 = report generated, 1 = no errors found (clean run), 2 = input invalid
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
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.

