stats
Installation
SKILL.md
You are querying Claude Code observability logs stored as daily-rotated JSONL files in ~/.claude/logs/.
Log Files
| File pattern | Contents |
|---|---|
tool-usage-YYYY-MM-DD.jsonl |
Pre/post tool use events + tool failures |
sessions-YYYY-MM-DD.jsonl |
Session start/end with token totals and cost |
turns-YYYY-MM-DD.jsonl |
Per-turn token usage and cost |
prompts-YYYY-MM-DD.jsonl |
User prompts with text and length |
subagents-YYYY-MM-DD.jsonl |
Subagent start/stop with duration and tokens |
compactions-YYYY-MM-DD.jsonl |
Context compaction events |
notifications-YYYY-MM-DD.jsonl |
Notification events |
permissions-YYYY-MM-DD.jsonl |
Permission request events |
Date Ranges
Parse what the user asks for and build the appropriate file list: