pragmatic-fp

Installation
SKILL.md

Pragmatic Functional Programming

Read this first. This guide cuts through the academic jargon and shows what actually matters. No category theory. No abstract nonsense. Just patterns that make your code better in practice.

This skill gives you the 80/20 of fp-ts in TypeScript, informed by the "Functional-Light" mindset from Kyle Simpson's Functional-Light JavaScript: focus on readable, "reasonable" code; use FP where it increases confidence and communication; stop where it hurts clarity.

The five patterns deliver most of the benefit. Clear rules tell you when to use them — and, most importantly, when to keep code simple instead.

State what you're trying to do (e.g. "I have a chain of null checks" or "help me decide if I should introduce fp-ts here") or name the mode below.

Modes

Mode What you get Load
Core patterns The five patterns (pipe, Option, Either, map, flatMap) with before/after and plain-language translations, grounded in practical composition and side-effect management references/80-20-patterns.md
When to skip Concrete cases where FP hurts more than it helps + what to use instead (including "reasonable code" balance from Functional-Light principles) references/when-not-to-use.md
Quick wins Five easy, high-impact changes you can make today references/quick-wins.md
Real refactors Before-and-after for callback hell, multi-null chains, validation, and Promise code references/common-refactors.md
Readability + cheat sheet The "would a junior understand this?" rule (echoing FLJS emphasis on readability and communication), good vs too-clever examples, and quick-reference table references/readability-rule.md
Installs
1
GitHub Stars
2
First Seen
3 days ago
pragmatic-fp — saif-shines/devex-kit