Skip to content
Back to skills

Model Core

ASecurity

"Build and run Mesa core models with agents, activation, time

  • 247 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 8, 2026
datagoapi

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

Installs into .claude/skills of the current project.

Are you the author of Model Core?

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

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

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-core
description: "Build and run Mesa core models with agents, activation, time
  advancement, lifecycle, and event scheduling."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# Model Core

Use this sub-skill when the task is about Mesa's core modeling layer: `Model`, `Agent`, `AgentSet`, `GroupBy`, automatic registration, activation patterns, reproducible RNG, lifecycle/removal, and event scheduling.

Start here:

- [API reference](references/api-reference.md) for verified signatures, object relationships, and gotchas.
- [Workflows](references/workflows.md) for copyable first-model, activation, event, lifecycle, and RNG recipes.
- [Troubleshooting](references/troubleshooting.md) for common failure modes and quick fixes.
- [Smoke script](scripts/mesa_model_smoke.py) for a safe runtime check against an installed Mesa package.

Do:

- Build agents with `mesa.Agent` and models with `mesa.Model`.
- Create agents with `Agent.create_agents` or `Agent.from_dataframe`.
- Activate agents with `model.agents.do(...)`, `shuffle_do(...)`, or `model.agents_by_type[...]`.
- Advance simulations with `run_for`, `run_until`, or `run_model`.
- Schedule one-off and recurring work with `schedule_event` and `schedule_recurring`.
- Remove agents with `agent.remove()` and clear a model with `remove_all_agents()`.
- Use `rng=` or a `Scenario` instance for reproducible randomness.

Route elsewhere when needed:

- Spatial placement and movement: [../spaces/SKILL.md](../spaces/SKILL.md)
- Data collection and scenario experiments: [../analysis-experiments/SKILL.md](../analysis-experiments/SKILL.md)
- Visualization dashboards: [../visualization/SKILL.md](../visualization/SKILL.md)

Keep this sub-skill focused on core model mechanics; do not fold in space, analysis, or visualization workflows here.

Files in this skill

  • SKILL.md1.8 KB
  • references/api-reference.md7.4 KB
  • references/troubleshooting.md2.4 KB
  • references/workflows.md5.3 KB
  • scripts/mesa_model_smoke.py6.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.