Skip to content
Back to skills

Cartpole Classic Control

ASecurity

"Operate DQN, A2C, and PPO CartPole-v1 training, testing,

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
toolsgorailstestingapi

Works with

  • cli
  • api

Security analysis

A100/100

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

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill cartpole-classic-control --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cartpole Classic Control?

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

Security grade badge for Cartpole Classic Control
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-cartpole-classic-control/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-cartpole-classic-control)

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: cartpole-classic-control
description: "Operate DQN, A2C, and PPO CartPole-v1 training, testing,
  checkpoints, and smoke diagnostics for the reinforcement-learning repo."
metadata:
  disco-role: operating
disable-model-invocation: true
license: MIT
---

# CartPole Classic Control

Use this sub-skill when the task involves the repository's CartPole-v1 DQN, A2C, or PPO workflows: choosing the right algorithm script, explaining network/update behavior, running training or replay, diagnosing checkpoints, or doing a safe headless smoke check.

Do not use it for GridWorld dynamic programming or tabular control, standard Atari Breakout/Pong CNN workflows, hard-exploration Atari/RND/Go-Explore/robustification, or paper-level benchmark claims.

## Fast route

- **Need algorithm/API facts or update formulas?** Read [references/algorithm-and-api-guide.md](references/algorithm-and-api-guide.md).
- **Need commands, flags, checkpoint names, or loader formats?** Read [references/cli-and-checkpoints.md](references/cli-and-checkpoints.md).
- **Need to debug imports, rendering, reward shaping, convergence, Gymnasium API changes, or checkpoint mismatch?** Read [references/troubleshooting.md](references/troubleshooting.md).
- **Need a quick verification that does not train or open a display?** Run [scripts/cartpole_smoke.py](scripts/cartpole_smoke.py). It uses synthetic states and includes checkpoint-format and render-readiness diagnostics.

## Operating guardrails

- Treat full CartPole training as a real run, not a smoke test. DQN can run up to 300 episodes, A2C up to 1000, and PPO up to 1500 update cycles with 1024 environment steps per update.
- Avoid `--render` during training unless the user explicitly wants an interactive window; it slows learning and can fail on headless hosts.
- `--test` also requests Gymnasium `render_mode="human"`; use it only when a display is available and a compatible checkpoint is present.
- The bundled smoke script is intentionally standalone and does not require Gymnasium, Pygame, the training scripts, or a display. It proves tensor/API shape and update invariants, not training convergence.
- Checkpoints are algorithm-specific: DQN and PPO save raw model `state_dict`s; A2C saves a dictionary with separate `actor` and `critic` entries.

## Provenance labels

This sub-skill distills the CartPole workflows identified in the source material as `2-cartpole/1-dqn.py`, `2-cartpole/2-a2c.py`, `2-cartpole/3-ppo.py`, and the shared CartPole environment helper `2-cartpole/env.py`. Those names are provenance/workflow labels; the runtime guidance below is self-contained and does not require opening the original source files.

Files in this skill

  • SKILL.md2.6 KB
  • references/algorithm-and-api-guide.md8.3 KB
  • references/cli-and-checkpoints.md5.3 KB
  • references/troubleshooting.md7.9 KB
  • scripts/cartpole_smoke.py22.8 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.