context-cost-line-item-analyzer

Official

Pinpoint and trim context costs in agent sessions

Authorm2ai-portfolio
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Breaks down an agent session's token spend into context-loaded-before-first-prompt versus output-generated-during-session, revealing the main drivers of context cost and enabling targeted optimizations.

Core Features & Use Cases

  • Context breakdown: classify spend into startup overhead, system prompts, memory, MCP tool schemas, and skill descriptions.
  • Driver ranking: produce a prioritized list of context cost items with estimated token budgets.
  • Reduction guidance: generate actionable recommendations to cut context tokens in ongoing projects.

Quick Start

Run the analyzer on your project to surface context-cost drivers and suggested reductions.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: context-cost-line-item-analyzer
Download link: https://github.com/m2ai-portfolio/m2ai-skills-pack/archive/main.zip#context-cost-line-item-analyzer

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.