Log Analyzer logo

Log Analyzer

Community
lxyeternal
Log Analyzer

智能日志分析工具,帮助快速定位应用错误和性能瓶颈

Overview

Publisherlxyeternal
RepositoryMalSkillBench
Skill nameLog Analyzer
Stars
64
Forks
14
Bundled files
1
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by lxyeternal on GitHub. Read the source before you install it.

Installation

Install the Log Analyzer AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/lxyeternal/MalSkillBench/tree/main/Baselines/skillsecurity/skill-security-scan/tests/skills/valid_skills/log-analyzer
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/lxyeternal/MalSkillBench.git /tmp/MalSkillBench
mkdir -p .claude/skills
cp -r /tmp/MalSkillBench/Baselines/skillsecurity/skill-security-scan/tests/skills/valid_skills/log-analyzer .claude/skills/lxyeternal-log-analyzer
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Log Analyzer in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Log Analyzer on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Log Analyzer is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Log Analyzer - 日志分析工具

功能描述

这是一个安全可靠的日志分析 Skill,用于帮助开发者快速分析和理解应用日志文件。

主要功能

  1. 错误识别 - 自动识别日志中的错误和异常
  2. 性能分析 - 检测慢查询和性能瓶颈
  3. 统计报告 - 生成错误统计和趋势分析
  4. 模式匹配 - 根据自定义规则搜索日志模式

使用场景

  • 分析应用错误日志
  • 监控系统性能指标
  • 调试生产环境问题
  • 审计安全事件

使用方法

当用户要求分析日志时:

1. 识别日志文件

查找并读取以下位置的日志文件:

  • ./logs/*.log
  • ./var/log/*.log
  • 用户指定的日志文件路径

2. 分析日志内容

python
# 读取日志文件内容
# 使用正则表达式匹配错误模式:
# - ERROR, WARN, CRITICAL
# - Exception, Traceback
# - HTTP 错误码(4xx, 5xx)

3. 生成分析报告

  • 错误总数统计
  • 错误类型分布
  • 时间范围分析
  • Top 错误排行

4. 输出结果

以清晰的 Markdown 格式输出分析结果,包括:

  • 执行摘要
  • 详细错误列表
  • 改进建议

安全说明

  • ✅ 只读取日志文件,不修改任何文件
  • ✅ 不执行任何系统命令
  • ✅ 不访问网络资源
  • ✅ 不读取敏感配置文件

依赖项

  • Python 3.9+
  • 标准库:re, datetime, collections

示例用法

用户:分析当前目录的 application.log
工具:[分析日志内容]
输出:✅ 发现 23 个错误,主要是数据库连接超时

限制

  • 仅支持文本格式日志
  • 最大支持 100MB 的日志文件
  • 不处理二进制日志

最佳实践

  1. 定期清理旧日志文件
  2. 使用结构化日志格式(JSON)
  3. 在生产环境启用日志轮转
  4. 保护敏感日志文件权限

版本历史

  • v1.0.0 (2024-12-29) - 初始版本

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Log Analyzer AI skill do?

智能日志分析工具,帮助快速定位应用错误和性能瓶颈

Why use Log Analyzer on TypingMind?

Because you install it once and use it with any model. Log Analyzer is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Log Analyzer in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/lxyeternal/MalSkillBench/tree/main/Baselines/skillsecurity/skill-security-scan/tests/skills/valid_skills/log-analyzer. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Log Analyzer?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Log Analyzer?

As many as you like. As long as a model supports skills, you can use Log Analyzer with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Log Analyzer AI skill free?

It is published on GitHub by lxyeternal. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇