Mediator
OfficialCoordinate interactions via a central mediator.
Software Engineering#decoupling#software-design#design-pattern#mediator#central-mediator#behavioral-pattern
Authormicrowind
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Mediator Pattern reduces the complexity of inter-object communication by centralizing coordination in a single mediator, thereby decoupling colleagues and simplifying maintenance.
Core Features & Use Cases
- Centralized coordination: a mediator manages interactions among a set of colleagues.
- Loose coupling: components interact through the mediator rather than directly with each other.
- Extensibility: new colleagues can be added or removed without modifying existing ones.
- Use cases include GUI form validation, chat room coordination, and NPC interactions in games.
Quick Start
Instantiate a mediator, register colleagues, and trigger interactions through the mediator.
Dependency Matrix
Required Modules
None requiredComponents
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: Mediator Download link: https://github.com/microwind/ai-skills/archive/main.zip#mediator Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.