본문으로 건너뛰기
Skillpedia
프롬프트 및 LLM18k · #10639

context-fundamentals

하는 일

이 스킬은 컨텍스트 엔지니어링의 기초를 설명합니다. AI가 한 번에 보는 것, 모델이 그것에 주의를 기울이는 방식, 그리고 양보다 질이 중요한 이유입니다. AI 에이전트가 어떻게 작동하는지 배우는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓AI 모델이 답할 때 실제로 무엇을 보는지 이해하고 싶을 때.
  • ✓AI 에이전트 만들기를 처음 배우는 사람에게 설명해야 할 때.
  • ✓구체적인 전략을 고르기 전에 맥락의 장단점을 따져야 할 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/context-fundamentals/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“컨텍스트 창이 무엇인지 쉬운 말로 설명해 주고, 제 AI 어시스턴트에게 텍스트가 많다고 항상 좋은 것은 아닌 이유를 알려 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 지시, 도구, 문서, 메시지 같은 맥락의 구성 요소를 설명하고, 주의가 입력의 시작과 끝에 더 집중되는 방식을 설명합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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

자주 묻는 질문

컨텍스트에는 무엇이 들어가나요?

시스템 지시, 도구 정의, 문서, 메시지 기록, 도구 출력이 들어갑니다.

맥락이 많다고 항상 좋은 것은 아닌 이유는 무엇인가요?

여분의 정보나 관계없는 정보는 모델의 주의를 흩트리고 중요한 내용을 밀어낼 수 있습니다.

이 스킬이 문제를 해결하나요?

기초를 설명합니다. 특정 문제와 해결책은 다른 가이드에서 다룹니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
18k
순위
#10639
라이선스
MIT
업데이트
2026. 10. 11.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬