prompt evolve

    1

    A data-driven prompt optimization loop that scores, versions, and evolves prompts against test sets.

    Free

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+22 more

    prompt evolve

    Example session with this skill installed

    Evolve the prompt in ./agent-eval to improve accuracy. Use the rubric in testset.jsonl and run for 3 iterations or until we hit 0.95 accuracy.

    • Read your context and instructions
    • Compiled the prompt evolve

    I have initiated the prompt evolution loop for the ./agent-eval directory. I processed 3 iterations, scoring each output against the provided rubric. The prompt was refined after each round by analyzing the specific failures in cases case_004 and case_007.

    Prompt Evolution Report

    VersionAvg ScoreStatusPrimary Failure Reason
    v10.72FailedMissing constraint handling
    v20.88FailedHallucinated metadata keys
    v30.96PassedN/A - Target reached

    The best version is now saved at ./agent-eval/generations/v3.tmpl. The score curve indicates a 33% improvement from the baseline.

    Next steps

    • Review the diff between v1.tmpl and v3.tmpl to see the specific instruction changes.
    • Run python3 pevolve.py report --dir ./agent-eval to see the full failure distribution.
    • Commit the generations/ folder to your repository to track these improvements in version control.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Stop guessing whether a prompt change actually worked. This skill replaces trial-and-error manual editing with a measured optimization loop that scores outputs against a test set, identifies specific failures, and evolves the prompt version-by-version. It treats prompt engineering like software engineering, persisting every iteration as a diffable file.

    What it does

    • Systematic optimization runs prompts against a defined test set to measure real performance gains.
    • Version tracking saves every iteration in a generations/ directory for diffing and rollbacks.
    • Failure analysis identifies specific test cases where the prompt fails to generate actionable improvement data.
    • Multi-modal scoring supports deterministic checks like regex and JSON schema alongside LLM-based rubric grading.
    • Progress reporting generates a report.md tracking the score curve and highlighting the best-performing version.

    How it works

    1. Initialize the workspace with a prompt.tmpl containing an {input} placeholder and a testset.jsonl file.
    2. Execute iterations where you render the prompt, capture outputs, and score them using deterministic or interactive rubric scorers.
    3. Persist results using the pevolve.py score command to save the current version and its performance metrics.
    4. Refine the prompt based on reported failures and repeat until the target score is met or the loop plateaus.

    Frameworks & tools

    This skill uses a Python-based CLI (pevolve.py) for local file management and scoring logic. It integrates with critique-gate for rubric-based evaluation and is designed to work within Claude Code or Cursor environments.

    Why this beats prompting it yourself

    Manual tweaking is subjective and prone to regression where fixing one case breaks three others. This skill enforces a data-driven approach that ensures the "best" prompt is chosen based on evidence, not intuition, while maintaining a full audit trail of every change.

    Use cases

    • Optimizing an extraction prompt to ensure it strictly follows a specific JSON schema.
    • Tuning a creative writing prompt against a multi-point quality rubric.
    • Debugging edge-case failures in a complex classification task.
    • Benchmarking prompt performance across different model versions.

    Known limitations

    The prompt template only supports a literal {input} placeholder. Deterministic JSON schema scoring is limited to checking for the presence of specific keys rather than full validation.

    How to use

    Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free forever

    No account required to browse

    Trust & safety

    Security scanned

    Verified clean today

    • Free to download with an account

    Listedtoday

    What's inside

    Frequently Asked Questions