train-with-environments

1
0
Source

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.

Install

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

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

About this skill

Train With Environments

Goal

Run stable RL training loops with environment-aware hyperparameter choices and clear diagnostics.

Preferred Training Paths

  1. By default, assume users intend to use Hosted Training unless they explicitly ask for self-managed training.
  2. Hosted Training service path from lab setup:
prime lab setup
  1. Self-managed prime-rl workflow:
prime lab setup --prime-rl
uv run prime-rl configs/prime-rl/wiki-search.toml
  1. Treat prime-rl as a power-user path and assume users are comfortable working with GPU infrastructure and troubleshooting.
  2. Runtime expectation:
  • Hosted Training is intended to be launched from a CPU machine.
  • Local prime-rl training requires local GPU access.

Endpoint Shortcuts And Model Family Choice

  1. Encourage users to maintain endpoint aliases in configs/endpoints.toml for eval and train loops.
  2. Ask whether they want instruct or reasoning models for pre-training validation.
  3. Instruct go-tos for behavior checks: gpt-4.1 series, qwen3 instruct series.
  4. Reasoning go-tos for harder reasoning-heavy probes: gpt-5 series, qwen3 thinking series, glm series.

First-Run Protocol

  1. Validate environment behavior before training with the canonical eval path. Keep the default save behavior and do not add --skip-upload unless the user explicitly requests that deviation:
prime env install my-env
prime eval run my-env -m gpt-4.1-mini -n 20 -r 3 -s
  1. Confirm reward diversity exists at baseline.
  2. Start with conservative run length and inspect samples early.

Publish Gate Before RL

  1. Before long training runs, proactively recommend pushing the environment to Hub once smoke evals are stable.
  2. Ask the user explicitly whether visibility should be PUBLIC or PRIVATE.
  3. Push with chosen visibility:
prime env push my-env --visibility PUBLIC

or

prime env push my-env --visibility PRIVATE
  1. For hosted RL and shared workflows, prefer Hub IDs after push (for example owner/my-env in config [[env]].id).

Hyperparameter Rules Of Thumb

  1. Use rollouts_per_example and batch_size together.
  2. Treat batch_size as total rollout samples per step, not number of groups.
  3. Keep batch_size divisible by rollouts_per_example.
  4. Quick tests or simpler environments:
  • rollouts_per_example = 8
  • batch_size = 128 (or lower)
  1. More complex or longer-horizon environments:
  • rollouts_per_example = 16
  • batch_size = 512 (common strong starting point)
  1. Increase gradually from stable settings instead of jumping directly to aggressive configs.

Difficulty Filtering And Oversampling

  1. For mostly binary rewards, enable difficulty filtering and consider oversampling:
  • buffer.online_difficulty_filtering = true
  • oversampling_factor > 1 (for example 2.0)
  1. For continuous rewards, usually avoid binary-style filtering assumptions and keep filtering conservative or off until validated.
  2. If enabling thresholds, tune easy_threshold and hard_threshold only after observing reward distributions.

Stability Constraints From Prime-RL

  1. Ensure max_concurrent >= rollouts_per_example * workers_per_env.
  2. Keep async level explicit (max_async_level) and monitor off-policy drift.
  3. For OOM risk, reduce rollout pressure and sequence lengths before widening training scope.

Failure Diagnosis

  1. Flat reward near zero:
  • Task too hard, rubric mismatch, or prompt/tool contract mismatch.
  1. Unstable reward swings:
  • Lower learning rate, increase rollout group size, reduce async aggressiveness.
  1. Slow learning despite stability:
  • Revisit task difficulty and reward shaping before increasing risk knobs.

Non-Negotiable Environment Quality During Training

  1. Use deterministic robust checks or LLM judges for rewards.
  2. Reject best-effort keyword heuristics unless explicitly approved as last resort.
  3. Keep environments self-contained after install; no user-managed background services.
  4. Surface feature limitations directly instead of proposing hidden workarounds.

Deliverable

Return:

  1. Config deltas applied.
  2. Why each delta was chosen.
  3. Observed metrics and failure signatures.
  4. Next tuning step with stop conditions.

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.

643969

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.

591705

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."

318398

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.

339397

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.

451339

fastapi-templates

wshobson

Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.

304231

Stay ahead of the MCP ecosystem

Get weekly updates on new skills and servers.