java-install-skill

java-install-skill is a skill for Claude Code, Codex from jiushiwon/wg-skills. It costs 49 tokens per session (521 once invoked), scanned A, original, Apache-2.0.

A Java installation helper that installs a chosen JDK version on a server using a package manager or Docker. It checks the operating system and skips installation when the requested version is already present.

In plain words
What is it for?
Use it to install Java 21, 17, or 11, choose an installation method, and verify Java and the Java compiler afterward.
Why use it?
It removes the need to look up different Java installation commands for each operating system and avoids repeating an existing installation.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to install Java 21, 17, or 11, choose an installation method, and verify Java and the Java compiler afterward.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jiushiwon/wg-skills/java-install-skill
Install

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.

Any agent
npx skills add jiushiwon/wg-skills --skill java-install-skill
Clone the repo
git clone --depth 1 https://github.com/jiushiwon/wg-skills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for java-install-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/jiushiwon/wg-skills/java-install-skill/github.svg)](https://agentmods.dev/skills/jiushiwon/wg-skills/java-install-skill)
Your own site
<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.

agentmods 80×15 button for java-install-skill

Your own site · 80×15
<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>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 521 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 29d ago against content hash b5a6b9e2a59b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

vibeCoding/super-deploy-skills/runtime-install-skill/children/java-install-skill/SKILL.md · 88 lines

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

Files

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.

Changes

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.

  1. 29d ago First seen · 88 lines · 49 tokens per session scan A b5a6b9e2a59b

Subscribe to this mod's changes

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.

Related

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.

rrezartprebreza/spring-boot-skills · 46 tokens

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…

giuseppe-trisciuoglio/developer-kit · 124 tokens

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…

binrogithub/1-3-Cloud-Adoption-Skills · 97 tokens

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.

chainguard-dev/chainguard-cursor-plugin · 52 tokens

java-docker

Containerize Java applications - Dockerfile optimization, JVM settings, security.

pluginagentmarketplace/custom-plugin-java · 17 tokens

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…

open-metadata/OpenMetadata · 120 tokens