Buddy Self-Evolving Log Analyzer
Paste the following prompt into your AI chat to install this skill:
Please install @user_00c9b356/buddy-log-analyzer according to https://skillhub.cn/install/skillhub.md.
About this skill
Problem
Production log triage often gets stuck on two issues: ERROR, WARN, stack traces, and timeout messages are mixed together, making it hard to judge severity; and keyword search alone does not provide a structured view of P0/P1 events, historical trends, or alerting actions. This skill separates log analysis into two layers: deterministic rules first, optional AI reasoning second.
How it works
The workflow is rule-first and AI-enhanced:
- Severity classification: It identifies severe issues by P0/P1 rules, including ERROR/CRITICAL/FATAL, OOM, connection refused, HTTP 4xx/5xx, Traceback, WARN/WARNING, timeout, Slow query, retries, and deprecated warnings.
- Optional AI reasoning: After rule hits, an LLM can add context and root-cause interpretation. AI can be disabled to use the rule engine only, or a model can be specified.
- Flexible analysis modes: It supports basic analysis, inspecting the last N lines, keyword filtering, multiple output formats, real-time monitoring similar to tail -f, alert report generation, webhook alerts, and batch analysis across directories.
- Self-evolving memory: Historical analysis records are retained to help surface recurring errors, slow queries, or degradation patterns.
Security handling is also explicit: relative paths are constrained to the current working directory, symbolic links are rejected, webhooks block internal addresses to reduce SSRF risk, HTML output is escaped to reduce XSS risk, and alert files are written atomically for multi-process safety.
Use Cases
- Surge in 5xx errors in production: quickly filter P0 issues from mixed logs and identify the root cause
- Batch-inspect logs across multiple service directories, filter timeouts and slow queries by keyword, and generate alert reports
- Monitor application logs in real time during CI runs; push alerts via Webhook when ERROR rules are triggered
- Review historical log trends using self-evolving memory to spot recurring OOM or connection-refused patterns
Best For
- SREs responsible for production stability who need to triage errors and push alerts during incidents
- Backend engineers managing multiple microservices who need to batch-inspect logs and filter timeouts and slow queries
- Platform engineers building CI/CD pipelines who need real-time log monitoring and Webhook-triggered alerts during builds
- Ops engineers focused on security compliance who need to verify SSRF and XSS protections in log analysis tooling
Related Skills
Detects AI-generated images from Stable Diffusion, Midjourney, and GPT-4o via Tencent Cloud image moderation and returns risk scores.
Comprehensive network engineering skill covering fault troubleshooting, technical consulting, and architecture design across routing and switching, wireless, security, cloud computing, and optical transport.
A Windows-only read-only storage scanner that finds large directories, grades risks, and opens an interactive local HTML report with one-click cleanup for safe green items.
Provides 9 application modules based on GB/T 33000-2025 and DuPont safety methodologies for diagnosing, standardizing, and building culture in enterprise safety management systems.