rl-policy-optimization
What it does
The skill guides training reinforcement learning agents. It is for practitioners building agents that learn from rewards.
When to use it
- ✓When you train a reinforcement learning agent with PPO, SAC, or a similar method.
- ✓When you need to design or fix the reward for an agent.
- ✓When you want a fair evaluation of a learned policy against baselines.
Skill link
https://github.com/aiming-lab/AutoResearchClaw/blob/main/researchclaw/skills/builtin/domain/rl-policy-optimization/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Train a PPO agent for my robot arm task and tell me how to evaluate it fairly.”
5 new skills a week. 1 minute to read.
How it works
The agent recommends an algorithm based on whether the actions are discrete or continuous, suggests starting settings and normalization, and sets an evaluation plan with several seeds and baselines.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
RL Policy Optimization Best Practice
Algorithm selection:
- Discrete actions: PPO, DQN, A2C
- Continuous actions: SAC, TD3, PPO
- Multi-agent: MAPPO, QMIX
- Offline: CQL, IQL, Decision Transformer
Training recipe:
- PPO: clip=0.2, lr=3e-4, gamma=0.99, GAE lambda=0.95
- SAC: lr=3e-4, tau=0.005, auto-tune alpha
- Use vectorized environments (e.g., gymnasium.vector)
- Normalize observations and rewards
- Log episode return, episode length, value loss, policy entropy
Evaluation:
- Report mean +/- std over 10+ evaluation episodes
- Use deterministic policy for evaluation
- Compare against random policy and simple baselines
- Report sample efficiency (return vs. env steps)
Common pitfalls:
- Reward shaping can introduce bias
- Seed sensitivity is HIGH — use 5+ seeds
- Hyperparameter sensitivity — do a small sweep
FAQ
How many seeds should I use?
The skill recommends at least five, because results vary a lot between seeds.
What is the risk of reward shaping?
Shaped rewards can add bias that makes the agent optimize the wrong goal.
What should I log during training?
Episode return, episode length, value loss, and policy entropy.
Details
Original description by the author
Best practices for reinforcement learning policy optimization. Use when working on RL agents, PPO, SAC, or reward design.
Popularity
- GitHub stars
- 15k
- Ranking position
- #11070
- License
- MIT
- Updated
- 8/19/2026
Comments
- …
More skills from this repository
a-evolve
15kHelps your agent improve over repeated runs by diagnosing failures, creating targeted skills from error patterns, and recording lessons for later use.
biology-biopython
15kHelps your agent work with DNA, RNA, and protein sequences using Biopython, including file parsing, sequence calculations, BLAST searches, and database access.
chemistry-rdkit
15kHelps your agent analyze molecules written as SMILES strings with RDKit, including descriptors, fingerprints, similarity, and substructure search.
hypothesis-formulation
15kHelps your agent turn an observation into testable hypotheses, with competing explanations and clear predictions that could prove them wrong.
Similar skills
pytorch-patterns
280kHelps your agent use PyTorch for machine learning models. It applies best practices for efficient model training and ensures reproducible results.
evm-token-decimals
280kHelps your agent avoid errors with decimal numbers across different blockchain networks. It ensures token values are accurate in transactions and calculations.
ito-inference
280kLets your agent check the availability of AI models for use. It connects the compute request with the ready model service.