context-engineering-collection
Skill4 starsChanged 5 months agoMITView on GitHub
A comprehensive collection of Agent Skills for context engineering, harness engineering, multi-agent architectures, and production agent systems. Use when building, optimizing, evaluating, or debugging agent systems that require effective context management and reliable operating loops.
5 other projects use a version of this, 5 of them edited.
Adopted by
Most recently taken up by
- muratcankoylan/Agent-Skills-for-Context-Engineeringedited, first seen Aug 10, 2026
- itaymizzz/claude-skillsedited, first seen Jun 29, 2026
- Kushal9889/claude-pluginsedited, first seen Jun 22, 2026
- LiamClarke1/claude-skillsedited, first seen Apr 16, 2026
- GPTtang/skill-atlasedited, first seen Mar 22, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 5
- muratcankoylan/Agent-Skills-for-Context-Engineering★ 18k29% same
- GPTtang/skill-atlas★ 442% same
- Kushal9889/claude-plugins★ 238% same
- itaymizzz/claude-skills★ 036% same
- LiamClarke1/claude-skills★ 038% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- skill-templateSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 60
When orchestrator and worker share the same model runtime, task-relevant trajectory state can be compressed into KV cache prefixes rather …
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent Skills for Context Engineering
This collection provides structured guidance for building production-grade AI agent systems through effective context engineering. It is optimized for Google Antigravity IDE but works with any agent platform that supports skills or custom instructions.
When to Activate
Activate these skills when:
- Building new agent systems from scratch
- Optimizing existing agent performance
- Debugging context-related failures
- Designing multi-agent architectures
- Creating or evaluating tools for agents
- Implementing memory and persistence layers
- Designing autonomous research or evaluation harnesses
- Modeling agent cognitive states for explainable reasoning
Skill Map
Foundational Context Engineering
Understanding Context Fundamentals Context is not just prompt text — it is the complete state available to the language model at inference time, including system instructions, tool definitions, retrieved documents, message history, and tool outputs. Effective context engineering means understanding what information truly matters for the task at hand and curating that information for maximum signal-to-noise ratio.
Recognizing Context Degradation Language models exhibit predictable degradation patterns as context grows: the "lost-in-middle" phenomenon where information in the center of context receives less attention; U-shaped attention curves that prioritize beginning and end; context poisoning when errors compound; and context distraction when irrelevant information overwhelms relevant content.
Compression Under Pressure Long-running agent sessions accumulate history that eventually exceeds useful capacity. Compression strategies — hierarchical summarization, selective retention, token budgeting — preserve task-critical state while shedding noise. The key insight is that compression is not lossless: every strategy trades some fidelity for capacity, and the engineering challenge is choosing what to lose.
Architectural Patterns
Multi-Agent Coordination Production multi-agent systems converge on three dominant patterns: supervisor/orchestrator architectures with centralized control, peer-to-peer swarm architectures for flexible handoffs, and hierarchical structures for complex task decomposition. The critical insight is that sub-agents exist primarily to isolate context rather than to simulate organizational roles.
Memory System Design Memory architectures range from simple scratchpads to sophisticated temporal knowledge graphs. Vector RAG provides semantic retrieval but loses relationship information. Knowledge graphs preserve structure but require more engineering investment. The file-system-as-memory pattern enables just-in-time context loading without stuffing context windows.
Tool Design Principles Tools are contracts between deterministic systems and non-deterministic agents. Effective tool design follows the consolidation principle (prefer single comprehensive tools over multiple narrow ones), returns contextual information in error messages, and treats descriptions as prompt engineering that directly steers agent behavior.
Filesystem-Based Context
The filesystem provides a single interface for storing, retrieving, and updating effectively unlimited context. Key patterns include scratch pads for tool output offloading, plan persistence for long-horizon tasks, sub-agent communication via shared files, and dynamic skill loading. Agents use ls, glob, grep, and read_file for targeted context discovery, often outperforming semantic search for structural queries.
Hosted Agent Infrastructure Background coding agents run in remote sandboxed environments rather than on local machines. Key patterns include pre-built environment images refreshed on regular cadence, warm sandbox pools for instant session starts, filesystem snapshots for session persistence, and multiplayer support for collaborative agent sessions.
Operational Excellence
Context Optimization Token-level efficiency tactics: observation masking removes redundant tool outputs, prefix caching reuses shared context prefixes, partitioning separates static from dynamic content, and budget allocation ensures each context component earns its token cost.
Latent Briefing When orchestrator and worker share the same model runtime, task-relevant trajectory state can be compressed into KV cache prefixes rather than serialized as text. This eliminates the information loss of summarization while preserving the context isolation benefits of multi-agent patterns.
Evaluation Frameworks Deterministic evaluation gates catch regressions before deployment. Production evaluation stacks combine assertion-based checks (format, structure, constraint compliance) with statistical sampling and LLM-as-judge techniques for subjective quality dimensions.
Harness Engineering Autonomous agent harnesses manage the operating loop: locked evaluation metrics prevent gaming, durable logs enable post-hoc analysis, novelty gates prevent repetitive exploration, rollback mechanisms recover from failures, and human approval boundaries enforce safety constraints.
Development Methodology
Project Development LLM project lifecycle from ideation through deployment. Task-model fit analysis determines whether LLMs are appropriate. Pipeline architecture designs the flow of information. Structured output design ensures reliable parsing. Batch processing optimizes throughput and cost.
Cognitive Architecture
BDI Mental States Formal belief-desire-intention modeling transforms unstructured context into explicit mental states. Beliefs represent the agent's model of the world. Desires encode objectives. Intentions commit to specific plans. This framework enables deliberative reasoning and explainable decision-making in complex agent systems.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

