Skip to main content
Run any Skill in Manus
with one click

context-engineering

Stars2
Forks0
UpdatedJune 25, 2026 at 11:58

Designs per-turn context-window assembly for an LLM/agent call — budget allocation across all context sources (system prompt + tool defs + memory + retrieved chunks + history + scratchpad), position-of-evidence ordering (lost-in-the-middle mitigation + cache-aware stable prefix), overflow/compaction strategy (truncate vs summarize vs evict), relevance gating + cross-source dedup, and assembly-quality measurement. Use when a request is over token budget, when long sessions degrade (context rot), when key evidence is being ignored, or when the prompt cache keeps missing. Sibling to `/agent-memory` (which memories exist) and `/rag-design` (retrieval ranking); defers retrieval to `/rag-design`, memory-tier design to `/agent-memory`, and cost math to `/cost-optimize`.

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly