token-stats
Show token economics comparing usage with turbo-search vs without. Demonstrates actual savings from search-first approach.
Profile →npx skills add majiayu000/claude-skill-registry --skill token-stats --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# /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
- Instructions
- 1. Gather Activity Data
- 2. Calculate Codebase Stats
- 3. Query Memory for Historical Data
- 4. Calculate and Display Economics
- 5. Token Calculation Logic
- 6. Pro Tips
- Notes
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
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.