← ClaudeAtlas

fp-guidelisted

Use when writing functional-style code or reviewing for FP cleanliness. Triggers on prompts about pure functions, immutability, function composition, module-level functions, explicit context passing, avoiding inheritance, or stateless designs, even when the user doesn't say 'FP' or 'functional'.
xonovex/platform · ★ 5 · Code & Development · score 70
Install: claude install-skill xonovex/platform
# General Functional Programming Guidelines ## Core principles - Prefer module-level functions over classes; pass context explicitly; avoid inheritance. - Favor immutable data and pure functions; no global or shared mutable state. - Compose complex behavior from small, focused functions. ## Gotchas - Closures over mutable state look pure but aren't: referential transparency requires both inputs and captured environment to be immutable - Partial application order matters: `flip` exists because curry direction is opinionated, not arbitrary