Skip to content
shell
$ npx -y skills add egorfedorov/claude-context-optimizer --skill cco-replay --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-replay
How auto-invocation works

Context preview

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

Show recent session summaries for quick context recovery

SKILL.md

cco-replay.SKILL.md
name: cco-replay
description: Show recent session summaries for quick context recovery
license: MIT
argument-hint: "[N] (number of sessions to show, default 5)"
allowed-tools: [Bash]

Session Replay

Show the user summaries of their recent sessions so they can quickly recover context.

Parse $ARGUMENTS for the number of sessions to show (default: 5).

Run:

node ${CLAUDE_PLUGIN_ROOT}/src/replay.js $ARGUMENTS

Present the output to the user. It shows recent session summaries including: 1. When the session happened and how long it lasted 2. Which files were edited 3. Token usage and waste percentage

If no summaries exist yet, tell the user: "No session summaries yet. They're generated automatically at the end of each session — just keep working!"

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