ax-python-gepa

Generate Python code for Ax GEPA optimization workflows in axllm.

2.9k|186|Updated Feb 23, 2023
One-click install
npx skills add https://github.com/ax-llm/ax --skill ax-python-gepa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ax-python-gepa
Source: https://github.com/ax-llm/ax/tree/main/website/static/python/.well-known/agent-skills/ax-python-gepa
Command: npx skills add https://github.com/ax-llm/ax --skill ax-python-gepa

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you write and reason about Python code for Ax GEPA optimization workflows in the generated axllm package, especially when you need reliable syntax and package-specific behavior instead of guessing at the API.

Core Features & Use Cases

  • Generate Python code that uses AxGEPA, reflection clients, evaluators, and optimizer engines.
  • Work with GEPA artifacts, optimizer state, Pareto tradeoffs, and metric budgets.
  • Use BootstrapFewShot before GEPA when demonstrations should seed optimization.
  • Example use case: optimize a prompt or program, inspect the resulting artifact, and apply the best candidate in a Python project.

Quick Start

Ask for Python code that uses axllm AxGEPA with a reflection client and evaluator to optimize my request and explain the result.

Frequently Asked Questions about ax-python-gepa

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

FAQPage Schema
How do I optimize Python workflows using GEPA and reflection clients?

To optimize Python workflows using GEPA, you generate AxGEPA code with reflection clients and evaluators to refine prompts or programs. This process produces optimization artifacts and candidate states that you can inspect and apply within your Python project.

What is the best way to seed Ax GEPA optimization using BootstrapFewShot?

The best way to seed Ax GEPA optimization is to run BootstrapFewShot before the GEPA process. This provides initial demonstrations that seed the optimizer, allowing the AxGEPA engine to start from refined candidate states when evaluating Pareto tradeoffs.

How do Pareto tradeoffs and metric budgets work in Ax optimization?

Pareto tradeoffs and metric budgets in Ax optimization work by evaluating multiple competing metrics simultaneously within set constraints. The GEPA optimizer generates candidates and artifacts that balance these tradeoffs, allowing you to inspect and apply the best performing candidate state.

Can I use axllm AxGEPA without an API key?

Yes, you can use axllm AxGEPA without an API key by leveraging its no-key runtime profiles. The generated Python package supports both no-key and provider-backed runtime profiles, ensuring syntax alignment for optimization workflows across different execution environments.

How do I inspect GEPA artifacts and optimizer state in Python?

To inspect GEPA artifacts and optimizer state in Python, you generate AxGEPA code that outputs optimization artifacts during the workflow. You can then examine these artifacts and the resulting candidate state to understand Pareto tradeoffs and metric budget performance.