optimize-with-environments

3
1
Source

Optimize environment system prompts with GEPA through prime gepa run. Use when asked to improve prompt performance without gradient training, compare baseline versus optimized prompts, run GEPA from CLI or TOML configs, or interpret GEPA outputs before deployment.

Install

mkdir -p .claude/skills/optimize-with-environments && curl -L -o skill.zip "https://mcp.directory/api/skills/download/6837" && unzip -o skill.zip -d .claude/skills/optimize-with-environments && rm skill.zip

Installs to .claude/skills/optimize-with-environments

About this skill

Optimize With Environments

Goal

Use GEPA to optimize system prompts in a controlled, reproducible loop.

Scope

Current GEPA path is for system prompt optimization. If user asks for unsupported optimization targets, stop and clarify before proceeding.

Endpoint And Model Selection Nudge

  1. Encourage users to define reusable aliases in configs/endpoints.toml.
  2. Ask whether optimization should be validated on instruct or reasoning models.
  3. Instruct go-tos: gpt-4.1 series, qwen3 instruct series.
  4. Reasoning go-tos: gpt-5 series, qwen3 thinking series, glm series.
  5. For benchmark reporting, keep model family fixed between baseline and optimized comparisons unless the user requests a cross-family study.
  6. Endpoint entries support optional headers (or extra_headers) for custom HTTP headers. GEPA inherits these from the registry for both the main model and the reflection model:
[[endpoint]]
endpoint_id = "my-proxy"
model = "gpt-4.1-mini"
url = "https://api.example/v1"
key = "OPENAI_API_KEY"
headers = { "X-Custom-Header" = "value" }

Core Workflow

  1. Verify baseline first with prime eval run. Keep the default save behavior and do not add --skip-upload unless the user explicitly requests that deviation:
prime eval run my-env -m gpt-4.1-mini -n 50 -r 3 -s
  1. Run GEPA:
prime gepa run my-env -m gpt-4.1-mini -M gpt-4.1-mini -B 500 -n 100 -N 50
  1. Or run from config:
prime gepa run configs/gepa/wordle.toml
  1. Re-evaluate with optimized prompt and compare against baseline.

High-Value Settings

  1. -B/--max-calls: total optimization budget.
  2. -n/--num-train and -N/--num-val: train/validation split sizes.
  3. --minibatch-size: reflection granularity.
  4. --perfect-score: skip already-solved minibatches when max score is known.
  5. --state-columns: include environment-specific context in reflection data.

Output Artifacts

Expect and inspect:

  1. best_prompt.txt
  2. pareto_frontier.jsonl
  3. metadata.json

Quality Rules

  1. Do not optimize on top of broken reward logic.
  2. For weak deterministic checks, fix rubric quality before GEPA tuning.
  3. Keep model, sampling, and dataset conditions stable during baseline-vs-GEPA comparison.
  4. Report limitations directly when feature gaps block requested optimization.

Deliverable

Return:

  1. Baseline metrics.
  2. Optimized metrics.
  3. Prompt diff summary.
  4. Recommendation to adopt, iterate, or stop.

inference-server

PrimeIntellect-ai

Start and test the prime-rl inference server. Use when asked to run inference, start vLLM, test a model, or launch the inference server.

11

toml-config

PrimeIntellect-ai

How to write and use TOML configs in prime-rl. Use when creating config files, running commands with configs, or overriding config values via CLI.

21

create-environments

PrimeIntellect-ai

Create or migrate verifiers environments for the Prime Lab ecosystem. Use when asked to build a new environment from scratch, port an eval or benchmark from papers or other libraries, start from an environment on the Hub, or convert existing tasks into a package that exposes load_environment and installs cleanly with prime env install.

11

evaluate-environments

PrimeIntellect-ai

Run and analyze evaluations for verifiers environments using prime eval. Use when asked to smoke-test environments, run benchmark sweeps, resume interrupted evaluations, compare models, inspect sample-level outputs, or produce evaluation summaries suitable for deciding next steps.

11

browse-environments

PrimeIntellect-ai

Discover and inspect verifiers environments through the Prime ecosystem. Use when asked to find environments on the Hub, compare options, inspect metadata, check action status, pull local copies for inspection, or choose environment starting points before evaluation, training, or migration work.

21

train-with-environments

PrimeIntellect-ai

Train models with verifiers environments using hosted RL or prime-rl. Use when asked to configure RL runs, tune key hyperparameters, diagnose instability, set up difficulty filtering and oversampling, or create practical train and eval loops for new environments.

21

You might also like

flutter-development

aj-geddes

Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.

1,6771,424

ui-ux-pro-max

nextlevelbuilder

"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."

1,2531,313

drawio-diagrams-enhanced

jgtolentino

Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.

1,5241,142

godot

bfollington

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.

1,346805

nano-banana-pro

garg-aayush

Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.

1,258725

pdf-to-markdown

aliceisjustplaying

Convert entire PDF documents to clean, structured Markdown for full context loading. Use this skill when the user wants to extract ALL text from a PDF into context (not grep/search), when discussing or analyzing PDF content in full, when the user mentions "load the whole PDF", "bring the PDF into context", "read the entire PDF", or when partial extraction/grepping would miss important context. This is the preferred method for PDF text extraction over page-by-page or grep approaches.

1,465673