context-optimization

context-optimization is a skill for Claude Code, Codex from sheng3233836/vibe-coding-standards. It costs 57 tokens per session (1,560 once invoked), scanned A, original, no licence file.

A guide for using an AI assistant's context—the information it keeps available during a task—more efficiently.

In plain words
What is it for?
It is for reducing context use, planning context budgets, masking old observations, splitting context, and applying key-value cache optimisation.
Why use it?
It helps when context limits or token costs make long tasks harder to run or more expensive.

Skill for Claude CodeCodex

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

Good fit It is for reducing context use, planning context budgets, masking old observations, splitting context, and applying key-value cache optimisation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sheng3233836/vibe-coding-standards/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 sheng3233836/vibe-coding-standards --skill context-optimization
Clone the repo
git clone --depth 1 https://github.com/sheng3233836/vibe-coding-standards

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/sheng3233836/vibe-coding-standards/context-optimization/github.svg)](https://agentmods.dev/skills/sheng3233836/vibe-coding-standards/context-optimization)
Your own site
<a href="https://agentmods.dev/skills/sheng3233836/vibe-coding-standards/context-optimization"><img src="https://agentmods.dev/badge/skills/sheng3233836/vibe-coding-standards/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/sheng3233836/vibe-coding-standards/context-optimization"><img src="https://agentmods.dev/badge/skills/sheng3233836/vibe-coding-standards/context-optimization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,560 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.00057 $0.01560
Opus 5.5 $0.00023 $0.00624
Sonnet 5.5 $0.00011 $0.00312
Haiku 4.5 $0.00006 $0.00156

Measured 1mo ago against content hash 11cde65d1586, 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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/compaction.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/context-optimization/SKILL.md · 180 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 · 180 lines · 57 tokens per session scan A 11cde65d1586

Subscribe to this mod's changes

context-optimization is a skill published in the GitHub repository sheng3233836/vibe-coding-standards (1 stars, last pushed 6mo ago), with no licence file. It adds 57 tokens to every session and 1,560 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

context-injection

Place trusted contextual information into prompts or agent state using explicit boundaries, provenance, and templates. Use when relevant context has already been selected and must be inserted safely; use context-retrieval to find it or context-optimization to choose and order it.

seb1n/awesome-ai-agent-skills · 54 tokens

prompt-engineering

Use when advanced prompt engineering — chain-of-thought, few-shot, tree-of-thought, self-consistency, meta-prompting, system design, debugging, and optimization for production AI systems. Use when working with prompt engineering.

oyi77/1ai-skills · 51 tokens

dify-workflow

Use when dify AI workflow platform — LLM apps, knowledge bases, agents, workflow orchestration, API deployment. Use when working with dify workflow.

oyi77/1ai-skills · 37 tokens

bootstrap-llm-synthesis

Construct the LLM synthesis prompt from project surface scan + optional tree-sitter context + optional Q&A answers. Call the LLM. Parse and validate the response into 6-8 structured memory entries with clarity tags and source traceability. Used as Stage 3 of the /gaai:bootstrap pipeline.

digipulse-engineering/GAAI-framework · 69 tokens

context-repo-mcp

Search, retrieve, version, and persist prompts, documents, and collections through the hosted Context Repo MCP. Use this skill whenever the user mentions Context Repo, saved prompts, prompt templates, stored documents, collections, semantic search, hierarchical document navigation, cited answers over stored documents…

Gitmaxd/context-repo-mcp · 67 tokens

context-management

Token budgeting, placement effects, RAG patterns, prompt caching, compression, and multi-turn context strategies for LLM applications. Use when dealing with context windows, token budgets, retrieval-augmented generation, long context, context overflow, caching costs, observation masking, or compressing LLM inputs.

crouton-labs/crouton-kit · 63 tokens