Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/ictechgy/context-guard/setupnpx skills add ictechgy/context-guard --skill setupgit clone --depth 1 https://github.com/ictechgy/context-guardWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00035 | $0.00425 |
| Opus 5 | $0.00017 | $0.00212 |
| Sonnet 5 | $0.00007 | $0.00085 |
| Haiku 4.5 | $0.00003 | $0.00042 |
Grade B, and why
setup scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
- Do not modify global `~/.claude/settings.json`. What it actually says
ContextGuard Setup
Goal: help the user configure this plugin without memorizing helper commands.
Default flow:
- Run a read-only health check and plan first:
context-guard-setup --verify
context-guard-setup --plan
- Explain the options briefly:
- deny bulky/sensitive reads,
- token/cost statusline,
- Bash trim + grep/diff sanitizer hook,
- large Read guard,
- failed-attempt nudge for repeated Bash failures,
- missing model/effort defaults.
- If the user wants the recommended project-local setup, run:
context-guard-setup --yes
- Treat the post-apply
context-guard-diet scansummary emitted by setup as the default remaining-gap check; runcontext-guard-diet scan .separately only when the user wants the full report. - For automation that must skip the post-apply scan summary, run
context-guard-setup --no-diet-scan --yes. - If they want extra token reduction beyond setup, prefer local artifact escrow, symbol reads, and semantic digests rather than external model offload.
Safety:
- Do not modify global
~/.claude/settings.json. - Prefer project-local
.claude/settings.json. context-guard-setup --verifyis a local read-only health check and never applies settings.- Setup's post-apply scan is local, read-only, and prints a summary only; it does not mutate settings.
- Setup should use packaged/check-out helper paths by default; only pass
--allow-path-helper-fallbackwhen the user explicitly trusts a PATH-installed ContextGuard helper set.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 44 lines · 35 tokens per session scan B deb6f90cf540
setup is a skill published in the GitHub repository ictechgy/context-guard (3 stars, last pushed yesterday), licensed Apache-2.0. It adds 35 tokens to every session and 425 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
audio-hooks
Use whenever the user asks to install, configure, uninstall, snooze, mute, test, troubleshoot, or change settings for the echook audio notification system. Trigger phrases include "audio hooks", "audio notifications", "snooze audio", "mute claude", "claude is too loud", "test audio", "switch audio theme", "rate limit…
rule
Skill "rule" from x-cmd/x-cmd, covering rule — rules to rule, 核心命令, 规则文件格式, 示例 and 验证规则文件格式.
wikipedia
Search and read Wikipedia via x wkp — MediaWiki API, no API key, zero install; query, extract, suggest, and DDG route in one module. Load for wiki, wikipedia, encyclopedia lookup, article summary.
triage-issue-local
Repo-specific triage guidance for warp. Only the categories declared overridable by the core triage-issue skill may be specialized here.
test-warp-ui
Guides testing Warp UI features and changes using the computer use tool. Use this skill only when computer-use testing was requested (explicit request or accepted offer) and the computeruse tool is available to the agent. Covers launching Warp and verifying UI behavior.
claw-x-hub
Cloud file hosting, static site deployment, and cloud compilation using x hub. Use when the agent needs to share files/images, deploy a static website, or perform cloud compilation.