Skip to content
Back to skills

On Policy Actor Critic

ASecurity

Router for REINFORCE, baseline, actor-critic, A2C, and PPO workflows.

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
toolsgo

Works with

  • cli

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill on-policy-actor-critic --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of On Policy Actor Critic?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for On Policy Actor Critic
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-on-policy-actor-critic/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-on-policy-actor-critic)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: on-policy-actor-critic
description: "Router for REINFORCE, baseline, actor-critic, A2C, and PPO workflows."
metadata:
  disco-role: operating
disable-model-invocation: true
license: MIT
---

# On-policy Actor-Critic

Use this sub-skill for the repo's on-policy classic-control workflows in Char02, Char03, Char04, and Char07.

## Route here when the task says
- "run REINFORCE on CartPole"
- "compare baseline vs no-baseline"
- "inspect actor-critic updates"
- "use the A2C multiprocessing helper"
- "inspect PPO clipping"
- "play back a saved policy"

## Keep this route focused on
- REINFORCE and policy-gradient baselines in Char02.
- Actor-critic variants in Char03.
- A2C with `SubprocVecEnv` in Char04.
- PPO on CartPole, MountainCar, and Pendulum in Char07.
- Playback of saved policy pickles from the on-policy family.

## Do not use this route for
- Tabular control or GridWorld toy examples — route to the tabular-control route.
- DQN or other value-based discrete control — route to the value-based-discrete-control route.
- Off-policy continuous-control families such as DDPG, SAC, or TD3 — route to the off-policy continuous-control route.
- Standalone plotting or results aggregation.

## Read first
- `references/workflows.md` for the algorithm comparison, checkpoint map, and the exact source-script roles.
- `references/troubleshooting.md` for `env.seed`, old Gym step signatures, multiprocessing, checkpoint loading, TensorBoard paths, and headless plotting failures.

## Bundled helpers
- `scripts/multiprocessing_env.py` for the reusable subprocess vector-env helper used by A2C.
- `scripts/playback_saved_policy.py` for bounded playback of saved policy pickles from the REINFORCE / actor-critic family.

## Fast choice guide
- No critic, episode returns only, `saved_log_probs`: REINFORCE.
- Policy plus value head, advantage from `G - V`: actor-critic or baseline.
- Multiple env processes and short rollouts: A2C.
- `clip_param`, ratio clipping, minibatches, repeated epochs: PPO.
- A saved `.pkl` policy object that should be evaluated rather than trained: playback helper.

## Compatibility notes
- The inspection environment verified Gym 0.23.1 with classic-control envs and 4-value `step(...)` tuples.
- The source scripts still use legacy `env.seed(...)` and legacy env IDs such as `CartPole-v0`, `MountainCar-v0`, and `Pendulum-v0`.
- Treat `Pendulum-v0` as a compatibility note; use `Pendulum-v1` in the inspected environment when you need a modern substitute.
- This route is CPU-first, even though CUDA is available in the inspection environment.

Files in this skill

  • SKILL.md2.5 KB
  • references/troubleshooting.md5.5 KB
  • references/workflows.md7.2 KB
  • scripts/multiprocessing_env.py5.4 KB
  • scripts/playback_saved_policy.py7.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.