Skill / SKILL.md

Claude Session Introspect

swyxio/skills

Inspect Claude Code session JSONL files at ~/.claude/projects/ to extract real conversation telemetry: token counts (input/output/cache reads/cache writes), assistant turn counts, human prompt counts, tool-use counts, compaction boundaries, and the contents of compaction summaries. Use this skill when the user asks "how many tokens did this session use", "how many prompts have I sent", "show me the stats for this conversation", "what got compacted", "where are the compaction boundaries", "introspect the session", "do brain surgery on the JSONL", or wants any data point that lives inside the on-disk session log rather than the live context window. Inspired by Tal Raviv's "I wanted to know how compaction works" article.
3 views 203 repository stars 0 commentsUpdated Nov 27, 2026
Overview

Inspect Claude Code session JSONL files at ~/.claude/projects/ to extract real conversation telemetry: token counts (input/output/cache reads/cache writes), assistant turn counts, human prompt counts, tool-use counts, compaction boundaries, and the contents of compaction summaries. Use this skill when the user asks "how many tokens did this session use", "how many prompts have I sent", "show me the stats for this conversation", "what got compacted", "where are the compaction boundaries", "introspect the session", "do brain surgery on the JSONL", or wants any data point that lives inside the on-disk session log rather than the live context window. Inspired by Tal Raviv's "I wanted to know how compaction works" article.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/swyxio/skills' skill-source

Use the complete skill-source/claude-session-introspect directory with your client’s skill installer.

  • claude-session-introspect

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory claude-session-introspect

Compatibility & requirements

Declared compatibility

Requires `jq`. Sessions live at `~/.claude/projects/<encoded-cwd>/<session-uuid>.jsonl`. The encoded-cwd is the absolute working directory with `/` replaced by `-` and a leading `-`. Each line is a JSON object with `type`, `message`, `toolUseResult`, etc.

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
079eea8654f797d8a5e1e2824fb6c6bbd41cd339d1a5ef80a4b151bba59ea8ab
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills