# Agent Skills for Context Engineering

Source: https://trendhub.net/skills/muratcankoylan-agent-skills-for-context-engineering
Repository: https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering
Author: Muratcan Koylan (https://github.com/muratcankoylan)
License: MIT
GitHub stars: 18,455

Agent Skills for Context Engineering is Muratcan Koylan's collection of design skills for people building agent systems: how context windows fail, how to compress, offload and cache context, how to structure tools, memory and multi-agent setups, and how to evaluate and safely automate agents. It changes how a coding agent reasons about agent architecture rather than how it writes app code, and suits engineers building LLM products.

## What problems it solves

- **Long agent sessions forget their work**: Compression and filesystem skills keep file trails, decisions and next steps in structured summaries and files instead of chat history.
- **Agents pick the wrong tool**: The tool design skill applies a consolidation principle, four-question descriptions, consistent naming and errors that tell the agent how to recover.
- **Multi-agent setups cost more than they deliver**: Pattern guidance treats sub-agents as a way to isolate context, compares supervisor, swarm and hierarchical designs, and warns about coordination overhead.
- **Autonomous loops game their own metrics**: Harness and evaluation skills lock evaluators, keep append-only logs and reserve merges and deploys for human approval.

## Install

### Claude Code (plugin marketplace)

Installs all published skills as one plugin; they activate from task context.

```
/plugin marketplace add muratcankoylan/Agent-Skills-for-Context-Engineering
/plugin install context-engineering@context-engineering-marketplace
```

### Cursor, Codex, Claude Code (single skill copy)

Run from a clone of the repo; copy whole folders, since flattening SKILL.md breaks its reference links.

```
mkdir -p .cursor/skills
cp -R skills/context-fundamentals .cursor/skills/
mkdir -p .claude/skills
cp -R skills/context-fundamentals .claude/skills/
mkdir -p .codex/skills
cp -R skills/context-fundamentals .codex/skills/
```

Claude Code users get every skill in one plugin from the marketplace; Cursor can install it from the Cursor plugin directory, and Codex or Copilot CLI can read a clone through its Open Plugins manifest, or you copy single skill folders with their layout intact. The core skills need no keys; some example systems call external model APIs.

## Skills

Skill names are shown as /name. Depending on the agent, a skill runs when it is relevant or when you call it by name; plugin installs may add a prefix.

- `/advanced-evaluation`: Sets up LLM-as-judge scoring, pairwise comparison and rubric calibration, with mitigations for known judge biases. (https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/tree/main/skills/advanced-evaluation)
- `/bdi-mental-states`: Models agent beliefs, desires and intentions from RDF context using BDI ontology patterns for traceable deliberation. (https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/tree/main/skills/bdi-mental-states)
- `/context-compression`: Designs structured, incremental session summaries that keep file trails and decisions, and tests them with probe questions. (https://trendhub.net/skills/muratcankoylan-agent-skills-for-context-engineering/context-compression.markdown)
- `/context-degradation`: Diagnoses five failure patterns in long contexts, from lost-in-middle and poisoning to clashing instructions, with signals and fixes for each. (https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/tree/main/skills/context-degradation)
- `/context-fundamentals`: Explains what a context window holds, how attention is spread across it and why fewer high-signal tokens beat more tokens. (https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/tree/main/skills/context-fundamentals)
- `/context-optimization`: Cuts token cost with context budgets, observation masking, prefix caching and partitioning, measured against answer quality. (https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/tree/main/skills/context-optimization)
- `/evaluation`: Builds agent evaluation with deterministic checks, multi-dimension rubrics, regression suites, baselines and production monitoring. (https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/tree/main/skills/evaluation)
- `/filesystem-context`: Moves large tool outputs, plans, logs and sub-agent findings into files the agent searches on demand instead of keeping in chat. (https://trendhub.net/skills/muratcankoylan-agent-skills-for-context-engineering/filesystem-context.markdown)
- `/harness-engineering`: Designs autonomous agent loops with locked evaluators, editable surfaces, append-only logs, rollback and human approval points. (https://trendhub.net/skills/muratcankoylan-agent-skills-for-context-engineering/harness-engineering.markdown)
- `/hosted-agents`: Plans background coding agents in remote sandboxes with prebuilt images, warm pools, snapshots and multiplayer sessions. (https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/tree/main/skills/hosted-agents)
- `/latent-briefing`: Shares an orchestrator's trajectory with workers by compacting it in the worker's KV cache when you control the runtime. (https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/tree/main/skills/latent-briefing)
- `/long-horizon-prompting`: Writes launch briefs for agents that run for hours, with exact success predicates, stop rules, audit gates and worker contracts. (https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/tree/main/skills/long-horizon-prompting)
- `/memory-systems`: Designs cross-session memory with entity tracking, temporal validity and vector or graph retrieval, and picks memory benchmarks. (https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/tree/main/skills/memory-systems)
- `/multi-agent-patterns`: Chooses between supervisor, swarm and hierarchical agent setups, with isolation mechanisms, handoffs and failure mitigations. (https://trendhub.net/skills/muratcankoylan-agent-skills-for-context-engineering/multi-agent-patterns.markdown)
- `/project-development`: Decides whether an LLM fits a task, shapes batch or agent pipelines, estimates token cost and designs parseable structured output. (https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/tree/main/skills/project-development)
- `/self-improvement-loops`: Builds loops where the harness itself is optimized, such as failure-driven self-edits or scaffold search, behind acceptance gates. (https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/tree/main/skills/self-improvement-loops)
- `/self-managed-context`: Lets the model edit its own live context safely, with pinned prefixes, edit gates, receipts, budget readouts and rollback. (https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/tree/main/skills/self-managed-context)
- `/tool-design`: Writes agent-facing tool descriptions, schemas and recoverable errors, and merges overlapping tools into fewer clear ones. (https://trendhub.net/skills/muratcankoylan-agent-skills-for-context-engineering/tool-design.markdown)
- `/book-sft-pipeline` (Example systems): Turns ePub books into segmented fine-tuning datasets and trains small models on an author's style with LoRA. (https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/tree/main/examples/book-sft-pipeline)
- `/digital-brain-skill` (Example systems): Runs a file-based personal operating system for content, voice, contacts, meetings and goals, loading modules only when needed. (https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/tree/main/examples/digital-brain-skill)
- `/interleaved-thinking` (Example systems): Captures and analyses agent reasoning traces with MiniMax M2.1 to spot failure patterns and propose prompt or skill fixes. (https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/tree/main/examples/interleaved-thinking)

## Questions

### Will these skills write my application code?

Not directly. They guide design decisions about agent systems, such as context budgets, tool contracts, memory and evaluation, with pseudocode examples.

### Which agents can use them?

The README names Claude Code, Cursor, Codex and GitHub Copilot CLI, and says the principles carry over to any platform that supports skills or custom instructions.

### Do I need API keys?

Not for the core skills. Some example systems rely on outside services, such as MiniMax for the trace optimizer and Tinker for LoRA training in the book pipeline.

### What is the researcher folder?

A separate file-based system the maintainer uses to turn new research into skill changes, with rubrics, benchmarks and human review; you do not need it to use the skills.

## Before you install

The core skills are instructions with illustrative Python pseudocode and reference files. Some example skills ship runnable scripts, such as the personal-OS automation scripts and a trace optimizer that calls the MiniMax API.
