mandu-composition

Compose reusable island-based UI with provider-injected state in Mandu apps.

46|4|Updated Jan 21, 2026
One-click install
npx skills add https://github.com/konamgil/mandu --skill mandu-composition
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mandu-composition
Source: https://github.com/konamgil/mandu/tree/main/packages/mcp/src/resources/skills/mandu-composition
Command: npx skills add https://github.com/konamgil/mandu --skill mandu-composition

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Mandu composition patterns standardize how you build Island-based UIs with dependency-injected state, reducing complexity and increasing reusability across apps.

Core Features & Use Cases

  • Guidance on component architecture for Islands, state management via providers, and provider-driven composition.
  • Patterns for island communication, compound components, and explicit provider boundaries to enable scalable UI.
  • Use cases include building reusable Island APIs, lifting state into providers for cross-component access, and ensuring server-client separation.

Quick Start

Install Mandu and start a new project, then begin composing Islands with the Mandu provider pattern.

Frequently Asked Questions about mandu-composition

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

FAQPage Schema
How do I manage shared state across Island components in React?

To manage shared state across Island components in React, you lift state into generic context providers. This provider-based composition pattern ensures cross-component access and clear server-client boundaries.

What is the best way to structure reusable Islands with dependency-injected state?

The best way to structure reusable Islands with dependency-injected state is by applying a pattern library of compound components. This standardizes island communication and establishes explicit provider boundaries for scalable UI.

How do I maintain server-client separation when composing Islands?

Maintaining server-client separation when composing Islands requires explicit provider boundaries and generic context interfaces. This architecture isolates island communication and ensures state is correctly lifted across the server-client divide.

Does the Mandu composition pattern work for large-scale React applications?

Yes, the Mandu composition pattern works for large-scale React applications by standardizing island-based UI architecture. It reduces complexity through provider-driven composition and compound component patterns, enabling scalable and reusable UI components.

When should I use provider-driven composition for Islands?

You should use provider-driven composition for Islands when building reusable Island APIs that require cross-component state access. It solves the complexity of dependency-injected state by establishing clear boundaries and standardized communication patterns.