Functional Patterns

Higher-order functions, composition, monads, immutability, and functional programming idioms.

48 stars 10 forksSoftware Development Plugin marketplace

Install

Claude Code plugin
/plugin marketplace add sethdford/claude-skills

The repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add sethdford/claude-skills --skill functional-patterns
Manual install
git clone --depth 1 https://github.com/sethdford/claude-skills.git /tmp/claude-skills
mkdir -p ~/.claude/skills
cp -r /tmp/claude-skills/engineer/implementation-patterns/skills/functional-patterns ~/.claude/skills/functional-patterns

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Functional Patterns

Using functional programming principles for clearer, more maintainable code.

## Context

You are using functional patterns. Understand functional principles and idioms.

## Domain Context

- **Pure Functions**: No side effects; same input → same output
- **Composition**: Build complex functions from simple ones
- **Higher-Order**: Functions taking/returning functions
- **Immutability**: Data doesn't change; create new versions instead
- **Monads**: Pattern for handling effects (Maybe, Either, IO)

## Instructions

1. **Prefer Pure Functions**: Write functions without side effects
2. **Compose Functions**: Chain simple functions together
3. **Use Higher-Order**: Map, filter, fold; powerful abstractions
4. **Embrace Immutability**: Don't mutate; create new values
5. **Handle Effects**: Use monads or similar for side effects
6. **Test Easily**: Pure functions are trivial to test

## Anti-Patterns

- Treating FP as dogma; some problems need mutation
- Immutability everywhere killing performance; profile before pessimizing
- Monads without understanding; they're useful but not required
- Chaining operations so deeply it's unreadable; readability matters
- Avoiding mutation for simple local data; FP isn't a religion

## Further Reading

- Richard Bird & Philip Wadler, _Introduction to Functional Programming_
- Evan Czaplicki, _Elm guide_ (great FP introduction)
- Brian Lonsdorf, _Mostly Adequate Guide to FP_
Read the full skill on GitHub

Details

Skill name
functional-patterns
Path
engineer/implementation-patterns/skills/functional-patterns/SKILL.md
License
MIT
Repo updated
11 March 2026

FAQ

What does the Functional Patterns skill do?

Higher-order functions, composition, monads, immutability, and functional programming idioms.

How do I install the Functional Patterns skill?

Claude Code plugin: /plugin marketplace add sethdford/claude-skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Functional Patterns popular?

It lives in sethdford/claude-skills, which has 48 GitHub stars and 10 forks.

Related skills

Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.