AGENT SKILL

context-optimizer

Optimizes context window usage by indexing tool outputs in SQLite. MUST be used by memory-manager before context injection into agents.

License 许可
MIT
最近更新
2026-07-24
Stars
★ 0
Forks
0

01 前言 Front Matter

name
context-optimizer
description
Optimizes context window usage by indexing tool outputs in SQLite. MUST be used by memory-manager before context injection into agents.

02 资源文件 1

03 SKILL.md 正文

name: context-optimizer description: >- Optimizes context window usage by indexing tool outputs in SQLite. MUST be used by memory-manager before context injection into agents.

  • Whenever task output exceeds 5,000 tokens.
  • When agentic loops are suffering from "lost-in-the-middle" context degradation.
  • Before injecting complex tool outputs into a parent orchestrator.

Workflow

  1. Intercept — capture tool output.
  2. Index — pass to scripts/optimize-context.sh (SQLite-based filter).
  3. Inject — return only distilled, relevant snippets to parent.

Gold Standard Contract

Skill-self-improve: <skip> Target: .cursor/skills/context-optimizer/ Next owner: parent — <one line>

04 同仓库更多 Skills