byjabrena· 58 skills
Use when you need to apply functional programming principles in Java — including writing immutable objects and Records, pure functions, functional interfaces, lambda expressions, Stream API pipelines, Optional for null safety, function composition, higher-order functions, pattern matching for instanceof and switch, sealed classes/interfaces for controlled hierarchies, Stream Gatherers for custom operations, currying/partial application, effect boundary separation, and concurrent-safe functional patterns. This should trigger for requests such as Improve the code with Functional Programming; Apply Functional Programming; Refactor the code with Functional Programming; Refactor Java code to use streams or Optionals safely; Improve immutability and pure functions in Java. Part of Plinth Toolkit
$npx -y skills add jabrena/plinth --skill 142-java-functional-programmingInstalls into the current project.
Run `npx skills use "https://github.com/jabrena/plinth" --skill "jabrena/plinth/142-java-functional-programming"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/jabrena/plinth" that are relevant to the current task. Run `npx skills add "https://github.com/jabrena/plinth"` and select the relevant skills, then follow their instructions.