token-audit

Measure token usage across Claude Code context files and identify optimization opportunities.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Token audit helps identify and reduce the token footprint loaded into Claude Code context, improving efficiency and cost.

Core Features & Use Cases

  • Measures total tokens across CLAUDE.md, memory/index, skills, agents, and settings.
  • Identifies waste, duplication, and opportunities to optimize context usage.
  • Use in periodic health checks, when adding new skills/agents, or diagnosing context loss.

Quick Start

Run a token-audit on your project to generate a practical efficiency report and recommended optimizations.

Frequently Asked Questions about token-audit

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

FAQPage Schema
How do I audit token usage in Claude Code to reduce context footprint?

You can audit token usage by running a context audit to measure total tokens loaded across CLAUDE.md, memory files, skills, agents, and settings. This identifies waste and duplication to optimize your context footprint.

Why does my Claude Code context lose track of earlier conversation history?

Context loss often stems from an overloaded token footprint. Auditing measures total tokens across CLAUDE.md, memory, and skills to identify waste, ensuring efficient usage and preventing context overflow.

When should I perform a context health check on my Claude Code project?

You should perform a context health check periodically or when adding new skills and memory files. This measures total tokens and identifies optimization opportunities to maintain efficient context usage.

Can I measure token duplication across Claude Code settings and memory files?

Yes, measuring token duplication across settings, memory files, and skills is possible. A token audit analyzes the loaded context to identify wasted tokens and generates a report with recommended optimizations.

What is the best way to optimize token footprint after adding new skills to Claude Code?

Running a token audit is the best way to optimize your token footprint after adding new skills. It measures total tokens loaded into context, identifies waste, and provides recommended optimizations for efficient usage.