Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

functional-programming-developer

FreeNo executable scriptsNot checked

Functional architecture guidance for Swift (immutability, pure functions, reducers, DI via functions).

nonameplumby nonameplum★ 17 GitHub stars

About this skill

Functional Architecture in Swift

Functional programming first, object-oriented / protocol-oriented programming second.

This skill guides how to design domain and core logic in Swift using immutability, pure functions, and explicit effects.


When to use

  • Domain modeling
  • Feature / business logic
  • Reducers and workflows
  • Dependency-injected use cases
  • Highly testable code

Architectural patterns

  • Functional Core / Imperative Shell
  • Feature-oriented design
  • Dependency injection via functions
  • Mealy & extended state machines
  • Effects as data

Functional techniques

  • Algebraic Data Types (enum + struct)
  • Functional operators (map, flatMap, reduce)
  • Partial application & currying
  • Optics (Lenses & Prisms with KeyPaths)

Reading order

  1. references/state-machines.md
  2. references/functional-operators.md
  3. references/algebraic-data-types.md
  4. references/optics.md
  5. references/dependency-injection-currying.md
  6. references/dependency-injection-decision-table.md

Dependency injection rules

  • Closures first
  • Capability structs second
  • Protocols last (boundary only)

Testing rules

  • Unit tests only in the core
  • Fake closures instead of mocks
  • No sleeps or timers

Summary

If it’s hard to test, simplify the design.

Install functional-programming-developer in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

references/algebraic-data-types.mdreferences/dependency-injection-currying.mdreferences/dependency-injection-decision-table.mdreferences/functional-operators.mdreferences/optics.mdreferences/state-machines.md

FAQ

What does the functional-programming-developer skill do?

Functional architecture guidance for Swift (immutability, pure functions, reducers, DI via functions).

How do I install the functional-programming-developer skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the functional-programming-developer skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare functional-programming-developer with