Skip to content

Single-agent RL toolkit with PPO, SAC, DQN, TD3, DDPG, and A2C for Gymnasium environments.

CCM score
69 of 100
skills.sh installs
2.2K
GitHub stars
58.9K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers training, custom Gymnasium environments, vectorized rollouts, callbacks, and checkpoint save and load workflows
  • Includes scripts/train_rl_agent.py and scripts/custom_env_template.py plus reference guides on algorithms, environments, and vectorization
  • Pins SB3 2.9.0 with Python 3.10+ and PyTorch 2.8+, and notes that old (2,) observation checkpoints need retraining
  • Designed for reproducible single-agent RL experiments and continuous or discrete control tasks

Install

$ npx -y skills add k-dense-ai/scientific-agent-skills --skill stable-baselines3 -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Stable Baselines3

Overview

Stable Baselines3 (SB3) is a PyTorch-based library providing reliable implementations of reinforcement learning algorithms. This skill provides comprehensive guidance for training RL agents, creating custom environments, implementing callbacks, and optimizing training workflows using SB3's unified API.

Current upstream: SB3 2.9.0 (June 15, 2026). Docs: stable-baselines3.readthedocs.io.

Installation

Tested against stable-baselines3 2.9.0. Requires Python 3.10+ (3.9 dropped in 2.8.0) and PyTorch >= 2.8.

# Basic installation
uv pip install "stable-baselines3==2.9.0"

# With extra dependencies (TensorBoard, ale-py for Atari, etc.)
uv pip install "stable-baselines3[extra]==2.9.0"

The 2.9.0 release supports Gymnasium >=0.29.1,<2.0; this review exercised Gymnasium 1.3.0, PyTorch 2.14.1 and Python 3.13 on CPU. pandas/matplotlib are now optional extras. Installation requires network unless packages are cached; local RL training needs no credentials or service endpoints.

On zsh, quote brackets: uv pip install 'stable-baselines3[extra]==2.9.0'.

Details

Repository
github.com/k-dense-ai/scientific-agent-skills
Categories
Data Science & Analytics, AI Agents & LLM Apps
First seen
Jun 3, 2026

Questions

What does the stable-baselines3 skill help an agent do?

The stable-baselines3 skill guides an agent through training and evaluating single-agent reinforcement learning with PPO, SAC, DQN, TD3, DDPG and A2C. It also covers custom Gymnasium environments, vectorized rollouts, callbacks and checkpoint normalization.

How do I install the stable-baselines3 skill?

Run npx -y skills add k-dense-ai/scientific-agent-skills --skill stable-baselines3 -y in a project. Once installed, the stable-baselines3 skill lets the agent follow its training patterns for reproducible RL experiments.

What does the stable-baselines3 skill need to run?

The stable-baselines3 skill targets Python 3.10 or newer, PyTorch 2.8 or newer and stable-baselines3 2.9.0. Gymnasium environments are used, with optional extras for TensorBoard and Atari through ale-py.

Which skill should I use instead for parallel or multi-agent training?

For high-performance parallel training, multi-agent systems or custom vectorized environments, the stable-baselines3 skill's own listing points to pufferlib instead. Stable-baselines3 stays focused on standard single-agent RL with Gymnasium environments.

Where does the stable-baselines3 skill sit in its category?

The stable-baselines3 skill sits in the Data Science & Analytics category. Its own scope is single-agent reinforcement learning on Gymnasium environments, with the PPO, SAC and DQN family of algorithms.

More from k-dense-ai/scientific-agent-skills

All 132

Similar to Stable Baselines3

More Data Science & Analytics