Skip to content
Back to skills

Stats

ASecurity

Show TokenMizer token savings stats — how many tokens saved today, this week, cache hit rate, and which layers are saving the most. Use when user asks about token usage, costs, savings, or "how much have we saved".

  • 35 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added August 30, 2026
ai-agentspythongobashapi

Works with

  • cli
  • api

Security analysis

A96/100
  • mediumUses curl or wget to download content

Pro shows the line behind each finding and how to fix it

Scanned September 22, 2026

npx -y skills add Shweta-Mishra-ai/tokenmizer --skill stats --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Stats?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Stats
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/shweta-mishra-ai-stats/badge)](https://www.skillsdirectory.com/skills/shweta-mishra-ai-stats)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: stats
description: Show TokenMizer token savings stats — how many tokens saved today, this week, cache hit rate, and which layers are saving the most. Use when user asks about token usage, costs, savings, or "how much have we saved".
---

Show TokenMizer token savings analytics.

## What to do

```bash
curl -s http://localhost:8000/api/stats
```

Then also fetch cache stats:
```bash
curl -s http://localhost:8000/api/cache/stats
```

## Format the output clearly

Show:
- Tokens saved today and this week
- Cost saved in USD
- Cache hit rate
- Which layer saved the most (compression / cache / windowing / file extraction)
- Suggestions if savings are low

## Example output

```
TokenMizer Stats
─────────────────────────
Today:    12,450 tokens saved (34%) — $0.0373
Week:     87,200 tokens saved (31%) — $0.2616

By layer:
  File extraction:  45,000 tokens
  Semantic cache:   28,000 tokens  
  Smart window:     9,200 tokens
  Compression:      3,800 tokens
  Output trim:      1,200 tokens

Cache: 847 entries | 68% hit rate | 8% full
─────────────────────────
Dashboard: http://localhost:8000
```

## If nothing saved yet

Nothing has gone through the proxy yet. Show this, and nothing else:
```python
from openai import OpenAI
client = OpenAI(
    api_key="your-key",
    base_url="http://localhost:8000/v1"
)
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.