Skip to content
Back to skills

Log Pattern Analyzer

ASecurity

Parses log files to identify errors and self-correction attempts.

  • 30 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 12, 2026
ai-agentspythonbash

Security analysis

A100/100

Scanned November 12, 2026

npx -y skills add majiayu000/claude-skill-registry-data --skill log-pattern-analyzer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Log Pattern Analyzer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Log Pattern Analyzer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-log-pattern-analyzer-claude-skill-registry-data/badge)](https://www.skillsdirectory.com/skills/majiayu000-log-pattern-analyzer-claude-skill-registry-data)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: log-pattern-analyzer
description: Parses log files to identify errors and self-correction attempts.
version: 1.0.0
---

# Log Pattern Analyzer Skill


## 1. Core Purpose
You are the **Insight Extractor**. You read text files (logs, definitions, etc.), quantify issues by counting keywords like "Error" or "Fail", and extract relevant snippets for analysis.

## 2. Input
*   **Argument 1:** `file_path` (Path to the .log or .md file).
*   **Argument 2:** `keywords` (Optional. Comma-separated list of words to track. Default: "Error,Fail,Exception").

## 3. Output
A JSON object containing:
*   `matches_count`: Dictionary of keyword counts.
*   `snippets`: List of lines containing the keywords with context.


## 4. Operational Logic
1.  **Read File:** Load the text content of the log file.
2.  **Scan for Errors:** Look for keywords: `ERROR`, `EXCEPTION`, `CRITICAL`, `Traceback`.
3.  **Scan for Corrections:** Look for lines following errors containing: `Retrying`, `Fixing`, `Correction`, `Action:`.
4.  **Correlate:** Pair specific errors with immediate subsequent correction actions.
5.  **Return JSON:** Output the structured findings.

## 5. Usage Example
```bash
python3 .agent/skills/log-pattern-analyzer/src/analyzer.py /path/to/logfile.log
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.