Skip to content
Back to skills

Custom Environments

ASecurity

"Create and review PettingZoo AEC and Parallel custom environments,

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

Works with

  • api

Security analysis

A100/100

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

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill custom-environments --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Custom Environments?

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

Security grade badge for Custom Environments
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-custom-environments-arex-skill/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-custom-environments-arex-skill)

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: custom-environments
description: "Create and review PettingZoo AEC and Parallel custom environments,
  including factories, spaces, masks, wrappers, and versioned exports."
disable-model-invocation: true
metadata:
  disco-role: operating
license: NOASSERTION
---

# Custom Environments

Use this sub-skill when implementing or reviewing a new PettingZoo environment: AEC, Parallel, action-masked, versioned module exports, `raw_env()`/`env()` factories, or `AgentSelector` turn logic.

## Start Here

- Read [AEC authoring](references/aec-authoring.md) when the environment steps one agent at a time or needs direct `AECEnv` control.
- Read [Parallel authoring](references/parallel-authoring.md) when all live agents act in the same step or when exposing both `parallel_env()` and an AEC-compatible `env()`.
- Read [Action masking](references/action-masking.md) when observations or infos need valid-action masks or invalid-action policy.
- Read [Troubleshooting](references/troubleshooting.md) when compliance tests fail around space identity, live-agent keys, dead agents, masks, seeding, render metadata, or wrapper ordering.
- Run [custom_env_template.py](scripts/custom_env_template.py) for a bounded, dependency-light template that exposes `parallel_env()`, `raw_env()`, and wrapped `env()` factories.

## Routing

- For compliance commands such as `api_test`, `parallel_api_test`, seed tests, render tests, or CI guidance, use the sibling `testing-and-validation` sub-skill.
- For conversion wrappers, utility wrapper behavior, and wrapper composition details, use the sibling `wrappers-and-utilities` sub-skill.
- For selecting and installing built-in PettingZoo environment families, use the sibling `environment-families` sub-skill.
- For ordinary rollout loops against an existing environment, use the sibling `use-environments` sub-skill.

## Authoring Defaults

- Prefer Parallel authoring when agents truly act simultaneously; expose an AEC interface with `parallel_to_aec` when needed.
- Prefer direct AEC authoring when turns, delayed rewards, dead-agent stepping, or per-agent observations are easier to express one agent at a time.
- Keep `possible_agents`, spaces, and metadata stable after initialization; update `agents` only for the current episode lifecycle.
- Keep bundled examples and validation defaults bounded; large-cycle stress tests belong in explicit validation work, not default templates.

Files in this skill

  • SKILL.md2.4 KB
  • references/action-masking.md4 KB
  • references/aec-authoring.md5.2 KB
  • references/parallel-authoring.md4.8 KB
  • references/troubleshooting.md5.1 KB
  • scripts/custom_env_template.py11.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.