Agent skill · Backend & API

stable-baselines3

Production-ready reinforcement learning algorithms (PPO, SAC, DQN, TD3, DDPG, A2C) with scikit-learn-like API. Use for standard RL experiments, quick prototyping, and well-documented algorithm implementations. Best for single-agent RL with Gymnasium environments. For high-performance parallel training, multi-agent systems, or custom vectorized environments, use pufferlib instead.

K-Dense-AIgithub.com/K-Dense-AIGitHub ↗
claude-codecan modify filesships scriptsMIT
Install
npx skills add K-Dense-AI/scientific-agent-skills --skill stable-baselines3 --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 8
SKILL.md size: 11 KB
Bundled scripts: yes
Version: 1.1
Allowed tools: ReadWriteEditBash
Requires: Requires Python 3.10+, PyTorch >= 2.3, and stable-baselines3 2.8+. Gymnasium environments; optional extras for…
Path: skills/stable-baselines3/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 32,619
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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.8.0** (April 2026). Docs: [stable-baselines3.readthedocs.io](https://stable-baselines3.readthedocs.io/en/master/). ## Installation Tested against **stable-baselines3 2.8.0**. Requires **Python 3.10+** (3.9 dropped in 2.8.0) and **PyTorch >= 2.3**. ```bash # Basic installation uv pip install "stable-baselines3>=2.8" # With extra dependencies (TensorBoard, ale-py for Atari, etc.) uv pip install "stable-baselines3[extra]>=2.8" ``` On zsh, quote brackets: `uv pip install 'stable-baselines3[extra]>=2.8'`. For MuJoCo continuous-control benchmarks: ```bash uv pip install "gymnasium[mujoco]" ``` Check your version: ```python import stable_baselines3 print(stable_baselines3.__version__) ``` ## Related Projects - **[SB3-Contrib](https://github.com/Stable-Baselines-Team/stable-baselines3-contrib)**: experimental algorithms (MaskableP

What's inside
Steps it walks through
  1. Overview
  2. Installation
  3. Related Projects
  4. Core Capabilities
  5. 1. Training RL Agents
  6. 2. Custom Environments
  7. 3. Vectorized Environments
  8. 4. Callbacks for Monitoring and Control
  9. 5. Model Persistence and Inspection
  10. 6. Evaluation and Recording
  11. 7. Advanced Features
  12. Workflow Guidance
  13. Resources
  14. scripts/
Ships with 7 files
  • references/algorithms.md
  • references/callbacks.md
  • references/custom_environments.md
  • references/vectorized_envs.md
  • scripts/custom_env_template.py
  • scripts/evaluate_agent.py
  • scripts/train_rl_agent.py
Commands it runs
Basic installation
uv pip install "stable-baselines3>=2.8"
With extra dependencies (TensorBoard, ale-py for Atari, etc.)
uv pip install "stable-baselines3[extra]>=2.8"
uv pip install "gymnasium[mujoco]"
More from scientific-agent-skills
All skills →
About this skill
What does the stable-baselines3 skill do?

Production-ready reinforcement learning algorithms (PPO, SAC, DQN, TD3, DDPG, A2C) with scikit-learn-like API. Use for standard RL experiments, quick prototyping, and well-documented algorithm implementations. Best for single-agent RL with Gymnasium environments. For high-performance parallel training, multi-agent systems, or custom vectorized environments, use pufferlib instead.

How do I install it?

Run `npx skills add K-Dense-AI/scientific-agent-skills --skill stable-baselines3 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From K-Dense-AI/scientific-agent-skills, a repository with 32,619 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going