Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

pufferlib

Skill by K-Dense-AI

Provides version-aware guidance for PufferLib reinforcement-learning environments, vectorization, policies, PuffeRL training and checkpoint review. It is aimed at developers working with PufferLib 5.0, the published 3.0.0 release or a pinned 4.0 snapshot.

  • Score 94
  • 59k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install pufferlib

Built from the published package, never by AI.

git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/scientific-agent-skills/skills/pufferlib ~/.claude/skills/pufferlib

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install pufferlib in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill helps an assistant work with PufferLib reinforcement-learning projects. It asks the user to pick a profile first: native source 5.0, the PyPI 3.0.0 release, or a pinned 4.0 source snapshot. Each profile has its own environment, vectorization, policy and training guidance. The skill includes safe defaults such as allowlisted environment identifiers, bounded resources, separated training and evaluation seeds, and opt-in external logging. Bundled Python scripts use only the standard library and emit strict JSON. They run synthetic, CPU-only, network-free checks and generate plans instead of launching training. The skill is intended for ML engineers and researchers who build or train RL environments and need to verify versions, contracts and checkpoints before running them.

Written from the project's SKILL.md and checked against it.

What it can do

  • Version profile selectionGuides the user to choose native 5.0, PyPI 3.0.0 or pinned 4.0 before choosing an API.
  • env_contract_validator.pyChecks Gymnasium-style reset and step contracts with synthetic, deterministic episodes.
  • benchmark_vectorization.pyBenchmarks a synthetic vectorization harness, such as the serial backend.
  • train_template.pyEmits a training report envelope with a plan, without launching training by default.
  • validate_plan.pyValidates a strict-JSON training plan and rejects secret keys and unbounded resources.
  • repro_plan.pyProduces a reproducibility plan for a run.
  • inspect_checkpoint.pyInspects checkpoint metadata and checks hashes before any trusted loading.
  • Policy and logging guidanceDescribes Torch policy shapes, recurrent composition, and opt-in W&B logging rules.

What you need

  • Python 3.10+ for the bundled CLIs
  • Python 3.9 or newer for PufferLib 3.0.0
  • A native C/CUDA toolchain for PufferLib 5.0
  • Linux or macOS for the 3.0.0 source build
  • NumPy below 2 and Gymnasium 0.29.1 or lower for the 3.0.0 build

Try asking

  • Check which PufferLib profile fits my RL project and why
  • Validate the Gymnasium reset and step contract for my environment
  • Generate a synthetic PufferLib training plan on CPU and validate it

Good to know

  • PufferLib 5.0 CPU builds support evaluation, not training.
  • Training and native examples are source-reviewed and were not executed.
  • Bundled checks cover a synthetic harness, not PufferLib installation or learning quality.
  • Neptune logging shut down on 2026-03-05, and the bundled planner rejects it.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/pufferlib/SKILL.md, skills/pufferlib/scripts/__init__.py, skills/pufferlib/scripts/_common.py, skills/pufferlib/scripts/benchmark_vectorization.py, skills/pufferlib/scripts/env_contract_validator.py, skills/pufferlib/scripts/env_template.py, skills/pufferlib/scripts/inspect_checkpoint.py, skills/pufferlib/scripts/repro_plan.py, skills/pufferlib/scripts/train_template.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: Read Bash Grep Python

  • SKILL.md15 KB
  • references/environments.md11 KB
  • references/integration.md9 KB
  • references/native-5.md8 KB
  • references/policies.md7 KB
Show all 16 files
  • references/training.md13 KB
  • references/vectorization.md9 KB
  • scripts/__init__.py62 B
  • scripts/_common.py7 KB
  • scripts/benchmark_vectorization.py8 KB
  • scripts/env_contract_validator.py7 KB
  • scripts/env_template.py7 KB
  • scripts/inspect_checkpoint.py7 KB
  • scripts/repro_plan.py6 KB
  • scripts/train_template.py10 KB
  • scripts/validate_plan.py18 KB

Alternatives to pufferlib

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

pufferlib: common questions

Does this skill launch PufferLib training?

No. The bundled planner emits a report envelope and a plan instead of starting training by default.

Which PufferLib versions does it cover?

It covers native source 5.0, the PyPI 3.0.0 release, and a pinned 4.0 source snapshot, each with its own guidance.

Is loading a checkpoint safe?

The skill says to hash checkpoint bytes before trusted, sandboxed loading. It notes that metadata inspection is not proof of safety.

How do I install pufferlib?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is pufferlib free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is pufferlib safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to pufferlib?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

pufferlib Install

Add to stack

Loading.