sethdford/claude-skills/functional-patterns
Claude Code and agent skill by sethdford/claude-skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Higher-order functions, composition, monads, immutability, and functional programming idioms.
Install
npx vskill@latest install sethdford/claude-skills/functional-patternsSKILL.md
The same SKILL.md was published earlier as sethdford/claude-skills/functional-patterns.
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_
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingengineer/implementation-patterns/skills/functional-patterns/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (Cursor)
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sethdford/claude-skills/functional-patterns)