swift-case-paths

Community

Turn enums into first-class key-path style access.

Authornonameplum
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Case-based logic in Swift often requires verbose pattern matching and manual unwrapping of associated values. This skill eliminates boilerplate by exposing enum cases as first-class, path-like values, enabling concise and type-safe access.

Core Features & Use Cases

  • Core primitives for constructing and composing enum case paths
  • Macro support (CasePathable) to derive pathable behavior
  • Use case: route based on enum cases with associated values in a Swift UI or data layer

Quick Start

  • Import the CasePaths library and start using CasePathable in your enums.
  • Define case paths for common enum cases and compose them to traverse nested values.
  • Build and run to verify type-safe enum path extraction and routing.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: swift-case-paths
Download link: https://github.com/nonameplum/agent-skills/archive/main.zip#swift-case-paths

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.