日志文件错误分析
logs
读取日志文件并汇总错误、错误的首次出现及其可能原因。当用户询问日志中出了什么问题,或运行 /troubleshoot:logs 时使用。
- 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
- 参考文档references/errors.md901 B
- 参考文档references/examples.md67 B
- 参考文档references/implementation.md1.4 KB
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.
- Group lines by level and keep only WARN, ERROR and FATAL.
- Collapse repeated messages into one entry with a count.
- For each distinct error, find its first occurrence and the lines just before it.
- 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
word-count
Counts the words, lines and characters of a text or a file.
slugify
Turns a title or a sentence into a URL slug, lowercase words joined by hyphens with accents removed.
json-format
Validates a JSON file and pretty prints it with two space indentation, or reports where the JSON is invalid.
commit-message
Writes a conventional commit message for the staged git changes.
skills-gateway
Gateway and router to a catalog of skills that are not registered directly. Use it before any task a specialized skill could handle, such as text, JSON or git chores. It finds the right skill and loads its instructions.
decision-log
Record, list, show and supersede architecture decisions that persist across sessions in the shared agent infra state store. Use when the user says "record this decision", "log an ADR", "what did we decide about", "list decisions", or "supersede decision".