prompt-evolution

Evolve LLM prompts through genetic algorithms and multi-model evaluation.

2|Updated Oct 30, 2025
One-click install
npx skills add https://github.com/zachmayer/skills --skill prompt-evolution
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prompt-evolution
Source: https://github.com/zachmayer/skills/tree/main/.claude/skills/prompt-evolution
Command: npx skills add https://github.com/zachmayer/skills --skill prompt-evolution

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill solves the challenge of manually tuning prompts by automating the creation, evaluation, and refinement of prompt variants using an LLM-as-judge framework.

Core Features & Use Cases

  • Genetic Optimization: Uses mutation and crossover operators to evolve prompts toward higher fitness scores.
  • LLM-as-Judge: Implements binary pass/fail criteria to provide objective, critique-backed evaluation of AI outputs.
  • Use Case: If you have a prompt that is underperforming on specific edge cases, this skill will run a multi-generational loop to test variants against your criteria and return the most effective version.

Quick Start

Use the prompt-evolution skill to optimize my customer support response prompt using the provided test inputs and binary success criteria.

Frequently Asked Questions about prompt-evolution

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

FAQPage Schema
How do I automate prompt optimization for my LLM workflows?

You can automate prompt optimization by using genetic algorithms to iteratively mutate, evaluate, and refine prompt variants against binary success criteria. This replaces manual tuning with a multi-generational loop that systematically selects the fittest prompts based on objective pass/fail evaluation.

What is genetic prompt evolution and how does it work?

Genetic prompt evolution is an optimization technique that uses mutation and crossover operators to generate prompt variants. It evaluates these variants using an LLM-as-judge framework with binary pass/fail criteria, selecting the highest-scoring prompts to breed subsequent generations until performance targets are met.

How do I evaluate LLM outputs against specific edge cases?

You can evaluate LLM outputs by defining binary success criteria for your specific edge cases. An LLM-as-judge framework then provides objective, critique-backed pass/fail evaluations of each generated response to determine which prompt variants successfully handle those targeted scenarios.

Can I use genetic algorithms to fix underperforming prompts?

Yes, genetic algorithms can fix underperforming prompts by running a multi-generational optimization loop. The system tests mutated prompt variants against your binary success criteria, automatically selecting the most effective version that resolves the specific edge case failures.

Do I need parallel sub-agent orchestration for meta-learning prompt tuning?

Parallel sub-agent orchestration is required for meta-learning prompt tuning because the process simultaneously generates multiple prompt variants, scores their outputs across different models, and selects the fittest candidates for subsequent generations to ensure comprehensive evaluation.

When should I not use automated genetic algorithms for prompt engineering?

You should avoid automated genetic algorithms for prompt engineering when your task lacks clear binary success criteria or when subjective output quality cannot be objectively evaluated by an LLM-as-judge. This optimization method targets complex tuning scenarios requiring specific pass/fail conditions.