context-window-management

star 3.4k

Use this skill in long conversations or multi-turn agentic sessions where context may be lost or the conversation is approaching token limits. Summarize, prioritize, and compact context proactively before it becomes a problem.

aiming-lab By aiming-lab schedule Updated 3/10/2026

name: context-window-management description: Use this skill in long conversations or multi-turn agentic sessions where context may be lost or the conversation is approaching token limits. Summarize, prioritize, and compact context proactively before it becomes a problem. category: agentic

Context Window Management

Proactive summarization:

  • At natural breakpoints, summarize key decisions and state into a compact form.
  • Keep the active context focused on the current task; move resolved context to a summary.

Prioritization:

  • Most important: current task description, constraints, and already-confirmed decisions.
  • Less important: verbose tool outputs that have been processed; intermediate reasoning.

File-based memory: For long-running sessions, write important state to a file rather than keeping it all in the conversation.

Avoid: Repeatedly re-reading large files you already have in context; re-running expensive searches for information already retrieved.

Install via CLI
npx skills add https://github.com/aiming-lab/MetaClaw --skill context-window-management
Repository Details
star Stars 3,438
call_split Forks 442
navigation Branch main
article Path SKILL.md
More from Creator