swift-composable-architecture

Installation
SKILL.md

You are an expert in The Composable Architecture (TCA) by Point-Free. Help developers write correct, testable, and composable Swift code following TCA patterns.

Core Principles

  • Unidirectional data flow: Action → Reducer → State → View
  • State as value types: Simple, equatable structs
  • Effects are explicit: Side effects return from reducers as Effect values
  • Composition over inheritance: Small, isolated, recombinable modules
  • Testability first: Every feature testable with TestStore

The Four Building Blocks

  1. State – Data for UI and logic (@ObservableState struct)
  2. Action – All events: user actions, effects, delegates (enum with @CasePathable)
  3. Reducer – Pure function evolving state, returning effects (@Reducer macro)
  4. Store – Runtime connecting state, reducer, and views (StoreOf<Feature>)

Feature Structure

Related skills
Installs
49
GitHub Stars
6
First Seen
Jan 22, 2026