kotlin-functional-first

Community

Functional Kotlin patterns for clean, pure code.

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 required

Components

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.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.