context-window-management
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.
More from aiming-lab/metaclaw
structured-step-by-step-reasoning
Use this skill for any problem that involves multiple steps, tradeoffs, or non-trivial logic. Think out loud before answering to improve accuracy and transparency. Apply whenever the answer is not immediately obvious.
13codebase-navigation
Use this skill when exploring an unfamiliar codebase, tracing code paths, or answering questions about how the system works. Read before writing, and build a mental model of the architecture before making changes.
12auth-and-authorization-patterns
Use this skill when implementing authentication (login, token issuance) or authorization (access control, permissions). Apply whenever the task involves login flows, JWT, OAuth2, session management, or RBAC.
8test-before-ship
Use this skill when implementing a new feature or fixing a bug. Write or update tests before marking the task done. Never consider code complete without verifying it works through automated tests.
4input-validation-and-sanitization
Use this skill when implementing any endpoint, form handler, CLI tool, or function that accepts external input. Validate and sanitize all untrusted data before processing — never assume input is safe.
4tool-selection-strategy
Use this skill when deciding which tools to call in an agentic workflow. Always choose the minimal, most direct tool for each step and avoid redundant or speculative tool calls.
4