Skip to content
Back to skills

Stats

ASecurity

Show Token Pilot session analytics — token savings, per-tool breakdown, top files, per-subagent grouping

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 6, 2026
ai-agents

Works with

  • claude code
  • cli
  • mcp

Security analysis

A100/100

Scanned November 6, 2026

npx -y skills add Digital-Threads/token-pilot --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/digital-threads-stats/badge)](https://www.skillsdirectory.com/skills/digital-threads-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 Token Pilot session analytics — token savings, per-tool breakdown, top files, per-subagent grouping
command: stats
user_invocable: true
# v0.43.0 — effort (Claude Code 2.1.16x). stats reads the events log and
# runs `token-pilot stats` variants — no reasoning, so `low` is enough.
effort: low
# v0.36.0 — disallowed-tools (Claude Code 2.1.152+). stats only reads
# the events log and runs `token-pilot stats` variants. No
# Edit/Write/Task ever — block them defensively.
disallowed-tools:
  - Edit
  - MultiEdit
  - Write
  - Task
---

Two entry points:

1. **In-session rich summary (MCP tool).** Call the `session_analytics` MCP tool from the token-pilot server to display the current session's token savings with per-tool breakdown. Show the output to the user as-is.

2. **CLI shortcut (works without a running MCP server).** When the user explicitly asks for a specific view, or when the MCP tool is unavailable, invoke:

   - `token-pilot stats` — totals + top files by savedTokens
   - `token-pilot stats --session` — totals for the most recent session
   - `token-pilot stats --session=<id>` — totals for a specific session_id
   - `token-pilot stats --by-agent` — savings grouped by agent_type (the subagent type, or "main" for the top-level session)

The CLI reads `.token-pilot/hook-events.jsonl`, so it only shows data for qualifying Reads that were intercepted by the hook (not raw MCP tool calls — those live in session-analytics).

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.