Agent skill

Java Install Skill

by jiushiwon in jiushiwon/wg-skills

Java 安装子技能。支持 apt/dnf/Docker 方式安装指定版本的 JDK,幂等检测,已安装则提示。当用户说「安装 Java」「装 Java」时触发。

Apache-2.0Auto-check passedDevOps & Cloud

Install Java Install Skill

skills CLI
$ npx skills add jiushiwon/wg-skills --skill java-install-skill -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jiushiwon/wg-skills java-install-skill --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jiushiwon/wg-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/vibeCoding/super-deploy-skills/runtime-install-skill/children/java-install-skill .claude/skills/java-install-skill && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
java-install-skill
GitHub stars
110
Token cost
~299 tokens
SKILL.md length
54 words
Files
3 (incl. references)
Skills in repo
121
Repo updated
First seen
Licence
Apache-2.0

At a glance

Java 安装子技能。支持 apt/dnf/Docker 方式安装指定版本的 JDK,幂等检测,已安装则提示。当用户说「安装 Java」「装 Java」时触发。

  • Tasks that involve Skill management
  • SKILL.md covers Overview, When to Use, 交互流程 and 安装方式, plus 4 more sections
  • Calls docker, java and apt
  • Tasks that involve Containers

What it does

Java Install Skill is an agent skill from jiushiwon/wg-skills. Java 安装子技能。支持 apt/dnf/Docker 方式安装指定版本的 JDK,幂等检测,已安装则提示。当用户说「安装 Java」「装 Java」时触发。

Its SKILL.md is about 300 tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `README.md` and `references/install-commands.md`).

It sits in DevOps & Cloud, covering Skill management and Containers. It works with Java and Docker. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Skill management
  • Tasks that involve Containers

Example prompts

  • “/java-install-skill”

Requirements

  • Docker

What it can do on your machine

Read from SKILL.md and the folder at commit a4a640b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • docker
    • java
    • apt
    • dnf
    • brew
    • winget

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use docker, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Java Install Skill loads about 299 tokens when it runs, and up to ~1.2k if it reads all its reference files. Until then it costs about 25 tokens; SKILL.md has 54 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~25
When it runs · the whole SKILL.md, loaded when a task matches
~299
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from jiushiwon/wg-skills at commit a4a640b, republished under its Apache-2.0 licence (© jiushiwon). 54 words, ~299 tokens.

Download SKILL.mdSave it as .claude/skills/java-install-skill/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
java-install-skill
description
Java 安装子技能。支持 apt/dnf/Docker 方式安装指定版本的 JDK,幂等检测,已安装则提示。当用户说「安装 Java」「装 Java」时触发。

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/Debianapt install openjdk-21-jdk
CentOS/RHELdnf install java-21-openjdk
macOSbrew install openjdk@21
Windowswinget install OpenJDK.21
Docker 安装
bash
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(老项目兼容)

幂等检测

bash
# 检测是否已安装
java -version 2>&1 | head -1

# 检测指定版本
java -version 2>&1 | grep "21"

输出

markdown
# Java 安装完成

## 系统信息
- OS: Ubuntu 22.04 LTS
- 包管理器: apt

## 安装结果
- 版本: OpenJDK 21
- 安装方式: apt
- 状态: ✅ 已安装

## 验证命令
java -version
javac -version
echo $JAVA_HOME

Resources

© jiushiwon, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in vibeCoding/super-deploy-skills/runtime-install-skill/children/java-install-skill of jiushiwon/wg-skills.

  • SKILL.md
  • README.md
  • references/install-commands.md

Open the folder on GitHubat commit a4a640b

Compare with similar skills

Java Install Skill next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Java Install Skill compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Java Install Skill this skilljiushiwon/wg-skills110—~299Automated safety check: PassApache-2.0
Docker Jfr Benchmark Loopeclipse-rdf4j/rdf4j420—~945Automated safety check: PassBSD-3-Clause
Opik Local Dev Environmentcomet-ml/opik22k—~734Automated safety check: PassApache-2.0
Oci Functions Deployoracle/skills872—~4.6kAutomated safety check: PassUPL-1.0
Writing Dockerfilesancoleman/ai-design-components526—~3.2kAutomated safety check: NotesMIT
706 Technologies Containers Dockerjabrena/plinth445—~1.4kAutomated safety check: PassApache-2.0

Similar skills

  • Docker Jfr Benchmark Loop

    eclipse-rdf4j/rdf4j

    Run a repeatable RDF4J performance loop against one JMH benchmark in Docker with Linux Java 26 and JFR CPU-time profiling.

    420 GitHub stars~945 tokensUpdated today
    DevOps & CloudAuto-check passed
  • Starts, rebuilds, and troubleshoots the Opik local dev stack, including an optional Comet Platform integration mode for the Opik team.

    22k GitHub stars~734 tokensUpdated today
    DevOps & CloudAuto-check passed
  • Official

    Build, configure, scaffold, and deploy OCI Functions from a local machine using a dependency-first, Fn-context-guided flow with argv-safe mutation execution, nonce-scoped confirmations, and a…

    872 GitHub stars~4.6k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Writing Dockerfiles

    ancoleman/ai-design-components

    Writing optimized, secure, multi-stage Dockerfiles with language-specific patterns (Python, Node.js, Go, Rust), BuildKit features, and distroless images.

    526 GitHub stars~3.2k tokensUpdated 10 mo ago
    DevOps & CloudAuto-check: notes
  • A skill your agent uses when you need framework-agnostic Docker and container image guidance for Java projects - Dockerfile design, multi-stage Maven builds, jlink custom runtimes, micro runtime…

    445 GitHub stars~1.4k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Containerization Assistant

    ArabelaTso/Skills-4-SE

    Generate Dockerfiles, Docker Compose configurations, and Kubernetes manifests for containerizing applications.

    253 GitHub stars~2.9k tokensUpdated 1 mo ago
    DevOps & CloudAuto-check: notes

More from jiushiwon/wg-skills

All 121 skills in this repo
  • Frontend UI Foundry

    jiushiwon/wg-skills

    A skill your agent uses when generating UI for a specific scenario (mobile/PC/官网/管理端/营销页/文档/金融/原生/3D), when refactoring an existing HTML/Vue/React project to a unified design system, when extracting…

    110 GitHub stars~1.4k tokensUpdated 3 days ago
    Auto-check passed
  • Workflow Diagram Skill

    jiushiwon/wg-skills

    A skill your agent uses when 用户想用一句话生成流程图、工作流图解、开发流程图、AI 流程图或任何步骤型图解,支持多风格输出(flat icon / 暖白手账风 / dark / cute),并提供现成模板一键出图。

    110 GitHub stars~1.2k tokensUpdated 3 days ago
    Auto-check passed
  • Uniapp App Generate Skill

    jiushiwon/wg-skills

    This skill should be used when the user wants to create a standardized uni-app project for WeChat mini-program, H5, and App from scratch.

    110 GitHub stars~5k tokensUpdated 3 days ago
    Auto-check: notes
  • Fastapi Init Skill

    jiushiwon/wg-skills

    FastAPI 项目一键初始化技能。面向零基础小白,提供环境探测、自动安装、完整 Web 骨架生成、SSE 流式框架、JWT 鉴权、统一响应封装、文件上传接口、一键启动/重启脚本、Swagger 文档,内置 MySQL(默认)/ PostgreSQL / MongoDB 数据库选择。用户只需说"帮我搭一个 FastAPI 项目"即可一条命令完成从零到跑的完整链路。触发词:"FastAPI…

    110 GitHub stars~1.8k tokensUpdated 3 days ago
    Auto-check: notes
  • Ffmpeg Skill

    jiushiwon/wg-skills

    FFmpeg 多媒体处理技能 — 将自然语言描述转为正确的 ffmpeg 命令,覆盖视频剪辑、转码、水印、合成、提取、生成等操作。内置一键安装脚本(Windows/Mac/Linux)。触发词:ffmpeg、视频剪辑、视频裁剪、视频转码、视频压缩、去水印、加水印、视频拼接、视频合成、提取音频、视频转…

    110 GitHub stars~1.4k tokensUpdated 3 days ago
    Auto-check passed
  • Frontend Request Skill

    jiushiwon/wg-skills

    A skill your agent uses when designing or reviewing the request layer of a frontend project (web / uni-app / mini-program), including request.ts wrappers, interceptors, deduplication, mocks, error…

    110 GitHub stars~3.6k tokensUpdated 3 days ago
    Auto-check passed

Works with

Questions about Java Install Skill

What does Java Install Skill do?

Java 安装子技能。支持 apt/dnf/Docker 方式安装指定版本的 JDK,幂等检测,已安装则提示。当用户说「安装 Java」「装 Java」时触发。. Java Install Skill is an agent skill from jiushiwon/wg-skills.

When should I use Java Install Skill?

Java Install Skill fits situations like: tasks that involve Skill management; tasks that involve Containers.

How do I install Java Install Skill in Claude Code?

Run `npx skills add jiushiwon/wg-skills --skill java-install-skill -a claude-code`. Or copy the skill folder (vibeCoding/super-deploy-skills/runtime-install-skill/children/java-install-skill in jiushiwon/wg-skills) into .claude/skills/java-install-skill in your project. Claude Code loads it when a task matches its description.

How do I install Java Install Skill in Codex?

Run `npx skills add jiushiwon/wg-skills --skill java-install-skill -a codex`. Or copy the skill folder (vibeCoding/super-deploy-skills/runtime-install-skill/children/java-install-skill in jiushiwon/wg-skills) into .agents/skills/java-install-skill in your project. Codex loads it when a task matches its description.

Can I use Java Install Skill in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jiushiwon/wg-skills --skill java-install-skill -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/java-install-skill, .gemini/skills/java-install-skill, .github/skills/java-install-skill and .opencode/skills/java-install-skill in your project.

What does Java Install Skill need to run?

Going by SKILL.md and its folder, Java Install Skill needs the command-line tools its instructions call (docker, java, apt, dnf, brew and winget). Our summary lists: Docker.

Does Java Install Skill access the network?

SKILL.md contains no URLs. Its commands use docker, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Java Install Skill safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Java Install Skill use?

Java Install Skill is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Java Install Skill use?

About 299 tokens (SKILL.md is roughly 1.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 865 tokens, read only when the agent opens those files.

What are the alternatives to Java Install Skill?

Skills that share tags, products or a category with Java Install Skill: Docker Jfr Benchmark Loop (eclipse-rdf4j/rdf4j, 420 stars), Opik Local Dev Environment (comet-ml/opik, 22k stars), Oci Functions Deploy (oracle/skills, 872 stars) and Writing Dockerfiles (ancoleman/ai-design-components, 526 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Java Install Skill?

jiushiwon (a GitHub user) maintains it in jiushiwon/wg-skills, which has 110 GitHub stars. The repository holds 121 skills in this directory. The repository was last updated on October 4, 2026.

Source: jiushiwon/wg-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.