What problem does it solve? Building agents that modify their own prompts, context, workflows, or harness code risks reward hacking, diversity collapse, and silent stagnation. This Skill provides the design patterns, acceptance gates, and safety invariants needed to let a loop rewrite parts of itself without corrupting the signal that steers it. ## Core Features & Use Cases - Optimization Ladder Guidance: Route recurring failures to the right fix level, from prompt edits and structured context playbooks up to workflow graphs, harness code, and optimizer code. - Acceptance Gate Design: Implement two-split (held-in/held-out) no-regression acceptance with repeated evaluation, so self-modifications are accepted only on measured evidence. - Failure-Driven Loop Anatomy: Apply the three-stage pattern of weakness mining, bounded proposal, and validated merge, backed by a filesystem experience archive with raw traces. - Use Case: You are building an evolutionary search over agent scaffolds and the population keeps collapsing toward variants of one candidate. Use this Skill to add offspring-count-discounted parent selection, embedding-based novelty rejection, and an archive of all viable candidates. ## Quick Start Ask the agent to design a self-improvement loop for your agent harness, including the acceptance gate, editable surfaces, and diversity preservation mechanisms.