From prompt-engineering
Decide what actually goes in the context window — static instructions vs just-in-time retrieval vs conversation history vs tools — with a per-section token budget and lost-in-the-middle-aware ordering. Reach for this when the window is bloating, quality is dropping as context grows, cost/latency is climbing, or you're unsure what to keep vs compress. Pairs with prompt-pattern-selection.
How this skill is triggered — by the user, by Claude, or both
Slash command
/prompt-engineering:context-window-engineeringThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
The window is a **budget**, not a scratchpad. This skill decides what earns its
The window is a budget, not a scratchpad. This skill decides what earns its tokens and in what order.
More context is not free, and past a point it hurts. Cost and latency scale with fill, and accuracy can drop (the lost-in-the-middle effect + dilution). If quality falls as you add context, remove context.
For each thing you're tempted to include, classify it (trace
../../knowledge/prompt-decision-trees.md §3):
ai-rag-engineering),
budgeted.Assign a token ceiling to each section (system, retrieved, history, tools, output headroom). The sum must leave room for the response. Write the budget down.
When the window approaches its limit, what gets dropped or compressed first? (Usually: oldest history → least-relevant retrieved chunks → verbose examples.) Make it a rule, not an accident.
ai-rag-engineering.ai-coding-model-guidance /
claude-api.prompt-reliability-engineer.A context-inclusion plan: each section classified, a per-section token budget, the ordering (lost-in-the-middle + cache-aware), and the eviction order.
npx claudepluginhub mcorbett51090/ravenclaude --plugin prompt-engineeringGuides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.
Enforces test-driven development: write failing test first, then minimal code to pass. Use when implementing features or bugfixes.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.