Skip to content
Back to skills

Spaces

ASecurity

"Build and troubleshoot Mesa discrete and experimental continuous

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

Works with

  • api

Security analysis

A100/100

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

Scanned September 8, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Spaces?

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

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

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: spaces
description: "Build and troubleshoot Mesa discrete and experimental continuous
  spaces, including grids, networks, Voronoi cells, property layers, and
  movement agents."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# Spaces

Use this sub-skill for Mesa's modern space APIs: `mesa.discrete_space` and `mesa.experimental.continuous_space`.

## Use for

- `Cell`, `CellCollection`, `DiscreteSpace`, and the grid/network/voronoi space families.
- `CellAgent`, `FixedAgent`, and `Grid2DMovingAgent` movement and occupancy logic.
- Property layers, `cells_with_capacity`, `empties`, and capacity-limited placement.
- `ContinuousSpace` and `ContinuousSpaceAgent` for experimental continuous movement.
- Safe smoke checks against an installed Mesa package.

## Route elsewhere

- Model lifecycle, activation, and scheduling: [../model-core/SKILL.md](../model-core/SKILL.md)
- Data collection, scenarios, and experiment runs: [../analysis-experiments/SKILL.md](../analysis-experiments/SKILL.md)
- Visualization and rendering of space layers: [../visualization/SKILL.md](../visualization/SKILL.md)

## Start here

1. Read [references/api-reference.md](references/api-reference.md) for verified signatures and object relationships.
2. Use [references/workflows.md](references/workflows.md) for copyable recipes.
3. Check [references/troubleshooting.md](references/troubleshooting.md) for common failures and fixes.
4. Run [scripts/space_smoke.py](scripts/space_smoke.py) for a safe runtime probe.

## High-signal rules

- Import modern space APIs from `mesa.discrete_space` and `mesa.experimental.continuous_space`.
- Do not use legacy `mesa.space` for new work.
- Use `cells_with_capacity` for partially full cells; `empties` only when you need zero occupancy.
- Mutate property layers in place. Do not rebind `grid.<layer>` to a new array.
- Use seeded randomness (`Model(rng=seed)` or `random.Random(seed)`) for repeatable layouts.
- Prefer `CellAgent` for mobile occupancy, `FixedAgent` for one-time placement, and `Grid2DMovingAgent` for 2D directional movement.
- Keep `networkx` optional in user-facing code; only build `Network` examples when the graph stack is available or when you provide an explicit layout.
- Use `ContinuousSpaceAgent.remove()` and `CellAgent.remove()` rather than mutating registries directly.

Files in this skill

  • SKILL.md2.3 KB
  • references/api-reference.md10.8 KB
  • references/troubleshooting.md4.1 KB
  • references/workflows.md6.1 KB
  • scripts/space_smoke.py14.1 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.