Skillware skills · optimization/context_optimizer

Context Optimizer

Query-aware extractive context selection for large documents — local fastembed embeddings score chunks against agent_goal and return verbatim spans up to max_tokens_return. Mini-RAG without paraphrase; chain after prompt_injection_firewall for untrusted text.

Capabilities

Problems this skill solves

People search for tasks — not always "skillware":

Install

pip install skillware then SkillLoader.load_skill("optimization/context_optimizer")

FAQ

How is Context Optimizer different from Prompt Rewriter?
Context Optimizer selects verbatim spans from a document; Prompt Rewriter compresses text. Use the optimizer first to pick relevant chunks, then the rewriter if you still need token savings.

Open interactive skill page →