Install
openclaw skills install @mohitagw15856/context-engineering-reviewReview what an LLM feature or agent actually puts in its context window — and find what's bloating, missing, or fighting itself. Use when asked to review a system prompt and context assembly, cut token usage without losing quality, debug an agent that ignores instructions, or audit how retrieval results, history, and tool definitions are packed into the window. Produces a context inventory with a keep/cut/restructure verdict per component, ordering and caching fixes, and a token budget. For wording-level prompt tuning use prompt-optimizer.
openclaw skills install @mohitagw15856/context-engineering-reviewMost agent failures aren't model failures — they're context failures: instructions buried under retrieval dumps, stale history contradicting fresh facts, twelve tool definitions the task never needed. This skill audits the assembled window, not just the prompt text.
Ask for (if not already provided):
1. Inventory. List every component in window order: system prompt sections, tool definitions, retrieved documents, conversation history, few-shot examples, injected state. For each: token count (estimate if unlogged), static vs. dynamic, and owner.
2. Interrogate each component:
3. Check the structural patterns:
4. Budget. Assign each component a token ceiling that sums comfortably under the limit at p95, and name where it's enforced (the assembly code, not hope).
Reviewed: [a real request from date / the template]. Current size: [n] tokens typical, [n] p95, limit [n].
| # | Component | Tokens | Static? | Verdict | Fix |
|---|---|---|---|---|---|
| 1 | [system: persona] | ✓ | Keep | — | |
| 2 | [12 tool defs] | ✓ | Restructure | [narrow per task] | |
| 3 | [retrieval, k=20] | dyn | Cut to k≤8 by score |
Conflicts found: [each contradiction and which side should win]
Ordering / caching: [the reordered layout; what moves out of the stable prefix]
Token budget: [component → ceiling; enforcement point]. Projected size: [n] (−[x]%).
Verify: re-run [the eval suite / golden cases] after changes — cuts must be validated, not assumed safe (see prompt-regression-suite).