Tooluck logoTooluck
SKILL.md

self-improvement-loops

Agent skill frommuratcankoylan/Agent-Skills-for-Context-Engineering

This skill should be used when the harness, scaffold, workflow, or optimizer itself is the optimization target: recursive self-improvement (RSI) loops, meta-harnesses, self-improving harnesses that mine their own failures and propose bounded edits, evolutionary or population-based search over agent scaffolds, acceptance gates for self-modifying systems, and agentic context evolution where the mechanism that produces context is versioned and evolved. Route governance of a single autonomous loop (locked surfaces, durable logs, rollback, novelty gates, approval boundaries) to harness-engineering, measurement and quality-gate design to evaluation, judge design to advanced-evaluation, and remote sandbox infrastructure to hosted-agents.

How to install self-improvement-loops

install self-improvement-loops
# install the Agent-Skills-for-Context-Engineering pack with the skills CLI
npx skills add muratcankoylan/Agent-Skills-for-Context-Engineering

# or add only this skill to Claude Code: copy the folder

skills/self-improvement-loops/

# into

~/.claude/skills/self-improvement-loops/ (all projects)

.claude/skills/self-improvement-loops/ (one project)

skills/self-improvement-loops/SKILL.md

MITFull file
1# Self-Improvement Loops
2
3This skill covers systems where the harness is the artifact being optimized: an agent mines its own failures and edits its own scaffold, a meta-agent searches over harness code, a population of workflow candidates evolves against an evaluator, or the mechanism that produces context is itself versioned and improved. The design question shifts from "how do I control one loop" (harness-engineering) to "how do I let a loop rewrite parts of itself without corrupting the signal that steers it".
4
5The controlling constraint across every published system: the loop optimizes whatever signal it is given, including the signal's own weaknesses. Design the loop assuming the optimizer will find every gap between the metric and the intent.
6
7## When to Activate
8
9Activate this skill when:
10
11- Building a loop where an agent proposes edits to its own harness, prompts, context playbook, or workflow based on mined failure patterns
12- Designing meta-level search over harness or scaffold code: meta-agent search, tree search over workflow graphs, evolutionary program search with an LLM mutation operator
13- Choosing acceptance criteria for any self-modifying agent system
14- Evolving the mechanism that manages context (a skill, playbook, or context function) rather than hand-editing the context artifact
15- Diagnosing a degenerating self-improvement loop: reward hacking, diversity collapse, context collapse, or silent stagnation
16…

Excerpt shown under the repository's MIT license.

More skills in Agent-Skills-for-Context-Engineering

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates