Agent skill

Log Analyzer

by zrt-ai-lab in zrt-ai-lab/opencode-skills

全维度日志分析技能。自动识别日志类型(Java应用/MySQL Binlog/Nginx/Trace/告警),提取关键实体(IP、threadid、traceid、用户、表名等),进行根因定位、告警分析、异常洞察。支持100M+大文件。触发词:分析日志、日志排查、根因定位、告警分析、异常分析。

No licenceAuto-check passedDevOps & Cloud

Install Log Analyzer

skills CLI
$ npx skills add zrt-ai-lab/opencode-skills --skill log-analyzer -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install zrt-ai-lab/opencode-skills log-analyzer --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/zrt-ai-lab/opencode-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/log-analyzer .claude/skills/log-analyzer && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
log-analyzer
GitHub stars
287
Token cost
~596 tokens
SKILL.md length
165 words
Files
3 (incl. scripts)
Skills in repo
26
Repo updated
First seen
Licence
None found

At a glance

全维度日志分析技能。自动识别日志类型(Java应用/MySQL Binlog/Nginx/Trace/告警),提取关键实体(IP、threadid、traceid、用户、表名等),进行根因定位、告警分析、异常洞察。支持100M+大文件。触发词:分析日志、日志排查、根因定位、告警分析、异常分析。

  • Works in 3 steps: Binlog 不记录客户端 IP:只有 server_id 和… → 敏感信息脱敏:报告中注意不要暴露密码、密钥 → 结合多源日志:binlog + 应用日志 + 审计日志 才能完整还原
  • Tasks that involve Cloud networking
  • SKILL.md covers 核心能力, 支持的日志类型, 使用方法 and 输出文件, plus 6 more sections
  • Runs Python scripts from its folder; calls python

What it does

Log Analyzer is an agent skill from zrt-ai-lab/opencode-skills. 全维度日志分析技能。自动识别日志类型(Java应用/MySQL Binlog/Nginx/Trace/告警),提取关键实体(IP、threadid、traceid、用户、表名等),进行根因定位、告警分析、异常洞察。支持100M+大文件。触发词:分析日志、日志排查、根因定位、告警分析、异常分析。

Its SKILL.md is about 600 tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including scripts (for example `README.md` and `scripts/preprocess.py`).

It sits in DevOps & Cloud, covering Cloud networking. It works with MySQL, NGINX and Java. The repository describes itself as: OpenCode/Claude Code 技能库 。特色技能:视频生成、图片生成、AI Agent 互联、智能问数等等各场景,持续开发更新中.

When your agent uses it

  • Tasks that involve Cloud networking

Example prompts

  • “/log-analyzer”

Requirements

  • Python 3

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Binlog 不记录客户端 IP:只有 server_id 和 thread_id,需结合 general_log 确认操作者
  2. 敏感信息脱敏:报告中注意不要暴露密码、密钥
  3. 结合多源日志:binlog + 应用日志 + 审计日志 才能完整还原

What it can do on your machine

Read from SKILL.md and the folder at commit d38536f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Log Analyzer loads about 596 tokens when it runs. Until then it costs about 41 tokens; SKILL.md has 165 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~41
When it runs · the whole SKILL.md, loaded when a task matches
~596

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 165 words (~596 tokens).

“基于 RAPHL(Recursive Analysis Pattern for Hierarchical Logs)的全维度智能日志分析技能。流式处理,内存占用低,100M+ 日志秒级分析。”

— opening of SKILL.md by zrt-ai-lab
name
log-analyzer

Read the full SKILL.md on GitHub

Files

SKILL.md and 2 other files (scripts) in log-analyzer of zrt-ai-lab/opencode-skills.

  • SKILL.md
  • README.md
  • scripts/preprocess.py

Open the folder on GitHubat commit d38536f

Compare with similar skills

Log Analyzer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Log Analyzer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Log Analyzer this skillzrt-ai-lab/opencode-skills287—~596Automated safety check: PassNone
Azure Resource Manager Mysql Dotnetmicrosoft/skills3.1k6 repos~3.5kAutomated safety check: PassMIT
Nginx To Higress Migrationhigress-group/higress9.5k—~3.9kAutomated safety check: PassApache-2.0
NGINX Ingress Controller Feature Checklistsnginx/kubernetes-ingress5.1k—~1.4kAutomated safety check: PassApache-2.0
NGINX Ingress Policy CRD Guidenginx/kubernetes-ingress5.1k—~2kAutomated safety check: PassApache-2.0
Wp Static Clonejdevalk/skills104—~2.6kAutomated safety check: PassMIT

Similar skills

  • Official

    Azure MySQL Flexible Server SDK for .NET. An agent skill from microsoft/skills.

    3.1k GitHub starsUsed in 6 repos~3.5k tokens
    DevOps & CloudAuto-check passed
  • Nginx To Higress Migration

    higress-group/higress

    Migrate from ingress-nginx to Higress in Kubernetes environments.

    9.5k GitHub stars~3.9k tokensUpdated 4 days ago
    DevOps & CloudAuto-check passed
  • Gives step-by-step checklists for adding Ingress annotations, VirtualServer fields and Helm values to the NGINX Kubernetes Ingress Controller, with common gotchas.

    5.1k GitHub stars~1.4k tokensUpdated today
    DevOps & CloudAuto-check passed
  • NGINX Ingress Policy CRD Guide

    nginx/kubernetes-ingress

    Step-by-step checklist for adding a new Policy CRD type to the NGINX Ingress Controller, from the Go types and validation to config generation and templates.

    5.1k GitHub stars~2k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Wp Static Clone

    jdevalk/skills

    Clones a live WordPress (or other CMS-driven) site into a static HTML site deployable on any static host (Cloudflare Pages, Netlify, Vercel, S3+CloudFront, plain Apache/nginx).

    104 GitHub stars~2.6k tokensUpdated 3 mo ago
    DevOps & CloudAuto-check passed
  • Analyze production Node.js app container response times to find slow-rendering sites, cross-checking against nginx queuing delay to rule out false positives (a site only looks slow because the event…

    2k GitHub stars~1.9k tokensUpdated yesterday
    DevOps & CloudAuto-check passed

More from zrt-ai-lab/opencode-skills

All 26 skills in this repo
  • Wechat Publisher

    zrt-ai-lab/opencode-skills

    This skill should be used when preparing Markdown articles for a WeChat Official Account draft box, selecting wenyan-cli themes, processing article images, or troubleshooting authentication and…

    287 GitHub stars~465 tokensUpdated 2 mo ago
    Auto-check passed
  • Codex Image Service

    zrt-ai-lab/opencode-skills

    A skill your agent uses when Codex needs native image generation, editing, or engineered multi-image composition, especially sets, material kits, grids, storyboards, carousels, presentations…

    287 GitHub stars~2k tokensUpdated 2 mo ago
    Auto-check passed
  • Smart Query

    zrt-ai-lab/opencode-skills

    智能数据库查询技能。通过SSH隧道连接线上数据库,支持自然语言转SQL、执行查询、表结构探索。当用户需要查询数据库、问数据、看表结构时使用此技能。

    287 GitHub stars~484 tokensUpdated 2 mo ago
    Auto-check passed
  • Video Creator

    zrt-ai-lab/opencode-skills

    视频创作技能。图片+音频合成视频,支持TTS配音、淡入淡出转场、字幕、片尾、BGM。当用户提到「生成视频」「做视频」「教学视频」「图文转视频」「做视频号」「配音视频」「图文结合视频」「古诗视频」「故事视频」时触发。内含生图→配音→合成全流程,无需单独调用image-service。

    287 GitHub stars~3.3k tokensUpdated 2 mo ago
    Auto-check passed
  • Searchnews

    zrt-ai-lab/opencode-skills

    当用户要求"搜索新闻"、"查询AI新闻"、"整理新闻"、"获取某天的新闻",或提到需要搜索、整理、汇总指定日期的AI行业新闻时,应使用此技能。

    287 GitHub stars~1.8k tokensUpdated 2 mo ago
    Auto-check passed
  • Skill Scanner

    zrt-ai-lab/opencode-skills

    A skill your agent uses when reviewing an agent Skill before sharing, installing, or executing it and when checking a Skill bundle for credentials, dangerous commands, suspicious network behavior…

    287 GitHub stars~317 tokensUpdated 2 mo ago
    Auto-check passed

Works with

Questions about Log Analyzer

What does Log Analyzer do?

全维度日志分析技能。自动识别日志类型(Java应用/MySQL Binlog/Nginx/Trace/告警),提取关键实体(IP、threadid、traceid、用户、表名等),进行根因定位、告警分析、异常洞察。支持100M+大文件。触发词:分析日志、日志排查、根因定位、告警分析、异常分析。. Log Analyzer is an agent skill from zrt-ai-lab/opencode-skills.

When should I use Log Analyzer?

Log Analyzer fits situations like: tasks that involve Cloud networking.

How do I install Log Analyzer in Claude Code?

Run `npx skills add zrt-ai-lab/opencode-skills --skill log-analyzer -a claude-code`. Or copy the skill folder (log-analyzer in zrt-ai-lab/opencode-skills) into .claude/skills/log-analyzer in your project. Claude Code loads it when a task matches its description.

How do I install Log Analyzer in Codex?

Run `npx skills add zrt-ai-lab/opencode-skills --skill log-analyzer -a codex`. Or copy the skill folder (log-analyzer in zrt-ai-lab/opencode-skills) into .agents/skills/log-analyzer in your project. Codex loads it when a task matches its description.

Can I use Log Analyzer in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add zrt-ai-lab/opencode-skills --skill log-analyzer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/log-analyzer, .gemini/skills/log-analyzer, .github/skills/log-analyzer and .opencode/skills/log-analyzer in your project.

What does Log Analyzer need to run?

Going by SKILL.md and its folder, Log Analyzer needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Log Analyzer access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Log Analyzer safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Log Analyzer use?

No licence was found for Log Analyzer or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Log Analyzer use?

About 596 tokens (SKILL.md is roughly 2.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Log Analyzer?

Skills that share tags, products or a category with Log Analyzer: Azure Resource Manager Mysql Dotnet (microsoft/skills, 3.1k stars), Nginx To Higress Migration (higress-group/higress, 9.5k stars), NGINX Ingress Controller Feature Checklists (nginx/kubernetes-ingress, 5.1k stars) and NGINX Ingress Policy CRD Guide (nginx/kubernetes-ingress, 5.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Log Analyzer?

zrt-ai-lab (a GitHub user) maintains it in zrt-ai-lab/opencode-skills, which has 287 GitHub stars. The repository holds 26 skills in this directory. The repository was last updated on July 22, 2026.

Source: zrt-ai-lab/opencode-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.