Applies functional exception handling in Java: replacing exception overuse with Optional and VAVR Either, designing error hierarchies with sealed classes/enums, and composing monadic error pipelines.
Ships in 143-java-functional-exception-handling. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Identify and apply functional exception handling best practices in Java to improve error clarity, maintainability, and performance by eliminating exception overuse in favour of monadic error types.
What is covered in this Skill?
Optional<T> for nullable values over throwing NullPointerException or NotFoundExceptionEither<L,R> for predictable business-logic failuresCompletableFuture<T> for async error handlingflatMap/map/peek/peekLeft for chaining operations that can failScope: The reference is organized by examples (good/bad code patterns) for each core area. Apply recommendations based on applicable examples.
Before applying any functional exception handling changes, ensure the project validates. When introducing Either types, confirm the VAVR dependency (io.vavr:vavr) and SLF4J are present.
./mvnw validate or mvn validate before applying any changesEither types, confirm VAVR (io.vavr:vavr) and SLF4J are present./mvnw clean verify or mvn clean verify after applying improvementsRun ./mvnw validate or mvn validate and stop immediately if validation fails.
When introducing Either, confirm VAVR (io.vavr:vavr) and SLF4J are present before implementation.
Read references/143-java-functional-exception-handling.md and identify places to replace exception-heavy control flow with monadic error types.
Implement selected Optional/Either/async error patterns with structured logging and clear error contracts.
Run ./mvnw clean verify or mvn clean verify after applying improvements.
For detailed guidance, examples, and constraints, see references/143-java-functional-exception-handling.md.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/143-java-functional-exception-handling:143-java-functional-exception-handlingfrom 143-java-functional-exception-handling
npx claudepluginhub jabrena/plinth --plugin 143-java-functional-exception-handlingOther plugins' skills for the same job