lib-simpy

Simulate discrete-event systems with Python generator functions and SimPy.

Updated Mar 13, 2026
One-click install
npx skills add https://github.com/biomaps-infra/blender-opencode --skill lib-simpy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lib-simpy
Source: https://github.com/biomaps-infra/blender-opencode/tree/main/.opencode/skills/lib-simpy
Command: npx skills add https://github.com/biomaps-infra/blender-opencode --skill lib-simpy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a robust framework for modeling and simulating complex systems where events occur over time, such as manufacturing lines, service operations, or network traffic.

Core Features & Use Cases

  • Process-based modeling: Define system behavior using Python generator functions.
  • Resource management: Model shared resources like servers, machines, or bandwidth.
  • Event scheduling: Handle time-based events and process synchronization.
  • Use Case: Simulate a customer service center to analyze wait times, optimize staffing levels, and identify bottlenecks in the service process.

Quick Start

Use the lib-simpy skill to run a basic simulation with two processes that wait for 5 time units each.

Frequently Asked Questions about lib-simpy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a discrete-event simulation in Python for manufacturing or logistics?

You can build a discrete-event simulation in Python by defining system behavior with generator functions and using event scheduling to model interacting entities, shared resources, and time-based events for manufacturing or logistics analysis.

What is discrete-event simulation and how does it handle shared resources?

Discrete-event simulation models systems where state changes occur at specific times. It handles shared resources by scheduling process synchronization events, allowing you to analyze constraints like server capacity, machine availability, or bandwidth limits.

How do I simulate a customer service center to analyze wait times and optimize staffing?

To simulate a customer service center, define process-based generator functions for customer arrivals and service interactions, then use event scheduling to model wait times, identify bottlenecks, and optimize staffing levels.

Do I need Python generator functions to model time-based events?

Yes, Python generator functions are required to define processes for discrete-event simulation. They provide the mechanism for yielding control back to the event scheduler, enabling time-based synchronization and process interactions.

Can I use this process-based simulation framework for network traffic modeling?

Yes, this process-based simulation framework supports network traffic modeling. You can define interacting entities and schedule time-based events to analyze bandwidth constraints and shared resource utilization in network operations.

What are the limitations of using process-based discrete-event simulation?

Process-based discrete-event simulation requires modeling systems as discrete time-based events, making it less suitable for continuous dynamic systems. You must explicitly define all entity interactions and resource constraints using Python generator functions.