Use when writing functional-style code or reviewing for FP cleanliness. Triggers on pure functions, immutability, side effects, function composition, module-level functions, explicit context passing, avoiding inheritance, or stateless designs, even when the user doesn't say 'FP' or 'functional'.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Applying Fp?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/xonovex-applying-fp)
---
name: applying-fp
description: "Use when writing functional-style code or reviewing for FP cleanliness. Triggers on pure functions, immutability, side effects, function composition, module-level functions, explicit context passing, avoiding inheritance, or stateless designs, even when the user doesn't say 'FP' or 'functional'."
---
# General Functional Programming Guidelines
Compose pure functions with immutable data and explicit context so each operation is easy to test and reason about.
## 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