Skip to content
Agentmart
Submit a tool

kco-shield

Show ContextShield status and waste protection stats; suggest or apply .contextignore rules from historical waste

Skill by egorfedorov

IndexedMIT★ 6
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/egorfedorov-kco-shield

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Show ContextShield status and waste protection stats; suggest or apply .contextignore rules from historical waste

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/kco-shield

What's inside

Skill name
kco-shield
Description
Show ContextShield status and waste protection stats; suggest or apply .contextignore rules from historical waste
License
MIT
Instructions
42 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# ContextShield Status

Show the user the current ContextShield protection status and historical waste prevention stats.

## Subcommands

If the user asked for suggestions (`/kco-shield suggest`) or to apply them
(`/kco-shield apply`), run instead:

```bash
node ${KIMI_SKILL_DIR}/../../src/context-shield.js suggest   # preview .contextignore candidates
node ${KIMI_SKILL_DIR}/../../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:

```bash
node ${KIMI_SKILL_DIR}/../../src/tracker.js patterns
```

From the patterns data, present:

1. **ContextShield Status**: Active (it runs as a PreToolUse hook on every Read)
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.
```

From egorfedorov/kimi-context-optimizer, MIT.

More from egorfedorov/kimi-context-optimizer

Signals

Stars
6
Forks
1
Open issues
0
Last commit (this folder)
Jul 18, 2026 (3 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from egorfedorov

Cite this page

kco-shield skill. Agent Mart. https://agentmart.dev/skills/egorfedorov-kco-shield (last updated 2026-10-24)