log-analyzer SKILL.md skillA
log-analyzer from laolaoshiren/claude-code-skills-zh is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add laolaoshiren/claude-code-skills-zh/log-analyzer@git:20260415.28119e9Pins git:20260415.28119e9 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- laolaoshiren/claude-code-skills-zh
- Path
skills/log-analyzer/SKILL.md- Versions recorded
- 1
- Latest version
- git:20260415.28119e9, committed Apr 15, 2026
- Size
- 2,469 bytes
- Repository stars
- 869
- License
- MIT
日志分析助手 — 智能解析日志文件,识别异常模式,定位问题根因.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# 📋 log-analyzer — 日志分析助手 ## 触发条件 当用户要求以下操作时激活此技能: - 分析应用日志文件(.log, .txt, journalctl 输出等) - 排查线上问题和异常 - 从日志中提取统计信息 - 生成日志分析报告 ## 工作流程 ### 1. 日志格式识别 自动检测日志格式: - **结构化**: JSON logs, Logfmt - **常见格式**: Nginx/Apache access log, Spring Boot, Django, Rails - **系统日志**: syslog, journalctl, Windows Event Log - **自定义格式**: 根据正则提取字段 ### 2. 日志预处理 - 按时间范围过滤(如「最近 1 小时」「今天」) - 按日志级别筛选(ERROR, WARN, INFO, DEBUG) - 按来源/模块/服务过滤 - 去重和聚合相似错误 ### 3. 异常模式检测 - **错误聚类**: 将相似错误归为一组,避免重复分析 - **频率分析**: 识别高频错误和突发异常 - **时间关联**: 发现错误是否与特定事件(部署、流量高峰)相关 - **因果链追踪**: 从根因错误到最终表现 ### 4. 关键信息提取 - 错误堆栈分析(定位源码位置) - HTTP 状态码分布(4xx/5xx 比例) - 响应时间统计(P50/P95/P99) - 内存/CPU 异常指标 ### 5. 生成分析报告 ```markdown ## 📊 日志分析报告 ### 概览 - 时间范围: 2024-01-15 10:00 ~ 12:00 - 总日志量: 12,847 条 - 错误数: 234 (1.8%) - 警告数: 567 (4.4%) ### Top 5 异常 | 排名 | 错误类型 | 次数 | 首次出现 | 最近出现 | |------|---------|------|---------|---------| | 1 | NullPointerException | 89 | 10:15 | 11:42 | | 2 | ConnectionTimeout | 67 | 10:23 | 11:58 | ### 根因分析 最可能的原因:数据库连接池耗尽(线索:连续出现 ConnectionTimeout 后跟大量 NullPointerException) ### 建议 1. 检查数据库连接池配置(当前可能 maxActive 太小) 2. 排查是否存在连接泄漏 3. 添加连接池监控告警 ``` ## 支持的日志来源 - 文件系统日志(*.log) - Docker/Kubernetes 容器日志 - journalctl 系统日志 …
Read the whole file at its exact version.
How to install
mdr add laolaoshiren/claude-code-skills-zh/log-analyzer@sha256:edc38a3a85f91ab4The line at the top of this page pins the label git:20260415.28119e9, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_4nx53dplqutytdpc)
5 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Apr 15, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (2469 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
laolaoshiren/claude-code-skills-zh · 869 stars · license MIT · pushed 2026-09-22 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_4nx53dplqutytdpc GET https://markdownregistry.com/api/v1/resolve?ref=laolaoshiren/claude-code-skills-zh/log-analyzer GET https://markdownregistry.com/api/v1/blob/edc38a3a85f91ab4844d129e3ba10a6edc17a08423cfc4d39c51ac6c34838662
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from laolaoshiren/claude-code-skills-zh
Every file in laolaoshiren/claude-code-skills-zh