Skip to content
Back to skills

Pytorch A2c Ppo Acktr Gail

ASecurity

"Operate the PyTorch A2C/PPO/ACKTR/GAIL reinforcement-learning

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
toolspythonbashapi

Works with

  • cli
  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

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

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill pytorch-a2c-ppo-acktr-gail --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pytorch A2c Ppo Acktr Gail?

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

Security grade badge for Pytorch A2c Ppo Acktr Gail
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-pytorch-a2c-ppo-acktr-gail/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-pytorch-a2c-ppo-acktr-gail)

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: pytorch-a2c-ppo-acktr-gail
description: "Operate the PyTorch A2C/PPO/ACKTR/GAIL reinforcement-learning
  repository, including training commands, model components, GAIL demos, and
  troubleshooting."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# pytorch-a2c-ppo-acktr-gail

Use this repo skill when a task involves the PyTorch implementation of A2C, PPO, ACKTR, and GAIL reinforcement-learning workflows, including Gym environment setup, training command construction, policy/rollout internals, checkpoint playback, or imitation-learning expert data.

## Start Here

- Confirm the source/version baseline before relying on the skill: [references/repo-provenance.md](references/repo-provenance.md).
- For package install, import, dependency, Gym/PyBullet, CUDA, and stale-flag issues, read [references/troubleshooting.md](references/troubleshooting.md).
- For shared parser flags, command conventions, and source-script mapping, read [references/cli-and-config-reference.md](references/cli-and-config-reference.md).
- For checkpoints, monitor logs, historical result artifacts, and expert-data artifacts, read [references/data-and-artifacts.md](references/data-and-artifacts.md).
- Run [scripts/check_install.py](scripts/check_install.py) for a safe import/API smoke check after installing the package.

## Sub-skill Routes

| Task | Load |
| --- | --- |
| Build or debug A2C/PPO/ACKTR training commands, evaluation intervals, checkpoint playback, Gym environment wrappers, or long-run experiment settings. | [sub-skills/training-workflows/SKILL.md](sub-skills/training-workflows/SKILL.md) |
| Inspect or modify `Policy`, `CNNBase`, `MLPBase`, distributions, `RolloutStorage`, `A2C_ACKTR`, `PPO`, KFAC, schedules, or tensor-shape behavior. | [sub-skills/model-components/SKILL.md](sub-skills/model-components/SKILL.md) |
| Convert expert demonstrations, validate GAIL HDF5/`.pt` formats, use `ExpertDataset`, or explain `Discriminator`/`--gail` behavior. | [sub-skills/gail-imitation/SKILL.md](sub-skills/gail-imitation/SKILL.md) |

## Minimal Public Setup

This is an older Gym/PyTorch codebase. A practical environment needs the package, PyTorch, Gym, Stable-Baselines3 wrapper utilities, PyBullet support if using Bullet envs, Matplotlib, and `h5py` for GAIL files.

```bash
pip install -e .
pip install h5py
python - <<'PY'
import a2c_ppo_acktr
from a2c_ppo_acktr.model import Policy
from a2c_ppo_acktr.storage import RolloutStorage
print('import ok')
PY
```

If `pybullet_envs` fails with a Gym registry error, read [references/troubleshooting.md](references/troubleshooting.md#gym--pybullet-registry-failure) before changing training code.

## Safe Verification First

Do not start full Atari, MuJoCo, PyBullet, or GAIL training just to verify the setup. Prefer:

```bash
python scripts/check_install.py
python sub-skills/training-workflows/scripts/build_training_command.py --preset atari-ppo --env-name PongNoFrameskip-v4
python sub-skills/model-components/scripts/smoke_model_components.py
python sub-skills/gail-imitation/scripts/convert_gail_h5_to_pt.py --help
```

Only run long training after the user confirms the target environment, simulator dependencies, data availability, compute budget, and output directories.

Files in this skill

  • SKILL.md3.2 KB
  • references/cli-and-config-reference.md2.4 KB
  • references/data-and-artifacts.md1.8 KB
  • references/repo-provenance.md1.8 KB
  • references/repo-routing-metadata.json555 B
  • references/troubleshooting.md2.5 KB
  • scripts/check_install.py2.9 KB
  • sub-skills/gail-imitation/SKILL.md2.1 KB
  • sub-skills/gail-imitation/references/gail-data-format.md3.1 KB
  • sub-skills/gail-imitation/references/gail-workflow.md4.5 KB
  • sub-skills/gail-imitation/references/troubleshooting.md4.1 KB
  • sub-skills/gail-imitation/scripts/convert_gail_h5_to_pt.py6.2 KB
  • sub-skills/model-components/SKILL.md2.2 KB
  • sub-skills/model-components/references/api-reference.md8.2 KB
  • sub-skills/model-components/references/implementation-notes.md7 KB
  • sub-skills/model-components/references/troubleshooting.md8.1 KB
  • sub-skills/model-components/scripts/smoke_model_components.py3.7 KB
  • sub-skills/training-workflows/SKILL.md2.6 KB
  • sub-skills/training-workflows/references/environment-wrappers.md3.1 KB
  • sub-skills/training-workflows/references/training-and-evaluation.md4.2 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.