Context Optimization

Context Optimization is a skill for Claude Code, Codex from Mte90/dotfiles. It costs 29 tokens per session (442 once invoked), scanned A, original, no licence file.

A set of techniques for managing the information supplied to an AI coding agent so its context window is used efficiently, with less delay and less risk of missing important details.

In plain words
What is it for?
Use it to organize, mask, and condense task context during lengthy coding work.
Why use it?
It helps prevent relevant information from being overlooked when a long task contains more material than the agent can handle equally well.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit Use it to organize, mask, and condense task context during lengthy coding work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mte90/dotfiles/context-optimization
Install

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.

Any agent
npx skills add Mte90/dotfiles --skill context-optimization
Clone the repo
git clone --depth 1 https://github.com/Mte90/dotfiles

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Context Optimization

README.md
[![agentmods](https://agentmods.dev/badge/skills/mte90/dotfiles/context-optimization/github.svg)](https://agentmods.dev/skills/mte90/dotfiles/context-optimization)
Your own site
<a href="https://agentmods.dev/skills/mte90/dotfiles/context-optimization"><img src="https://agentmods.dev/badge/skills/mte90/dotfiles/context-optimization/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Context Optimization

Your own site · 80×15
<a href="https://agentmods.dev/skills/mte90/dotfiles/context-optimization"><img src="https://agentmods.dev/badge/skills/mte90/dotfiles/context-optimization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 442 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What 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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.00442
Opus 5.5 $0.00012 $0.00177
Sonnet 5.5 $0.00006 $0.00088
Haiku 4.5 $0.00003 $0.00044

Measured 1mo ago against content hash 705feb67193b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Context Optimization scanned grade A with 0 findings 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 1mo ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.config/opencode/skills/common/context-optimization/SKILL.md · 48 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 1mo ago First seen · 48 lines · 29 tokens per session scan A 705feb67193b

Subscribe to this mod's changes

Context Optimization is a skill published in the GitHub repository Mte90/dotfiles (51 stars, last pushed 9d ago), with no licence file. It adds 29 tokens to every session and 442 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

save-memory

Export and distill the current conversation into a memory file. Use when the user asks to save, remember, or note the current session for future context.

aiya000/dotfiles · 34 tokens

sync-memory

Make /.ai-memory -- the git repository that holds memory files and handoffs, shared by the local machine and Claude Code cloud sessions -- ready to read and write, and publish what was written. In a cloud session it clones the repository into the cache directory first. Used by save-memory, create-handoff, read-handoff…

aiya000/dotfiles · 92 tokens

apply-to-agents-md-git-root

Distill non-obvious, reusable information from the current session into {git-root}/AGENTS.md for future agents working in this repo, creating a minimal {git-root}/CLAUDE.md pointer if one is missing. Use when the user asks to save session learnings to AGENTS.md, or record project facts learned this session.

aiya000/dotfiles · 77 tokens

decline-handoff-suggestion

A procedure for declining a handoff offer at the start of a coding session. It marks that handoff so the same offer is not shown again, while leaving the note available if requested later.

aiya000/dotfiles · 61 tokens

save-pipeline-memory

Capture a multi-step workflow into a timestamped pipeline memory after trial-and-error sessions. The core output is: (1) the final working commands saved as executable scripts (not bare shell commands), and (2) a structured markdown document separating the clean reproducible pipeline from the detours and pitfalls.…

magic3007/dotfiles · 154 tokens

apply-to-claude-md-home-root

Append general, cross-project information learned this session into the global /.claude/CLAUDE.md. Use when the user asks to save something globally, or when apply-to-agents-md-git-root identifies high-importance general information and the user confirms it should also go global.

aiya000/dotfiles · 66 tokens