optimize SKILL.md skillB
optimize from ictechgy/context-guard is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add ictechgy/context-guard/optimize@git:20260905.919b87dPins git:20260905.919b87d in mdr.lock. Pin the fingerprint instead.
- Audit grade
- B, 16 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- ictechgy/context-guard
- Path
plugins/context-guard/skills/optimize/SKILL.md- Versions recorded
- 4
- Latest version
- git:20260905.919b87d, committed Sep 5, 2026
- First version recorded
- May 29, 2026
- Size
- 3,371 bytes
- Repository stars
- 3
- License
- Apache-2.0
Diagnose and reduce Claude Code token usage for a project or session using context hygiene, model and effort routing, MCP minimization, output trimming/sanitizing, subagent discipline, and measurement. Use when the user asks to lower Claude Code token usage, cost, context bloat, or usage-limit burn.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# ContextGuard Goal: reduce Claude Code token usage without lowering task success quality. Use this order: 1. Measure before changing behavior. - Ask the user to run `/usage` and `/context` if inside Claude Code. - For first-time setup, run `context-guard-setup --plan` and offer `context-guard-setup --yes` for recommended project-local settings. - If transcript files are available, run `context-guard-audit ~/.claude/projects --top 20 --recommend`. - For project configuration/context bloat, run `context-guard-diet scan .`. - For structural waste such as duplicate rules, stale import candidates, oversized tool schemas, or repeated reads in local logs, run `context-guard-diet structural-waste . --json`. 2. Identify the largest bucket: - stale conversation history -> recommend `/clear` between unrelated tasks and focused `/compact` for long tasks. - startup context -> prune `CLAUDE.md`, move long workflows to skills, disable unused MCP servers. - large file reads -> use `context-guard-read-symbol` and the example Read guard before whole-file context. …
Read the whole file at its exact version.
How to install
mdr add ictechgy/context-guard/optimize@sha256:6b60918eddd1479fThe line at the top of this page pins the label git:20260905.919b87d, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_d3xcmektzbxk7vig)
6 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 4 versions of this file, between May 29, 2026 and Sep 5, 2026, about one every 33 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260905.919b87d latest | 2026-09-05 | 919b87d | 3,371 B | B | view · diff |
| git:20260607.036ab29 | 2026-06-07 | 036ab29 | 3,544 B | B | view · diff |
| git:20260607.a4e652d | 2026-06-07 | a4e652d | 3,369 B | B | view · diff |
| git:20260529.be21325 | 2026-05-29 | be21325 | 3,094 B | B | view |
Audit of the latest version
- fail: Frontmatter declares a name
- pass: Frontmatter block present
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (3371 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Starting a new one? Use a template for SKILL.md on mdpantry, which passes every one of these checks and says what to change in it.
Source
ictechgy/context-guard · 3 stars · license Apache-2.0 · pushed 2026-09-06 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_d3xcmektzbxk7vig GET https://markdownregistry.com/api/v1/resolve?ref=ictechgy/context-guard/optimize GET https://markdownregistry.com/api/v1/blob/6b60918eddd1479f1d4f72792a3ee9b3d0acac4f6549614720b11bf3ba67feac
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from ictechgy/context-guard
Every file in ictechgy/context-guard