ワンクリックで
gymnasium-sb3-task
Add or modify a supported Gymnasium/SB3 task in backend/mlagents.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Add or modify a supported Gymnasium/SB3 task in backend/mlagents.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Create a rigorous RL environment specification before implementation.
Add or modify a React/Three.js environment visualization.
Plan multi-agent and simulator-heavy environments using appropriate APIs instead of forcing them into single-agent SB3.
Verify ML correctness, library usage, formatting, tests, dead code, and client/backend integration.
SOC 職業分類に基づく
| name | gymnasium-sb3-task |
| description | Add or modify a supported Gymnasium/SB3 task in backend/mlagents. |
| argument-hint | [task-id] [new|modify|verify] |
| allowed-tools | Read, Write, Glob, Bash |
| context | repo |
| agent | three-mlagents-gymnasium-integrator |
Use this skill for single-agent tasks that should train through the Python backend.
backend/examples only when they are reusable outside the
training wrapper.backend/mlagents/envs.py.backend/mlagents/registry.py.backend/mlagents/training.py and
backend/mlagents/websocket_training.py.backend/tests.Use Gymnasium spaces and API contracts directly. Use Stable-Baselines3 for baseline training and evaluation. Do not write custom PPO/DQN loops unless the user explicitly asks for a research algorithm implementation and the code is separated from the environment surface.
Algorithm defaults:
DQN: plain spaces.Discrete tasks with low-dimensional observations.PPO: discrete, continuous, MultiDiscrete, or vectorized tasks where a
robust general baseline is appropriate.SAC or TD3: continuous-control tasks only when off-policy training is part
of the documented experiment plan.Do not use DQN for continuous or MultiDiscrete actions. Do not flatten a
multi-agent task into one SB3 policy unless the compromise is explicitly
documented in the task card and UI.
reset(seed=...) calls super().reset(seed=seed) for native Gymnasium envs.observation_space and use stable dtypes.terminated means the MDP ended; truncated means a cutoff such as a time
limit.info includes useful metrics and visualization state when needed.n_envs setting where appropriate.Run the focused backend checks for changed code:
uvx ruff check backend/examples backend/mlagents backend/main.py backend/services backend/tests
uvx ruff format --check backend/examples backend/mlagents backend/main.py backend/services backend/tests
uv run --project backend python -m unittest discover -s backend/tests
uv run --project backend three-mlagents inspect <task-id>
For a new trainable task, also run a short train/evaluate pass with a fixed seed and report that it is a sanity check, not final benchmark evidence.