This is your go-to for production RL if you want battle-tested algorithms without reinventing the wheel. You get PPO, SAC, DQN, TD3, DDPG, and A2C with a scikit-learn style API that actually works. The skill covers the full workflow: training agents, building custom Gymnasium environments, vectorizing for parallel rollouts, and using callbacks for checkpointing and early stopping. It's built on PyTorch 2.3+ and designed for single-agent scenarios. The documentation is clear about constraints, like how SB3 doesn't support Discrete spaces with non-zero starts and normalizes uint8 images automatically. If you need massive parallel training or multi-agent systems, you'll want pufferlib instead, but for standard RL experiments and quick prototyping, this is the reliable choice.

skills.sh installs
2.1K
GitHub stars
56.6K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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'.

Sponsors

Details

Repository
github.com/k-dense-ai/scientific-agent-skills
Categories
Backend & APIs, Documentation, AI & Agent Building, Data Science & ML, Debugging, Automation & Workflows
First seen
Jun 3, 2026

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

All 137
1coinbase avatarquery-onchain-datacoinbase/agentic-wallet-skillsQuery onchain data on Base using the CDP SQL API via x402. Use when you or your user want to view onchain information about decoded blocks, transactions, and ev2.1Kskills.sh installs
2jezweb avatargoogle-apps-scriptjezweb/claude-skillsBuild Google Apps Script automation for Sheets and Workspace. Custom menus, triggers (onEdit / time-driven / form submit), dialogs, sidebars, email batches, PDF2Kskills.sh installs
3nvidia avatarphysical-ai-infrastructure-setup-and-resilient-scalingnvidia/skillsUse when the user wants to set up, scale, validate, or harden NVIDIA physical AI infrastructure for synthetic data generation workflows across local MicroK8s or2Kskills.sh installs
4alirezarezvani avatarengineering-advanced-skillsalirezarezvani/claude-skillsIndex of 37 advanced engineering agent skills for Claude Code, Codex, Gemini CLI, Cursor, OpenClaw. Use when browsing or choosing among the POWERFUL-tier engine2Kskills.sh installs
5neondatabase avatarpostgres-best-practicesneondatabase/postgres-skillsBest practices and guidelines for working with Postgres. Covers schema design, indexing strategies, query optimization, migrations, and common pitfalls. Use whe2Kskills.sh installs
6payloadcms avatarcms-migrationpayloadcms/skillsUse when user wants to migrate content from another CMS (WordPress, Contentful, Strapi, Sanity, Webflow, etc.) to Payload CMS2Kskills.sh installs