log-analysis

Analyzes trace-based server logs and generates Markdown diagnostic reports with grep follow-up commands.

5|1|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/winhok/testkit --skill log-analysis-winhok
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: log-analysis
Source: https://github.com/winhok/testkit/tree/main/skills/log-analysis
Command: npx skills add https://github.com/winhok/testkit --skill log-analysis-winhok

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

将一段混杂的服务器端日志拆解为可读的链路视图,快速还原请求/任务的完整生命周期,识别异常与性能瓶颈,并产出结构化的 Markdown 分析报告,同时提供 grep 深挖命令帮助继续排查。

Core Features & Use Cases

  • 自动识别日志格式并提取时间戳、线程名、日志级别、traceId 等关键字段,便于跨服务追踪。
  • 将日志按 traceId/线程拆分成独立链路,构建清晰的请求全生命周期视图。
  • 支持聚焦模式、快速概览模式与深度诊断模式,按用户需求产出不同粒度的分析报告。
  • 产出 Markdown 报告,包括证据链、链路总览、相关链路详情,以及可直接执行的排查命令(grep 等)。

Quick Start

粘贴日志文本或提供日志文件路径,即可开始分析。

Frequently Asked Questions about log-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze server logs to trace issues across microservices?

Server log analysis for microservices is done by extracting timestamps, thread names, and traceIds to segment mixed formats into trace chains, generating a Markdown diagnostic report with evidence and grep follow-up commands.

Can I use this to diagnose Java Spring application logs?

Yes, diagnosing Java Spring application logs is supported. The Skill parses mixed Java/Spring log formats, detects patterns, and generates focused or deep diagnostic reports with actionable grep commands.

What is the best way to extract traceId chains from mixed log formats?

Extracting traceId chains from mixed log formats is handled automatically by splitting logs into independent chains based on traceId and thread name, building a clear request lifecycle view in a Markdown report.

How do I generate a Markdown report from raw server logs?

To generate a Markdown report from raw server logs, paste the log text or provide a file path. The Skill extracts key fields and outputs a structured report containing evidence chains, trace overviews, and diagnostic details.

Does log analysis work with batch task logs or only microservice traces?

Log analysis works with both batch task logs and microservice traces. It processes mixed log formats from batch tasks and microservices, segmenting them by traceId or thread to diagnose issues across various log chains.

What grep commands should I use to follow up on log diagnostic reports?

The grep commands to use for log diagnostics are suggested by the Skill itself. It generates tailored, executable grep-based follow-up commands based on identified patterns and traceIds within the Markdown report.