Agent skill

Java Best Practices

by Leavesfly in Leavesfly/Jimi

“Java 编码最佳实践与设计模式”

— description from SKILL.md by Leavesfly
No licenceAuto-check passed

Install Java Best Practices

skills CLI
$ npx skills add Leavesfly/Jimi --skill java-best-practices -a claude-code

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

GitHub CLI
$ gh skill install Leavesfly/Jimi java-best-practices --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/Leavesfly/Jimi.git skills-src && mkdir -p .claude/skills && cp -r skills-src/src/main/resources/skills/java-best-practices .claude/skills/java-best-practices && 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-best-practices
GitHub stars
237
Token cost
~381 tokens
SKILL.md length
19 words
Files
2
Skills in repo
9
Repo updated
First seen
Licence
None found

At a glance

  • SKILL.md covers 编码规范, Stream API, 异常处理 and 并发编程, plus 1 more section
  • Runs Shell scripts from its folder

About this skill

Java Best Practices is a skill in Leavesfly/Jimi (237 stars). Its SKILL.md is about 381 tokens, with 1 other file in the folder. No licence found.

What it can do on your machine

Read from SKILL.md and the folder at commit 75e1158. 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

    Ships script files (Shell), which the agent can run.

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

  • Network

    No URLs in SKILL.md.

    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 Best Practices loads about 381 tokens when it runs. Until then it costs about 9 tokens; SKILL.md has 19 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~9
When it runs · the whole SKILL.md, loaded when a task matches
~381

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

Without a licence we can't republish the file, so here is its outline and opening line. It has 19 words (~381 tokens).

name
java-best-practices
version
1.0.0
category
development
triggers
java best practice, Java 最佳实践, 设计模式, Java 编码规范
scriptPath
check-java-env.sh
scriptType
bash
autoExecute
true
scriptTimeout
5

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file in src/main/resources/skills/java-best-practices of Leavesfly/Jimi.

  • SKILL.md
  • check-java-env.sh

Open the folder on GitHubat commit 75e1158

Compare with similar skills

Java Best Practices 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 Best Practices compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Java Best Practices this skillLeavesfly/Jimi237—~381Automated safety check: PassNone
Brainstormingxpinjection/test-driven-spring-boot11254 repos~2.6kAutomated safety check: PassMIT
Android API Diffgkd-kit/gkd43k—~796Automated safety check: PassGPL-3.0
Video Cover Imageitwanger/toBeBetterJavaer18k—~3.3kAutomated safety check: PassNone
Lancedb Update Lance Dependencylancedb/lancedb12k—~1.1kAutomated safety check: PassApache-2.0
Java SDK E2E Test with Replay Snapshotgithub/copilot-sdk11k—~1.8kAutomated safety check: PassMIT

Similar skills

  • Brainstorming

    xpinjection/test-driven-spring-boot

    You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior.

    112 GitHub starsUsed in 54 repos~2.6k tokens
    Agent WorkflowsAuto-check passed
  • Android API Diff

    gkd-kit/gkd

    Looks up Android framework Java and AIDL APIs across versions with the android-api-diff CLI: signatures, availability, source files and hidden-API access code.

    43k GitHub stars~796 tokensUpdated yesterday
    MobileAuto-check passed
  • Video Cover Image

    itwanger/toBeBetterJavaer

    Generate matched 3:4, 16:9, and 4:3 short-video cover images from toBeBetterJavaer video scripts or AI/Java technical topics.

    18k GitHub stars~3.3k tokensUpdated today
    Media & CreativeAuto-check passed
  • Update LanceDB to a specific Lance release or tag. An agent skill from lancedb/lancedb.

    12k GitHub stars~1.1k tokensUpdated today
    DatabasesAuto-check passed
  • Official

    Creates a Java SDK end-to-end test for the Copilot SDK that runs against a recorded YAML snapshot through a replay proxy, so CI needs no real authentication.

    11k GitHub stars~1.8k tokensUpdated today
    Testing & QAAuto-check passed
  • Fory Release

    apache/fory

    Prepare an Apache Fory release candidate from a clean release branch, including the version bump, RC tag, JVM staging, ASF source artifacts, SVN upload, and vote email.

    4.6k GitHub stars~2.9k tokensUpdated today
    Auto-check passed

More from Leavesfly/Jimi

All 9 skills in this repo
  • Weather

    Leavesfly/Jimi

    Get current weather and forecasts (no API key required). An agent skill from Leavesfly/Jimi.

    237 GitHub starsUsed in 19 repos~287 tokens
    Auto-check passed
  • API Design

    Leavesfly/Jimi

    RESTful API design best practices and conventions guide. An agent skill from Leavesfly/Jimi.

    237 GitHub stars~349 tokensUpdated 1 mo ago
    Auto-check passed
  • Database Design

    Leavesfly/Jimi

    数据库设计规范与优化指南

    237 GitHub stars~1.1k tokensUpdated 1 mo ago
    Auto-check passed
  • Git Commit Guide

    Leavesfly/Jimi

    Git 提交规范(Conventional Commits)

    237 GitHub stars~864 tokensUpdated 1 mo ago
    Auto-check passed
  • Unit Testing

    Leavesfly/Jimi

    Java单元测试编写指南(基于JUnit和Mockito)

    237 GitHub stars~667 tokensUpdated 1 mo ago
    Auto-check passed
  • Code Review

    Leavesfly/Jimi

    代码审查最佳实践指南

    237 GitHub stars~297 tokensUpdated 1 mo ago
    Auto-check passed

Works with

Questions about Java Best Practices

How do I install Java Best Practices in Claude Code?

Run `npx skills add Leavesfly/Jimi --skill java-best-practices -a claude-code`. Or copy the skill folder (src/main/resources/skills/java-best-practices in Leavesfly/Jimi) into .claude/skills/java-best-practices in your project. Claude Code loads it when a task matches its description.

How do I install Java Best Practices in Codex?

Run `npx skills add Leavesfly/Jimi --skill java-best-practices -a codex`. Or copy the skill folder (src/main/resources/skills/java-best-practices in Leavesfly/Jimi) into .agents/skills/java-best-practices in your project. Codex loads it when a task matches its description.

Can I use Java Best Practices 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 Leavesfly/Jimi --skill java-best-practices -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-best-practices, .gemini/skills/java-best-practices, .github/skills/java-best-practices and .opencode/skills/java-best-practices in your project.

What does Java Best Practices need to run?

Going by SKILL.md and its folder, Java Best Practices needs a shell for the scripts in its folder.

Does Java Best Practices access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Java Best Practices 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 Best Practices use?

No licence was found for Java Best Practices or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Java Best Practices use?

About 381 tokens (SKILL.md is roughly 1.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Java Best Practices?

Skills that share tags, products or a category with Java Best Practices: Brainstorming (xpinjection/test-driven-spring-boot, 112 stars), Android API Diff (gkd-kit/gkd, 43k stars), Video Cover Image (itwanger/toBeBetterJavaer, 18k stars) and Lancedb Update Lance Dependency (lancedb/lancedb, 12k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Java Best Practices?

Leavesfly (a GitHub user) maintains it in Leavesfly/Jimi, which has 237 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on August 19, 2026.

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