Agent skill

token-stats

Show token economics comparing usage with turbo-search vs without. Demonstrates actual savings from search-first approach.

majiayu000534★ · 1 repos on radarProfile →
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill token-stats --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 7 KB
Bundled scripts: none
Path: skills/analysis/token-stats/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# /token-stats - Token Economics Dashboard Show the token savings achieved by using search-first exploration vs blind file reading. ## Instructions When the user invokes `/token-stats`, analyze token usage and display savings. ### 1. Gather Activity Data ```bash REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || echo "$PWD") ACTIVITY_FILE="$REPO_ROOT/.claude-memory/activity.log" # Count files read this session if [ -f "$ACTIVITY_FILE" ]; then echo "=== Session Activity ===" FILES_READ=$(grep -c "READ:" "$ACTIVITY_FILE" 2>/dev/null || echo "0") FILES_EDITED=$(grep -c "EDIT:" "$ACTIVITY_FILE" 2>/dev/null || echo "0") SEARCHES=$(grep -c "SEARCH:" "$ACTIVITY_FILE" 2>/dev/null || echo "0") echo "Files read: $FILES_READ" echo "Files edited: $FILES_EDITED" echo "Searches performed: $SEARCHES" else echo "No activity log found for this session" fi ``` ### 2. Calculate Codebase Stats ```bash REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || echo "$PWD") # Common exclusions for dependencies/build artifacts across languages EXCLUDES=( # Node.js/JavaScript --glob '!node_modules/' --glob '!bower_components/' --glob '!.npm/' --glob '!.yarn/' --glob '!.pnpm-store/' --glob '!dist/' --g

What's inside
Steps it walks through
  1. Instructions
  2. 1. Gather Activity Data
  3. 2. Calculate Codebase Stats
  4. 3. Query Memory for Historical Data
  5. 4. Calculate and Display Economics
  6. 5. Token Calculation Logic
  7. 6. Pro Tips
  8. Notes
Ships with 1 file
  • metadata.json
Commands it runs
Count files read this session
if [ -f "$ACTIVITY_FILE" ]; then
echo "=== Session Activity ==="
echo "Files read: $FILES_READ"
echo "Files edited: $FILES_EDITED"
echo "Searches performed: $SEARCHES"
else
echo "No activity log found for this session"
fi
Common exclusions for dependencies/build artifacts across languages
More from claude-skill-registry
All skills →
About this skill
What does the token-stats skill do?

Show token economics comparing usage with turbo-search vs without. Demonstrates actual savings from search-first approach.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill token-stats --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going