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-patterns

SKILL.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

  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_

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/sethdford/claude-skills/functional-patterns/badge)](https://verified-skill.com/skills/sethdford/claude-skills/functional-patterns)

Something wrong with this skill or its page? Tell us.