/cco-shield
Show ContextShield status and waste protection stats; suggest or apply .contextignore rules from historical waste
$ npx -y skills add egorfedorov/claude-context-optimizer --skill cco-shield --agent claude-codeHow 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-shield
Context preview
The summary Claude sees to decide when to auto-load this skill.
Show ContextShield status and waste protection stats; suggest or apply .contextignore rules from historical waste
SKILL.md
cco-shield.SKILL.mdname: cco-shield
description: Show ContextShield status and waste protection stats; suggest or apply .contextignore rules from historical waste
license: MIT
allowed-tools: [Bash, Read]
ContextShield Status
Show the user the current ContextShield protection status and historical waste prevention stats.
Subcommands
If the user asked for suggestions (`/cco-shield suggest`) or to apply them (`/cco-shield apply`), run instead:
node ${CLAUDE_PLUGIN_ROOT}/src/context-shield.js suggest # preview .contextignore candidates
node ${CLAUDE_PLUGIN_ROOT}/src/context-shield.js apply # append them to ./.contextignore`suggest` lists files wasted in 3+ sessions as ready-to-use `.contextignore` patterns with per-session token savings. `apply` appends them (deduped against existing rules) so those reads are blocked permanently. Show the output as-is.
Status report (default)
Run the following command to get pattern data:
node ${CLAUDE_PLUGIN_ROOT}/src/tracker.js patternsFrom the patterns data, present:
1. **ContextShield Status**: Active (it's always active as a PreToolUse hook) 2. **Protected Files**: List files with 3+ waste sessions — these trigger warnings before Read 3. **Tokens Saved**: Estimate based on waste history (files that would have been read without shield) 4. **Co-occurrence Groups**: Files that are usually edited together
Format as a clean status report. If no pattern data exists yet, tell the user: "ContextShield is warming up! It learns from your usage patterns and will start giving you smart suggestions after a few sessions."
End the report with:
ContextShield runs automatically on every Read. No configuration needed.
Read more
name: cco-shield description: Show ContextShield status and waste protection stats; suggest or apply .contextignore rules from historical waste license: MIT allowed-tools: [Bash, Read]
ContextShield Status
Show the user the current ContextShield protection status and historical waste prevention stats.
Subcommands
If the user asked for suggestions (`/cco-shield suggest`) or to apply them (`/cco-shield apply`), run instead:
node ${CLAUDE_PLUGIN_ROOT}/src/context-shield.js suggest # preview .contextignore candidates
node ${CLAUDE_PLUGIN_ROOT}/src/context-shield.js apply # append them to ./.contextignore`suggest` lists files wasted in 3+ sessions as ready-to-use `.contextignore` patterns with per-session token savings. `apply` appends them (deduped against existing rules) so those reads are blocked permanently. Show the output as-is.
Status report (default)
Run the following command to get pattern data:
node ${CLAUDE_PLUGIN_ROOT}/src/tracker.js patternsFrom the patterns data, present:
1. **ContextShield Status**: Active (it's always active as a PreToolUse hook) 2. **Protected Files**: List files with 3+ waste sessions — these trigger warnings before Read 3. **Tokens Saved**: Estimate based on waste history (files that would have been read without shield) 4. **Co-occurrence Groups**: Files that are usually edited together
Format as a clean status report. If no pattern data exists yet, tell the user: "ContextShield is warming up! It learns from your usage patterns and will start giving you smart suggestions after a few sessions."
End the report with:
ContextShield runs automatically on every Read. No configuration needed.
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.
Repo: egorfedorov/claude-context-optimizer
Other skills on claude-context-optimizer.
- /cco-anatomy
Generate a compact project map so Claude understands the codebase without opening every file
Open skill - /cco-budget
Configure token budget limits, auto-compact settings, and view current budget status (model-aware — Opus 4.8 default, full 1M context at standard price)
Open skill - /cco-claudemd
Analyze CLAUDE.md files for token bloat and suggest optimizations
Open skill - /cco-clean
Clean up old tracking data and reset statistics
Open skill - /cco-coach
Analyze the user's last prompt for clarity, scope and specificity — give a quality score and concrete suggestions to make the next prompt produce better results
Open skill - /cco-digest
Show weekly/daily efficiency digest with score and trends
Open skill

