context-optimizer

context-optimizer is a skill for Claude Code from rohitg00/pro-workflow. It costs 28 tokens per session (820 once invoked), scanned A, original, no licence file.

A helper for reducing token use and managing an AI session's context. Tokens are the small text units used to process a conversation and often affect cost and limits.

In plain words
What is it for?
Use it when a session feels slow, the context has degraded, or the available budget is nearly exhausted.
Why use it?
A session may become slow, lose useful context, or run out of its budget as more information accumulates. This helps optimize how that information is handled.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the pro-workflow plugin — 41 skills, 23 commands, 8 agents, 22 hooks shipped together

Good fit Use it when a session feels slow, the context has degraded, or the available budget is nearly exhausted.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rohitg00/pro-workflow/context-optimizer
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 rohitg00/pro-workflow --skill context-optimizer
Clone the repo
git clone --depth 1 https://github.com/rohitg00/pro-workflow

Made for: Claude Code.

Or install pro-workflow, the plugin that ships this one along with the rest of its 41 skills, 23 commands, 8 agents, 22 hooks.

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-optimizer

README.md
[![agentmods](https://agentmods.dev/badge/skills/rohitg00/pro-workflow/context-optimizer/github.svg)](https://agentmods.dev/skills/rohitg00/pro-workflow/context-optimizer)
Your own site
<a href="https://agentmods.dev/skills/rohitg00/pro-workflow/context-optimizer"><img src="https://agentmods.dev/badge/skills/rohitg00/pro-workflow/context-optimizer/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-optimizer

Your own site · 80×15
<a href="https://agentmods.dev/skills/rohitg00/pro-workflow/context-optimizer"><img src="https://agentmods.dev/badge/skills/rohitg00/pro-workflow/context-optimizer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 820 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00028 $0.00820
Opus 5.5 $0.00011 $0.00328
Sonnet 5.5 $0.00006 $0.00164
Haiku 4.5 $0.00003 $0.00082

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

Security

Grade A, and why

context-optimizer 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.

skills/context-optimizer/SKILL.md · 116 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

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 · 116 lines · 28 tokens per session scan A 666f1cf6533d

Subscribe to this mod's changes

context-optimizer is a skill published in the GitHub repository rohitg00/pro-workflow (2,928 stars, last pushed 26d ago), with no licence file. It adds 28 tokens to every session and 820 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

a2wave-memory

Progressively recall and maintain a2wave cross-session memory through a compact startup catalog, bounded topics, and searchable history.

LilithGames/a2wave · 29 tokens

institutional-memory-distill

Distill decisions, reasoning, and rejected alternatives from PRs, design docs, and postmortems into the project's decisionledger, so ult-context-generate's trip-wire can surface institutional memory before new work quietly repeats settled ground. Do NOT use to query the ledger against new work or decide…

linkpranay-ai/context-engineering-protocol · 89 tokens

always-on-agent-applications

What you can build and do with an always-on AI agent that has episodic memory. Covers concrete product ideas, workflows, emergent capabilities from persistence plus memory, and real-world examples of deployed persistent agents. Helps you go from "I have the architecture" to "here's what it actually does for me."…

curiositech/windags-skills · 160 tokens

accint-solve

Route agent work through AccInt's MCP memory loop: retrieve prior outcomes, resolve frames, and close commitments with evidence.

Ghosteken/agent-harness · 29 tokens

kiro-steering-custom

Create custom steering documents for specialized project contexts.

gotalab/cc-sdd · 14 tokens

Self-Improving + Proactive Agent

Self-reflection + Self-criticism + Self-learning + Self-organizing memory. Agent evaluates its own work, catches mistakes, and improves permanently. Use when (1) a command, tool, API, or operation fails; (2) the user corrects you or rejects your work; (3) you realize your knowledge is outdated or incorrect; (4) you…

UnicomAI/wanwu · 105 tokens