claude/skills/claude-tail/SKILL.md
View Claude Code session logs with colors, filtering, and real-time following
npx skillsauth add lanej/dotfiles claude-tailInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are a Claude Code session log analysis specialist using the claude-tail tool. This skill provides comprehensive guidance for viewing, filtering, and analyzing Claude Code session logs.
claude-tail reads Claude Code session logs (JSONL format) and displays them with:
tail -f)# View a specific log file (follows by default)
claude-tail ~/.claude/sessions/2024-01-15-session.jsonl
# View without following (read once and exit)
claude-tail --no-follow ~/.claude/sessions/2024-01-15-session.jsonl
# Read from stdin
cat session.jsonl | claude-tail
# Follow mode is enabled by default
claude-tail session.jsonl
# Explicitly enable follow mode
claude-tail -f session.jsonl
# Follow multiple files
claude-tail session1.jsonl session2.jsonl
# Watch all JSONL files in current directory
claude-tail --pattern "*.jsonl"
# Watch all session logs
claude-tail --pattern "~/.claude/sessions/*.jsonl"
# Minimal output, one-line per event
claude-tail --compact session.jsonl
# Detailed output with full event information
claude-tail --verbose session.jsonl
# Show statistics about the session
claude-tail --stats session.jsonl
# Show only tool usage events
claude-tail --tools-only session.jsonl
# Show only specific event types (comma-separated)
claude-tail --type tool_use,error session.jsonl
# Common event types: tool_use, text, error, system
claude-tail --type text session.jsonl
# Show only specific tools (comma-separated)
claude-tail --tool Read,Write session.jsonl
# Show only bash commands
claude-tail --tool Bash session.jsonl
# Show only file operations
claude-tail --tool Read,Write,Edit session.jsonl
# Show events after a specific time (HH:MM:SS)
claude-tail --after 14:30:00 session.jsonl
# Show events before a specific time
claude-tail --before 15:45:00 session.jsonl
# Show events in a time window
claude-tail --after 14:30:00 --before 15:45:00 session.jsonl
# Display only error events
claude-tail --errors-only session.jsonl
# Set custom terminal width
claude-tail --width 120 session.jsonl
# Disable line wrapping
claude-tail --no-wrap session.jsonl
# Combine options
claude-tail --width 80 --no-wrap session.jsonl
# Show all errors in a session
claude-tail --errors-only --no-follow session.jsonl
# Show tool usage with errors
claude-tail --tools-only --errors-only session.jsonl
# Verbose output for debugging
claude-tail --verbose --errors-only session.jsonl
# Watch what tools are being called
claude-tail --tools-only -f session.jsonl
# Monitor specific tools in real-time
claude-tail --tool Bash,Read,Write -f session.jsonl
# Get tool usage statistics
claude-tail --stats --tools-only session.jsonl
# Review activity in a time window
claude-tail --after 10:00:00 --before 11:00:00 --no-follow session.jsonl
# See compact summary of a session
claude-tail --compact --no-follow session.jsonl
# Get detailed statistics
claude-tail --stats session.jsonl
# Follow the most recent session
claude-tail -f ~/.claude/sessions/$(ls -t ~/.claude/sessions/*.jsonl | head -1)
# Watch all new session files
claude-tail --pattern "~/.claude/sessions/*.jsonl"
# Monitor errors in real-time
claude-tail --errors-only -f current-session.jsonl
# Show Read/Write operations with errors after 2pm
claude-tail --tool Read,Write \
--errors-only \
--after 14:00:00 \
session.jsonl
# Monitor specific tools in compact mode
claude-tail --tool Bash,Grep,Read \
--compact \
-f session.jsonl
# Quick session overview
claude-tail --stats --no-follow session.jsonl
# Detailed tool usage analysis
claude-tail --tools-only --verbose --no-follow session.jsonl
# Find all errors in a session
claude-tail --errors-only --verbose --no-follow session.jsonl
# Debug a specific time period with full detail
claude-tail --verbose \
--after 14:30:00 \
--before 14:35:00 \
--no-follow \
session.jsonl
# Monitor for errors during development
claude-tail --errors-only --tools-only -f session.jsonl
# Watch file operations in real-time
claude-tail --tool Read,Write,Edit,Glob,Grep \
--compact \
-f session.jsonl
Claude Code session logs are typically stored in:
~/.claude/sessions/*.jsonl
# List sessions by most recent
ls -lt ~/.claude/sessions/*.jsonl | head -5
# View the most recent session
claude-tail ~/.claude/sessions/$(ls -t ~/.claude/sessions/*.jsonl | head -1)
-f--tool, --type, and time filters to focus on relevant events--stats before diving into details--compact--errors-only checks help catch issues early--tools-only to understand workflow patterns--no-follow to disable)# View and follow
claude-tail session.jsonl
# View once
claude-tail --no-follow session.jsonl
# Show stats
claude-tail --stats session.jsonl
# Only errors
claude-tail --errors-only session.jsonl
# Only tools
claude-tail --tools-only session.jsonl
# Filter by tool
claude-tail --tool Read,Write session.jsonl
# Filter by time
claude-tail --after 14:00:00 --before 15:00:00 session.jsonl
# Compact output
claude-tail --compact session.jsonl
# Verbose output
claude-tail --verbose session.jsonl
# Watch pattern
claude-tail --pattern "*.jsonl"
data-ai
Delegate research and context-gathering tasks to a sub-agent to protect the primary context window. Use when the user asks to "research X", "look into X", "find out about X", "gather context on X", or any investigative framing where answering requires 2+ searches or multiple sources. Also use proactively before starting substantive work when prior context is unknown. Never run research inline — always delegate.
documentation
--- name: qmd-math description: Math notation conventions for Quarto/EPQ documents rendered via lualatex. Use when: writing or adding a formula, equation, or mathematical expression to a .qmd file; asked about display math, inline math, or LaTeX notation in a QMD/Quarto context; defining a where-clause or variable definitions for an equation; converting prose variable descriptions into structured math notation; fixing math that renders badly in a PDF; using \lvert, \begin{aligned}, \tfrac, \text
development
Trim a prose document (README, design doc, blog post, notes) for readability by cutting redundancy, filler, and dead weight in the author's own words. Invoke with /trim [file path], or /trim alone to be prompted for a file. Not for source code, data files, or summarization.
business
Query and analyze Josh Lane's org headcount from the staffing DuckDB at ~/workspace/areas/staffing/staffing.duckdb. Use when asked about headcount counts, org structure, direct reports, team breakdown, hiring/attrition trends, international employees, salary/pay grade distribution, offboarding lag, or any question about people in Josh's org. Triggers on questions about how many people, who reports to whom, headcount by team/country/level, who joined or left, org size, staffing, headcount trend.