loop-experiment

Execute fitness-function-gated optimization loops for prompts, code, and configuration files.

2|Updated Jul 22, 2026
One-click install
npx skills add https://github.com/0xUrsanomics/utopia-os --skill loop-experiment
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: loop-experiment
Source: https://github.com/0xUrsanomics/utopia-os/tree/main/skills/loop-experiment
Command: npx skills add https://github.com/0xUrsanomics/utopia-os --skill loop-experiment

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill solves the problem of inefficient, subjective, and unverified prompt or code optimization by enforcing a rigorous, fitness-function-gated loop that prevents AI slop and ensures measurable improvements.

Core Features & Use Cases

  • Fitness-Function Gating: Ensures every experiment has a stable, measurable metric before execution, preventing subjective guessing.
  • Anti-AI-Slop Enforcement: Mandates strict stylistic guidelines to ensure generated artifacts are high-quality and professional.
  • Safe Iteration: Uses git worktree isolation and holdout evaluation to ensure changes are safe, reversible, and generalize beyond the training data.
  • Use Case: Optimizing a sub-agent's scope classifier by running hundreds of iterations against a test pass rate metric, ensuring the new prompt actually improves performance without introducing regressions.

Quick Start

Run the loop-experiment skill to optimize the prompt in prompt.txt using the fitness function defined in eval.sh.

Frequently Asked Questions about loop-experiment

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate prompt optimization using a fitness function?

Automated prompt optimization uses a fitness-function-driven loop to iteratively refine prompts against measurable metrics like classification accuracy. This approach enforces strict stylistic constraints and holdout validation to ensure reliable, production-ready outcomes without subjective guessing.

What is fitness-function gating for code and prompt experimentation?

Fitness-function gating ensures every experimentation loop has a stable, measurable metric before execution begins. This mechanism prevents subjective guessing by requiring strict adherence to isolation protocols and anti-slop constraints, guaranteeing that generated artifacts are high-quality and professional.

How do I prevent AI slop during high-frequency code iteration?

Preventing AI slop during high-frequency code iteration requires mandating strict stylistic guidelines and anti-slop enforcement within an automated optimization loop. This ensures generated artifacts remain professional and measurable while preventing unverified subjective changes.

Does automated prompt engineering work with git worktree isolation?

Automated prompt engineering works with git worktree isolation to ensure safe, reversible changes during high-frequency iteration. This isolation protocol combined with holdout-based validation guarantees that optimized configurations generalize beyond training data without introducing regressions.

Can I use fitness-function-driven loops to improve test pass rates?

Fitness-function-driven loops can improve test pass rates by executing hundreds of automated iterations against your evaluation metrics. This disciplined optimization process ensures new prompts or code actually enhance performance while maintaining strict isolation and anti-slop constraints.

What are the limitations of automated prompt and configuration optimization?

Automated prompt and configuration optimization requires stable, measurable metrics to function effectively. Without strict adherence to isolation protocols and holdout-based validation, the optimization loop may introduce regressions or fail to generalize beyond the training data.