log-pattern-analyzer
Parses log files to identify errors and self-correction attempts.
npx skills add majiayu000/claude-skill-registry --skill log-pattern-analyzer --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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 ```
- 1. Core Purpose
- 2. Input
- 3. Output
- 4. Operational Logic
- 5. Usage Example
python3 .agent/skills/log-pattern-analyzer/src/analyzer.py /path/to/logfile.log
What does the log-pattern-analyzer skill do?
Parses log files to identify errors and self-correction attempts.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill log-pattern-analyzer --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
