mesh-supervisors

Manage and restart child actors in Mesh applications using supervisor patterns.

2|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/snowdamiz/mesh-lang --skill mesh-supervisors
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mesh-supervisors
Source: https://github.com/snowdamiz/mesh-lang/tree/main/tools/skill/mesh/skills/supervisors
Command: npx skills add https://github.com/snowdamiz/mesh-lang --skill mesh-supervisors

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides the tools and knowledge to implement robust fault tolerance in Mesh applications by leveraging the supervisor model, ensuring your application remains available even when individual components fail.

Core Features & Use Cases

  • Supervisor Definition: Learn how to define supervisors with different restart strategies (one_for_one, one_for_all).
  • Child Specifications: Understand how to configure child processes, including their start functions, restart policies (permanent, transient, temporary), and shutdown timeouts.
  • Restart Limits: Implement mechanisms to prevent runaway crashes by defining restart budgets (max_restarts, max_seconds).
  • Supervision Trees: Design hierarchical fault-tolerant systems by nesting supervisors.
  • Use Case: Building a web server where each incoming connection is handled by an actor. If an actor crashes due to an unexpected error, the supervisor automatically restarts it, ensuring continuous service availability without affecting other connections.

Quick Start

Define a supervisor named MySup with the one_for_one strategy and spawn a child actor named MyWorker.

Frequently Asked Questions about mesh-supervisors

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

FAQPage Schema
How do I implement fault tolerance in Mesh applications using supervisor patterns?

You can implement fault tolerance in Mesh applications by using supervisor patterns to manage and restart child actors. This ensures your application remains available even when individual components fail unexpectedly.

What restart strategies can I configure for child actors in a Mesh supervisor?

Mesh supervisors support configurable restart strategies including one_for_one and one_for_all. These strategies determine how the supervisor responds when a child actor crashes and needs to be restarted.

How do I prevent runaway crashes when restarting actors in Mesh applications?

You can prevent runaway crashes in Mesh applications by defining restart budgets within your supervisor configuration. This involves setting max_restarts and max_seconds limits to cap how often child actors can restart within a given timeframe.

What child specification options are available for configuring Mesh supervisor child processes?

Child specifications in Mesh supervisors allow you to configure start functions, restart policies such as permanent, transient, or temporary, and shutdown timeouts for each child process under supervision.

Can I build hierarchical supervision trees in Mesh for resilient system design?

Yes, you can build hierarchical supervision trees in Mesh by nesting supervisors. This allows you to design layered fault-tolerant systems where parent supervisors manage child supervisors, isolating failures and maintaining system resilience.