Generate and review Java code using patterns and best practices from Joshua Bloch's "Effective Java" (3rd Edition). Use this skill whenever the user asks about Java best practices, API design, object creation patterns, generics, enums, lambdas, streams, concurrency, serialization, method design, exception handling, or writing clean, maintainable Java code. Trigger on phrases like "Effective Java", "Java best practices", "builder pattern", "static factory", "defensive copy", "immutable class", "enum type", "generics", "bounded wildcard", "PECS", "stream pipeline", "optional", "thread safety", "serialization proxy", "checked exception", "try-with-resources", "composition over inheritance", "method reference", "functional interface", or "Java API design."
$npx -y skills add booklib-ai/booklib --skill effective-javaInstalls into the current project.
Run `npx skills use "https://github.com/booklib-ai/booklib" --skill "booklib-ai/booklib/effective-java"` 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/booklib-ai/booklib" that are relevant to the current task. Run `npx skills add "https://github.com/booklib-ai/booklib"` and select the relevant skills, then follow their instructions.