log-parser
它能做什么
这项技能读取应用日志文件,提取其中的错误和警告,并附上时间戳。适合调查崩溃或请求变慢问题的开发者和支持团队。
适用场景
- ✓当你的应用在崩溃,需要在日志中查找错误时。
- ✓当你想扫描日志文件中的警告或异常时。
- ✓当你在调查服务器日志中请求变慢的问题的时候。
技能链接
https://github.com/agentscope-ai/agentscope-java/blob/main/agentscope-core/src/test/resources/e2e-skills/log-parser/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我的应用一直在崩溃。请扫描 app.log 中的所有错误和警告,并附上时间戳,然后告诉我最常见的是哪一个。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能对日志文件运行附带的脚本。脚本会找出 ERROR 和 WARN 行,记录它们的时间戳,并保存一份你可以查看的结构化摘要。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Log Parser Skill
Parses application log files to extract errors, warnings, and patterns.
Available Scripts
scripts/extract_errors.py— Scan a log file and extract all ERROR/WARN lines with timestamps into a structured summary
Usage
python3 scripts/extract_errors.py --input app.log --output errors.json
python3 scripts/extract_errors.py --input app.log --level ERROR
常见问题
它查找什么?
它提取带有时间戳的 ERROR 和 WARN 行。
我可以按级别筛选吗?
可以。你可以只筛选某个特定级别,例如只看 ERROR。
它会修改日志文件吗?
不会。它只读取文件,并另外写出一份摘要。
详情
作者的原始描述
Use this skill when the task involves inspecting, searching, or extracting information from application log files. Suitable for tasks like "my application is crashing and I need to find the errors", "scan these logs for warnings", "extract all exceptions from this log file", or "find slow requests in my server logs". Triggered by debugging, incident investigation, or log analysis needs.
热度
- GitHub 星标
- 6.2k
- 排名
- #14385
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agentscope-java
6.2k帮你的智能体用 Java 编写非阻塞的 AgentScope 代码,AgentScope 是基于 Project Reactor 的多智能体框架。
data-report
6.2k帮你的智能体把数据集汇总成报告,包括平均值、总数、范围和趋势,并保存为 Markdown 文件。
data-transform
6.2k帮你的智能体在 CSV 和 JSON 等格式之间转换数据文件,使数据可以在其他工具中使用。
git-changelog
6.2k帮你的智能体根据 Git 历史编写变更日志或发布说明,并按新功能、修复和其他改动分组。