What problem does it solve?
Manually iterating on prompts, regular expressions, SQL queries, and small code snippets to improve performance is slow and relies on trial and error. This skill automates that optimization process using a large language model-driven evolutionary search loop, eliminating repetitive manual tweaking.
Core Features & Use Cases
- LLM-Driven Evolutionary Optimization: Evolve prompts, regex patterns, SQL queries, and small code snippets against a custom fitness function to maximize performance.
- Custom Fitness Support: Works with any measurable scorer, including exact match, regex pass rate, unit test results, LLM-as-a-judge scores, and runtime metrics.
- Flexible Model Access: Includes a built-in OpenRouter driver to use any supported LLM provider, avoiding hardcoded dependencies on specific API services.
- Use Case Example: A security analyst can use this skill to evolve a prompt template that extracts structured indicators of compromise from unstructured threat reports, improving extraction accuracy over manual iterations.
Quick Start
Use the darwinian-evolver skill to optimize your existing prompt template for verbatim phrase repetition by supplying a set of test input phrases and their expected outputs as the fitness function.