context-engineering
하는 일
이 스킬은 AI 에이전트가 작업하는 동안 보는 정보를 정리하는 방법을 설명합니다. 세부 사항을 자주 잊거나 같은 말을 반복하는 에이전트 설정을 만들거나 고치는 사람을 위한 것입니다. 이 자료는 오래된 스냅샷이므로 조언을 최신 모델에 비추어 확인해야 합니다.
사용하는 경우
- ✓에이전트가 긴 작업 도중 표류하거나, 반복하거나, 중요한 제한을 잊을 때.
- ✓시작할 때 불러올 지침과 필요할 때만 불러올 지침을 정할 때.
- ✓한 에이전트가 다른 에이전트에게 작업을 어떻게 넘길지 계획할 때.
스킬 링크
https://github.com/mvschwarz/openrig/blob/main/packages/daemon/specs/agents/shared/skills/process/context-engineering/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“내 AI 에이전트가 긴 작업 중간에 내 규칙을 잊어버립니다. 맥락을 어떻게 설정해야 할까요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 에이전트 창의 정보가 어떻게 선택되고, 줄여지고, 공유되는지 설명합니다. 2024년과 2025년 관행의 스냅샷이므로, 에이전트는 의존하기 전에 조언을 검증해야 합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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)
**
자주 묻는 질문
이 조언은 아직 유효한가요?
2024년과 2025년 관행의 스냅샷이며, 스킬은 의존하기 전에 검증하라고 말합니다.
단일 에이전트에만 적용되나요?
아닙니다. 하위 에이전트를 언제 쓸지, 에이전트 사이에 작업을 어떻게 넘길지도 다룹니다.
무엇이 맥락에 해당하나요?
지침, 도구 정의, 검색된 데이터, 과거 메시지처럼 에이전트가 보는 모든 것입니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 8.6k
- 순위
- #12423
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
agent-operated-software
8.6k백엔드에 AI 에이전트가 포함된 앱을 설계하고 만들고 디버깅하도록 돕습니다.
agent-operated-workflows
8.6k범위가 정해진 절차를 AI 에이전트가 실행할지 일반 코드가 실행할지 정하고, 검증된 근거로 안전하게 재개하도록 돕습니다.
applying-a-permission-policy
8.6k에이전트가 팀 설정 중 쓰는 명령 권한을 맞춰, 일상적인 명령이 승인 요청을 덜 거치도록 돕습니다.
claude-compaction-restore
8.6kClaude Code 에이전트가 컨텍스트 압축 후 저장된 복구 지도, 대화 기록, 수정한 파일을 써서 작업 그림을 다시 세우도록 돕습니다.
비슷한 스킬
writing-skills
311k에이전트를 위한 새 스킬을 작성하고, 각 스킬이 실제로 에이전트의 행동을 바꾸는지 사용하기 전에 테스트하도록 가르칩니다.
writing-for-agents
310k스킬, AGENTS.md, CLAUDE.md 등 AI 에이전트가 읽는 문서를 명확하게 쓰는 방법을 알려 주어 에이전트가 예측 가능하게 행동하도록 돕습니다.
bengali-nlp
280k에이전트가 벵골어 텍스트를 처리하도록 돕습니다. 언어를 이해하고 다루며, 텍스트를 정규화하고 고유한 특징을 처리합니다.