Determine the environment name from the user's request. If ambiguous, ask.
Use --logdir /tmp/training_runs unless the user specifies a different path.
Only include flags that differ from defaults — keep the command clean.
Show the user the full command you're about to run.
Run the command in the background using run_in_background: true on the Bash tool. Set a generous timeout (600000ms).
After launching, tell the user the logdir path and how to check progress (you can tail the output using the task ID).
If the user asks to check on training, use TaskOutput with block: false to check the latest output.
Cartpole-Specific Defaults
For cartpole, these settings are known to work well with the current defaults
(--lr 3e-4 --max-grad-norm 0.5 --lam 0.95 --gamma 0.99):
--minibatch-size 256
--std-dev 0.15 --learn-std --entropy-coeff 0.01
--max-traj-len 500 --n-itr 500 --num-procs 12
--no-mirror (cartpole has no body symmetry)
Suggest these defaults when the user trains cartpole, but let them override.
1---2name: train3description: Train4---56# /train — Launch a PPO Training Run78Parse the user's request from `$ARGUMENTS` and construct a training command.910## Command Template1112```13RAY_ADDRESS= uv run python run_experiment.py train --env <ENV> --logdir <LOGDIR> [OPTIONS...]14```1516## Available Environments1718| Name | Description |19|------|-------------|20| `cartpole` | Cartpole swing-up (simplest, good for testing) |21| `h1` | Unitree H1 standing task |22| `jvrc_walk` | JVRC humanoid basic walking |23| `jvrc_step` | JVRC humanoid stepping with planned footsteps |2425## Hyperparameters (defaults)2627| Flag | Default | Description |28|------|---------|-------------|29| `--n-itr` | 20000 | Training iterations |30| `--lr` | 1e-4 | Learning rate |31| `--gamma` | 0.99 | Discount factor |32| `--std-dev` | 0.223 | Action noise |33| `--learn-std` | off | Learn action noise (flag) |34| `--entropy-coeff` | 0.0 | Entropy regularization |35| `--clip` | 0.2 | PPO clipping |36| `--minibatch-size` | 64 | Minibatch size |37| `--epochs` | 3 | Optimization epochs per update |38| `--num-procs` | 12 | Parallel workers |39| `--num-envs-per-worker` | 1 | Vectorized envs per worker |40| `--max-grad-norm` | 0.05 | Gradient clipping |41| `--max-traj-len` | 400 | Episode horizon |42| `--eval-freq` | 100 | Eval every N iterations |43| `--seed` | None | Random seed |44| `--device` | auto | Training device (auto/cpu/cuda) |45| `--no-mirror` | off | Disable symmetry wrapper (flag) |46| `--recurrent` | off | Use LSTM policy (flag) |47| `--continued` | None | Path to pretrained weights |4849## Instructions50511. Determine the environment name from the user's request. If ambiguous, ask.522. Use `--logdir /tmp/training_runs` unless the user specifies a different path.533. Only include flags that differ from defaults — keep the command clean.544. Show the user the full command you're about to run.555. Run the command in the background using `run_in_background: true` on the Bash tool. Set a generous timeout (600000ms).566. After launching, tell the user the logdir path and how to check progress (you can tail the output using the task ID).577. If the user asks to check on training, use `TaskOutput` with `block: false` to check the latest output.5859## Cartpole-Specific Defaults6061For cartpole, these settings are known to work well with the current defaults62(`--lr 3e-4 --max-grad-norm 0.5 --lam 0.95 --gamma 0.99`):63- `--minibatch-size 256`64- `--std-dev 0.15 --learn-std --entropy-coeff 0.01`65- `--max-traj-len 500 --n-itr 500 --num-procs 12`66- `--no-mirror` (cartpole has no body symmetry)6768Suggest these defaults when the user trains cartpole, but let them override.
Run npx skillmds@latest add rohanpsingh/train in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Train It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
rohanpsingh (@rohanpsingh) published this skill. Their other Agent Skills are listed on their SkillMD profile.