MCPInstall

context-engineering

Designing what information goes into the context window and in what order.

Installs
135
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/owl-listener/ai-design-skills --skill context-engineering
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads context-engineering automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Context Engineering

The context window is finite. What goes into it — and in what order — determines the quality of every output. Context engineering is the practice of deliberately designing the information architecture of the context window.

The Context Budget

Every context window has a token budget. Allocate it deliberately:

  • System prompt: The foundational instructions (typically 5-20% of the budget)
  • Retrieved context: Documents, data, and information pulled in for the current task
  • Conversation history: Previous turns in the conversation
  • User input: The current request
  • Working space: Room for the model to generate its response These compete for space. More retrieved context means less conversation history. A longer system prompt means less room for everything else.

Information Architecture in Context

Order matters. The model pays different amounts of attention to different positions:

  • Beginning: High attention. Put your most important instructions here.
  • Middle: Lower attention. This is where information can get lost in long contexts.
  • End: High attention. The most recent information (user input) naturally goes here.
  • Adjacent to the task: Information placed right before the user's question gets more attention than information earlier in the context.

Context Selection

Not everything should go into the context. Design selection criteria:

  • Relevance: Does this information help answer the current question?
  • Recency: Is this the most up-to-date information available?
  • Specificity: Is this specific enough to be useful, or is it too generic?
  • Redundancy: Is this information already covered elsewhere in the context?
  • Authority: Is this from a reliable source?

Context Strategies

  • Retrieval-augmented generation (RAG): Pull relevant documents into the context dynamically
  • Summarisation: Compress older context into summaries to free up space
  • Prioritised history: Keep recent and important conversation turns, drop less important ones
  • Structured context: Organise information with clear headers and sections so the model can navigate it
  • Context caching: Pre-compute and cache frequently used context blocks

Context Quality Signals

How to tell if your context engineering is working:

  • Output relevance: Do outputs address the actual question using the provided context?
  • Hallucination rate: Is the model making things up because the context is insufficient?
  • Context utilisation: Is the model actually using the provided context, or ignoring it?
  • Consistency: Are outputs consistent when the same context is provided?

Design Artefacts

  • Context budget allocation documents
  • Information architecture diagrams for the context window
  • Context selection criteria per feature
  • Retrieval strategy specifications
  • Context quality monitoring metrics

FAQ

What does the context-engineering skill do?

Designing what information goes into the context window and in what order.

How do I install context-engineering?

Run npx skills add https://github.com/owl-listener/ai-design-skills --skill context-engineering in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/context-engineering/ (personal) or .claude/skills/context-engineering/ (project).

Which AI agents can use context-engineering?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is context-engineering safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains context-engineering?

It is published by owl-listener in owl-listener/ai-design-skills. It has 135 recorded installs.

More from owl-listener/ai-design-skills

View all →

system-prompt-structure

owl-listener/ai-design-skills

Open the skill to read its SKILL.md instructions.

AI & Agents455 installs

guardrail-design

owl-listener/ai-design-skills

Open the skill to read its SKILL.md instructions.

391 installs

constraint-specification

owl-listener/ai-design-skills

Open the skill to read its SKILL.md instructions.

374 installs

generative-ui

owl-listener/ai-design-skills

Open the skill to read its SKILL.md instructions.

Frontend & Design334 installs

conversation-patterns

owl-listener/ai-design-skills

Open the skill to read its SKILL.md instructions.

327 installs

progressive-disclosure

owl-listener/ai-design-skills

Open the skill to read its SKILL.md instructions.

318 installs

Popular other skills

View category →

hyperframes-cli

heygen-com/hyperframes

The HyperFrames CLI by job - scaffold, check, look at frames, edit the timeline, preview, render locally or in the cloud, publish, project history - plus reading its JSON and recovering from build or render failures.

1.3M installs

triage

mattpocock/skills

Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.

1M installs

ask-matt

mattpocock/skills

Ask which skill or flow fits your situation. A router over the skills in this repo.

778.4K installs

to-questionnaire

mattpocock/skills

Turn a decision you can't fully answer into a questionnaire for someone else to fill in.

508.9K installs

wait-what

mattpocock/skills

Stop. That last message did not land: re-pitch it.

459.7K installs

loop-me

mattpocock/skills

Grill me about specs for the workflows I want to build, within this workspace.

447.9K installs