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
- 脚本scripts/optimize-context.sh394 B
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
- Intercept — capture tool output.
- Index — pass to
scripts/optimize-context.sh(SQLite-based filter). - 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
escape-skill
暂无简介
zz-review-empty
暂无简介
workflow-guide
Explicit helper for Cursor PM ↔ Claude Code two-agent workflow guidance. Do NOT load for: solo implementation, workflow setup, handoff execution, or general process coaching.
vibecoder-guide
Explicit helper for non-technical VibeCoder coaching: what to ask next, how to describe work, and how to stay safe. Do NOT load for: direct implementation, technical review, or Cursor/PM workflow.
ui
Explicit helper for UI components, hero sections, forms, feedback, and contact surfaces. Do NOT load for: authentication, backend implementation, database work, or business logic.
session
Unified session management window. Handles initialization, memory, state all-in-one. Explicit /session invocation only — sub-skills handle auto-delegation. Use when managing Claude Code sessions, /session command. Do NOT load for: app user sessions, login state, authentication features.