计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
custom-components【效率与协作】Use RL Baselines3 Zoo custom Gymnasium registrations, wrappers, callbacks, schedules, and algorithm registry patches safely.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a future Researcher needs to register custom Gymnasium environments, validate wrapper/callback/policy import strings, use RL Zoo's bundled wrappers and callbacks, configure linear schedules, or patch the in-process algorithm registry for SBX or another Stable-Baselines3-compatible algorithm class.
Decide what kind of component is involved:
env_wrapper, vec_env_wrapper, callback, policy, or schedule entries: read custom envs, wrappers, and callbacks.Validate import strings before launching training:
python scripts/component_import_checker.py \
--wrapper rl_zoo3.wrappers.HistoryWrapper \
--callback rl_zoo3.callbacks.RawStatisticsCallback \
--policy stable_baselines3.ppo.MlpPolicy
If components are declared in a YAML hyperparameter file, list and validate them without creating an environment:
python scripts/component_import_checker.py \
--config ./my_hyperparams.yml --env CartPole-v1
gym.envs.registry; for installed-package training this is normally python -m rl_zoo3.train --gym-packages my_env_package ... or rl_zoo3 train --gym-packages my_env_package ....register(...) and avoid training, network calls, credentials, or heavy initialization.module.submodule.ClassName. Exact case matters, and the module must be importable in the same Python environment that runs RL Zoo.HistoryWrapper, action wrappers, and MaskVelocityWrapper assert on observation/action-space shape or supported env ids.RawStatisticsCallback needs TensorBoard logging; ParallelTrainCallback is limited to SAC/TQC models.--conf-file, and --hyperparams: route to ../config-hyperparams/SKILL.md.../training-cli/SKILL.md.../tuning-optimization/SKILL.md.../../references/install-and-environment.md.# 1) Validate component imports and constructor kwargs only.
python scripts/component_import_checker.py \
--config ./my_hyperparams.yml --env MyEnv-v0 --gym-package my_envs
# 2) If validation passes, hand off the actual run to training-cli.
python -m rl_zoo3.train --algo ppo --env MyEnv-v0 \
--gym-packages my_envs --conf-file ./my_hyperparams.yml \
--n-timesteps 1000 --log-folder ./runs/rl-zoo --device cpu
Do not train from this sub-skill unless the caller explicitly asks to execute the validated training workflow; otherwise hand off to ../training-cli/SKILL.md.