Pular para o conteúdo
Skillpedia
Prompts e LLMs18 mil · #10639

context-fundamentals

O que ela faz

Esta skill explica os fundamentos da engenharia de contexto: o que uma IA vê de uma vez, como o modelo presta atenção a isso e por que a qualidade importa mais do que a quantidade. É para quem está aprendendo como os agentes de IA funcionam.

Quando usar

  • ✓Quando você quer entender o que um modelo de IA realmente vê quando responde.
  • ✓Quando você está apresentando a engenharia de agentes de IA a alguém novo na área.
  • ✓Quando você precisa pensar sobre um compromisso de contexto antes de escolher uma tática específica.

Link da skill

https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/context-fundamentals/SKILL.md

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/context-fundamentals/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Explique de forma simples o que é uma janela de contexto e por que mais texto nem sempre é melhor para o meu assistente de IA.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

A skill descreve as partes do contexto, como instruções, ferramentas, documentos e mensagens, e como a atenção favorece o início e o fim da entrada.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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:

  1. Informativity over exhaustiveness — include only what matters for the current decision; design systems that can retrieve additional information on demand.
  2. 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).
  3. Progressive disclosure — load skill names and summaries at startup; load full content only when a skill activates for a specific task.
  4. 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

Perguntas frequentes

O que entra no contexto?

Instruções do sistema, definições de ferramentas, documentos, o histórico de mensagens e as saídas das ferramentas.

Por que mais contexto nem sempre é melhor?

Informações extras ou irrelevantes podem distrair o modelo e tirar espaço do que importa.

Esta skill resolve problemas?

Ela explica os fundamentos. Outros guias cobrem problemas específicos e suas soluções.

Detalhes

Descrição original do 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

repo: muratcankoylan/Agent-Skills-for-Context-Engineering

Popularidade

Estrelas no GitHub
18 mil
Posição no ranking
#10639
Licença
MIT
Atualizada em
11/10/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas