environments
БесплатноБез исполняемых скриптовНе проверенDiscover, select, and safely control MyoSuite Gymnasium environments on the base CPU backend.
от lza6★ 19 звёзд на GitHubОб этом скилле
MyoSuite environments
Use this sub-skill when a user needs to install the base package, identify a registered task, create an environment, run a short reset/step rollout, inspect its spaces or diagnostics, seed it, or close it cleanly. Start with a named registered environment rather than guessing a model filename.
Route the request
- Core import, Gymnasium registration, task IDs, reset/step, spaces, rewards,
info, seeding, lifecycle, or safe no-display inspection: handle here. - Viewer/window behavior and MuJoCo rendering internals: route to
simulation-rendering. - Model XML editing, IK, or task-specific kinematic changes: route to
model-editing-kinematics. - Reference trajectories or playback: route to
reference-motion. - JAX/MJX execution: route to
mjx-acceleration; do not imply that a CPU smoke proves MJX or CUDA support. - Long training commands and learner configuration: route to
training-integration.
See the API reference for the full contract, the task catalog for selection, and troubleshooting when setup or assets fail.
Base prerequisites
The supported base route is Python 3.10–3.13 with the package's normal runtime dependencies, including Gymnasium below 1.3, MuJoCo 3.6.x, NumPy, Click, and the package data. The verified inspection combination was Python 3.11, MyoSuite 2.12.2, MuJoCo 3.6.0, and Gymnasium 1.2.3. Install the released package into an isolated environment, or use the project's documented source installation with all required model assets initialized. Do not install the MJX/CUDA extras just to run this core route.
Importing myosuite imports the package's Gym compatibility helper and then
registers its task suites. If neither gymnasium nor the legacy gym package
is importable, import fails before an environment can be made. Prefer
Gymnasium for new code.
Fast path: named, headless rollout
For a standard CPU check, run the bundled safe smoke script:
python sub-skills/environments/scripts/environment_smoke.py \
--env-id myoElbowPose1D6MRandom-v0 --steps 3 --seed 123 --render none
The script only creates the requested environment, samples bounded actions,
uses reset(seed=...), performs bounded steps, prints contract summaries, and
always calls close(). It does not open a viewer, evaluate policy files,
write videos, fetch assets, or execute arbitrary environment arguments. Add
--check-determinism to repeat the short rollout with the same reset and
action-space seeds.
The equivalent minimal Python pattern is:
from myosuite.utils import gym
env = gym.make("myoElbowPose1D6MRandom-v0")
try:
env.action_space.seed(123)
observation, info = env.reset(seed=123)
for _ in range(3):
observation, reward, terminated, truncated, info = env.step(
env.action_space.sample()
)
if terminated or truncated:
break
finally:
env.close()
Do not call mj_render() in a no-display workflow. gym.make normally returns
Gymnasium wrappers; use env.unwrapped only when the user explicitly needs
MyoSuite internals such as get_obs_dict, get_reward_dict, get_proprioception,
get_exteroception, horizon, or get_env_state.
Discover before creating
- Import
myosuiteso registration side effects have run. - Prefer an exact ID from the task catalog.
- Check
gym.spec(task_id)beforegym.make(task_id); an unknown ID is a selection error, not an installation fix. - Read
spec.max_episode_stepsfor the wrapper horizon. Core registrations include fixed/random tasks and automatically registeredSarcandFativariants; hand tasks also haveReafvariants. - If the name is uncertain, list
myosuite.myosuite_env_suiteor filtergym.envs.registry.keys()instead of probing arbitrary strings.
A valid registry entry does not prove that every model asset can be loaded.
Only gym.make followed by reset establishes that the selected model is
usable in the current installation.
Lifecycle and contracts
env = gym.make(id, **kwargs)creates a wrapped task. Keep construction kwargs limited to documented task options; do not pass untrusted strings to an evaluator.env.reset(seed=seed)returns(observation, info)under Gymnasium. Seed the action space separately withenv.action_space.seed(seed)when comparing random-policy rollouts. A legacy Gym installation may return only an observation; follow the installed API rather than unpacking blindly.env.step(action)returns(observation, reward, terminated, truncated, info). Stop on either boolean; the wrapper enforces the registered time limit throughtruncated, while a task's reward dictionary can produceterminated.actionmust fitenv.action_space, normally a float32Box. Sampling fromaction_spaceis safer than hand-building
Установить environments в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл environments?
Discover, select, and safely control MyoSuite Gymnasium environments on the base CPU backend.
Как установить скилл environments?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл environments запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic