swift-composable-architecture

Index TCA 1.26.0 APIs and reference implementations for SwiftUI reducers.

1|Updated Jul 22, 2026
One-click install
npx skills add https://github.com/wyattjoh/skills --skill swift-composable-architecture-wyattjoh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: swift-composable-architecture
Source: https://github.com/wyattjoh/skills/tree/main/skills/swift-composable-architecture
Command: npx skills add https://github.com/wyattjoh/skills --skill swift-composable-architecture-wyattjoh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill provides a comprehensive adoption index for The Composable Architecture (TCA) 1.26.0, helping developers navigate the complexities of modern SwiftUI state management, navigation, and dependency injection without relying on outdated patterns.

Core Features & Use Cases

  • Authoritative Indexing: Maps complex TCA concepts like @Reducer, @ObservableState, and @Shared to official documentation and real-world production examples.
  • Production-Grade Templates: Includes trimmed, high-quality snippets from a production reference app to demonstrate how to structure features, services, and tests.
  • Best Practice Enforcement: Provides a clear checklist to avoid legacy pitfalls like ViewStore or @PresentationState, ensuring code remains maintainable and testable.

Quick Start

Use the swift-composable-architecture skill to generate a new feature reducer following the 1.26.0 ObservableState pattern.

Frequently Asked Questions about swift-composable-architecture

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

FAQPage Schema
How do I implement state management in SwiftUI using The Composable Architecture?

Implement state management in SwiftUI using The Composable Architecture by adopting the @Reducer and @ObservableState macros. This skill provides a structured adoption index mapping these modern 1.26.0 patterns to production-grade templates for structuring features and services.

What is the best way to avoid legacy ViewStore pitfalls in TCA?

The best way to avoid legacy ViewStore pitfalls in TCA is to enforce a best practice checklist using modern patterns. This skill provides a clear checklist to avoid outdated concepts like ViewStore or @PresentationState, ensuring your SwiftUI code remains maintainable.

How do I set up dependency management and testing for TCA reducers?

Set up dependency management and testing for TCA reducers by following modern concurrency patterns. This skill facilitates the implementation of reducers and dependency management using high-quality snippets from a production reference app to demonstrate proper test structures.

Does the swift-composable-architecture skill require local TCA source code?

Yes, the swift-composable-architecture skill requires a local vendored submodule of the TCA source code. This local setup is necessary to resolve authoritative API paths and documentation for The Composable Architecture 1.26.0.

When do I need to use @Shared and @ObservableState macros in SwiftUI?

You need to use @Shared and @ObservableState macros in SwiftUI when adopting modern TCA 1.26.0 patterns. This skill maps these complex concepts to official documentation, facilitating navigation and state management without relying on outdated patterns.