context-window-management
Prevents context overflow on long-running OpenClaw sessions. Use when approaching context limits.
git clone --depth 1 https://github.com/ArchieIndian/openclaw-superpowers /tmp/context-window-management && cp -r /tmp/context-window-management/skills/openclaw-native/context-window-management ~/.claude/skills/context-window-managementSKILL.md
# Context Window Management State file: `~/.openclaw/skill-state/context-window-management/state.yaml` ## Warning Signs - Session running for many hours - Responses getting slower or less coherent - Carrying context about completed tasks no longer relevant - Large code blocks in context not being actively used - Check `last_compacted_at` in state — if compacted recently this session, prefer a lighter strategy ## Reduction Strategies ### Summarize Completed Work Replace detailed context about finished tasks with short summaries. After: write state `strategy_used: summarize`, `current_task`, `last_compacted_at`. ### Externalize Reference Material Move large docs/schemas to files. Reference them by filename rather than including in context. After: write state `strategy_used: externalize`, `current_task`, `last_compacted_at`. ### Clean Session Restart Write comprehensive handoff document, start fresh session, load only what's needed. After: write state `strategy_used: clean_restart`, `handoff_path`, `current_task`, `last_compacted_at`. ## What to Keep in Context - Current task objective - Current step being executed - Relevant code being modified (just the parts in scope) - Recent error messages if debugging ## What to Offload - Completed task details (summarize to memory) - Full file contents of files not currently being edited - Conversation history from different topics hours ago - Reference docs that can be re-read on demand
Syncs agent daily memory and MEMORY.md to an Obsidian vault so notes are human-browsable. Use nightly or on demand.
Structured ideation before any implementation. Use when starting any non-trivial task.
Scaffolds and validates new superpowers skills. Use when creating a new skill for this repository.
Executes plans task-by-task with verification. Use when implementing a plan.
Triggers a secondary verification pass for any agent output containing factual claims, numbers, dates, or named entities before the output is acted on
Crawls a new codebase to infer stack, conventions, and key invariants, then generates a PROJECT.md context file for the agent
Handles PR review feedback by fetching comments, grouping issues, fixing one group at a time, and verifying before replies.
Detects skill name shadowing and description-overlap conflicts that cause OpenClaw to trigger the wrong skill or silently ignore one when two skills compete for the same intent.