functional-patterns
Higher-order functions, composition, monads, immutability, and functional programming idioms.
от sethdford★ 51 звезда на GitHub
Установить functional-patterns в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
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
- Prefer Pure Functions: Write functions without side effects
- Compose Functions: Chain simple functions together
- Use Higher-Order: Map, filter, fold; powerful abstractions
- Embrace Immutability: Don't mutate; create new values
- Handle Effects: Use monads or similar for side effects
- 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
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл functional-patterns?
Higher-order functions, composition, monads, immutability, and functional programming idioms.
Как установить скилл functional-patterns?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл functional-patterns запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…