Skip to content

Reinforcement learning toolkit built on Stable Baselines3 that trains, monitors, and evaluates agents across common algorithms.

CCM score
71 of 100
skills.sh installs
338
GitHub stars
34.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers RL agent training with PPO, SAC, DQN, TD3, DDPG, and A2C, plus custom Gymnasium environment design
  • Includes training, custom environment, and evaluation scripts, plus reference guides for algorithms, callbacks, and vectorized environments
  • Enforces check_env validation for custom environments and flags constraints such as image uint8 range and Discrete spaces with start!=0
  • Designed for agent training, environment design, and RL experimentation in PyTorch-based deep RL workflows

Install

$ npx -y skills add davila7/claude-code-templates --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.

Core Capabilities

1. Training RL Agents

Basic Training Pattern:

import gymnasium as gym
from stable_baselines3 import PPO

# Create environment
env = gym.make("CartPole-v1")

# Initialize agent
model = PPO("MlpPolicy", env, verbose=1)

# Train the agent
model.learn(total_timesteps=10000)

# Save the model
model.save("ppo_cartpole")

# Load the model (without prior instantiation)
model = PPO.load("ppo_cartpole", env=env)

Important Notes:

  • total_timesteps is a lower bound; actual training may exceed this due to batch collection
  • Use model.load() as a static method, not on an existing instance
  • The replay buffer is NOT saved with the model to save space

Details

Repository
github.com/davila7/claude-code-templates
Categories
Data Science & Analytics, Python
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 reinforcement learning agents with PPO, SAC, DQN, TD3, DDPG and A2C. It also covers creating custom Gym environments, implementing callbacks for monitoring and control, and using vectorized environments for parallel training.

Which algorithms does the stable-baselines3 skill cover for training RL agents?

The stable-baselines3 skill covers PPO, SAC, DQN, TD3, DDPG and A2C for training agents. Its SKILL.md gives quick guidance on picking one, such as PPO and A2C for general-purpose work and SAC and TD3 for continuous control.

How do I install the stable-baselines3 skill?

Run npx -y skills add davila7/claude-code-templates --skill stable-baselines3 -y in your project. Once installed, the agent can write RL training code, custom environments and evaluation scripts using the library's unified API.

Which category does the stable-baselines3 skill belong to, and what sets it apart?

The stable-baselines3 skill sits in the Data Science & Analytics category on Claude Marketplaces, alongside azure-kusto, analyze-project, run-train, explore-run and add-analytics-instrumentation. It focuses specifically on reinforcement learning with the PyTorch-based Stable Baselines3 library.

More from davila7/claude-code-templates

All 398

Similar to Stable Baselines3

More Data Science & Analytics