Optimizes agent context setup. Use when starting a new session, when agent output quality degrades, when switching between tasks, or when you need to configure rules files and context for a project.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Context Engineering
## Overview
Feed agents the right information at the right time. Context is the single biggest lever for agent output quality — too little and the agent hallucinates, too much and it loses focus. Context engineering is the practice of deliberately curating what the agent sees, when it sees it, and how it's structured.
## When to Use
- Starting a new coding session
- Agent output quality is declining (wrong patterns, hallucinated APIs, ignoring conventions)
- Switching between different parts of a codebase
- Setting up a new project for AI-assisted development
- The agent is not following project conventions
## The Context Hierarchy
Structure context from most persistent to most transient:
```
┌─────────────────────────────────────┐
│ 1. Rules Files (CLAUDE.md, etc.) │ ← Always loaded, project-wide
├─────────────────────────────────────┤
│ 2. Spec / Architecture Docs │ ← Loaded per feature/session
├─────────────────────────────────────┤
│ 3. Relevant Source Files │ ← Loaded per task
├─────────────────────────────────────┤
│ 4. Error Output / Test Results │ ← Loaded per iteration
├─────────────────────────────────────┤
…
The line at the top of this page pins the label git:20260627.bd6e9ea, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
GET https://markdownregistry.com/api/v1/artifacts/art_vcchzciplfx7mpup
GET https://markdownregistry.com/api/v1/resolve?ref=hamza-ali-shahjahan/hamzaish/context-engineering
GET https://markdownregistry.com/api/v1/blob/ff9d4e5706bdd2eb7de1bfed569f1f42d28e478979ce6fcc32e617e7861b491d
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
hamza-ali-shahjahan/hamzaish · _archive/v0/agents/_orchestrator/SKILL.md · Top-level routing brain. Given any user request, identifies the product + stage + intent, then routes to the right…
hamza-ali-shahjahan/hamzaish · _archive/v0/agents/idea/competitor-mapper/SKILL.md · Map the competitive landscape by tier (direct/indirect/acquirer/adjacent) and argue why each could win. Antidote to…
hamza-ali-shahjahan/hamzaish · _archive/v0/agents/idea/devils-advocate/SKILL.md · Stress-test an idea or hypothesis. Build the strongest possible case AGAINST it, find disconfirming evidence, and…
hamza-ali-shahjahan/hamzaish · _archive/v0/agents/idea/idea-generator/SKILL.md · Generate startup ideas grounded in Hamza's existing patterns, current trends, and validated demand signals. Never just…
hamza-ali-shahjahan/hamzaish · _archive/v0/agents/idea/interview-synthesizer/SKILL.md · Synthesize a batch of customer interviews into evidence-for + evidence-against the hypothesis, with pattern surfacing…
hamza-ali-shahjahan/hamzaish · _archive/v0/agents/idea/problem-sharpener/SKILL.md · Turn vague problem observations into testable hypothesis statements with specific who/when/severity/current-workaround…
addyosmani/agent-skills · skills/context-engineering/SKILL.md · Optimizes agent context setup. Use when starting a new session, when agent output quality degrades, when switching…
mvschwarz/openrig · packages/daemon/specs/agents/shared/skills/process/context-engineering/SKILL.md · Use when designing, reviewing, or debugging how an agent's context window gets filled, pruned, or shared — choosing…
mvschwarz/openrig · skills/_canonical/process/context-engineering/SKILL.md · Use when designing, reviewing, or debugging how an agent's context window gets filled, pruned, or shared — choosing…
a5c-ai/babysitter · library/methodologies/gsd/skills/context-engineering/SKILL.md · Context window monitoring and budget management. Keeps orchestrator at 15-30% context usage while subagents get full…
shashankswe2020-ux/whoop-mcp · .github/skills/context-engineering/SKILL.md · Optimizes agent context setup. Use when starting a new session, when agent output quality degrades, when switching…