L’interface est localisée ; les présentations et documents des Skills sont traduits automatiquement par IA dans votre langue. Le code, les commandes, chemins et termes techniques restent en version originale, et le document de l’auteur fait foi.
Explorer les Skills
Productivité · SKILL.md

model-core

model-core

Build and run Mesa core models with agents, activation, time advancement, lifecycle, and event scheduling.

Independent GitHub snapshot · Automated classification · Original documentation governs

Documentation de la Skill

GitHub

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 for verified signatures, object relationships, and gotchas.
  • Workflows for copyable first-model, activation, event, lifecycle, and RNG recipes.
  • Troubleshooting for common failure modes and quick fixes.
  • Smoke script 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:

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

Skills enregistrées