token-usage-analyzer

Analyze Claude Code session token usage and generate cost optimization reports.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/usadamasa/claude-config --skill token-usage-analyzer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: token-usage-analyzer
Source: https://github.com/usadamasa/claude-config/tree/main/.claude/skills/token-usage-analyzer
Command: npx skills add https://github.com/usadamasa/claude-config --skill token-usage-analyzer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires go, and includes scripts (resource) components.

What problem does it solve?

This Skill helps you understand and reduce your Claude token consumption by analyzing usage patterns and identifying areas for optimization, ultimately saving costs and improving efficiency.

Core Features & Use Cases

  • Token Usage Analysis: Provides detailed breakdowns of token usage across sessions, projects, and models.
  • Automated Warnings: Flags potential issues like high average input per call, excessive API calls per message, and inefficient plugin/skill usage.
  • Cost Optimization: Offers actionable recommendations to reduce token spend.
  • Use Case: After a month of heavy Claude usage, you can run this skill to see which projects or sessions consumed the most tokens and get specific advice on how to reduce future costs.

Quick Start

Analyze the token usage for the last 30 days and display any warnings.

Frequently Asked Questions about token-usage-analyzer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze Claude Code token usage to reduce API costs?

To analyze Claude Code token usage, you can run this skill to review global consumption and project-specific expenses, identifying inefficient API call patterns to reduce API costs. It provides detailed statistical reports and actionable cost-saving recommendations.

What is the best way to identify inefficient Claude API call patterns in my projects?

The best way to identify inefficient Claude API call patterns is by analyzing session token usage for issues like high average input per call and excessive API calls per message. This skill flags these potential issues automatically and offers optimization advice.

Do I need to install Go to analyze Claude session token consumption?

Yes, you need to install Go because the skill depends on the Go environment to execute its analysis scripts. These scripts process your session data to generate detailed statistical reports on token consumption and warnings.

Can I get automated warnings for high average input per call in Claude sessions?

Yes, you can get automated warnings for high average input per call, excessive API calls per message, and inefficient plugin usage by analyzing your Claude sessions. This process flags potential issues and provides actionable cost optimization recommendations.

When should I review my prompt engineering token usage for performance tuning?

You should review your prompt engineering token usage for performance tuning after periods of heavy Claude usage, such as monthly. This helps identify which projects or sessions consumed the most tokens and provides specific advice to reduce future costs.

What kind of cost optimization recommendations does the token usage analysis provide?

The token usage analysis provides actionable cost optimization recommendations by identifying inefficient API call patterns and areas for resource allocation improvement. It helps you understand consumption patterns to save costs and improve overall efficiency.