Skip to content
Back to skills

Model Components

ASecurity

"Use and adapt core policy, rollout, optimizer, distribution, and

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

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 model-components --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Model Components?

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

Security grade badge for Model Components
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-model-components/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-model-components)

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: model-components
description: "Use and adapt core policy, rollout, optimizer, distribution, and
  utility components in pytorch-a2c-ppo-acktr-gail."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# Model Components

Use this sub-skill when a task needs programmatic inspection, safe modification, or debugging of the repository's core Python components rather than an end-to-end environment run.

## Read This First

- API signatures, import paths, tensor shapes, and return values: [references/api-reference.md](references/api-reference.md).
- Architecture and modification guidance for policies, bases, rollouts, algorithms, KFAC, schedules, and log cleanup: [references/implementation-notes.md](references/implementation-notes.md).
- Common failures and fixes: [references/troubleshooting.md](references/troubleshooting.md).
- Safe CPU smoke script: [scripts/smoke_model_components.py](scripts/smoke_model_components.py).

## Best-Fit Tasks

Load this sub-skill for tasks such as:

- Instantiate `Policy`, `CNNBase`, `MLPBase`, action distributions, or `RolloutStorage` directly.
- Modify actor/critic base networks or recurrent policy behavior.
- Debug tensor shapes for `Policy.act`, `Policy.evaluate_actions`, rollout insertion, or PPO mini-batches.
- Reason about `A2C_ACKTR`, `PPO`, or `KFACOptimizer` update internals.
- Use `update_linear_schedule` or understand `cleanup_log_dir` side effects.

## Route Elsewhere

- End-to-end CLI training, evaluation, checkpoint playback, Gym environment wrappers, and command construction belong in `../training-workflows/`.
- GAIL expert-file schema, HDF5 conversion, discriminator updates, and imitation-learning workflow belong in `../gail-imitation/`.
- Cross-cutting installation, Gym/PyTorch dependency, optional simulator, and backend issues belong in the root skill's troubleshooting reference.

## Quick Smoke Check

From an environment where the package is installed, run:

```bash
python sub-skills/model-components/scripts/smoke_model_components.py
```

The script uses only CPU tensors and synthetic Gym spaces; it does not create environments, download data, or train an agent. A successful run prints `PASS model-components smoke`.

Files in this skill

  • SKILL.md2.2 KB
  • references/api-reference.md8.2 KB
  • references/implementation-notes.md7 KB
  • references/troubleshooting.md8.1 KB
  • scripts/smoke_model_components.py3.7 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.