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

Context preview

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

Show git-aware context suggestions for current working directory

SKILL.md

cco-git.SKILL.md
name: cco-git
description: Show git-aware context suggestions for current working directory
license: MIT
allowed-tools: [Bash, Read, Glob]

Git-Aware Context Suggestions

Analyze the current git state and suggest which files Claude should read for the current task.

Run:

node ${CLAUDE_PLUGIN_ROOT}/src/git-context.js

Present the results: 1. **Current branch** and modified files 2. **Suggested files** based on git diff (modified + related test files + configs) 3. **Historical patterns** — files that were frequently useful in this project 4. Ask the user if they want to load any of the suggested files

Do NOT auto-read files. Only suggest and let the user decide.

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