log-analysis-tools
БесплатноЗапускает вложенные скриптыНе проверенFast log file analysis with lnav, multi-framework support (Laravel, CodeIgniter, React, Next.js), automatic log pruning, and 70-80% token savings vs reading…
от Interstellar-code★ 18 звёзд на GitHubОб этом скилле
Log Analysis Tools Skill
Purpose: Fast, efficient log file analysis with framework-aware patterns and intelligent pruning
🎨 VISUAL OUTPUT FORMATTING
CRITICAL: All log-analysis-tools output MUST use the colored-output formatter skill!
bash .claude/skills/colored-output/color.sh skill-header "log-analysis-tools" "Analyzing log files..."
bash .claude/skills/colored-output/color.sh progress "" "Parsing Laravel logs"
bash .claude/skills/colored-output/color.sh info "" "Found 15 errors in last 24h"
bash .claude/skills/colored-output/color.sh success "" "Analysis complete"
🎯 Multi-Framework Support
Framework Detection & Log Locations
| Framework | Log Location | Format | Auto-Detect |
|---|---|---|---|
| Laravel | storage/logs/laravel.log |
Laravel JSON/text | ✅ composer.json |
| CodeIgniter 4 | writable/logs/*.log |
CI4 format | ✅ app/Config/ |
| CodeIgniter 3 | application/logs/*.php |
CI3 format | ✅ application/config/ |
| Symfony | var/log/*.log |
Monolog format | ✅ composer.json |
| React (CRA) | Browser console, no server logs | Client-side | ✅ package.json |
| Next.js | .next/trace, console |
Structured JSON | ✅ next.config.js |
| Nuxt.js | .nuxt/, console.log |
Nuxt format | ✅ nuxt.config.js |
| Express.js | logs/*.log (custom) |
Morgan/Winston | ✅ package.json |
| Django | logs/, settings configured |
Python logging | ✅ manage.py |
| Flask | instance/, app configured |
Flask logging | ✅ app.py |
| Apache | /var/log/apache2/ |
Apache format | ✅ .htaccess |
| Nginx | /var/log/nginx/ |
Nginx format | ✅ nginx.conf |
| System | /var/log/syslog |
Syslog format | ✅ Always check |
Framework-Specific Patterns
Laravel Error Patterns:
^\[(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})\] \w+\.(ERROR|WARNING|CRITICAL)
CodeIgniter Patterns:
^(ERROR|WARNING|CRITICAL) - \d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}
Next.js Patterns:
^\s*(error|warn|info)\s+-\s+
Express/Node Patterns:
^\[\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z\]\s+(error|warn)
🚀 Auto-Activation Triggers
Primary Keywords:
- "check logs", "view logs", "tail logs", "show logs"
- "find errors", "log errors", "error log", "access log"
- "laravel log", "codeigniter log", "next.js log"
- "debug production", "production errors"
- "prune logs", "clean old logs", "archive logs"
Context-Aware Triggers:
- User mentions debugging → Auto-suggest log analysis
- User mentions "500 error" → Auto-open error logs
- User mentions "slow performance" → Check slow query logs
- User says "production issue" → Tail production logs
🖥️ Platform Compatibility
Supported Platforms
| Platform | Status | Notes |
|---|---|---|
| macOS | ✅ Full Support | All features available via Homebrew |
| Linux | ✅ Full Support | All features available via apt/yum |
| Windows WSL | ✅ Full Support | Requires WSL 2 with Ubuntu/Debian |
| Windows Native | ⚠️ Limited | Basic features only (no lnav) |
Required Dependencies
| Tool | Purpose | Availability | Fallback |
|---|---|---|---|
| bash | Script execution | ✅ All platforms | None (required) |
| gzip | Log archiving | ✅ All Unix-like | None (required) |
| grep | Basic searching | ✅ All platforms | None (required) |
Optional Dependencies (Enhanced Features)
| Tool | Purpose | Performance Gain | Install |
|---|---|---|---|
| lnav | Advanced log viewing | 10x better UX | brew install lnav / apt install lnav |
| fd | Fast file finding | 18x faster than find | brew install fd / apt install fd-find |
| ripgrep (rg) | Fast searching | 20x faster than grep | brew install ripgrep / apt install ripgrep |
| bat | Syntax highlighting | Better readability | brew install bat / apt install bat |
Tool Availability by Platform
macOS (via Homebrew)
# Install all tools (recommended)
brew install lnav fd ripgrep bat
# Or install individually
brew install lnav # Advanced log viewer
brew install fd # Fast file finding
brew install ripgrep # Fast text search
brew install bat # Syntax-highlighted cat
Linux (Ubuntu/Debian)
# Install all tools (recommended)
sudo apt update
sudo apt install lnav fd-find ripgrep bat
# Or install individually
sudo apt install lnav # Advanced log viewer
sudo apt install fd-find # Fast file finding (note: fd-find on Ubuntu)
sudo apt install ripgrep # Fast text search
sudo apt install bat # Syntax-highlighted cat
Linux (RHEL/CentOS/Fedora)
# Enable EPEL repository first (RHEL/CentOS)
sudo yum install epel-release
# Install tools
sudo yum install lnav ripgrep bat
sudo dnf install fd-find # Fedora
# Or use cargo for latest versions
cargo install lnav fd-find ri
Установить log-analysis-tools в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл log-analysis-tools?
Fast log file analysis with lnav, multi-framework support (Laravel, CodeIgniter, React, Next.js), automatic log pruning, and 70-80% token savings vs reading entire logs
Как установить скилл log-analysis-tools?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл log-analysis-tools запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic