context-fundamentals
Qué hace
Esta skill explica los fundamentos de la ingeniería de contexto: lo que una IA ve a la vez, cómo el modelo presta atención a ello y por qué la calidad importa más que la cantidad. Está pensada para personas que aprenden cómo funcionan los agentes de IA.
Cuándo usarla
- ✓Cuando quieres entender lo que un modelo de IA ve realmente cuando responde.
- ✓Cuando estás incorporando a alguien nuevo en la construcción de agentes de IA.
- ✓Cuando necesitas razonar sobre un compromiso del contexto antes de elegir una táctica concreta.
Link de la skill
https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/context-fundamentals/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
“Explícame en términos sencillos qué es una ventana de contexto y por qué más texto no siempre es mejor para mi asistente de IA.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La skill describe las partes del contexto, como las instrucciones, las herramientas, los documentos y los mensajes, y cómo la atención favorece el principio y el final de la entrada.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Context Engineering Fundamentals
Context is the complete state available to a language model at inference time: system instructions, tool definitions, retrieved documents, message history, and tool outputs. Context engineering is the discipline of curating the smallest high-signal token set that maximizes the likelihood of desired outcomes.
This skill is the conceptual foundation that every other skill in the collection builds on. It explains what context is, how attention mechanics work, why context quality matters more than quantity, and the mental models needed to interpret every other context-engineering decision. It does not own operational work: debugging attention failures belongs to context-degradation, token-efficiency tactics belong to context-optimization, conversation summarization belongs to context-compression, file-based offloading belongs to filesystem-context, and project-shape decisions belong to project-development.
When to Activate
Activate this skill when the work is conceptual:
- Explaining what context is and how attention mechanics constrain agent behavior.
- Onboarding new contributors who need the mental models before diving into operational skills.
- Reasoning about a context-related design decision from first principles (what does this constraint mean, why does this trade-off exist) before picking a specific tactic.
- Writing or reviewing documentation that needs to ground operational guidance in the underlying mechanics.
Do not activate this skill for operational work. The specialized skills handle the doing:
- Diagnosing lost-in-middle, context poisoning, or attention failures:
context-degradation. - Reducing token cost via masking, partitioning, prefix caching, budgets:
context-optimization. - Compressing a long session into a handoff summary:
context-compression. - Offloading large tool outputs or maintaining a durable scratchpad:
filesystem-context. - Deciding the shape of an LLM project or pipeline:
project-development.
Core Concepts
Treat context as a finite attention budget, not a storage bin. Every token added competes for the model's attention and depletes a budget that cannot be refilled mid-inference. The engineering problem is maximizing utility per token against three constraints: the hard token limit, the softer effective-capacity ceiling, and the U-shaped attention curve that penalizes information placed in the middle of context (claim-context-degradation-lost-middle-ruler).
Apply four principles when assembling context:
- Informativity over exhaustiveness — include only what matters for the current decision; design systems that can retrieve additional information on demand.
- Position-aware placement — place critical constraints at the beginning and end of context because long-context evaluations show middle-position information is less reliably recovered than edge-position information (claim-context-degradation-lost-middle-ruler).
- Progressive disclosure — load skill names and summaries at startup; load full content only when a skill activates for a specific task.
- Iterative curation — context engineering is not a one-time prompt-writing exercise but an ongoing discipline applied every time content is passed to the model.
Detailed Topics
The Anatomy of Context
System Prompts Organize system prompts into distinct sections using XML tags or Markdown headers (background, instructions, tool guidance, output format). System prompts persist throughout the conversation, so place the most critical constraints at the beginning and end where attention is strongest.
Calibrate instruction altitude to balance two failure modes. Too-low altitude hardcodes brittle logic that breaks when conditions shift. Too-high altitude provides vague guidance that fails to give concrete signals for desired behavior. Aim for heuristic-driven instructions: specific enough to guide behavior, flexible enough to generalize — for example, numbered steps with room for judgment at each step.
Start minimal, then add instructions reactively based on observed failure modes rather than preemptively stuffing edge cases. Curate diverse, canonical few-shot examples that portray expected behavior instead of listing every possible scenario.
Tool Definitions Write tool descriptions that answer three questions: what the tool does, when to use it, and what it returns. Include usage context, parameter defaults, and error cases — agents cann
Preguntas frecuentes
¿Qué entra en el contexto?
Las instrucciones del sistema, las definiciones de herramientas, los documentos, el historial de mensajes y las salidas de las herramientas.
¿Por qué más contexto no siempre es mejor?
La información extra o irrelevante puede distraer al modelo y desplazar lo que importa.
¿Esta skill resuelve problemas?
Explica los fundamentos. Otras guías cubren problemas concretos y sus soluciones.
Detalles
Descripción original del autor
This skill should be used to explain or reason about the foundational concepts of context engineering: what context is, the anatomy of a context window, how attention mechanics work, the U-shaped attention curve, why context quality matters more than quantity, and the mental models needed to interpret every other context-engineering decision. Use this for conceptual explanation, onboarding, and background reading. Route operational work to the specialized skills: debugging attention failures goes to context-degradation, token-efficiency work goes to context-optimization, conversation summariza
Popularidad
- Estrellas en GitHub
- 18 mil
- Posición en el ranking
- #10639
- Licencia
- MIT
- Actualizada
- 11/10/2026
Comentarios
- …
Más skills de este repositorio
context-engineering-collection
18 milAyuda a tu agente a gestionar lo que entra en la ventana de contexto de un modelo de IA, desde la memoria y las herramientas hasta las configuraciones de varios agentes y la evaluación.
advanced-evaluation
18 milEnseña a tu agente a juzgar las respuestas de la IA usando otra IA, con puntuación, comparación lado a lado y comprobaciones de sesgo.
bdi-mental-states
18 milEnseña a tu agente a modelar creencias, objetivos y planes con el enfoque BDI, para que sus decisiones puedan rastrearse y explicarse.
context-compression
18 milAyuda a tu agente a acortar sesiones largas de IA en resúmenes que conserven las decisiones, los archivos, los riesgos y los próximos pasos.
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.