harness-engineering
Skill18k starsChanged 4 months agoMITView on GitHub
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.
13 other projects use a version of this.
Trending
Quiet since October.about the whole repository
Most recently taken up by
- github/awesome-copilottheir own version, first seen Sep 23, 2026
- DamonZS/Claude-Codex-Pro-Tooltheir own version, first seen Sep 8, 2026
- fiveonecode/agent-skillstheir own version, first seen Sep 6, 2026
- docxology/templateword for word, first seen Aug 29, 2026
- goldenprofile/llm-skillstheir own version, first seen Aug 12, 2026
- Stevekaplanai/harness-engineering-skilltheir own version, first seen Jul 22, 2026
Who's talking about muratcankoylan/Agent-Skills-for-Context-Engineering
- @dailygithubtrends.bsky.social“今日のGitHubトレンド muratcankoylan/Agent-Skills-for-Context-Engineering …”Bluesky · Feb 27, 2026 · 3 likes
- A Hacker News story“Agent-Skills-for-Context-Engineering”Hacker News · Dec 25, 2025 · 3 points
- A Hacker News story“Agent Skills for Context Engineering”Hacker News · Dec 22, 2025 · 3 points
- AAswordman/OperitSkillMarket“memory-systems”GitHub · Feb 20, 2026 · 2 reactions
- vercel-labs/skills“[Bug]: Only some skills discovered from repositories with nested skills/ directory structure”GitHub · Jan 21, 2026 · 2 reactions
The biggest 5 of 44 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 44
Talked about on GitHub, Bluesky and Hacker News (44 times).
On GitHub · 37
- Feb 20, 2026memory-systems — AAswordman/OperitSkillMarket2 reactions
- Jan 21, 2026[Bug]: Only some skills discovered from repositories with nested skills/ directory structure — vercel-labs/skills2 reactions · 6 comments
- Aug 2, 2026Add more skills from below repos https://github.com/nextlevelbuilder/ui-ux-pro-max-skill https://github.com/hardikpandya/stop-slop https://github.com/muratcankoylan/agent-skills-for-context-engineering — shivam-verma-philips-1/ai-team1 reaction
- Mar 22, 2026More context engineering — davidamitchell/Research1 reaction
- Dec 25, 2025Add skills: muratcankoylan/context-engineering collection — VoltAgent/awesome-agent-skills1 reaction
32 more on GitHub
- Oct 28, 2026docs(compound-packs): add ci-compound-pack for runner placement, efficient CI and check verdicts — systemfsoftware/systemfsoftware0 reactions · 1 comment
- Oct 9, 2026[Candidate] muratcankoylan/agent-skills-for-context-engineering/skills/context-fundamentals - context-fundamentals — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 9, 2026[Candidate] muratcankoylan/agent-skills-for-context-engineering/skills/context-degradation - context-degradation — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 9, 2026[Candidate] muratcankoylan/agent-skills-for-context-engineering/skills/context-compression - context-compression — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 4, 2026claude-code-plugins.github.muratcankoylan.agent-skills-for-context-engineering: init at 2.3.0 — sudosubin/agents.nix0 reactions
- Oct 4, 2026claude-code-marketplaces.github.muratcankoylan.agent-skills-for-context-engineering: init at 2.3.0 — sudosubin/agents.nix0 reactions
- Oct 3, 2026Skills: vendor the BADF-compatible subset of Agent-Skills-for-Context-Engineering at IMPLEMENTED (pinned, overlaid, not routed) — bstBizEra/badf0 reactions
- Sep 30, 2026agent-skills.github.muratcankoylan.agent-skills-for-context-engineering: init at 2.3.0 — sudosubin/agents.nix0 reactions
- Jul 9, 2026[Collection]: muratcankoylan/agent-skills-for-context-engineering — shimoncohen/the-great-skill-dictionary0 reactions · 2 comments
- May 30, 2026feat(swarm): latent-briefing — KV cache compaction as orchestrator-to-worker context handoff — deftai/directive0 reactions
- Apr 25, 2026Audit candidate: muratcankoylan/Agent-Skills-for-Context-Engineering — xiaolai/nlpm0 reactions · 3 comments
- Mar 24, 2026Dynamic skill loading — install new tools at runtime without restarting — JeetVaidya1/jarvis0 reactions
- Mar 22, 2026Research: Applied context engineering — practical skills, workflows, and best practices for agent development — davidamitchell/Research0 reactions
- Mar 22, 2026research: 外部AI知見(Claude Skills / MCP / OSS)の分析と活用計画 — uminomae/creation-space0 reactions · 2 comments
- Mar 8, 2026Research: Context Engines for AI Agents — Market Analysis, Comparison & Context vs Memory — humanjack/ai-engineering0 reactions
- Feb 27, 2026Agent Skills for Context Engineering — MateuszNaKodach/SelfImprovement0 reactions
- Feb 26, 2026Research: Agent Skill Systems — Standards, Protocols & Frameworks for Extending AI Agents — humanjack/ai-engineering0 reactions
- Feb 25, 2026Analysis: Agent-Skills-for-Context-Engineering — Context Management Patterns for AI Agents — humanjack/ai-engineering0 reactions
- Feb 20, 2026tool-design — AAswordman/OperitSkillMarket0 reactions
- Feb 20, 2026multi-agent-patterns — AAswordman/OperitSkillMarket0 reactions
- Feb 20, 2026evaluation — AAswordman/OperitSkillMarket0 reactions
- Feb 20, 2026context-optimization — AAswordman/OperitSkillMarket0 reactions
- Feb 20, 2026context-fundamentals — AAswordman/OperitSkillMarket0 reactions
- Feb 20, 2026context-degradation — AAswordman/OperitSkillMarket0 reactions
- Feb 20, 2026context-compression — AAswordman/OperitSkillMarket0 reactions
- Jan 6, 2026New plugins: 11 skills from skills (low risk) — aiskillstore/marketplace0 reactions
- Jan 3, 2026Weekly Journal Sources - Week of 2026-01-06 — beijaflor/gen-ai-journal0 reactions · 1 comment
- Dec 27, 2025Multi cli integration — AutoMaker-Org/automaker0 reactions · 3 comments
- Dec 25, 2025Enhance skills with Agent-Skills repository patterns — jamditis/tools0 reactions
- Dec 24, 2025Agent-Skills-for-Context-Engineering — jonath92/Copilot-Training0 reactions
- Dec 22, 2025Integrate Tool Use Learning — m2ux/concept-rag0 reactions
- Dec 12, 2025dec 2025 jan 2026 — kimtth/azure-openai-llm-notes0 reactions
On Bluesky · 5
- Feb 27, 2026今日のGitHubトレンド muratcankoylan/Agent-Skills-for-Context-Engineering このリポジトリは、AIエージェントの性能を最大化するための「コンテキストエンジニアリング」に焦点を当てたスキル集です。… — @dailygithubtrends.bsky.social3 likes and reposts
- May 27, 2026https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering — @sigmanor.net1 likes and repost
- Feb 27, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 muratcankoylan / Agent-Skills-for-Context-Engineering ⭐ 12,191 (+836) 🗒 Python A comprehensive… — @github-trending.bsky.social1 likes and repost · 1 reply
- Feb 26, 2026github.com/muratcankoyl... — @pcl25387.bsky.social1 likes and repost
- Feb 25, 2026今日のGitHubトレンド muratcankoylan/Agent-Skills-for-Context-Engineering このリポジトリは、AIエージェントの性能を最大化するための「コンテキストエンジニアリング」に焦点を当てたスキル集です。… — @dailygithubtrends.bsky.social1 likes and repost
On Hacker News · 2
- Dec 25, 2025Agent-Skills-for-Context-Engineering3 points
- Dec 22, 2025Agent Skills for Context Engineering3 points · 3 comments
Other versions13 projects use a version of this.
Word for word · 1
- docxology/template★ 20100% same
Edited · 0
None found.
Wrote their own version · 12
- github/awesome-copilot★ 40ksame name
- kangarooking/kangarooking-skills★ 653same name
- Mark393295827/third-brain-v7-skills★ 141same name
- magnus919/agent-skills★ 109same name
- charlesanim/harness-engineering★ 20same name
- fiveonecode/agent-skills★ 19same name
- DamonZS/Claude-Codex-Pro-Tool★ 9same name
- drewid74/ai_skills★ 8same name
- goldenprofile/llm-skills★ 3same name
- lispking/harness-skills★ 3same name
2 more not listed
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 repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- context-engineering-collectionSkill
- advanced-evaluationSkill
- bdi-mental-statesSkill
- context-compressionSkill
- context-degradationSkill
- context-fundamentalsSkill
- context-optimizationSkill
- evaluationSkill
- filesystem-contextSkill
- hosted-agentsSkill
- latent-briefingSkill
- long-horizon-promptingSkill
- memory-systemsSkill
- multi-agent-patternsSkill
- project-developmentSkill
- self-improvement-loopsSkill
- self-managed-contextSkill
- tool-designSkill
- skill-templateSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 0 are common, 17 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
17
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 21
Do not activate this skill for adjacent work owned by other skills:
- Distinctive: line 33
Use four surface classes:
- Distinctive: line 52
Use append-only logs for:
- Distinctive: line 67
Run leave-one-out pruning when a stack has multiple additions.
- Distinctive: line 69
Use separate verification before promotion.
- Distinctive: line 83
Use this pattern when optimizing an artifact against a stable evaluator:
- Distinctive: line 101
Use this pattern when sources become skill changes:
- Distinctive: line 125
Use monitoring agents for long runs, but restrict them to read-only reporting unless explicitly tasked otherwise.
- Distinctive: line 142
Create a durable thread log before the loop starts.
- Distinctive: line 143
Add source refresh, mechanism-registry novelty, and pruning rules for long-running loops.
- Distinctive: line 162
Use TSV or JSONL for append-only machine-readable logs.
- Distinctive: line 181
Keep editable surfaces narrow enough for reliable diffs.
- Distinctive: line 182
Write durable logs before context compaction can erase state.
- Distinctive: line 185
Add novelty gates for broad search and pruning gates for complex stacks.
- Distinctive: line 186
Prefer simplification when quality is equal.
- Distinctive: line 189
Treat stopped autonomous loops as harness failures, not agent personality quirks.
- Distinctive: line 193
Mutable evaluator: If the agent can edit the metric, it may optimize the benchmark instead of the task.
“Common” is measured: kept by at least 6 in 10 of the 11 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
Harness Engineering
Harness engineering designs the control system around an agent: what it may edit, how it receives feedback, where it writes state, how failures recover, and who can approve irreversible actions. The harness is the difference between a helpful agent session and an autonomous loop that can run for days without corrupting its objective.
When to Activate
Activate this skill when:
- Building autonomous research or experimentation loops
- Designing an agent environment with locked metrics and editable code or content
- Creating PR-producing or background agents
- Evaluating whether an agent can safely run without frequent human prompts
- Adding novelty, ablation, pruning, rollback, or durable logging to an agent workflow
- Preventing agents from gaming benchmarks, weakening rubrics, or losing state across compaction
Do not activate this skill for adjacent work owned by other skills:
- General quality gates, regression suites, or outcome metrics without autonomous control surfaces:
evaluation. - Tool schemas, response formats, and recovery errors for harness tools:
tool-design. - Project-level task-model fit, pipeline shape, and cost planning:
project-development. - Remote sandbox, warm-pool, and hosted session infrastructure:
hosted-agents.
Core Concepts
Harness Boundary
Separate the agent from the environment it operates inside. The agent proposes actions; the harness defines allowed surfaces, feedback, persistence, and promotion rules.
Use four surface classes:
| Surface | Examples | Rule |
| Locked | Eval metric, rubric, validation script, merge policy | Agent may read and propose changes, but cannot score itself with modified rules |
| Editable | Skill draft, experiment file, prompt, config under test | Agent may mutate during the loop |
| Append-only | Results log, research thread, rejected ideas | Agent may append, not rewrite |
| Human-controlled | Merge, production deploy, credentials, destructive operations | Requires explicit human approval |
Tight Feedback Loops
Autonomy works when feedback is fast, unambiguous, and hard to game. Karpathy's autoresearch is the minimal pattern: one editable file, one locked evaluation file, fixed wall-clock budget, one scalar metric, git rollback, and a durable results log. The lesson is not that every harness needs one metric; it is that ambiguous feedback creates ambiguous autonomy.
For open-ended research-to-skill work, replace the scalar metric with locked rubrics, deterministic structure checks, source traceability, and human review thresholds.
Durable State
Long-running agents must externalize state. Store plans, source queues, results, failures, and handoffs in files so future agents can resume without relying on chat history. Prime Intellect's autonomous nanoGPT work showed the value of durable scratchpads and THREAD.md-style logs for recovery, monitoring, and audit.
Use append-only logs for:
- What was tried
- What improved or failed
- Why a candidate was kept, discarded, or routed to review
- Which upstream sources were checked
- What the next agent should do
Search Discipline
Agents tend to exploit the nearest surface, stack complexity, and under-run pruning. Add explicit search rules:
- Refresh upstream sources on a schedule.
- Require novelty checks before spending large budgets.
- Preserve rejected attempts to avoid rediscovery.
- Run leave-one-out pruning when a stack has multiple additions.
- Reward simplification when quality is equal.
- Use separate verification before promotion.
Mechanism Registry
For research-to-skill systems, track accepted mechanisms separately from prose. A mechanism record should include a stable mechanism_id, owning_skill, status, activation scenario, behavior change, evidence, and failure modes. Novelty gates should compare against this registry before using broader corpus overlap, because keyword overlap catches stale phrasing while mechanism comparison catches real duplication.
Governance
Autonomous agents may prepare PRs, but governance must be explicit. They can draft changes, run checks, and write PR summaries. They should not merge, deploy, or push without human approval unless the user has explicitly granted that permission for the specific action.
Detailed Topics
Autoresearch-Style Loop
Use this pattern when optimizing an artifact against a stable evaluator:
read locked context -> choose hypothesis -> edit allowed surface -> commit/checkpoint
-> run evaluator -> log result -> keep if better -> discard or rollback if worse
-> repeatRequired properties:
- The evaluator is outside the editable surface.
- The feedback cadence is fixed enough to compare attempts.
- Failed attempts leave an audit trail.
- Rollback is cheap.
- The agent has a policy for crashes and timeouts.
Research-To-Skill Loop
Use this pattern when sources become skill changes:
discover -> retrieve -> gate -> score -> extract mechanism
-> map to existing or new skill -> draft proposal -> validate structure
-> prepare PR -> human reviewThe locked evaluator is a combination of source rubrics, skill-change rubrics, structure checks, and reviewer approval. The editable artifact is the proposed skill delta.
Metric Gaming Resistance
Assume an optimizing agent will learn the harness. Guard against:
- Editing evaluation code or rubrics and then using the new version for self-approval
- Adding verbose content that pleases a judge but harms skill activation
- Citing unretrieved sources
- Optimizing aggregate scores while failing a critical dimension
- Avoiding failed results in the log
Mitigation: lock rubrics per run, report per-dimension scores, require source retrieval evidence, preserve rejected attempts, and route governance changes to human review.
Monitoring Agents
Use monitoring agents for long runs, but restrict them to read-only reporting unless explicitly tasked otherwise. Monitoring output should report:
- Best current candidate
- Active jobs or drafts
- Last upstream refresh
- Failed or stale loops
- Disagreements between logs and claimed state
- Next action and blocker
Practical Guidance
Harness Design Checklist
- Define the objective in one sentence.
- Identify locked, editable, append-only, and human-controlled surfaces.
- Choose the feedback mechanism: scalar metric, rubric, deterministic tests, human review, or combination.
- Define keep, discard, crash, timeout, and review states.
- Create a durable thread log before the loop starts.
- Add source refresh, mechanism-registry novelty, and pruning rules for long-running loops.
- Define what the agent may do without asking and what requires approval.
- Validate the harness on one known good and one known bad artifact.
File Layout
research-run/
THREAD.md
sources/
queue.md
evaluations/
proposals/
logs/
results.tsv
rejected.md
drafts/Use TSV or JSONL for append-only machine-readable logs. Use Markdown for handoffs and reviewer-facing summaries.
Examples
Example 1: Locked metric
An agent optimizes train.py, but prepare.py owns data loading and evaluation. The agent can edit the model but cannot change the metric. Failed experiments are logged and rolled back.
Example 2: Locked rubric
An agent evaluates a new Anthropic or OpenAI engineering post, but the source curation rubric is locked for the run. If the source passes, the agent drafts a skill proposal. It cannot lower the rubric threshold to admit the source.
Example 3: Auto-PR without auto-merge
An agent prepares a branch and PR body after passing source, skill, and structure checks. The PR states unresolved risks and waits for human merge approval.
Guidelines
- Lock evaluators before starting the loop.
- Keep editable surfaces narrow enough for reliable diffs.
- Write durable logs before context compaction can erase state.
- Report per-dimension scores instead of only aggregate scores.
- Require source retrieval before citation.
- Add novelty gates for broad search and pruning gates for complex stacks.
- Prefer simplification when quality is equal.
- Separate PR preparation from merge authority.
- Revalidate harness changes with old and new evaluators.
- Treat stopped autonomous loops as harness failures, not agent personality quirks.
Gotchas
- Mutable evaluator: If the agent can edit the metric, it may optimize the benchmark instead of the task. Keep rubrics and eval code locked during the run.
- Chat-only memory: Long runs fail after compaction when plans live only in conversation history. Write thread logs and result files from the start.
- No discard record: Without rejected-attempt logs, agents repeat failed ideas. Preserve failures with enough detail to avoid rediscovery.
- Complexity accretion: Agents stack changes and rarely remove them. Require pruning rounds and reward equal-quality simplification.
- Premature novelty claims: Agents label recombinations as novel. Compare against existing repo skills, source queue, and rejected logs before claiming novelty.
- Monitor misreporting: Monitoring agents can summarize stale or inconsistent state. Require them to cite the files or logs behind claims.
- Human approval ambiguity: "Prepare a PR" is not "merge a PR." Make approval boundaries explicit in the harness.
- Volatile source drift: Fast-moving lab claims age quickly. Put dated evidence in references and schedule revalidation.
Integration
This skill connects to:
- evaluation - Rubrics and quality gates provide the locked feedback surface
- advanced-evaluation - Pairwise comparison and bias mitigation improve proposal review
- filesystem-context - Durable logs, scratchpads, and thread files preserve state
- multi-agent-patterns - Researcher, verifier, monitor, and writer agents need isolated contexts
- tool-design - Harness tools must expose clear contracts and recovery errors
- project-development - File-based pipelines and task-model fit analysis keep loops simple
- hosted-agents - Background execution needs sandbox, snapshot, and approval boundaries
References
Internal references:
researcher/README.md- Read when implementing the repo-native research-to-skill operating systemresearcher/rubrics/harness-change.md- Read when evaluating changes to an agent harnessresearcher/runbooks/autonomous-research-loop.md- Read when running a source-to-skill loop
External resources:
- Karpathy
autoresearch- Constrained autonomous experiment loop with locked evaluation - Prime Intellect autonomous nanoGPT speedrun - Durable scratchpads, handoffs, monitoring, and autonomy failure modes
- AlphaEvolve and FunSearch - LLM-generated candidates paired with systematic evaluators
- HELM and LM Evaluation Harness - Transparent, reproducible evaluation infrastructure
Skill Metadata
Created: 2026-05-14 Last Updated: 2026-05-15 Author: Agent Skills for Context Engineering Contributors Version: 1.1.0
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.

