Install
openclaw skills install context-engineerContext window optimizer — analyze, audit, and optimize your agent's context utilization. Know exactly where your tokens go before they're sent.
openclaw skills install context-engineerUse this skill when the user wants to:
# Analyze workspace context files — token counts, efficiency scores, recommendations
python3 skills/context-engineer/context.py analyze --workspace ~/.openclaw/workspace
# Analyze with a custom budget and save a snapshot for later comparison
python3 skills/context-engineer/context.py analyze --workspace ~/.openclaw/workspace --budget 128000 --snapshot before.json
# Audit tool definitions for overhead and overlap
python3 skills/context-engineer/context.py audit-tools --config ~/.openclaw/openclaw.json
# Generate a comprehensive context engineering report
python3 skills/context-engineer/context.py report --workspace ~/.openclaw/workspace --format terminal
# Compare two snapshots to see projected token savings
python3 skills/context-engineer/context.py compare --before before.json --after after.json
--workspace PATH — Path to workspace directory (default: ~/.openclaw/workspace)--config PATH — Path to OpenClaw config file (default: ~/.openclaw/openclaw.json)--budget N — Context window token budget (default: 200000)--snapshot FILE — Save analysis snapshot to FILE for later comparison--format terminal — Output format (currently: terminal)