Sign in
Explore
Skills · SkillData & AIMachine learningAgents & MCPReviewed

stable-baselines3

Trains and evaluates single-agent reinforcement learning with Stable Baselines3 (PPO, SAC, DQN, TD3, DDPG, A2C), Gymnasium environments and callbacks.

Kind
Skill
Works with
Claude Code, Codex, Cursor, Gemini / Antigravity
Source
Scientific Agent Skills (K-Dense) @ 5f2bc0341354
Path
skills/stable-baselines3/SKILL.md
Jobs
Implementation
Topics
Machine learning, Agents & MCP

Credit

Made by
K-Dense-AI
Original
github.com/K-Dense-AI/scientific-agent-skills/blob/5f2bc03413…
License
MIT

Listed by Skill Manifest; not made by us.

InstallInstall it by hand, following the source.
gh skill install K-Dense-AI/scientific-agent-skills stable-baselines3
Install factsScanned 3 Nov 2026
Adds
  • .claude/skills/stable-baselines3/ (the skill folder)
  • 7 file(s) the skill refers to
  • 7 other files in the folder: references/algorithms.md, references/callbacks.md, references/custom_environments.md, references/vectorized_envs.md and 3 more
Runs scripts
Yes
  • scripts/custom_env_template.py
  • scripts/evaluate_agent.py
  • scripts/train_rl_agent.py
  • allowed-tools includes Bash
Uses the network
Yes
  • downloads Python packages
Needs secrets
None found
Value without its scripts
High
  • The main file never tells the agent to run a bundled script, so the text works without them.
  • scripts/custom_env_template.py: Template for creating custom Gymnasium environments compatible with Stable Baselines3.
  • scripts/evaluate_agent.py: Evaluate trusted SB3 checkpoints with reproducible seeds and original rewards.
  • scripts/train_rl_agent.py: CPU-friendly training with held-out monitoring and matching normalization files.
Source revision
5f2bc0341354
Licence
MIT
Last activity
23 Nov 2026
Source changed after the scan
Yes
  • Last push 23 Nov 2026, scanned 3 Nov 2026; read it again before you rely on this scan
Review
Reviewed

Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.

# 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](https://stable-baselines3.readthedocs.io/en/v2.9.0/).

## Installation

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

```bash
# 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'`.
…