context-engineering
Qué hace
Esta skill explica cómo organizar la información que ve un agente de IA mientras trabaja. Está pensada para personas que construyen o arreglan configuraciones de agentes que olvidan detalles o se repiten. Es una foto antigua, así que contrasta sus consejos con los modelos actuales.
Cuándo usarla
- ✓Cuando un agente se desvía, se repite u olvida límites importantes a mitad de una tarea.
- ✓Cuando decides qué instrucciones deben cargarse al principio y cuáles solo cuando hacen falta.
- ✓Cuando planeas cómo un agente debe pasar el trabajo a otro agente.
Link de la skill
https://github.com/mvschwarz/openrig/blob/main/packages/daemon/specs/agents/shared/skills/process/context-engineering/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Mi agente de IA olvida mis reglas a mitad de una tarea larga. ¿Cómo debo configurar su contexto?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La skill describe cómo se eligen, recortan y comparten los datos de la ventana de un agente. Es una foto de las prácticas de 2024 y 2025, así que el agente debe verificar los consejos antes de confiar en ellos.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Traditional Context Engineering — 2024–2025 Snapshot
Status: provisional historical research snapshot
This skill is a provisional historical research snapshot of context-engineering practice as published in 2024–2025. It is NOT normative. Do not apply it prescriptively to current frontier models without re-verification. On any conflict, OpenRig current skills, explicit user rulings, and directly measured OpenRig practice PREVAIL over this document. Treat these areas as particularly suspect pending re-verification: compaction/summarization guidance, minimal-upfront versus broad orientation, just-in-time lookup assumptions, fixed context ceilings, and single-agent versus multi-agent advice.
Curated distillation of the best publicly available expertise on context engineering for coding agents, drawn from primary sources at Anthropic, OpenAI, and leading practitioners (Manus, Cognition, Chroma, LangChain, Drew Breunig, and others). Load on the moments the description names; it is deliberately not part of any base walk.
1. The mental model: what context engineering is
Definition. Context engineering is "the set of strategies for curating and maintaining the optimal set of tokens (information) during LLM inference" — everything that lands in the window: system instructions, tool definitions, retrieved data, message history, and tool outputs, not just the prompt text (Anthropic, Effective context engineering for AI agents). Andrej Karpathy's framing, popularized via LangChain: "the delicate art and science of filling the context window with just the right information for the next step" — the LLM is a CPU and the context window is its RAM, and your job is deciding what gets loaded into RAM at each step (LangChain, Context Engineering for Agents).
Why it superseded prompt engineering. A chatbot answers one question with whatever fits in one turn. An agent runs in a loop, accumulating tool results, file contents, and history across dozens or hundreds of steps. The improvements stop coming from rewording instructions and start coming from rewiring — what the agent retrieves, in what order, and what gets evicted when the window fills (Anthropic, ibid.). Philipp Schmid's formulation of the practical consequence: "Agent failures aren't only model failures; they are context failures." Most of the time when a capable model does something dumb, the context it was given made the dumb thing likely (Schmid, The New Skill in AI is Context Engineering).
The physical constraint: attention is a budget, not a bucket. Three mechanisms make context a scarce resource rather than free storage:
- Quadratic attention. In a transformer, every token attends to every other token — n² pairwise relationships. Longer sequences stretch the model's ability to capture them, and models are trained on distributions where short sequences dominate, so they have fewer specialized parameters for context-wide dependencies. The result is "a performance gradient rather than a hard cliff" (Anthropic, Effective context engineering).
- Context rot. Chroma's study of 18 frontier models showed reliability degrades as input length grows even on trivially simple tasks like retrieval and text replication — and degradation starts well before the window is full. What matters is not just length: distractor presence, needle–question similarity, and haystack structure all change how fast performance collapses (Chroma, Context Rot).
- Position effects. Models exhibit a U-shaped attention curve: information at the beginning or end of a long context is used far better than information in the middle (Liu et al., Lost in the Middle).
The one-sentence discipline. From Anthropic: "Find the smallest set of high-signal tokens that maximize the likelihood of some desired outcome." Everything else in this pack is a technique in service of that sentence.
The components you are engineering. Schmid's inventory is a useful checklist of what actually occupies the window: (1) system instructions, (2) the user's immediate request, (3) state/history of the current session, (4) long-term memory, (5) retrieved external information, (6) tool definitions, (7) output-format specifications (Schmid, ibid.). Each is a separate dial. When an agent misbehaves, walk this list asking "which of these is missing, stale, bloated, or contradictory?"
2. Core principles (and the why behind each)
**
Preguntas frecuentes
¿Sigue vigente este consejo?
Es una foto de las prácticas de 2024 y 2025, y la skill indica que hay que verificarla antes de confiar en ella.
¿Se aplica solo a un agente?
No. Cubre también cuándo usar subagentes y cómo pasar el trabajo entre agentes.
¿Qué cuenta como contexto?
Todo lo que ve el agente, como instrucciones, definiciones de herramientas, datos recuperados y mensajes anteriores.
Detalles
Descripción original del autor
Use when designing, reviewing, or debugging how an agent's context window gets filled, pruned, or shared — choosing what loads at boot versus on demand, sizing an install or an always-loaded file, fixing an agent that drifts, repeats itself, or forgets constraints mid-task, planning compaction or summarization, deciding single-agent versus subagents, engineering handoffs between agents, or picking a tool loadout. NOT for rewording a prompt's tone, choosing which model to pin, or debugging business logic — those are adjacent moments this skill does not serve. Historical 2024–2025 snapshot; not
repo: mvschwarz/openrig
Popularidad
- Estrellas en GitHub
- 8,6 mil
- Posición en el ranking
- #12423
- Licencia
- Apache-2.0
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
agent-operated-software
8,6 milAyuda a tu agente a diseñar, construir o depurar una app en funcionamiento cuyo backend incluye agentes de IA, como un plano de control de agentes en Markdown o JSON.
agent-operated-workflows
8,6 milAyuda a tu agente a decidir si un procedimiento acotado debe ejecutarlo un agente de IA o un código normal, y cómo retomarlo a partir de pruebas verificadas.
applying-a-permission-policy
8,6 milAyuda a tu agente a configurar los permisos de comandos que usa un agente de programación durante la configuración del equipo, para que los comandos rutinarios pidan menos aprobaciones.
claude-compaction-restore
8,6 milAyuda a un agente de Claude Code a reconstruir su visión de trabajo tras la compactación de su contexto, usando un mapa de restauración guardado, su transcripción y los archivos que tocó.
Skills parecidas
writing-skills
311 milEnseña a tu agente a escribir skills nuevas y a probar cada una primero, comprobando que realmente cambia la forma en que se comporta el agente.
writing-for-agents
310 milExplica cómo escribir instrucciones claras para agentes de IA, incluidas las skills y los archivos AGENTS.md y CLAUDE.md, para que el agente se comporte de forma predecible.
bengali-nlp
280 milHace que tu agente procese texto en bengalí. Ayuda a entender y trabajar con el idioma, normalizando el texto y gestionando sus características propias.