Community코딩 & 개발github.com

컨텍스트 엔지니어링 컬렉션

컨텍스트 엔지니어링, 하네스 엔지니어링, 멀티 에이전트 아키텍처 및 프로덕션 에이전트 시스템을 위한 Agent Skills의 포괄적인 모음입니다. 효과적인 컨텍스트 관리와 안정적인 운영 루프가 필요한 에이전트 시스템을 구축, 최적화, 평가 또는 디버깅할 때 사용하세요.

컨텍스트 엔지니어링 컬렉션란 무엇인가요?

이 컬렉션은 컨텍스트 엔지니어링을 통해 프로덕션 수준의 AI 에이전트 시스템을 구축하기 위한 구조화된 지침을 제공합니다. 컨텍스트 기본 사항부터 시작하여 어텐션 메커니즘의 작동 방식과 컨텍스트 품질이 양보다 중요한 이유를 설명합니다. 그런 다음 멀티 에이전트 조정, 장기 실행 프롬프팅, 메모리 시스템 설계, 파일 시스템 기반 컨텍스트, 호스팅 에이전트 인프라 등 주요 아키텍처 패턴을 다룹니다. 또한 컨텍스트 압축, 최적화, 자체 관리 컨텍스트, 잠재 브리핑(KV 메모리 공유)과 같은 운영 우수성 기술과 평가 프레임워크, 하네스 엔지니어링, 자기 개선 루프를 포함합니다. 마지막으로 프로젝트 개발 방법론과 BDI(신념-욕구-의도) 인지 아키텍처를 다룹니다. 이 컬렉션은 플랫폼에 구애받지 않으며 Claude Code, Cursor 또는 사용자 지정 지침이나 스킬과 같은 구성을 지원하는 모든 에이전트 프레임워크와 함께 사용할 수 있습니다. 각 스킬은 독립적으로 또는 조합하여 사용할 수 있으며, 서로를 참조하여 복잡한 시스템을 구축할 수 있습니다.

지원 대상✓Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/tree/main

Installed? Explore more 코딩 & 개발 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

컨텍스트 엔지니어링을 위한 에이전트 스킬

이 컬렉션은 효과적인 컨텍스트 엔지니어링을 통해 프로덕션 수준의 AI 에이전트 시스템을 구축하기 위한 구조화된 지침을 제공합니다.

활성화 시기

다음과 같은 경우 이 스킬을 활성화하세요:

  • 처음부터 새로운 에이전트 시스템 구축
  • 기존 에이전트 성능 최적화
  • 컨텍스트 관련 오류 디버깅
  • 멀티 에이전트 아키텍처 설계
  • 에이전트용 도구 생성 또는 평가
  • 메모리 및 지속성 계층 구현
  • 자율 연구 또는 평가 하네스 설계

스킬 맵

기초 컨텍스트 엔지니어링

컨텍스트 기본 사항 이해 컨텍스트는 단순한 프롬프트 텍스트가 아닙니다. 시스템 지침, 도구 정의, 검색된 문서, 메시지 기록 및 도구 출력을 포함하여 추론 시점에 언어 모델이 사용할 수 있는 완전한 상태입니다. 효과적인 컨텍스트 엔지니어링은 당면한 작업에 진정으로 중요한 정보가 무엇인지 이해하고 신호 대 잡음비를 최대화하기 위해 해당 정보를 선별하는 것을 의미합니다.

컨텍스트 저하 인식 언어 모델은 컨텍스트가 증가함에 따라 예측 가능한 저하 패턴을 보입니다. 즉, 컨텍스트 중앙의 정보가 덜 주목받는 '중간에 사라짐(lost-in-middle)' 현상, 시작과 끝을 우선시하는 U자형 어텐션 곡선, 오류가 누적될 때의 컨텍스트 오염, 관련 없는 정보가 관련 콘텐츠를 압도하는 컨텍스트 산만 등이 있습니다.

아키텍처 패턴

멀티 에이전트 조정 프로덕션 멀티 에이전트 시스템은 중앙 집중식 제어를 사용하는 감독자/오케스트레이터 아키텍처, 유연한 핸드오프를 위한 피어 투 피어 스웜 아키텍처, 복잡한 작업 분해를 위한 계층 구조의 세 가지 지배적인 패턴으로 수렴됩니다. 중요한 통찰은 하위 에이전트가 주로 조직 역할을 시뮬레이션하기보다는 컨텍스트를 격리하기 위해 존재한다는 것입니다.

장기 실행 프롬프팅 장기 실행 자율 에이전트와 병렬 오케스트레이션은 시작 프롬프트에 의해 성패가 결정됩니다. 의사 형식(pseudo-formal) 작업 브리프는 성공 조건자, 카운팅하지 않는 결과, 감사 게이트 반환 조건이 있는 지속성 규칙, 노력 하한, 병렬 포트폴리오를 위한 다양성 정책, 오염 방지 장치를 지정하며, 기계적으로 확인 가능한 성공 조건이 없는 문제에 언어적 형식 검증의 규율을 적용합니다. 오케스트레이션된 실행에서 각 작업자는 명명된 검사를 포함하는 출력 계약을 반환하고, 입증된 위반만이 반환을 차단합니다.

메모리 시스템 설계 메모리 아키텍처는 단순한 스크래치패드에서 정교한 시간적 지식 그래프까지 다양합니다. 벡터 RAG는 의미론적 검색을 제공하지만 관계 정보를 잃습니다. 지식 그래프는 구조를 보존하지만 더 많은 엔지니어링 투자가 필요합니다. 파일 시스템을 메모리로 사용하는 패턴은 컨텍스트 윈도우를 채우지 않고 적시에 컨텍스트를 로드할 수 있게 합니다.

파일 시스템 기반 컨텍스트 파일 시스템은 사실상 무제한의 컨텍스트를 저장, 검색 및 업데이트하기 위한 단일 인터페이스를 제공합니다. 주요 패턴으로는 도구 출력 오프로딩을 위한 스크래치패드, 장기 실행 작업을 위한 계획 지속성, 공유 파일을 통한 하위 에이전트 간 통신, 동적 스킬 로딩이 있습니다. 에이전트는 ls, glob, grep, read_file을 사용하여 대상 컨텍스트를 발견하며, 구조적 쿼리의 경우 의미론적 검색보다 성능이 뛰어난 경우가 많습니다.

호스팅 에이전트 인프라 백그라운드 코딩 에이전트는 로컬 머신이 아닌 원격 샌드박스 환경에서 실행됩니다. 주요 패턴으로는 정기적인 주기로 새로고침되는 사전 구축된 환경 이미지, 즉각적인 세션 시작을 위한 웜 샌드박스 풀, 세션 지속성을 위한 파일 시스템 스냅샷, 협업 에이전트 세션을 위한 멀티플레이어 지원이 있습니다. 중요한 최적화로는 git 동기화 완료 전 파일 읽기 허용(쓰기만 차단), 사용자가 입력을 시작할 때 예측적 샌드박스 워밍, 병렬 작업 실행을 위한 자체 생성(self-spawning) 에이전트가 있습니다.

도구 설계 원칙 도구는 결정론적 시스템과 비결정론적 에이전트 간의 계약입니다. 효과적인 도구 설계는 통합 원칙(여러 개의 좁은 도구보다 단일 포괄적인 도구 선호)을 따르며, 오류에 컨텍스트 정보를 반환하고, 토큰 효율성을 위한 응답 형식 옵션을 지원하며, 명확한 네임스페이싱을 사용합니다.

운영 우수성

컨텍스트 압축 에이전트 세션이 메모리를 소진하면 압축이 필수적입니다. 올바른 최적화 목표는 요청당 토큰이 아닌 작업당 토큰입니다. 파일, 결정 및 다음 단계에 대한 명시적 섹션이 있는 구조화된 요약은 공격적인 압축보다 더 유용한 정보를 보존합니다. 아티팩트 추적 무결성은 모든 압축 방법에서 가장 취약한 차원으로 남아 있습니다.

컨텍스트 최적화 기법에는 압축(한계에 가까운 컨텍스트 요약), 관찰 마스킹(장황한 도구 출력을 참조로 대체), 프리픽스 캐싱(요청 간 KV 블록 재사용), 전략적 컨텍스트 분할(격리된 컨텍스트로 하위 에이전트 간 작업 분할)이 포함됩니다.

자체 관리 컨텍스트 모델(하네스가 아님)이 라이브 컨텍스트에 무엇을 남길지 결정합니다. 편집 가능한 영역은 모델이 코드 도구로 다시 작성하고 각 턴마다 다시 구문 분석하는 파일로 노출됩니다. 하네스는 불변 속성(고정된 시스템 및 작업 프리픽스, 역할 폴딩, 편집 게이트, 영수증, 결정론적 예산 판독값, 오버플로 시 롤백)을 유지합니다. 편집 비용은 프리픽스 캐싱 하에서 편집 후 텍스트에 따라 확장되므로 편집은 배치되고 꼬리를 염두에 두고 배치됩니다. 전략은 지침에 의해 조종되거나, 스킬로 진화하거나, 성공 게이트 효율성 보상으로 훈련될 수 있습니다.

잠재 브리핑 (KV 메모리 공유) 오케스트레이터-작업자 시스템은 감독자가 긴 궤적을 축적하는 반면 작업자는 좁은 텍스트 조각만 보는 경우 토큰을 복합적으로 증가시킬 수 있습니다. 잠재 브리핑(Latent Briefing)은 작업 안내 어텐션(Attention Matching 스타일 압축)을 사용하여 작업자 모델의 KV 캐시에서 오케스트레이터 궤적을 압축하므로, 스택이 작업자 KV 상태를 노출하고 모델이 호환될 때 전체 텍스트 재생 없이 작업자가 관련 잠재 상태를 수신합니다.

평가 프레임워크 프로덕션 에이전트 평가는 결정론적 검사와 사실적 정확성, 완전성, 도구 효율성 및 프로세스 품질을 포괄하는 다차원 루브릭이 필요합니다. 구조, 증거 및 루브릭 수학이 유효한 후에만 모델 심사를 사용하고, 심사 설계, 쌍별 비교 및 편향 완화는 고급 평가로 라우팅하세요.

하네스 엔지니어링 안정적인 자율 에이전트는 모델 주변에 명시적인 운영 루프(고정된 메트릭, 편집 가능한 표면, 내구성 있는 로그, 참신함 검사, 롤백 규칙 및 인간 승인 경계)가 필요합니다. 하네스는 에이전트가 평가자를 약화시키거나, 압축 중 상태를 잃거나, 모호한 목표를 검토 불가능한 변경으로 바꾸는 것을 방지합니다.

자기 개선 루프 하네스 자체가 최적화 대상이 되면 다른 규율이 적용됩니다. 즉, 재귀적 자기 개선, 메타-하네스 검색, 실패 기반 제한적 자체 편집, 진화적 스캐폴드 검색, 컨텍스트 메커니즘 진화입니다. 제어 제약 조건은 경험적 이중 분할 수용 게이트, 원시 추적이 포함된 파일 시스템 경험 아카이브, 모든 편집 가능한 표면 외부의 런타임 적용 제약 조건, 붕괴를 방지하기 위한 다양성 보존입니다.

개발 방법론

프로젝트 개발 효과적인 LLM 프로젝트 개발은 작업-모델 적합성 분석으로 시작합니다. 자동화를 구축하기 전에 수동 프로토타이핑을 통해 작업이 LLM 처리에 적합한지 검증합니다. 프로덕션 파이프라인은 디버깅 및 캐싱을 위한 파일 시스템 상태 관리와 함께 단계적이고 멱등성(idempotent) 아키텍처(획득, 준비, 처리, 구문 분석, 렌더링)를 따릅니다. 명시적인 형식 사양이 있는 구조화된 출력 설계는 안정적인 구문 분석을 가능하게 합니다. 최소한의 아키텍처로 시작하고 필요하다는 것이 입증된 경우에만 복잡성을 추가하세요.

인지 아키텍처

BDI 정신 상태 신념-욕구-의도(BDI) 모델링은 구조화된 외부 컨텍스트를 에이전트 정신 상태로 변환하는 공식적인 방법을 제공합니다. 합리적 행위성, 설명 가능성, 그리고 신념, 목표 및 선택된 행동 간의 감사 가능한 연결이 필요한 시스템에 사용하세요.

핵심 개념

이 컬렉션은 네 가지 핵심 주제를 중심으로 구성됩니다. 첫째, 컨텍스트 기본 사항은 컨텍스트가 무엇인지, 어텐션 메커니즘이 어떻게 작동하는지, 그리고 컨텍스트 품질이 양보다 왜 중요한지를 설명합니다. 둘째, 아키텍처 패턴은 효과적인 에이전트 시스템을 가능하게 하는 구조와 조정 메커니즘을 다룹니다. 셋째, 운영 우수성은 최적화, 평가 및 하네스 안정성을 다룹니다. 넷째, 개발 방법론과 인지 아키텍처는 프로젝트 실행과 형식적 정신 상태 모델링을 다룹니다.

실용적인 지침

각 스킬은 독립적으로 또는 조합하여 사용할 수 있습니다. 컨텍스트 관리 정신 모델을 확립하기 위해 기본 사항부터 시작하세요. 시스템 요구 사항에 따라 아키텍처 패턴으로 분기하세요. 프로덕션 시스템을 최적화할 때 운영 스킬을 참조하세요.

스킬은 플랫폼에 구애받지 않으며 Claude Code, Cursor 또는 사용자 지정 지침이나 스킬과 같은 구성을 지원하는 모든 에이전트 프레임워크와 함께 사용할 수 있습니다.

통합

이 컬렉션은 자체적으로 통합됩니다. 즉, 스킬이 서로를 참조하고 공유 개념을 기반으로 구축됩니다. 기본 스킬은 다른 모든 스킬에 컨텍스트를 제공합니다. 아키텍처 스킬(멀티 에이전트, 메모리, 도구)은 복잡한 시스템을 위해 결합될 수 있습니다. 운영 스킬(최적화, 평가)은 기본 및 아키텍처 스킬을 사용하여 구축된 모든 시스템에 적용됩니다.

참조

이 컬렉션의 내부 스킬:

컨텍스트 엔지니어링에 대한 외부 자료:

  • 어텐션 메커니즘 및 컨텍스트 윈도우 제한에 관한 연구
  • 선도적인 AI 연구소의 에이전트 시스템 설계에 대한 프로덕션 경험
  • LangGraph, AutoGen 및 CrewAI에 대한 프레임워크 문서

스킬 메타데이터

생성일: 2025-12-20 마지막 업데이트: 2026-10-01 저자: Agent Skills for Context Engineering Contributors 버전: 2.6.0

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

advanced-evaluation

This skill should be used for advanced LLM evaluation: LLM-as-judge systems, direct scoring, pairwise comparison, rubric calibration, evaluator bias mitigation, confidence scoring, and automated quality assessment.

bdi-mental-states

This skill should be used when modeling agent mental states with BDI concepts: beliefs, desires, intentions, RDF-to-belief transformations, rational agency traces, cognitive agents, BDI ontologies, and neuro-symbolic AI integration.

book-sft-pipeline

This skill should be used for book-to-SFT pipelines: ePub extraction, literary segmentation, author-voice dataset construction, style-transfer training, LoRA workflows, and model evaluation for voice replication.

comprehensive-research-agent

Ensure thorough validation, error recovery, and transparent reasoning in research tasks with multiple tool calls

context-compression

This skill should be used when long-running agent sessions need context compression, structured summarization, compaction, token-per-task optimization, or durable handoff summaries that preserve decisions, files, risks, and next actions.

context-degradation

This skill should be used for diagnosing and mitigating context degradation: lost-in-middle failures, context poisoning, context clash, context confusion, attention-pattern issues, and agent performance degradation caused by accumulated or conflicting context.

context-fundamentals

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 summarization goes to context-compression, and project-shape decisions go to project-development.

context-optimization

This skill should be used for improving context efficiency: context budgeting, observation masking, prefix or KV-cache strategy, partitioning, token-cost reduction, retrieval scoping, and extending effective context capacity without lowering answer quality.

evaluation

This skill should be used when building agent evaluation systems: deterministic checks, regression suites, multi-dimensional rubrics, quality gates, production monitoring, baseline comparison, and outcome measurement for agent pipelines.

filesystem-context

This skill should be used when agent work needs file-backed context: durable scratchpads, tool-output offloading, just-in-time discovery, cross-agent handoff files, filesystem memory, or cleanup policies for context stored outside the prompt.

harness-engineering

This skill should be used when designing autonomous agent harnesses: research loops, evaluation scaffolds, locked and editable surfaces, durable logs, novelty gates, pruning, rollback, PR preparation, and human approval boundaries.

hosted-agents

This skill should be used when designing hosted or background agent infrastructure: sandboxed execution, remote coding environments, warm pools, session persistence, multiplayer collaboration, self-spawning agents, or Modal-style sandboxes.

latent-briefing

This skill should be used when the user asks to "share memory between agents", "KV cache compaction for multi-agent", "orchestrator worker context", "latent briefing", "reduce worker tokens", "cross-agent memory without summarization", or discusses Attention Matching compaction, recursive language models with workers, or token explosion in hierarchical agents.

long-horizon-prompting

This skill should be used when writing, enhancing, or evaluating the launch prompt for a long-running autonomous agent or a parallel multi-agent orchestration attacking a hard problem: pseudo-formal task briefs that define terms and an exact success predicate linguistically, enumerate non-counting outcomes, set persistence rules with explicit stop and return conditions and effort floors, manage a diverse portfolio of parallel approaches with an approach registry and blocked-route bookkeeping, and gate the return on adversarial audit. Route agent topology and coordination protocols to multi-agent-patterns, runtime control surfaces and loop governance to harness-engineering, evaluator and quality-gate construction to evaluation, judge design to advanced-evaluation, and compaction or memory mechanics to context-compression and memory-systems.

memory-systems

This skill should be used for persistent semantic memory in agent systems: cross-session knowledge retention, entity tracking, temporal validity, graph or vector retrieval, memory consolidation, and memory benchmark selection. Route file-backed scratchpads to filesystem-context, handoff summaries to context-compression, and token-efficiency tactics to context-optimization.

multi-agent-patterns

This skill should be used when designing multi-agent systems that need context isolation, supervisor or swarm coordination, explicit handoffs, parallel execution, or a decision on whether multiple agents are justified.

project-development

This skill should be used for project-level decisions about LLM-powered systems: whether an LLM is the right primitive for the task at hand, the shape of a multi-stage batch or agent pipeline, token and cost estimation, choosing between single-agent and multi-agent at the project level, structured output design for downstream parsing, and structuring agent-assisted iteration. Use this when the unit of work is a whole project or a multi-stage pipeline. Route individual tool design to tool-design and individual skill-loading or context-budget tactics to context-optimization.

self-improvement-loops

This skill should be used when the harness, scaffold, workflow, or optimizer itself is the optimization target: recursive self-improvement (RSI) loops, meta-harnesses, self-improving harnesses that mine their own failures and propose bounded edits, evolutionary or population-based search over agent scaffolds, acceptance gates for self-modifying systems, and agentic context evolution where the mechanism that produces context is versioned and evolved. Route governance of a single autonomous loop (locked surfaces, durable logs, rollback, novelty gates, approval boundaries) to harness-engineering, measurement and quality-gate design to evaluation, judge design to advanced-evaluation, and remote sandbox infrastructure to hosted-agents.

self-managed-context

This skill should be used when a model gets read-write control over its own live context window instead of a harness-scheduled compaction policy: the context exposed as an editable file the model rewrites with code tools, model-driven eviction and in-place updates, the harness invariants that keep self-editing safe (pinned prefix, edit gate, edit receipts, budget readouts, rollback on overflow), the prefix-cache cost of mid-context edits, and steering or training the model's own context-editing strategy. Route note content and fixed-threshold summarization to context-compression, cache-stable layout under harness control to context-optimization, file offloading to filesystem-context, and loop governance to self-improvement-loops.

tool-design

This skill should be used for the tool-interface layer of an agent system specifically: writing tool descriptions agents can route on, designing tool schemas and response formats, naming conventions, actionable error recovery messages, MCP server design, tool-set consolidation, and deciding when to add or remove an individual tool. Use this when the unit of work is a single tool or a set of tools. Route project-shape, pipeline architecture, and task-model-fit decisions to project-development; route deciding whether to introduce sub-agents to multi-agent-patterns.

관련 스킬