--- name: log description: View and analyze Claude Code logs aliases: [logs, logview] invokes: skill:log-viewer --- # Log Command View and analyze automation logs. ## Usage ``` /log # Show most recent log /log --list # List all log files /log # View specific log /log --tail 100 # Show last 100 lines /log --grep "error" # Filter by pattern /log --since 1d # Show entries from last day ``` ## Implementation Run the log viewer script: ```bash python3 ~/.claude/automation/log-viewer.py [options] ``` ## Options | Option | Description | |--------|-------------| | `--list` | List available log files | | `--tail N` | Number of lines to show (default: 50) | | `--grep PATTERN` | Filter by regex pattern | | `--since DATE` | Filter by date (YYYY-MM-DD or 1d/7d/1h) | | `--type TYPE` | Filter log files by type |