Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add jiushiwon/wg-skills --skill java-install-skillgit clone --depth 1 https://github.com/jiushiwon/wg-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/jiushiwon/wg-skills/java-install-skill)<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/java-install-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/java-install-skill/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/java-install-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/java-install-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00049 | $0.00521 |
| Opus 5.5 | $0.00020 | $0.00208 |
| Sonnet 5.5 | $0.00010 | $0.00104 |
| Haiku 4.5 | $0.00005 | $0.00052 |
Grade A, and why
java-install-skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 29d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Java Install Skill
Overview
本技能负责在目标服务器上安装 Java(JDK)。支持多种安装方式,幂等检测。
When to Use
触发词:
- 安装 Java
- 装 Java
- install java
交互流程
1. 检测当前系统(OS + 版本 + 包管理器)
2. 询问安装方式(包管理器 / Docker)
3. 询问版本(21 / 17 LTS / 11)
4. 检测是否已安装
5. 执行安装(幂等)
6. 输出验证命令
安装方式
包管理器安装
| OS | 安装命令 |
|---|---|
| Ubuntu/Debian | apt install openjdk-21-jdk |
| CentOS/RHEL | dnf install java-21-openjdk |
| macOS | brew install openjdk@21 |
| Windows | winget install OpenJDK.21 |
Docker 安装
docker pull openjdk:21
docker run -d --name java-runtime -v /app:/app openjdk:21 java -jar /app/app.jar
版本选择
- Java 21(最新 LTS)
- Java 17(LTS,稳定)
- Java 11(老项目兼容)
幂等检测
# 检测是否已安装
java -version 2>&1 | head -1
# 检测指定版本
java -version 2>&1 | grep "21"
输出
# Java 安装完成
## 系统信息
- OS: Ubuntu 22.04 LTS
- 包管理器: apt
## 安装结果
- 版本: OpenJDK 21
- 安装方式: apt
- 状态: ✅ 已安装
## 验证命令
java -version
javac -version
echo $JAVA_HOME
Resources
- references/install-commands.md — 各 OS 安装命令
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 29d ago First seen · 88 lines · 49 tokens per session scan A b5a6b9e2a59b
java-install-skill is a skill published in the GitHub repository jiushiwon/wg-skills (121 stars, last pushed 3d ago), licensed Apache-2.0. It adds 49 tokens to every session and 521 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-30.
Other skills, from other repositories
container-native-deployment
Use when packaging a Spring Boot 3 application as an OCI image or GraalVM native executable. Covers buildpacks, layered images, JVM containers, AOT hints, probes, security, and verification.
graalvm-native-image
Provides expert guidance for building GraalVM Native Image executables from Java applications. Use when converting JVM applications to native binaries, optimizing cold start times, reducing memory footprint, configuring native build tools for Maven or Gradle, resolving reflection and resource issues in native builds…
mainframe-modernization-cobol2java
Reverse engineer IBM mainframe applications and guide COBOL/JCL/CICS/VSAM/DB2 modernization into Java Spring Boot microservices, HTML/CSS/JS frontend, tests, Docker, and Kubernetes. Use when Codex is asked to analyze legacy COBOL, JCL, CICS, copybooks, assembler utilities, mainframe batch/online entry points, or to…
chainguard-libraries-java
Configure a Java/Maven or Gradle project to use Chainguard Libraries for hardened Java dependencies. Use when the user wants to set up Chainguard Libraries for Maven or Gradle, or asks about hardened Java packages.
java-docker
Containerize Java applications - Dockerfile optimization, JVM settings, security.
java-affected-tests
Use before opening or updating an OpenMetadata PR that changes Java, a JSON schema, an index mapping, a SQL migration, seed data or a pom — PR CI no longer runs the Java integration tests (they run only in the merge queue) and the JavaUIIT/search-it suites run only nightly, so this selects the unit tests and…