kotlin-functional-first
CommunityFunctional Kotlin patterns for clean, pure code.
Software Engineering#kotlin#functional-programming#software-engineering#immutability#pure-functions#sealed-classes#extension-functions
AuthorClankerGuru
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Functional-first Kotlin emphasizes pure functions, immutability, and composition to reduce OO complexity, enabling safer, more testable code.
Core Features & Use Cases
- Stateless functions at top-level for clarity and testability; examples include pure transformations and unidirectional data flow between layers.
- Sealed hierarchies over enums when payload is needed, value classes for domain primitives, and data classes with defaults and copy.
- Extension functions and higher-order functions to compose behavior without boilerplate classes; error handling via Result or domain types.
- Use Case: Refactor a module to replace Manager-style classes with pure functions and small data carriers to improve testability and readability.
Quick Start
Refactor a Kotlin module to start using top-level pure functions for core logic and immutable data structures.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: kotlin-functional-first Download link: https://github.com/ClankerGuru/opsx/archive/main.zip#kotlin-functional-first Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.