dawiddutoit/custom-claude/observability-analyze-logs
Claude Code and agent skill by dawiddutoit/custom-claude
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Parses OpenTelemetry-formatted logs to reconstruct execution traces, extract errors with call chains, and provide AI-powered root cause analysis. Use when investigating errors, checking logs, debugging issues, viewing traces, or analyzing execution flow. Triggers on "check the logs", "analyze errors", "what's failing", "debug this issue", "show me the traces", or "investigate the error".
Install
npx vskill@latest install dawiddutoit/custom-claude/observability-analyze-logsSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
Analyze Logs
Table of Contents
Core Sections
- What This Skill Does - Intelligent OpenTelemetry log analysis with trace reconstruction
- When to Use This Skill - Trigger phrases and common scenarios
- Quick Start - Most common usage for quick health checks
- Analysis Workflow - Complete step-by-step implementation guide
- Step 1: Determine User's Need - Identify analysis type (health check, error investigation, trace debugging)
- Step 2: Choose Analysis Mode - 6 modes: Summary, Error Detail, Trace Analysis, File Filter, Fast Parsing, Real-Time
- Step 3: Execute Analysis - Running commands with Bash tool
- Step 4: Interpret Results - Understanding summary tables, detailed output, AI analysis
- Step 5: Report Findings - Communicating results to users
- Command Reference - All analyzer commands with examples
- Basic Commands (summary, markdown, JSON)
- Filtering Commands (--error-id, --trace, --file)
- Performance Commands (--no-ai, --output, tail)
- Understanding the Output - Log format, summary tables, trace execution
- Best Practices - 7 essential practices for effective log analysis
- Common Scenarios - Real-world examples with commands
- Integration with CLAUDE.md - How this skill implements CLAUDE.md conventions
Advanced Topics
- Troubleshooting - Common issues and fixes
- Advanced Usage - Custom scripts, programmatic access, budget tracking
- Expected Outcomes - Success criteria and common results
- Requirements - Tools, files, dependencies, verification
Supporting Resources
- Technical Reference - OpenTelemetry format, data models, parsing logic, AI configuration
- Response Templates - 8 response templates for different contexts
- Related Documentation - Tool implementation, usage examples, LangChain client
- Quick Reference Card - One-line command cheatsheet
Purpose
Intelligent log analysis for any project using OpenTelemetry trace reconstruction and AI-powered error diagnosis. Parses OTEL-formatted logs, reconstructs execution traces, extracts errors with call chain context, and provides root cause analysis.
What This Skill Does
Intelligent log analysis for any project using OpenTelemetry trace reconstruction and AI-powered error diagnosis. Works with projects that generate OpenTelemetry-formatted logs in a configurable log directory.
Core capabilities:
- Parse OpenTelemetry-formatted logs with trace/span IDs
- Reconstruct complete execution traces
- Extract errors with full call chain context
- AI-powered root cause analysis
- Multiple output formats (summary, markdown, JSON)
- Advanced filtering (by error ID, trace ID, file)
When to Use This Skill
Invoke this skill when users mention:
- "check the logs"
- "look at the logs"
- "analyze errors"
- "what's failing?"
- "debug this issue"
- "show me the traces"
- "investigate the error"
- "view log file"
- Any mention of project log files ({{LOG_DIR}}/{{LOG_FILE}}.log)
Quick Start
Most common usage (quick health check):
This gives you a summary table with error IDs and trace IDs, perfect for quick health checks. Replace {{LOG_DIR}} with your project's log directory (e.g., logs) and {{LOG_FILE}} with the log filename (e.g., app.log).
Instructions
Step 1: Determine User's Need
Quick Health Check:
- User asks: "Are there any errors?" or "What's happening in the logs?"
- Action: Run summary mode (default)
Specific Error Investigation:
- User mentions specific error or asks for details
- Action: Get error ID from summary, then use --error-id
Trace-Based Debugging:
- User asks "what led to this error?" or wants execution flow
- Action: Use --trace with trace ID
File-Specific Analysis:
- User mentions specific file or module
- Action: Use --file filter
Real-Time Monitoring:
- User wants to watch logs as they happen
- Action: Use tail -f
Step 2: Choose Analysis Mode
Mode 1: Summary (Default) - Start here 90% of the time
Output: Compact table with error IDs, trace IDs, file:line, function, and message preview.
Use when:
- Initial investigation
- Quick health check
- Getting error IDs for deeper analysis
- User asks "what errors do we have?"
Mode 2: Error Detail - Deep dive into specific error
Output: Full error details including complete message, call chain, stack trace, related errors.
Use when:
- User asks about specific error from summary
- Need full error message (summary truncates)
- Want to see complete stack trace
- Investigating single failure
Mode 3: Trace Analysis - Understand execution flow
Output: All errors in that trace with full execution context.
Use when:
- Multiple related errors in same trace
- Need to understand execution sequence
- Debugging distributed operations
- User asks "what happened in this execution?"
Mode 4: File Filter - Find all errors in specific file
Output: All errors from that file with trace context.
Use when:
- User mentions specific file
- Investigating module-specific issues
- Finding patterns in one component
Mode 5: Fast Parsing (No AI) - Quick and free
Output: Same as summary but skips AI analysis (faster, no cost).
Use when:
- Quick checks during development
- Want to avoid LLM costs
- Just need parsed errors without analysis
- Automated scripts or frequent polling
Mode 6: Real-Time Monitoring
Output: Live log stream (Ctrl+C to exit).
Use when:
- Watching logs during testing
- Monitoring server startup
- Debugging in real-time
- User runs operations and wants to see results
Step 3: Execute Analysis
Execute the appropriate command using the Bash tool:
Step 4: Interpret Results
For Summary Output:
- Check "Total errors" count
- Scan error table for patterns (same file, same trace)
- Note error IDs for deeper investigation
- Use provided Quick Commands to drill down
For Detailed Output:
- Read Full Message (not truncated)
- Review Call Chain (execution flow leading to error)
- Check Related Errors (other failures in same trace)
- Examine Stack Trace (if available)
- Look for Recovery Attempts (logs after error)
For AI Analysis (markdown with --no-ai not set):
- Read Root Causes section
- Check Patterns (recurring issues)
- Review Priority (what to fix first)
- Follow Fixes (specific file:line changes)
- Consider Systemic Issues (larger architectural problems)
Step 5: Report Findings
Always provide:
- Summary of error count and severity
- Most critical issues (from AI analysis or your judgment)
- Specific file:line references for user to investigate
- Suggested next steps or commands to run
Example response format:
Command Reference
Basic Commands
Filtering Commands
Performance Commands
Understanding the Output
Log Format
OpenTelemetry format with trace/span IDs:
Key fields:
- timestamp: When the log occurred
- trace: Unique ID for entire execution (groups related logs)
- span: Unique ID for operation within trace
- module: Python module path
- level: ERROR, WARNING, INFO, DEBUG
- file:line: Source location
- function: Function name
- message: Log message
Summary Table
Columns explained:
- ID: Error number (use with --error-id)
- Trace: First 8 chars of trace ID (same trace = related errors)
- File:Line: Where error occurred
- Function: Function that logged error
- Message: Preview (truncated, use --error-id for full message)
Trace Execution
A trace represents one complete execution flow:
- Starts at entry point (e.g., MCP tool call)
- Includes all operations in that execution
- Ends when execution completes
- Multiple errors in same trace are related
Example trace flow:
All errors share trace ID abc123, so they're related failures.
Best Practices
1. Always Start with Summary
Don't jump straight to markdown or detail view. Get the overview first:
2. Use Error IDs for Deep Dives
Summary gives you error IDs. Use them:
3. Group Related Errors by Trace
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/observability-analyze-logs/SKILL.md
Popularity
- 7-day trend score
- 0
Refreshed 17 Mar 2026, 8 months ago.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dawiddutoit/custom-claude/observability-analyze-logs)