← Back to Skills Marketplace
2452
Downloads
9
Stars
15
Active Installs
2
Versions
Install in OpenClaw
/install java
Description
Write robust Java avoiding null traps, equality bugs, and concurrency pitfalls.
README (SKILL.md)
Quick Reference
| Topic | File |
|---|---|
| Nulls, Optional, autoboxing | nulls.md |
| Collections and iteration traps | collections.md |
| Generics and type erasure | generics.md |
| Concurrency and synchronization | concurrency.md |
| Classes, inheritance, memory | classes.md |
| Streams and CompletableFuture | streams.md |
| Testing (JUnit, Mockito) | testing.md |
| JVM, GC, modules | jvm.md |
Critical Rules
==compares references, not content — always use.equals()for strings- Override
equals()must also overridehashCode()— HashMap/HashSet break otherwise Optional.get()throws if empty — useorElse(),orElseGet(), orifPresent()- Modifying while iterating throws
ConcurrentModificationException— use Iterator.remove() - Type erasure: generic type info gone at runtime — can't do
new T()orinstanceof List\x3CString> volatileensures visibility, not atomicity —count++still needs synchronization- Unboxing null throws NPE —
Integer i = null; int x = i;crashes Integer == Integeruses reference for values outside -128 to 127 — use.equals()- Try-with-resources auto-closes — implement
AutoCloseable, Java 7+ - Inner classes hold reference to outer — use static nested class if not needed
- Streams are single-use — can't reuse after terminal operation
thenApplyvsthenCompose— compose for chaining CompletableFutures- Records are implicitly final — can't extend, components are final
serialVersionUIDmismatch breaks deserialization — always declare explicitly
Usage Guidance
This skill is a read-only collection of Java best-practice notes and appears low-risk. Before installing, verify you trust the skill source if that matters for governance; ensure your agent environment has legitimate java/javac binaries if the platform will validate those. Because the skill is allowed to be invoked autonomously by default, be aware an agent could use the guidance to write or suggest code during automated runs — but the skill itself does not request credentials, perform network calls, or install software.
Capability Analysis
Type: OpenClaw Skill
Name: java
Version: 1.0.1
The skill bundle is benign. It consists entirely of documentation and best practices for Java programming, spread across several markdown files. The `SKILL.md` file, which serves as instructions for the AI agent, is purely informational and educational, providing a quick reference and critical rules for Java. It correctly declares `java` and `javac` as required binaries, which is appropriate for a Java-focused skill. There is no evidence of prompt injection attempts, malicious execution, data exfiltration, persistence mechanisms, or obfuscation across any of the files.
Capability Assessment
Purpose & Capability
Name/description match the content: Java guidance on nulls, equality, concurrency, etc. Declared binary requirements (java, javac) are reasonable and proportional for a Java-focused skill (they are only required/checked, not used to access unrelated services). No unrelated environment variables or credentials are requested.
Instruction Scope
SKILL.md and the included markdown files are purely documentation and coding guidance. They do not instruct the agent to read system files, access credentials, call external endpoints, or perform actions outside producing or validating Java code.
Install Mechanism
No install spec (instruction-only). Nothing is downloaded or written to disk by the skill package itself, minimizing install-time risk.
Credentials
The skill requires no environment variables or credentials. The lack of secrets or config-path requirements is proportional to a documentation/reference skill.
Persistence & Privilege
Skill is not marked always:true and does not request persistent system changes. It is user-invocable and can be invoked autonomously per platform defaults—appropriate for a reference skill. There is no evidence it modifies other skills or system-wide settings.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install java - After installation, invoke the skill by name or use
/java - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
Initial release
v1.0.0
Initial release
Metadata
Frequently Asked Questions
What is Java?
Write robust Java avoiding null traps, equality bugs, and concurrency pitfalls. It is an AI Agent Skill for Claude Code / OpenClaw, with 2452 downloads so far.
How do I install Java?
Run "/install java" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Java free?
Yes, Java is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Java support?
Java is cross-platform and runs anywhere OpenClaw / Claude Code is available (linux, darwin, win32).
Who created Java?
It is built and maintained by Iván (@ivangdavila); the current version is v1.0.1.
More Skills