Stable Baselines3
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
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_envvalidation for custom environments and flags constraints such as image uint8 range andDiscretespaces withstart!=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 -yInstalls 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_timestepsis 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- Crewai337
- Nemo Curator336
- Railway Deploy335
- Aws Serverless334
- Lint And Validate334
- Move Code Quality333
- Zapier Workflows330
- Scikit Survival329
- Alphafold Database326
- Llm App Patterns326
- Pyhealth326
- Gh Fix Ci325
- Scanpy325
- Biomni321
- Uspto Database318
- Mdr 745 Specialist315
- Create Pr314
- Pentest Checklist314
- Roier Seo314
- Fda Database313
- Astropy312
- Environment Setup Guide312
- Security Scanning Tools312
- Skill Developer312
Similar to Stable Baselines3
More Data Science & AnalyticspufferlibSkilldavila7/claude-code-templates232 installsHigh-performance RL training library with PPO, PufferEnv custom environments, vectorized simulation, and multi-agent support.
spinning-up-deep-rlPluginalirezarezvani/claude-skills30.7K starsKnowledge base compiled from OpenAI's Spinning Up in Deep RL (MIT, Joshua Achiam) by engineering/book-to-skill. A resident core carries the RL optimization prob
torchforge-rl-trainingSkillorchestra-research/ai-research-skills1.1K installsClean RL abstractions separating infrastructure from algorithms, built on PyTorch, TorchTitan, Monarch, and vLLM.
openclaw-rl-trainingSkillreason-machines/trending-skills1.3K installsFramework that trains personalized agents with asynchronous RL from live conversation feedback, using GRPO, OPD, or both.
ai-agents-architectSkilldavila7/claude-code-templates689 installsExpert guide for designing autonomous AI agents with tool use, memory, planning, and multi-agent orchestration.
grpo-rl-trainingSkillorchestra-research/ai-research-skills1.1K installsExpert guidance for GRPO reinforcement learning fine-tuning with TRL on reasoning and format-constrained tasks.