AGENT SKILL

日志文件错误分析

logs

读取日志文件并汇总错误、错误的首次出现及其可能原因。当用户询问日志中出了什么问题,或运行 /troubleshoot:logs 时使用。

适用职业SRE 工程师
License 许可
Unlicense
最近更新
2026-11-15
Stars
★ 21
Forks
9

01 前言 Front Matter

name
logs
description
Read log files and summarize errors, their first occurrence and their likely cause. Use when the user asks what is wrong in the logs, or runs /troubleshoot:logs.

02 资源文件 3

03 SKILL.md 正文

Logs

Read the logs given in the arguments: $ARGUMENTS. When no path is given, look for *.log files and logs/ folders in the current project.

  1. Group lines by level and keep only WARN, ERROR and FATAL.
  2. Collapse repeated messages into one entry with a count.
  3. For each distinct error, find its first occurrence and the lines just before it.
  4. Name the likely cause in one sentence.

Report a table with the error, the count, the first timestamp and the likely cause, ordered by first occurrence.

04 同仓库更多 Skills