Effective Java
ListedAnalyzes Java code for adherence to Joshua Bloch's "Effective Java" principles, suggesting improvements for clarity & performance.
Install on your platform
Showing Claude Code. One command installs this skill into any of the agents below.
- 1
Run this in your project
terminal$ npx skills add booklib-ai/booklib --skill effective-java -a claude-code Uses the open-source
skillsCLI and needs Node.js. Add-gto install it for your user instead of this project.
What we know about this skill
Publisher
booklib-ai
Taken from the source listing. We haven't verified who controls this account.
Install target
Live repository
Not pinned. Installing fetches whatever the repository holds at the time you run the command.
Automated safety checks
This skill failed 1 of 6 checks. A failure is not proof of bad intent; it means something in the code needs a human to look at it before you run it.
No undeclared network calls: failed
Contacts 1 host that is neither well-known infrastructure nor declared in the skill's frontmatter: checkstyle.org.
Every host the skill dials — from its scripts, its config endpoints or the commands it tells the agent to run — is either well-known package and API infrastructure or declared in its own frontmatter. Links in documentation are not counted.
Hosts contacted
github.comsource hostcheckstyle.orgundeclaredWhat it found
- skills/effective-java/scripts/checkstyle_setup.py:34contacts checkstyle.org
"https://checkstyle.org/dtds/configuration_1_3.dtd">
Declares what it does: passed
SKILL.md parses and declares a name and a description.
SKILL.md exists, its frontmatter parses, and it declares a name and a description.
No obfuscated payloads: passed
No encoded or obfuscated payloads.
No base64, hex or compressed blob is decoded and then executed, and no encoded shell commands.
No credential access: passed
Reads no keys, tokens, keychains or credential files.
Neither the code nor the SKILL.md instructions read SSH keys, cloud credentials, keychains, token stores, browser cookie databases or dotfiles that hold secrets.
No pipe-to-shell installers: passed
No pipe-to-shell or download-and-run installers.
No `curl … | sh` pattern, in the code or in the instructions, that runs code fetched at run time.
Pinned to a commit: passed
Scanned booklib-ai/skills at c1b760abba.
The exact upstream commit SHA that was scanned is recorded, so the result refers to specific bytes.
- Commit
- c1b760abba
- Manifest
- skills/effective-java/SKILL.md
- Scanned
- 11 files, 1,733 lines
About this skill
What it does
This skill provides guidance and code examples based on Joshua Bloch's "Effective Java" book. It helps users write cleaner, more efficient, and maintainable Java code by applying best practices for object-oriented design and programming. The skill can analyze existing Java code and suggest improvements aligned with the principles outlined in the book.
When to use it
- Code review: Have the agent review a piece of Java code and identify potential issues or areas for improvement based on "Effective Java" principles.
- Learning best practices: Ask the agent to explain specific concepts from "Effective Java," such as immutability, encapsulation, or design patterns.
- Generating boilerplate code: Request the agent to generate code snippets that demonstrate effective techniques like using builders or implementing interfaces correctly.
- Debugging complex logic: Use the skill to help understand and refactor convoluted Java code for better readability and performance.
Key capabilities
- Provides advice based on "Effective Java" principles.
- Analyzes existing Java code.
- Generates code examples.
- Explains Java concepts.
Example prompts
- “Review this Java class and suggest improvements according to 'Effective Java'.” [Paste Java code]
- “Explain the benefits of using immutable objects in Java, referencing principles from 'Effective Java'."
- "Generate a builder pattern implementation for a
Carclass."
Tips & gotchas
The skill relies on understanding of core Java concepts. While it can provide guidance, familiarity with object-oriented programming is helpful to interpret and apply the suggestions effectively.