arize-prompt-optimization

Extract LLM prompts from trace data and refine them using performance signals.

42|7|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/Arize-ai/arize-skills --skill arize-prompt-optimization
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: arize-prompt-optimization
Source: https://github.com/Arize-ai/arize-skills/tree/main/skills/arize-prompt-optimization
Command: npx skills add https://github.com/Arize-ai/arize-skills --skill arize-prompt-optimization

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you systematically improve the performance of your Large Language Model (LLM) prompts by leveraging production trace data, evaluations, and annotations, ensuring your prompts are effective and efficient.

Core Features & Use Cases

  • Prompt Extraction: Automatically identify and extract prompts from various span types within your trace data.
  • Performance Analysis: Gather and analyze performance signals like evaluation scores, human annotations, and error rates associated with specific prompts.
  • Data-Driven Optimization: Utilize a structured meta-prompting approach to generate improved prompt versions based on identified failure patterns.
  • Use Case: Debug a chatbot prompt that is generating factually incorrect responses by analyzing traces of user interactions, identifying common errors, and using the skill's meta-prompt to refine the system instructions for better accuracy.

Quick Start

Use the arize-prompt-optimization skill to extract the current prompt from the latest LLM span in your project.

Frequently Asked Questions about arize-prompt-optimization

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

FAQPage Schema
How do I optimize LLM prompts using production trace data?

To optimize LLM prompts, this skill extracts prompt templates from trace spans, analyzes evaluation scores and annotations, and applies a data-driven meta-prompting strategy to iteratively refine instructions based on identified failure patterns.

What is data-driven prompt optimization and how does it work?

Data-driven prompt optimization works by gathering performance signals like human annotations, error rates, and evaluation scores from your existing traces, then using a meta-prompting approach to generate improved prompt versions targeting those specific failure modes.

How do I extract a prompt template from an LLM trace span?

You can extract a prompt template from an LLM trace span by using the skill's prompt reconstruction capabilities, which support structured chat messages, prompt templates, and fallback input values to accurately identify and pull the prompts used.

Do I need the Arize ax CLI to run prompt evaluation and analysis?

Yes, you need the ax CLI installed to use this skill, as it is required for retrieving trace data, extracting performance signals, and running the analysis needed for the iterative prompt refinement process.

Can I debug a chatbot generating incorrect responses by analyzing trace evaluations?

Yes, you can debug factually incorrect chatbot responses by analyzing user interaction traces to identify common errors, then using the skill's meta-prompting strategy to refine the system instructions for better accuracy.

What are the limitations of using meta-prompting for prompt refinement?

The effectiveness of meta-prompting for prompt refinement is limited by the quality of your trace data, requiring sufficient evaluation scores, human annotations, and error rate signals to accurately identify failure patterns and generate effective improvements.