Skip to content
Back to skills

Policies And Customization

ASecurity

"Customize Stable-Baselines3 policies, feature extractors,

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
businesspythongobash

Security analysis

A100/100

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

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill policies-and-customization --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Policies And Customization?

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

Security grade badge for Policies And Customization
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-policies-and-customization/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-policies-and-customization)

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: policies-and-customization
description: "Customize Stable-Baselines3 policies, feature extractors,
  Dict-observation policies, exploration noise, gSDE, and HER replay buffers
  safely."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# Policies and Customization

Use this sub-skill when an SB3 task involves `policy_kwargs`, policy aliases, custom PyTorch policy modules, `BaseFeaturesExtractor`, `MultiInputPolicy`, action noise, generalized State-Dependent Exploration (gSDE), or `HerReplayBuffer`.

## Routes

- For `net_arch`, `activation_fn`, policy aliases, optimizer kwargs, and policy save/load persistence, read [policy-customization](references/policy-customization.md).
- For custom `BaseFeaturesExtractor`, image preprocessing, `CombinedExtractor`, `MultiInputPolicy`, and Dict observations, read [feature-extractors](references/feature-extractors.md).
- For `NormalActionNoise`, `OrnsteinUhlenbeckActionNoise`, vectorized noise, and gSDE constraints, read [noise-and-exploration](references/noise-and-exploration.md).
- For Hindsight Experience Replay setup, goal-env requirements, and the legacy `HER()` import error, read [her-and-replay-buffers](references/her-and-replay-buffers.md).
- For common failures and fast diagnosis checklists, read [troubleshooting](references/troubleshooting.md).

## Safe Inspection

Run the bundled script to instantiate a tiny model without learning and print the resolved policy, spaces, device, and architecture summary:

```bash
python sub-skills/policies-and-customization/scripts/inspect_policy.py --algorithm PPO --policy MlpPolicy
python sub-skills/policies-and-customization/scripts/inspect_policy.py --algorithm DQN --policy MultiInputPolicy --dict-env
python sub-skills/policies-and-customization/scripts/inspect_policy.py --algorithm SAC --policy MlpPolicy --action-noise normal --use-sde
```

The script uses safe defaults, supports `--help`, and trains only when `--train-steps` is explicitly set above zero.

## Boundaries

- Use the environment/vectorization sibling for environment checker, wrappers, vector env, and `Dict` space validation beyond policy choice.
- Use the training/algorithms sibling for choosing PPO vs DQN vs SAC/TD3/DDPG and algorithm-specific learning schedules.
- Use the evaluation/persistence sibling for evaluation loops and save/load workflows; this sub-skill only notes policy customization persistence and custom-object pitfalls.

Files in this skill

  • SKILL.md2.4 KB
  • references/feature-extractors.md5.8 KB
  • references/her-and-replay-buffers.md3.8 KB
  • references/noise-and-exploration.md3.4 KB
  • references/policy-customization.md5 KB
  • references/troubleshooting.md4.2 KB
  • scripts/inspect_policy.py8.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.