context-fundamentals
Fungsinya
Skill ini menjelaskan dasar-dasar context engineering: apa yang dilihat AI sekaligus, bagaimana model memberi perhatian, dan mengapa kualitas lebih penting daripada jumlah. Skill ini untuk orang yang sedang belajar cara kerja agent AI.
Kapan dipakai
- βSaat Anda ingin memahami apa yang sebenarnya dilihat model AI saat menjawab.
- βSaat Anda memperkenalkan seseorang yang baru dalam membangun agent AI.
- βSaat Anda perlu menalar trade-off konteks sebelum memilih taktik tertentu.
Link skill
https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/context-fundamentals/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βJelaskan dengan bahasa sederhana apa itu jendela konteks, dan mengapa lebih banyak teks tidak selalu lebih baik untuk asisten AI saya.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill menjelaskan bagian-bagian konteks, seperti instruksi, alat, dokumen, dan riwayat pesan, serta bagaimana perhatian lebih menyukai awal dan akhir input.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apa yang masuk ke dalam konteks?
Instruksi sistem, definisi alat, dokumen, riwayat pesan, dan keluaran alat.
Mengapa lebih banyak konteks tidak selalu lebih baik?
Informasi tambahan atau tidak relevan bisa mengalihkan model dan menggeser hal yang penting.
Apakah skill ini memperbaiki masalah?
Skill ini menjelaskan dasarnya. Panduan lain membahas masalah spesifik dan perbaikannya.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 18k
- Peringkat
- #10639
- Lisensi
- MIT
- Diperbarui
- 11/10/2026
Komentar
- β¦
Skill lain dari repositori ini
context-engineering-collection
18kMembantu agent Anda mengelola apa yang masuk ke jendela konteks model AI, dari memori dan alat hingga sistem multi-agent dan evaluasi.
advanced-evaluation
18kMengajari agent Anda cara menilai jawaban AI memakai AI lain, dengan skor, perbandingan berpasangan, dan pemeriksaan bias.
bdi-mental-states
18kMengajari agent Anda memodelkan keyakinan, tujuan, dan rencana dengan pendekatan BDI, sehingga keputusannya bisa ditelusuri dan dijelaskan.
context-compression
18kMembantu agent Anda meringkas sesi AI yang panjang menjadi ringkasan yang tetap menyimpan keputusan, file, risiko, dan langkah berikutnya.
Skill serupa
writing-skills
311kMengajari agent Anda menulis skill baru dan menguji setiap skill lebih dulu, memastikan skill itu benar-benar mengubah perilaku agent.
writing-for-agents
310kMenjelaskan cara menulis instruksi yang jelas untuk agent AI, termasuk file skill, AGENTS.md, dan CLAUDE.md, agar perilaku agent dapat diprediksi.
bengali-nlp
280kMembuat agent Anda memproses teks Bahasa Bengali. Membantu memahami dan mengolah bahasa tersebut, termasuk normalisasi teks dan karakteristik uniknya.