TLDR Stats

VerifiedCaution

Show a dashboard with token usage, API costs, TLDR savings, and hook activity.

Sby Skills Guide Bot
ProductivityBeginner
7/26/2026
Claude Code
#token-usage#cost-tracking#session-stats#prompt-compression#hooks

Recommended for

Automated summary

Displays a Claude Code session dashboard covering token usage, actual API cost, estimated savings from TLDR compression, and hook activity.

Strengths

  • Renders the figures back into the chat as a readable dashboard (progress bars, sparklines, colors) instead of a raw command output
  • Converts TLDR compression into dollar savings by comparing tokens actually sent against the without-TLDR baseline
  • Reports cache hit rate and hook call health, making it easy to confirm TLDR is actually running
  • Shows which model is in use (Opus, Sonnet, Haiku) with a distinct visual marker

Limitations

  • Assumes a .claude/scripts/tldr_stats.py script already exists in the project; the command fails without it
  • Costs are computed from hardcoded pricing (Opus $15/1M, Sonnet $3/1M, Haiku $0.25/1M), so they drift when prices change
  • Only covers the current session, with no cross-session aggregation or export of the stats
When to use it

Use it when you want to know what the current session cost or to confirm that TLDR compression and hooks actually fired.

When not to use it

Avoid it if TLDR or hooks are not installed in the project, or if you need billing analytics spanning multiple sessions or projects.

Security analysis

Caution
Quality score72/100

No destructive, exfiltration, or obfuscated commands appear in the skill itself; it just invokes a local stats script and displays results. However, it relies on an unvetted script executed via python3 and asks the agent to reproduce its output verbatim, which is a legitimate but non-trivial execution surface, warranting caution rather than safe.

Findings
  • •Executes an external local script (python3 $CLAUDE_PROJECT_DIR/.claude/scripts/tldr_stats.py) whose contents are not included, so its behavior cannot be audited from the skill file alone
  • •Instructs the agent to run a shell command and paste full output into the conversation, which could surface sensitive session/cost data in chat
How this analysis is made

Examples

Check session cost
How much has this session cost me so far? Show me the token stats.
Verify TLDR savings
Are TLDR and the hooks actually running? Show me the stats dashboard with the savings.
Compare compression effect
Run the tldr stats script and show me the full dashboard — I want to see the file-read compression and cache hit rate.

name: tldr-stats description: Show full session token usage, costs, TLDR savings, and hook activity

TLDR Stats Skill

Show a beautiful dashboard with token usage, actual API costs, TLDR savings, and hook activity.

When to Use

  • See how much TLDR is saving you in real $ terms
  • Check total session token usage and costs
  • Before/after comparisons of TLDR effectiveness
  • Debug whether TLDR/hooks are being used
  • See which model is being used

Instructions

IMPORTANT: Run the script AND display the output to the user.

  1. Run the stats script:
python3 $CLAUDE_PROJECT_DIR/.claude/scripts/tldr_stats.py
  1. Copy the full output into your response so the user sees the dashboard directly in the chat. Do not just run the command silently - the user wants to see the stats.

Sample Output

╔══════════════════════════════════════════════════════════════╗
║  📊 Session Stats                                            ║
╚══════════════════════════════════════════════════════════════╝

  You've spent  $96.52  this session

  Tokens Used
        1.2M sent to Claude
      416.3K received back
       97.8K from prompt cache (8% reused)

  TLDR Savings

    You sent:               1.2M
    Without TLDR:           2.5M

    💰 TLDR saved you ~$18.83
    (Without TLDR: $115.35 → With TLDR: $96.52)

    File reads: 1.3M → 20.9K █████████░ 98% smaller

  TLDR Cache
    Re-reading the same file? TLDR remembers it.
    █████░░░░░░░░░░ 37% cache hits
    (35 reused / 60 parsed fresh)

  Hooks: 553 calls (✓ all ok)
  History: █▃▄ ▇▃▇▆ avg 84% compression
  Daemon: 24m up │ 3 sessions

Understanding the Numbers

| Metric | What it means | |--------|---------------| | You've spent | Actual $ spent on Claude API this session | | You sent / Without TLDR | Actual tokens vs what it would have been | | TLDR saved you | Money saved by compressing file reads | | File reads X → Y | Raw file tokens compressed to TLDR summary | | Cache hits | How often TLDR reuses parsed file results | | History sparkline | Compression % over recent sessions (█ = high) |

Visual Elements

  • Progress bars show savings and cache efficiency at a glance
  • Sparklines show historical trends (█ = high savings, ▁ = low)
  • Colors indicate status (green = good, yellow = moderate, red = concern)
  • Emojis distinguish model types (🎭 Opus, 🎵 Sonnet, 🍃 Haiku)

Notes

  • Token savings vary by file size (big files = more savings)
  • Cache hit rate starts low, increases as you re-read files
  • Cost estimates use: Opus $15/1M, Sonnet $3/1M, Haiku $0.25/1M
  • Stats update in real-time as you work

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/tldr-stats-ms1aw5ho/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/tldr-stats-ms1aw5ho' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/tldr-stats-ms1aw5ho/download' --output '.skill-downloads/tldr-stats-ms1aw5ho/SKILL.md.part' && mv '.skill-downloads/tldr-stats-ms1aw5ho/SKILL.md.part' '.skill-downloads/tldr-stats-ms1aw5ho/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/tldr-stats-ms1aw5ho/SKILL.md' && test -s '.skill-downloads/tldr-stats-ms1aw5ho/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/tldr-stats' && cp -R '.skill-downloads/tldr-stats-ms1aw5ho' '.claude/skills/tldr-stats'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/tldr-stats-ms1aw5ho'

openskills read 'tldr-stats-ms1aw5ho'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/tldr-stats-ms1aw5ho/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills