reinforcement-learning

reinforcement-learning is a skill for Claude Code from Aznatkoiny/zAI-Skills. It costs 86 tokens per session (2,008 once invoked), scanned A, original, MIT.

Guidance for reinforcement learning, a method where an agent learns by trying actions in an environment and receiving rewards or penalties, using Python tools.

In plain words
What is it for?
Use it to create Gymnasium environments, train or evaluate agents with Stable-Baselines3 or RLlib, tune hyperparameters, and deploy trained policies.
Why use it?
It helps avoid common mistakes when building environments, choosing algorithms, training agents, tuning settings, and diagnosing unstable learning.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the ai-toolkit plugin — 6 skills, 4 commands, 2 agents shipped together

Good fit Use it to create Gymnasium environments, train or evaluate agents with Stable-Baselines3 or RLlib, tune hyperparameters, and deploy trained policies.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aznatkoiny/zai-skills/reinforcement-learning
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Aznatkoiny/zAI-Skills --skill reinforcement-learning
Clone the repo
git clone --depth 1 https://github.com/Aznatkoiny/zAI-Skills

Made for: Claude Code.

Or install ai-toolkit, the plugin that ships this one along with the rest of its 6 skills, 4 commands, 2 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for reinforcement-learning

README.md
[![agentmods](https://agentmods.dev/badge/skills/aznatkoiny/zai-skills/reinforcement-learning/github.svg)](https://agentmods.dev/skills/aznatkoiny/zai-skills/reinforcement-learning)
Your own site
<a href="https://agentmods.dev/skills/aznatkoiny/zai-skills/reinforcement-learning"><img src="https://agentmods.dev/badge/skills/aznatkoiny/zai-skills/reinforcement-learning/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for reinforcement-learning

Your own site · 80×15
<a href="https://agentmods.dev/skills/aznatkoiny/zai-skills/reinforcement-learning"><img src="https://agentmods.dev/badge/skills/aznatkoiny/zai-skills/reinforcement-learning.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,008 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00086 $0.02008
Opus 5 $0.00043 $0.01004
Sonnet 5 $0.00017 $0.00402
Haiku 4.5 $0.00009 $0.00201

Measured 9d ago against content hash 0637e1386d08, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

reinforcement-learning scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/eval_report.py, scripts/pretrain_check.py, scripts/validate_env.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AI-Toolkit/skills/reinforcement-learning/SKILL.md · 219 lines

How it starts

The opening of the file, as written. The whole thing — 219 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Reinforcement Learning Best Practices

Overview

This skill provides comprehensive guidance for implementing reinforcement learning in Python using the modern ecosystem (Gymnasium >= 1.0, Stable-Baselines3 >= 2.x). Gymnasium has replaced OpenAI Gym as the standard environment interface. Stable-Baselines3 (SB3) is recommended for prototyping, RLlib for production/distributed training, and CleanRL for research.

When to Use

  • Building RL agents for discrete or continuous control tasks
  • Creating custom simulation environments
  • Tuning hyperparameters for RL algorithms
  • Debugging training issues (reward curves, policy collapse, numerical instability)
  • Deploying trained policies to production

Library Selection

Library Best For Ease Flexibility Production
Stable-Baselines3 Prototyping, learning High Medium Good
RLlib Production, distributed Medium High Excellent
CleanRL Research, understanding High Low Poor
TorchRL Custom implementations Low Highest Good

Algorithm Decision Tree

Start
  |
  v
Action space type?
  |
  +-- Discrete --> Sample efficiency critical?
  |                  |
  |                  +-- Yes --> DQN (or Double/Dueling DQN)
  |                  +-- No  --> Stability critical?
  |                               |
  |                               +-- Yes --> PPO
  |                               +-- No  --> A2C (faster iterations)
  |
  +-- Continuous --> Sample efficiency critical?
                       |
                       +-- Yes --> SAC (auto entropy) or TD3
                       +-- No  --> PPO (more stable, less efficient)

Quick Selection Table:

Scenario Recommended Why
Discrete actions, getting started PPO Stable, good defaults
Continuous control SAC or TD3 Sample efficient, handles continuous well
Sample efficiency critical SAC, DQN Off-policy, reuses experience
Stability critical PPO Trust region, consistent
High-dimensional obs (images) PPO + CNN Handles visual input well
Fast iteration needed A2C Simpler, faster per update

Read the full file on GitHub · 219 lines

Files

What ships with it

9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 219 lines · 86 tokens per session scan A 0637e1386d08

Subscribe to this mod's changes

reinforcement-learning is a skill published in the GitHub repository Aznatkoiny/zAI-Skills (9 stars, last pushed 1mo ago), licensed MIT. It adds 86 tokens to every session and 2,008 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

ml-research-methodology

Use at the START of ANY machine-learning / deep-learning / AI modeling task - building, training, fine-tuning, or choosing a model for image classification, object/face/vehicle detection, segmentation, medical imaging (tumor/cancer/MRI/X-ray/mammogram), text/NLP/LLM, tabular prediction (churn, price, risk), or…

mxslr/mlcraft · 127 tokens

domain-medical-imaging

Use for medical-image AI: tumor/cancer detection & classification, brain tumor MRI, mammography (benign vs malignant), chest X-ray, CT, histopathology, retinal/fundus, ultrasound, dermoscopy. Encodes hard-won rigor: patient-level splits (no leakage), medical preprocessing (CLAHE, ROI/organ cropping, artifact/pectoral…

mxslr/mlcraft · 139 tokens

notebook-delivery

Use when producing a runnable deliverable for an ML task, to decide the target environment and author the notebook or script. Detects whether the user wants a Kaggle notebook, a Google Colab notebook, or a local GPU run, and adapts paths, data loading, and compute settings accordingly. Also enforces the writing style…

mxslr/mlcraft · 135 tokens

training-optimization

Use when training or fine-tuning a deep model and tuning it for best accuracy. Covers transfer learning, two-phase fine-tuning, discriminative/layer-wise LR, LR schedules + warmup, regularization tuned to over/under-fit (dropout, weight decay, label smoothing, MixUp), mixed precision, gradient checkpointing, EMA…

mxslr/mlcraft · 123 tokens

domain-3d

Use for 3D and point cloud tasks: point cloud classification, 3D semantic or instance segmentation, 3D object detection from LiDAR, and depth or mesh analysis, including autonomous-driving and indoor-scan settings. Picks the right 3D backbone, representation, and scene-level split and metric. Triggers on 'point…

mxslr/mlcraft · 117 tokens

forge

The experiment-run lens: turn the method that survived crucible into production code and RUN it to produce confirmation evidence — for any field that runs experiments to publish (ML, optimization, operations research, systems). Use when you are past method design and about to run the real experiments, or…

IamK77/Skill · 216 tokens