# Context Engineering Skills: guides for building AI agent systems (muratcankoylan/Agent-Skills-for-Context-Engineering) — skill card for AI agents

> AgentGid skill card. Checked on 2026-11-02 against commit 9ff0c99 (version 2.6.0).
> Every fact comes from the pack's own files at that commit. Numbers marked "as reported" are the author's.
> Human page: https://agentgid.com/skills/muratcankoylan/agent-skills-for-context-engineering/

> Note: the pack has changed since this check; re-read its files before relying on details.

## Explain it to a non-programmer
Eighteen reference guides for your AI assistant about building AI agents of your own. They cover what to put in the model's limited working memory, how to summarise long sessions and how to split work between agents. Others show how to judge agent output and write the opening brief for an agent that runs for hours. Your assistant reads the matching guide when your task touches one of these topics.

## Who it is for
- You build or tune your own AI agents, chatbots or AI pipelines
- Your agent forgets things in long sessions or gets worse as the conversation grows
- You want a way to score or compare AI answers, or to write a long task brief for an agent
- You use Claude Code, Cursor, Codex or another tool that reads skills
- Not for: You want help with everyday tasks like writing, design or a website: these guides are about building AI agent systems
- Not for: You want ready-made tools that run by themselves: the code in the skill folders is teaching code, not a product

## What it is
- Kind: knowledge
- License: MIT
- Repository: https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering

## What it does
- Foundations: what the model's working memory holds (instructions, tool descriptions, documents, history, tool output) and why quality beats quantity
- Failure patterns: lost in the middle, poisoning, distraction, confusion and clash, with four fixes: write it out, select less, compress, isolate
- Compression: structured summaries that keep files, decisions and next steps; judge them by tokens per finished task, not per request
- Architecture: when several agents are worth it, memory designs, tool design, using files as memory, agents in remote sandboxes
- Quality: deterministic checks, rubrics, AI-as-judge scoring and pairwise comparison with position swapping
- Long autonomous runs: briefs with an exact success condition, a list of near misses that do not count, audits before return
- Loops that improve themselves: locked metrics, logs, rollback and human approval points

## Skills
| Skill | Call | Changes code? | In plain words |
|---|---|---|---|
| context-fundamentals | automatic (or name it) | no | Explains what the model sees at each step and why it matters; background reading |
| context-degradation | automatic (or name it) | unclear | Diagnoses why an agent gets worse in long sessions and picks a fix |
| context-compression | automatic (or name it) | unclear | Shrinks a long session into a summary that keeps what matters |
| context-optimization | automatic (or name it) | unclear | Cuts token use: hide bulky tool output, reuse cached text, split the work |
| self-managed-context | automatic (or name it) | unclear | Lets the model edit its own working memory, with safety rules around it |
| latent-briefing | automatic (or name it) | unclear | Passes a lead agent's state to helper agents inside the model's memory cache; only when you run the models yourself |
| multi-agent-patterns | automatic (or name it) | unclear | Decides if several agents are worth it and how they hand work over |
| long-horizon-prompting | automatic (or name it) | unclear | Writes or checks the opening brief for an agent that works for hours or runs in parallel |
| memory-systems | automatic (or name it) | unclear | Chooses how an agent remembers people, facts and changes across sessions |
| tool-design | automatic (or name it) | unclear | Designs the tools an agent can call, with clear names, descriptions and error messages |
| filesystem-context | automatic (or name it) | unclear | Moves big outputs, plans and notes into files the agent reads when needed |
| hosted-agents | automatic (or name it) | unclear | Designs coding agents that run in the background on remote machines |
| evaluation | automatic (or name it) | unclear | Builds checks, rubrics and test sets to measure an agent's quality |
| advanced-evaluation | automatic (or name it) | unclear | Uses one AI to grade or compare the answers of another, with bias checks |
| harness-engineering | automatic (or name it) | unclear | Designs the setup around an agent that runs on its own in a loop |
| self-improvement-loops | automatic (or name it) | unclear | Designs agents that change their own setup, with gates that test each change |
| project-development | automatic (or name it) | unclear | Decides if AI fits a project and plans its stages and costs |
| bdi-mental-states | automatic (or name it) | unclear | Models an agent's beliefs, desires and intentions in a formal way |

### context-compression
- Asks for: The long session or agent log to compress
- Asks for: What the agent does (debugging, migration ...), to choose the sections
- Gives: A summary with fixed sections: session intent, files modified, decisions made, current state, next steps
- Gives: Probe questions to check the summary kept the facts
- Say: "Write a handoff summary of this session that keeps files, decisions and next steps"

### long-horizon-prompting
- Asks for: The hard problem or long task
- Asks for: What counts as done
- Asks for: Whether several agents will work in parallel
- Gives: A brief with definitions, an exact success condition, near misses that do not count, an audit checklist, stop and return rules, an effort floor
- Gives: Per-worker contracts for parallel runs
- Gives: A pre-launch check where any no is a defect
- Say: "Write a long-horizon task brief for this problem and check it before launch"

### tool-design
- Asks for: The tool or set of tools
- Asks for: Where the agent picks the wrong tool or makes broken calls
- Gives: An 8-point audit: name, description, inputs, return shape, recovery, overlap, merge decision, token impact
- Say: "Audit the tools my agent uses and tell me which to merge"

### advanced-evaluation
- Asks for: The task and the answer (or two answers) to judge
- Asks for: The criteria
- Gives: A judging prompt for direct scoring: evidence first, then a score, then one improvement
- Gives: A pairwise prompt run twice with the order swapped; a tie when the runs disagree
- Gives: A rubric with level descriptions, edge cases and a strictness setting
- Say: "Set up a judge that compares two answers from my chatbot"

### harness-engineering
- Asks for: The goal of the loop in one sentence
- Asks for: How results are measured
- Gives: An 8-step checklist: goal, what is locked and what the agent may edit, feedback, keep / discard states, a log, pruning rules, approval points, a test on one good and one bad result
- Say: "Help me design a safe loop for an agent that improves my prompts overnight"

### project-development
- Asks for: What goes in and what should come out
- Asks for: An acceptable error rate and the value of each good result
- Gives: A five-step plan: task analysis, a manual test on one example, architecture choice, a cost estimate with a 20-30% buffer, a stage-by-stage development plan
- Say: "Is an AI pipeline a good fit for sorting our support tickets? Plan it and estimate the cost"

## Know before installing
- It switches on by itself: the assistant loads a guide when your task matches its topic. Only the names and short descriptions load at start.
- It is for people who build agents. The guides talk about tokens, caches, rubrics and orchestration, not everyday tasks.
- The Python files in the skill folders are teaching code; the hosted-agents one calls itself pseudocode. Nothing in the skills tells the assistant to run them.
- The Claude Code install points at the whole repository, so the research loop and example projects come along as files. They do not run unless you start them.
- The optional research loop for macOS installs three background jobs; one wakes every 10 minutes and may fetch web pages.
- Several guides quote research preprints and benchmark numbers; the author tracks them as dated claims, so check the date before relying on a number.

## Install (official commands)
- Claude Code: `/plugin marketplace add muratcankoylan/Agent-Skills-for-Context-Engineering` && `/plugin install context-engineering@context-engineering-marketplace` — Send as two separate prompts. Installs all 18 skills as one plugin.
- Cursor: Install from the Cursor Plugin Directory, or clone the repository and point Cursor at it. For one project, copy skill folders into .cursor/skills/.
- Codex, GitHub Copilot CLI, other Open Plugins hosts: Add the repository as a plugin directory, or copy skill folders into .codex/skills/ or .agents/skills/.
- One skill, by hand (Claude Code): `mkdir -p .claude/skills` && `cp -R skills/context-fundamentals .claude/skills/` — Copy the whole folder, not just SKILL.md; flattening breaks the links to its references. Remove: `delete the folder from .claude/skills/`.

## What runs on the user's machine
- Code on the machine: yes (the optional research loop and example projects, and only if you start them; the 18 skills are text)
- Network: optional
- Install: 18 skill folders of markdown with reference notes and teaching Python files. No hooks, no commands, nothing runs on install.
- Only if you run researcher/orchestration/launchd/install.sh (macOS): Writes three LaunchAgents to ~/Library/LaunchAgents and starts them: a step every 10 minutes (runs loop_step.py with --allow-fetch), discovery every 12 hours, daily ops. Logs go to researcher/reports/logs/. uninstall.sh removes them.
- Research loop with --allow-fetch: Plain HTTP GET of source URLs from its queue, capped at 1.5 MB and 30 seconds. The author says it never calls paid AI models and makes no outbound writes.
- Example projects (examples/): Separate demo projects with their own scripts and package files; nothing installs them.

## Examples (from the pack's own files)
- A compressed debugging session (context-compression): output format defined in skills/context-compression/SKILL.md

## Author's numbers (as reported, not run by AgentGid)
- Skill routing top-1 accuracy after the author's corpus-wide hardening pass: gemini-3.1-pro 0.920, gpt-5.5 0.913, composer-2 0.913, claude-opus-4-7 0.840 (50 prompts x 4 models x 3 replications = 600 calls per sweep, via the Cursor SDK). Source: muratcankoylan/Agent-Skills-for-Context-Engineering/README.md
- context-fundamentals routed correctly 0.255 of the time before a description rewrite and 0.489 after. Source: muratcankoylan/Agent-Skills-for-Context-Engineering/README.md

## Steps only the person can do
- Only if you want the optional macOS research loop: read its installer and start it yourself (researcher/orchestration/launchd/install.sh) Then: Three background jobs run under your user account; researcher/orchestration/launchd/uninstall.sh removes them
- Only if you want to rerun the author's router benchmark: create a Cursor API key and set it as CURSOR_API_KEY (researcher/benchmarks/sdk-runner/README.md (Cursor Dashboard, Integrations)) Then: The benchmark runner sends its test prompts through the Cursor SDK

## Mistakes to avoid
- Not: Copy only a skill's SKILL.md into the skills folder as one flat file. Instead: Copy the whole skill folder (SKILL.md plus references/ and scripts/). Why: A flat file breaks the links to the skill's reference notes
- Not: Treat the Python files in the skill folders as ready tools to run in production. Instead: Read them as teaching code and build your own version. Why: The pack's scripts illustrate patterns; the hosted-agents one calls itself pseudocode
- Not: Use latent-briefing with a hosted model API. Instead: Use context-compression, memory-systems or multi-agent-patterns when you cannot reach the model's internal cache. Why: Latent briefing works on the model's memory cache, which only self-run models expose
- Not: Split a task into many agents and budget as for one. Instead: Check first that the work needs separate contexts, and budget for much higher token use. Why: The pack warns that multi-agent runs cost far more tokens and that over-splitting wastes them on handoffs
- Not: Run the research loop installer as part of installing the skills. Instead: Install only the skills; start the macOS research loop separately and only on purpose. Why: The installer adds background jobs that run every 10 minutes and fetch web pages

## What leaves the machine
- Plain web page requests for source URLs in the research queue → The source websites in the queue, Only if you run the research loop with --allow-fetch or install its launchd jobs. Opt out: Do not start the research loop; the skills themselves send nothing
- Benchmark prompts and skill descriptions → Cursor (paid API, through the Cursor SDK), Only if you run the router benchmark runner yourself with your key. Opt out: Do not run researcher/benchmarks/sdk-runner

## Lines in the pack aimed at agents (ask the person first)
- "For autonomous research and repo-improvement work in this workspace, prefer proceeding through concrete research loops, subagents, validation, and edits when the scope is clear rather than asking broad process questions." (AGENTS.md): This applies only to agents working inside a clone of the repository, not to the installed skills. Ask the person before starting loops, web fetches or edits.

## May I use it like this?
- commercial-app: yes (MIT: keep the copyright and permission notice)
- redistribute-files: yes (MIT: include the copyright and permission notice in copies)
- client-work: yes (MIT allows use in work for others)
- inside-app-bundle: yes (MIT: keep the license notice in the bundle)

## Which one to pick
- If You want reference guides on how to design, compress, evaluate and brief your own AI agents: skill:muratcankoylan/Agent-Skills-for-Context-Engineering
- If You want Claude Code itself to learn from your corrections and keep that memory across sessions: skill:rohitg00/pro-workflow
- If You want a working long-term memory and memory handoff for Claude Code or Codex, not design guides: skill:oceanbase/powercontext

## Works well with
- agent:claude-code: The repository is a Claude Code plugin marketplace that installs all 18 skills as one plugin
- agent:cursor: Cursor reads the Open Plugins manifest or skill folders in .cursor/skills/
- agent:openai-codex: Codex picks up the skills from .codex/skills/ or the plugin manifest
- agent:github-copilot-cli: The README lists GitHub Copilot CLI among the Open Plugins hosts

## Works in and needs
- Works in Claude Code: plugin or skills folder
- Works in Cursor: plugin or skills folder
- Works in Codex: plugin or skills folder
- Works in GitHub Copilot CLI, other Open Plugins hosts: plugin or skills folder
- Needs Python 3 and macOS: Only for the optional research loop and its launchd jobs; the skills need nothing
- Needs Cursor API key: Only for rerunning the author's router benchmark

## How to tell it works
Install it and ask: "My agent gets worse after about 50 messages. What is going wrong and what should I change?" The answer should name a failure pattern (for example lost in the middle or context distraction) and pick one of write, select, compress or isolate. That tells you the guides are being used.

## Safety
The skills are text. The repository also holds a self-running research loop for macOS. If you start its installer, it adds background jobs to your user account and fetches web pages every 10 minutes. Read it before starting it, and use the uninstall script to remove it.
