wrappers-recording
БесплатноБез исполняемых скриптовНе проверенApply, inspect, author, and troubleshoot Gymnasium single-environment wrappers, recording helpers, and rendering helpers.
от lza6★ 19 звёзд на GitHubОб этом скилле
Gymnasium Wrappers and Recording
Use this sub-skill when a task needs single-environment Gymnasium wrappers: applying wrapper chains, inspecting wrapped environments, writing custom wrappers, recording episode statistics or videos, and diagnosing wrapper or render-mode failures.
Start Here
- Build the base environment with
gymnasium.make(...); most made environments already includeTimeLimit<OrderEnforcing<PassiveEnvChecker<...>>>unless the spec/options disable parts of that stack. - Add wrappers outside-in:
env = Wrapper(env, ...); the last wrapper assigned is the first object the agent interacts with. - Inspect
envfor the full chain,env.envfor the next inner layer, andenv.unwrappedfor the original base environment. - After any wrapper that changes observations or actions, verify
env.observation_space,env.action_space,reset(), and onestep()agree. - Use
RecordEpisodeStatisticsfor lightweight metrics; addRecordVideoonly when the environment was created with image-returning rendering such asrender_mode="rgb_array"andmoviepyis installed.
Route by Task
| Task | Read |
|---|---|
| Choose or order built-in wrappers | references/wrapper-catalog.md |
| Record episode returns, lengths, videos, or render frames | references/recording-and-rendering.md |
Write Wrapper, ObservationWrapper, ActionWrapper, or RewardWrapper subclasses |
references/custom-wrappers.md |
| Diagnose wrapper order, changed spaces, render/video, image wrapper, Atari, or array conversion errors | references/troubleshooting.md |
| Prove a local wrapper chain works | scripts/wrapper_smoke.py |
Common Patterns
import gymnasium as gym
from gymnasium.wrappers import FlattenObservation, RecordEpisodeStatistics, TimeLimit
env = gym.make("CartPole-v1")
env = TimeLimit(env, max_episode_steps=200)
env = FlattenObservation(env)
env = RecordEpisodeStatistics(env)
obs, info = env.reset(seed=123)
obs, reward, terminated, truncated, info = env.step(env.action_space.sample())
import gymnasium as gym
from gymnasium.wrappers import RecordVideo
env = gym.make("CartPole-v1", render_mode="rgb_array")
env = RecordVideo(env, video_folder="videos", episode_trigger=lambda episode: True)
Boundaries
- For vector environments and
gymnasium.wrappers.vector, use../vectorization/SKILL.md. - For detailed
Spaceconstructor, flattening, dtype, andcontainsguidance, use../spaces-data/SKILL.md. - For environment registration,
check_env, and customEnvlifecycle, use../environment-api/SKILL.md. - For built-in environment family extras such as Box2D, MuJoCo, Atari/ALE IDs, or Toy Text action masks, use
../builtin-envs/SKILL.md.
Установить wrappers-recording в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл wrappers-recording?
Apply, inspect, author, and troubleshoot Gymnasium single-environment wrappers, recording helpers, and rendering helpers.
Как установить скилл wrappers-recording?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл wrappers-recording запускает скрипты?
Нет, скилл состоит только из инструкций (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