If you're doing reinforcement learning and care about speed, this is worth checking out. PufferLib gets you millions of steps per second through optimized vectorization and an efficient PPO implementation. It handles both single and multi-agent setups, integrates with Gymnasium and PettingZoo environments, and includes 20+ environments in the Ocean suite. The PufferEnv API lets you build custom environments that actually scale. The documentation is thorough with separate guides for training, environments, vectorization, policies, and integration. It's built for people who've hit performance walls with standard RL libraries and need something faster without rewriting everything in C.

skills.sh installs
232
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add davila7/claude-code-templates --skill pufferlib --agent claude-code

Installs into .claude/skills of the current project.

Files

PufferLib - High-Performance Reinforcement Learning

Overview

PufferLib is a high-performance reinforcement learning library designed for fast parallel environment simulation and training. It achieves training at millions of steps per second through optimized vectorization, native multi-agent support, and efficient PPO implementation (PuffeRL). The library provides the Ocean suite of 20+ environments and seamless integration with Gymnasium, PettingZoo, and specialized RL frameworks.

When to Use This Skill

Use this skill when:

  • Training RL agents with PPO on any environment (single or multi-agent)
  • Creating custom environments using the PufferEnv API
  • Optimizing performance for parallel environment simulation (vectorization)
  • Integrating existing environments from Gymnasium, PettingZoo, Atari, Procgen, etc.
  • Developing policies with CNN, LSTM, or custom architectures
  • Scaling RL to millions of steps per second for faster experimentation
  • Multi-agent RL with native multi-agent environment support

Core Capabilities

1. High-Performance Training (PuffeRL)

Sponsors

Details

Repository
github.com/davila7/claude-code-templates
Categories
AI & Agent Building, Debugging, Automation & Workflows
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 618
1openai avatardocs-syncopenai/openai-agents-pythonAnalyze main branch implementation and configuration to find missing, incorrect, or outdated documentation in docs/. Use when asked to audit doc coverage, sync 231skills.sh installs
2rysweet avatarskill-builderrysweet/amplihackCreates, refines, and validates Agent Skills following the open standard at agentskills.io, Claude Code extensions, and Anthropic best practices. Use when build227skills.sh installs
3yonatangross avatardoctoryonatangross/orchestkitOrchestKit doctor for health diagnostics across manifest integrity, hook configuration, skill validation, agent frontmatter, MCP server connectivity, CC version227skills.sh installs
4bgauryy avataroctocode-researchbgauryy/octocode-mcpoctocode research226skills.sh installs
5massgen avatarmassgenmassgen/skillsInvoke MassGen's multi-agent system. Use when the user wants multiple AI agents on a task: writing, code, review, planning, specs, research, design, or any task226skills.sh installs
6khazp avatarvibe-workflowkhazp/vibe-coding-prompt-templateComplete 5-step workflow to build an MVP from idea to launch. Use when the user wants to start a new project from scratch, go through the full workflow, or says223skills.sh installs