← 返回 Skills 市场
2452
总下载
9
收藏
15
当前安装
2
版本数
在 OpenClaw 中安装
/install java
功能描述
Write robust Java avoiding null traps, equality bugs, and concurrency pitfalls.
使用说明 (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
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install java - 安装完成后,直接呼叫该 Skill 的名称或使用
/java触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Initial release
v1.0.0
Initial release
元数据
常见问题
Java 是什么?
Write robust Java avoiding null traps, equality bugs, and concurrency pitfalls. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 2452 次。
如何安装 Java?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install java」即可一键安装,无需额外配置。
Java 是免费的吗?
是的,Java 完全免费(开源免费),可自由下载、安装和使用。
Java 支持哪些平台?
Java 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin, win32)。
谁开发了 Java?
由 Iván(@ivangdavila)开发并维护,当前版本 v1.0.1。
推荐 Skills