🦀 ClawHub
context-engineer
by @tkuehnl
Context window optimizer — analyze, audit, and optimize your agent's context utilization. Know exactly where your tokens go before they're sent.
TERMINAL
clawhub install context-engineer📖 About This Skill
name: context-engineer version: 1.0.0 description: Context window optimizer — analyze, audit, and optimize your agent's context utilization. Know exactly where your tokens go before they're sent. author: Anvil AI license: MIT homepage: https://github.com/cacheforge-ai/cacheforge-skills user-invocable: true tags: - cacheforge - context-engineering - token-optimization - llm - ai-agents - prompt-optimization - observability - discord - discord-v2 metadata: {"openclaw":{"emoji":"🔬","homepage":"https://github.com/cacheforge-ai/cacheforge-skills","requires":{"bins":["python3"]}}}
When to use this skill
Use this skill when the user wants to:
Commands
# Analyze workspace context files — token counts, efficiency scores, recommendations
python3 skills/context-engineer/context.py analyze --workspace ~/.openclaw/workspaceAnalyze 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.jsonAudit tool definitions for overhead and overlap
python3 skills/context-engineer/context.py audit-tools --config ~/.openclaw/openclaw.jsonGenerate a comprehensive context engineering report
python3 skills/context-engineer/context.py report --workspace ~/.openclaw/workspace --format terminalCompare two snapshots to see projected token savings
python3 skills/context-engineer/context.py compare --before before.json --after after.json
What It Analyzes
Options
--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)Notes
⚙️ Configuration
--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)