Skip to content
Back to skills

Applying Fp

ASecurity

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

  • 6 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 30, 2026
ai-agentsgo

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned November 30, 2026

npx -y skills add xonovex/platform --skill applying-fp --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Applying Fp?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Applying Fp
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/xonovex-applying-fp/badge)](https://www.skillsdirectory.com/skills/xonovex-applying-fp)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Files in this skill

  • SKILL.md1004 B
  • eval-output.json3.2 KB
  • eval-trigger.json5.8 KB
  • moon.yml86 B
  • sources.json841 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.