simpy
Agent skill fromzLanqing/codex-claude-academic-skills
Process-based discrete-event simulation framework in Python. Use this skill when building simulations of systems with processes, queues, resources, and time-based events such as manufacturing systems, service operations, network traffic, logistics, or any system where entities interact with shared resources over time.
How to install simpy
install simpy
# install the codex-claude-academic-skills pack with the skills CLI
npx skills add zLanqing/codex-claude-academic-skills# or add only this skill to Claude Code: copy the folder
scientific-toolkit-skill/references/scientific-skills/simpy/
# into
~/.claude/skills/simpy/ (all projects)
.claude/skills/simpy/ (one project)
1# SimPy - Discrete-Event Simulation23## Overview45SimPy is a process-based discrete-event simulation framework based on standard Python. Use SimPy to model systems where entities (customers, vehicles, packets, etc.) interact with each other and compete for shared resources (servers, machines, bandwidth, etc.) over time.67**Core capabilities:**8- Process modeling using Python generator functions9- Shared resource management (servers, containers, stores)10- Event-driven scheduling and synchronization11- Real-time simulations synchronized with wall-clock time12- Comprehensive monitoring and data collection1314## When to Use This Skill1516Use the SimPy skill when:17181. **Modeling discrete-event systems** - Systems where events occur at irregular intervals192. **Resource contention** - Entities compete for limited resources (servers, machines, staff)203. **Queue analysis** - Studying waiting lines, service times, and throughput214. **Process optimization** - Analyzing manufacturing, logistics, or service processes225. **Network simulation** - Packet routing, bandwidth allocation, latency analysis236. **Capacity planning** - Determining optimal resource levels for desired performance247. **System validation** - Testing system behavior before implementation2526**Not suitable for:**27- Continuous simulations with fixed time steps (consider SciPy ODE solvers)28- Independent processes without resource sharing29- Pure mathematical optimization (consider SciPy optimize)3031## Quick Start32…
Excerpt shown under the repository's MIT license.
