react-composition

Enforce React component composition and shared state via Effect Atom.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/front-depiction/claude-setup --skill react-composition
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-composition
Source: https://github.com/front-depiction/claude-setup/tree/main/skills/react-composition
Command: npx skills add https://github.com/front-depiction/claude-setup --skill react-composition

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables frontend teams to build scalable React UIs by promoting composition over boolean props and centralizing state with Effect Atom.

Core Features & Use Cases

  • Composition over configuration: assemble complex UIs from small, reusable pieces.
  • Component module pattern: organize components into namespaces for clarity and reuse.
  • State lifting: share state across components using Effect Atom state management.
  • Use Case: build a reusable form library that composes Frame, NameField, and SubmitButton to create consistent UIs.

Quick Start

Use this skill to scaffold a simple composable form by importing a namespace (e.g., UserForm) and composing a Frame, a WelcomeMessage, a NameField, and a SubmitButton to create a cohesive UI.

Frequently Asked Questions about react-composition

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

FAQPage Schema
How do I build scalable React UIs without using boolean props for component configuration?

Build scalable React UIs by enforcing component composition over boolean props and centralizing shared state with Effect Atom. This approach uses small, reusable building blocks assembled via namespace exports to create complex, type-safe interfaces.

What is the component module pattern in React and how does it organize UI libraries?

The component module pattern organizes React UI libraries by grouping components into namespace-based exports. This structure provides clarity and reuse by isolating components and lifting shared state through Effect Atom, ensuring testable and maintainable feature modules.

How do I share state across composable React components using Effect Atom?

Share state across composable React components using Effect Atom by lifting state to atoms. This state management technique allows isolated, testable components to access shared data without relying on deeply nested prop drilling or complex boolean configurations.

Can I use Effect Atom state management for building a reusable React form library?

Yes, you can use Effect Atom state management to build a reusable React form library. Compose a Frame, WelcomeMessage, NameField, and SubmitButton together to create cohesive, consistent UIs without complex configuration props for your frontend dashboard modules.

What is the best way to avoid prop drilling when composing complex React feature modules?

The best way to avoid prop drilling in complex React feature modules is enforcing component composition with Effect Atom. By lifting state to atoms and using namespace-based component exports, teams achieve isolated, testable components without passing configuration boolean props.

When should I not use composition over configuration for React component development?

You should reconsider composition over configuration when a React UI requires simple, single-use components with no shared state. The pattern targets scalable dashboards and feature modules, so isolated one-off components might not justify the Effect Atom state management overhead.