Dev & Engineering

Self-Improvement Loops

Evolve agent harnesses, workflows, and context mechanisms under bounded, evidence-based evaluation.

58/ 100
Recommended

Generally reliable with disclosed limitations; trial as directed and keep a rollback path.

See how it was scored ↓
Works as-is in
Codex · Claude Code
Stars
★ 18k
Last updated
16d ago
License
MIT
self-improvement-loopsharness-engineeringevolutionary-searchcontext-evolution
+2reward-hackingruntime-sandboxing

What does this skill do, and when should you use it?

This skill is for systems that optimize the harness, scaffold, workflow, or context mechanism itself. It covers failure-driven self-edits, meta-harness search, evolutionary scaffold search, context-mechanism evolution, and acceptance gates for self-modifying systems. Its central rule is to keep evaluation, permissions, instrumentation, and budgets outside the editable loop while testing candidates on held-in and held-out data. It is a fit for teams with reliable automated feedback and a need for iterative agent-system improvement, not for one-shot prompt tuning without dependable execution signals.

It guides teams to cluster failed traces by verifier cause, agent responsibility, and reusable mechanism; declare editable surfaces and require each proposal to record its target, expected effect, and regression risks; evaluate candidates repeatedly on held-in and held-out splits; store candidate source, scores, raw execution traces, diffs, lineage, and decisions in a filesystem archive; preserve search diversity through archive-based selection, offspring-count discounting, and near-duplicate rejection; and enforce permissions, budgets, and sandbox boundaries in the runtime outside the loop.

Good fit
  • A harness engineer wants to generate bounded self-edits from recurring failure traces and validate regressions before merging.
  • A research team is searching over workflow graphs, harness programs, or optimizer code with a meta-agent proposer.
  • A context engineer wants an itemized playbook or context-producing skill to evolve incrementally from execution feedback.
  • An evaluation engineer needs two-split acceptance gates, repeated trials, and protections against evaluator gaming.
  • An agent platform team is diagnosing reward hacking, diversity collapse, context collapse, or silent stagnation in an improvement loop.

How do you install this skill?

Before you use it
  • This is a low-confidence static assessment; examples, code, and repository CI were not executed.
  • The cited numbers and research conclusions are marked as volatile and should be revalidated before adoption.
  • A host runtime must still implement isolation, immutable evaluation, rollback, and human approval; the skill text alone cannot guarantee those controls.
  • Chinese interaction and mainland-China network reachability are not specified; accessibility should be checked wherever external papers, sites, or remote infrastructure are required.
Before you start
Your agent needs
  • Shell / CLI
  • Local filesystem

Copy the complete skills/self-improvement-loops directory into a compatible skills directory, for example: mkdir -p .codex/skills && cp -R skills/self-improvement-loops .codex/skills/. The README also documents .claude/skills/, .cursor/skills/, and .agents/skills/ as installation locations. Preserve the directory layout; do not flatten the skill into a single markdown file. The source does not document a standalone executable installer or turnkey runtime for this skill.

Generic route: install into Claude Code manually (macOS / Linux)
tmp="$(mktemp -d)"
git clone --depth 1 https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering.git "$tmp"
mkdir -p ~/.claude/skills
cp -R "$tmp/skills/self-improvement-loops" ~/.claude/skills/
rm -rf "$tmp"

Generated from the source repository and skill path; it copies only this skill's folder. If the author's install steps above differ, follow those first. To scope it to one project, replace ~/.claude/skills with that project's .claude/skills.

How do you use this skill?

Try saying

Once installed, send your agent any of these to trigger it:

  • Design a self-improvement loop that mines failure traces, proposes bounded harness edits, applies held-in/held-out acceptance, and archives raw traces.

On a host that loads Agent Skills, use a task such as: “Design a self-improvement loop that mines failure traces, proposes bounded harness edits, applies held-in/held-out acceptance, and archives raw traces.” Before enabling self-modification, verify that a fast deterministic evaluator, an unseen held-out split, runtime sandboxing, explicit editable surfaces, and full candidate lineage are available.

What are this skill's strengths and limitations?

Pros
  • Provides a six-rung optimization ladder from instruction prompts to optimizer code, helping teams fix failures at the lowest suitable level.
  • Clearly separates mutable optimization surfaces from evaluation, instrumentation, permissions, and budget enforcement.
  • Treats candidate source and raw traces as first-class evidence instead of relying only on scores or model-written summaries.
  • Offers concrete patterns for failure mining, two-split acceptance, diversity preservation, and incremental context merging.
Limitations
  • Requires a fast, deterministic, automatable evaluator; slow, ambiguous, or judge-only domains are poor fits.
  • The skill provides design guidance and Python pseudocode examples, not a complete self-modifying runtime or deployable implementation.
  • Adoption requires filesystem archives, runtime sandboxing, permission boundaries, and preferably an independent evaluator.
  • The source provides no standalone test suite or cross-platform benchmark results for this individual skill.

How does this skill compare with similar options?

Side by side with related skills; every score comes from the same FSRS standard.

Skill FS score Stars Last updated License
Self-Improvement Loops this page 58 · Recommended ★ 18k 16d ago MIT
Context Engineering for Production Agents 44 · Not recommended ★ 18k 16d ago MIT
Harness Creator: Harness Engineering for AI Coding Agents 56 · Use with care ★ 20k 27d ago MIT
Autonomous Agent Harness 49 · Use with care ★ 18k 16d ago MIT
Agents Best Practices 61 · Recommended ★ 2.4k 15d ago MIT

Compared with harness-engineering, this skill focuses on optimizing the control surfaces themselves; harness-engineering governs a single autonomous loop's locked surfaces, logs, rollback, and approval boundaries. evaluation and advanced-evaluation own evaluator and judge design, while context-optimization focuses on one-shot context efficiency rather than evolving the context mechanism over time.

How did FollowSkills review this skill?

FollowSkills review · FSRS-2.0
Recommended
58/ 100 5-point scale 2.9 / 5
The upstream repository has new commits since this review. The score still applies to the reviewed revision shown and may not cover the latest changes.
1Trust16 / 25 · 3.2/5

The document specifies runtime-enforced budgets and permissions, external evaluators, sandboxing, human approval points, candidate archives, lineage, and failed-candidate retention, reducing overreach and irrecoverable self-modification risk. It does not concretely define sensitive-data handling, user-confirmation flows, a general rollback implementation, or dependency-security controls, so 9 points are deducted.

2Reliability8 / 20 · 2.0/5

The guidance is internally coherent and covers capability validation, stagnation detection, two-split acceptance, reward-hacking failures, and intelligible trace feedback, with readable pseudocode and archive examples. However, this is a static review; the selected skill has no accompanying executable tests or scripts reproducing its key paths, and several controls depend on external implementation, so 12 points are deducted.

3Adaptability12 / 15 · 4.0/5

Activation scenarios, non-fit boundaries, optimization levels, and routing to adjacent skills are clearly stated for several self-improvement use cases. Inputs and output contracts, empirical semantic-trigger coverage, Chinese-language support, and mainland-China environment fit are not established, so 3 points are deducted.

4Convention11 / 15 · 3.7/5

The skill has layered sections, a readiness checklist, examples, integration guidance, an internal evidence reference, version and update metadata, and repository-level MIT licensing. Maintenance ownership, changelog practice, dependency/install guidance, and a concrete update path are incomplete; authorship is attributed only to a contributor group, so 4 points are deducted.

5Effectiveness6 / 15 · 2.0/5

The optimization ladder, failure-driven loop, acceptance gate, archive layout, and routing example are directly useful for design work and address common failure modes. The selected skill remains a conceptual and pseudocode guide without a runnable implementation or verified representative outputs, leaving substantial engineering work, so 1 point is deducted.

6Verifiability5 / 10 · 2.5/5

Key claims carry claim IDs, and the internal reference records dates plus papers or reports and experimental details, while also disclosing revalidation limits. Evidence is still primarily documentary and relayed from external sources; no independent reproduction, skill-specific test coverage, or broad corroboration is present in the supplied files, so the static-review ceiling of 5 applies.

1 2 3 4 5 6

Open a dimension to read why it scored that way

Reviewed Jul 20, 2026 Reviewed revision c578e85e40fe Review evidence[1][2][3][4][5][6][7][8][9]

Evidence confidence:Low — Mostly static review, author material or a limited demo; useful for discovery, not high-risk decisions.

See the full review method →

FAQ

Does this skill automatically modify and deploy a production harness?
No. It describes proposal, evaluation, archival, and merge patterns, while production promotion, evaluator changes, and editable-surface expansion remain human decisions.
Should the proposer see the evaluator source code?
No. The skill recommends exposing scores and traces while hiding the scoring implementation and protecting instrumentation and permission checks.
Can context evolution work without reliable feedback?
It is not recommended. The skill states that self-managed context can fall below a static baseline without reliable execution signals or labels.

More skills from this repository

All from muratcankoylan/Agent-Skills-for-Context-Engineering

Dev & Engineering

Context Engineering for Production Agents

A structured guide to designing, optimizing, and evaluating production agent systems with reliable context management.

★ 18k FS 44 Not recommended 16d ago
Dev & Engineering

Autonomous Agent Harness

Designs autonomous agent loops that remain controlled, recoverable, and auditable.

★ 18k FS 49 Use with care 16d ago
Dev & Engineering

Context Engineering Fundamentals

Understand and shape reliable agent context through attention budgets, context-window mechanics, and signal-density principles.

★ 18k FS 55 Use with care 16d ago
Dev & Engineering

Latent Briefing

Share task-relevant orchestrator state with workers through task-guided KV-cache compaction when the inference runtime is controllable.

★ 18k FS 55 Use with care 16d ago
Dev & Engineering

Agent Evaluation Methods

Build repeatable evaluation, regression detection, and quality gates for agent pipelines.

★ 18k FS 46 Use with care 16d ago
Dev & Engineering

Agent Skill Blueprint

A reusable structure for authoring well-scoped context-engineering skills.

★ 18k FS 40 Not recommended 16d ago
Dev & Engineering

Multi-Agent Architecture Patterns

Design multi-agent systems with context isolation, explicit handoffs, coordinated execution, and controlled failure handling.

★ 18k FS 55 Use with care 16d ago
Dev & Engineering

Context Degradation Diagnosis

Identify and mitigate lost attention, poisoning, distraction, confusion, and conflict in long agent contexts.

★ 18k FS 51 Use with care 16d ago
Dev & Engineering

Context Compression Strategies

Compress long-running agent sessions while preserving files, decisions, risks, and next actions.

★ 18k FS 50 Use with care 16d ago
Dev & Engineering

Filesystem Context Engineering

Move large, durable, or shared agent context into files and retrieve it selectively when needed.

★ 18k FS 45 Not recommended 16d ago
Dev & Engineering

Context Efficiency Optimizer

Reduce context cost with caching, masking, compaction, and partitioning while preserving answer quality.

★ 18k FS 44 Not recommended 16d ago
Dev & Engineering

Reasoning Trace Optimizer

Diagnose context, tool, and instruction failures by analyzing agent traces and iteratively improving prompts.

★ 18k FS 38 Not recommended 16d ago
Dev & Engineering

Long-Horizon Prompting

Designs auditable launch briefs for autonomous agents and parallel multi-agent work on difficult, long-running tasks.

★ 18k FS 57 Use with care 16d ago
Dev & Engineering

Advanced LLM Evaluation

Build auditable, calibrated LLM-output evaluations with explicit rubrics, confidence scoring, and bias controls.

★ 18k FS 56 Use with care 16d ago
Dev & Engineering

Persistent Semantic Memory Design

Design durable, retrievable agent memory that scales from simple files to temporal knowledge graphs.

★ 18k FS 53 Use with care 16d ago
Dev & Engineering

Agent Tool Design Guide

Design tool interfaces agents can route, call, and recover from reliably.

★ 18k FS 51 Use with care 16d ago
Dev & Engineering

Project Development Methodology

Decide whether an LLM fits the job, then design a staged agent pipeline with predictable parsing, iteration, and cost control.

★ 18k FS 50 Use with care 16d ago
Dev & Engineering

BDI Mental State Modeling

Turn RDF context into explainable belief, desire, and intention chains.

★ 18k FS 49 Use with care 16d ago
Dev & Engineering

Rigorous Research Agent

A validation, recovery, and source-tracking protocol for multi-step research.

★ 18k FS 45 Not recommended 16d ago
Productivity & Collaboration

Digital Brain Personal OS

Manage content, relationships, knowledge, and goals through structured files and AI.

★ 18k FS 38 Not recommended 16d ago

Related skills