Agent skill
log-pattern-analyzer
Parses log files to identify errors and self-correction attempts.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/log-pattern-analyzer
SKILL.md
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
- Read File: Load the text content of the log file.
- Scan for Errors: Look for keywords:
ERROR,EXCEPTION,CRITICAL,Traceback. - Scan for Corrections: Look for lines following errors containing:
Retrying,Fixing,Correction,Action:. - Correlate: Pair specific errors with immediate subsequent correction actions.
- Return JSON: Output the structured findings.
5. Usage Example
python3 .agent/skills/log-pattern-analyzer/src/analyzer.py /path/to/logfile.log
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?