island-architecture

Isolate data fetching and state management within UI islands.

Updated Apr 5, 2023
One-click install
npx skills add https://github.com/fcalell/dotfiles --skill island-architecture
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: island-architecture
Source: https://github.com/fcalell/dotfiles/tree/main/dot_claude/skills/island-architecture
Command: npx skills add https://github.com/fcalell/dotfiles --skill island-architecture

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Island components solve the problem of data coupling by making each UI piece responsible for its own data fetch, state, and presentation, enabling flexible composition and isolated testing.

Core Features & Use Cases

  • Self-contained data fetching: Each island fetches its own data independently, handling loading, error, and empty states.
  • Explicit configuration: Islands receive filters and IDs as props rather than data, keeping layout and data concerns separate.
  • Composable UI: Use islands to assemble feature pages, grids, cards, and dialogs with clear boundaries.

Quick Start

Create a new island by scaffolding a component that fetches its own data and renders its UI based on configuration.

Frequently Asked Questions about island-architecture

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

FAQPage Schema
How do I decouple data fetching from layout components in React?

Island architecture decouples data by making each UI component fetch its own data independently, handling loading, error, and empty states locally while receiving only configuration via props.

What is the best way to build self-fetching UI components for feature pages?

The best way to build self-fetching UI components is using island architecture, where each island performs data fetching locally and renders its inline presentation with clear boundaries for grids, cards, and dialogs.

How do I handle loading and error states for individual data-fetching UI components?

Handle loading and error states for individual UI components by encapsulating the entire data lifecycle within each island, ensuring it manages its own fetching, loading, error, and empty states independently.

Can I use island architecture to compose feature pages with nested components?

Yes, you can use island architecture to compose feature pages with nested components by assembling self-contained islands that support inline presentation and maintain clear boundaries for flexible composition.

Does island architecture require passing data directly to UI components?

No, island architecture does not require passing data directly to UI components; instead, islands receive explicit configuration like filters and IDs as props, keeping layout and data concerns separate.