mazebench/mazebenchengine/optimize-with-environments
Claude Code and agent skill by mazebench/mazebenchengine
- community
Checking that the SKILL.md file is still in the repository.
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
npx vskill@latest install mazebench/mazebenchengine/optimize-with-environmentsSKILL.md
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
- Encourage users to define reusable aliases in
configs/endpoints.toml. - Ask whether optimization should be validated on instruct or reasoning models.
- Instruct go-tos:
gpt-4.1series,qwen3instruct series. - Reasoning go-tos:
gpt-5series,qwen3thinking series,glmseries. - For benchmark reporting, keep model family fixed between baseline and optimized comparisons unless the user requests a cross-family study.
- Endpoint entries support optional
headers(orextra_headers) for custom HTTP headers. GEPA inherits these from the registry for both the main model and the reflection model:
Core Workflow
- Verify baseline first with
prime eval run. Keep the default save behavior and do not add--skip-uploadunless the user explicitly requests that deviation:
- For v1 Taskset + Harness environments, confirm prompt-like fields are exposed in the saved state or task info before GEPA reflection; BYO Harness implementations may render richer trajectories than classic
MultiTurnEnvexamples. - Run GEPA:
- Keep v1 environment settings under
tasksetandharnessconfig sections:
- Or run from config:
- Re-evaluate with optimized prompt and compare against baseline.
High-Value Settings
-B/--max-calls: total optimization budget.-n/--num-trainand-N/--num-val: train/validation split sizes.--minibatch-size: reflection granularity.--perfect-score: skip already-solved minibatches when max score is known.--state-columns: include environment-specific context in reflection data.
Output Artifacts
Expect and inspect:
system_prompt.txtpareto_frontier.jsonlmetadata.json
Load optimized prompts with vf.SystemMessage.from_path("/path/to/system_prompt.txt") so the saved prompt is used verbatim.
Quality Rules
- Do not optimize on top of broken reward logic.
- For weak deterministic checks, fix rubric quality before GEPA tuning.
- Keep model, sampling, and dataset conditions stable during baseline-vs-GEPA comparison.
- Report limitations directly when feature gaps block requested optimization.
Deliverable
Return:
- Baseline metrics.
- Optimized metrics.
- Prompt diff summary.
- Recommendation to adopt, iterate, or stop.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.prime/skills/optimize-with-environments/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mazebench/mazebenchengine/optimize-with-environments)