Skip to content
shell
$ npx -y skills add egorfedorov/claude-context-optimizer --skill cco-report --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/cco-report
How auto-invocation works

Context preview

The summary Claude sees to decide when to auto-load this skill.

Show detailed token ROI report across all tracked sessions

SKILL.md

cco-report.SKILL.md
name: cco-report
description: Show detailed token ROI report across all tracked sessions
license: MIT
allowed-tools: [Bash, Read]

Context Token ROI Report

Generate and display a comprehensive token usage report across all tracked sessions.

Run:

node ${CLAUDE_PLUGIN_ROOT}/src/report.js full

Present the full report to the user. After showing it, provide actionable insights:

1. If the waste trend is WORSENING, warn the user and suggest specific changes 2. If there are top wasted files, suggest the user avoid reading those files in future sessions or use more targeted reads (offset/limit) 3. If average tokens per session is high, suggest task splitting strategies 4. Calculate the estimated monthly cost savings if the user maintains current improvement trends

Also run:

node ${CLAUDE_PLUGIN_ROOT}/src/tracker.js suggest "$(pwd)"

And present the smart suggestions (files to preload, files to avoid) for the current project directory.

Read it on GitHub ↗
Ships withclaude-context-optimizer

Claude Code plugin that tracks token usage, identifies wasted context, and saves 30-50% on API costs. Heatmaps, ROI reports, budget alerts, efficiency scores, git-aware suggestions — all local, zero config.

Get the whole plugin, auto-invoked
Stats
85
Stars
0
Views
10
Forks
Active
Maintenance
JavaScript
Language
MIT
License
20d ago
Last commit
4mo ago
Created

Repo: egorfedorov/claude-context-optimizer