Agent skill

Java Best Practices

by Taoidle in Taoidle/plan-cascade

Java coding best practices. An agent skill from Taoidle/plan-cascade.

MITAuto-check passedAgent Workflows

Install Java Best Practices

skills CLI
$ npx skills add Taoidle/plan-cascade --skill java-best-practices -a claude-code

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

GitHub CLI
$ gh skill install Taoidle/plan-cascade 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/Taoidle/plan-cascade.git skills-src && mkdir -p .claude/skills && cp -r skills-src/builtin-skills/java .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
133
Token cost
~519 tokens
SKILL.md length
85 words
Files
1
Skills in repo
6
Repo updated
First seen
Licence
MIT

At a glance

Java coding best practices. An agent skill from Taoidle/plan-cascade.

  • Reviewing Java code (17+)
  • SKILL.md covers Code Style, Modern Features, Error Handling and Project Structure, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Java Best Practices is an agent skill from Taoidle/plan-cascade. Java coding best practices. Use when writing or reviewing Java code (17+). Covers modern features, error handling, and patterns.

Its SKILL.md is about 520 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows. It works with Java. The repository describes itself as: AI-powered cascading development framework. Decompose complex projects into parallel executable tasks with auto-generated PRDs, design docs, and multi-agent collaboration (Claude… The licence is MIT.

When your agent uses it

  • Reviewing Java code (17+)

Example prompts

  • “/java-best-practices”

What it can do on your machine

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

    No scripts in the folder and no shell commands in SKILL.md (its code samples are java).

    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 519 tokens when it runs. Until then it costs about 37 tokens; SKILL.md has 85 words of instructions outside code blocks.

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

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 Taoidle/plan-cascade at commit 5223f82, republished under its MIT licence (© Taoidle). 85 words, ~519 tokens.

Download SKILL.mdSave it as .claude/skills/java-best-practices/SKILL.md (or your agent's skills folder).
name
java-best-practices
description
Java coding best practices. Use when writing or reviewing Java code (17+). Covers modern features, error handling, and patterns.
license
MIT
metadata.author
plan-cascade
metadata.version
1.0.0

Java Best Practices (17+)

Code Style

RuleGuideline
Formattergoogle-java-format
AnalysisSpotBugs, Error Prone
NamingClear, no abbreviations

Modern Features

FeatureUsage
RecordsImmutable data carriers
Sealed classesRestricted hierarchies
Pattern matchinginstanceof with binding
varLocal type inference
java
public record User(String id, String name) {}

if (obj instanceof String s && !s.isEmpty()) { process(s); }

public sealed interface Result<T> permits Success, Failure {}
record Success<T>(T value) implements Result<T> {}
record Failure<T>(Exception error) implements Result<T> {}

Error Handling

RuleGuideline
Specific exceptionsNot bare Exception
Try-with-resourcesFor AutoCloseable
java
try (var reader = new BufferedReader(new FileReader(path))) {
    return reader.lines().toList();
} catch (IOException e) {
    throw new ConfigException("Failed: " + path, e);
}

Project Structure

src/main/java/com/example/{domain,service}/
src/test/java/
pom.xml or build.gradle

Common Patterns

PatternUsage
OptionalNull-safe returns
Stream APIFunctional collections
BuilderComplex construction
java
public Optional<User> findById(String id) {
    return Optional.ofNullable(users.get(id));
}

Anti-Patterns

AvoidUse Instead
Returning nullOptional<T>
Mutable dataRecords
instanceof chainsPattern matching

Testing (JUnit 5 + AssertJ)

java
@Test void shouldProcess() {
    var service = new Service(mockRepo);
    var result = service.process(input);
    assertThat(result.status()).isEqualTo(SUCCESS);
}

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

Files

Just SKILL.md in builtin-skills/java of Taoidle/plan-cascade.

Open the folder on GitHubat commit 5223f82

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 skillTaoidle/plan-cascade133—~519Automated safety check: PassMIT
Add Remote Endpointnextcloud/android-library106—~1.1kAutomated safety check: PassCustom licence
Eclipse Analyzegradusnikov/eclipse-chatgpt-plugin171—~1.6kAutomated safety check: PassMIT
Eclipse Editgradusnikov/eclipse-chatgpt-plugin171—~1.1kAutomated safety check: PassMIT
Edt MCP ArchitectureDitriXNew/EDT-MCP295—~1.2kAutomated safety check: PassAGPL-3.0
Module Analyzer Generate DocLeoYeAI/openclaw-master-skills2.2k—~3.4kAutomated safety check: PassMIT

Similar skills

  • Add Remote Endpoint

    nextcloud/android-library

    A skill your agent uses when adding a new remote/network endpoint (a RemoteOperation / OCSRemoteOperation) to this Nextcloud Android library, or when the user says "add an endpoint", "new remote…

    106 GitHub stars~1.1k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Eclipse Analyze

    gradusnikov/eclipse-chatgpt-plugin

    Analyze Java code using Eclipse JDT tools — type hierarchy, find references, call hierarchy, compilation errors, quick fixes, and import suggestions.

    171 GitHub stars~1.6k tokensUpdated 10 days ago
    Agent WorkflowsAuto-check passed
  • Eclipse Edit

    gradusnikov/eclipse-chatgpt-plugin

    Edit files in Eclipse projects using MCP tools. An agent skill from gradusnikov/eclipse-chatgpt-plugin.

    171 GitHub stars~1.1k tokensUpdated 10 days ago
    Agent WorkflowsAuto-check passed
  • Edt MCP Architecture

    DitriXNew/EDT-MCP

    Map of the EDT-MCP plugin's target architecture — where the shared helpers live, the layering rules, and the canonical way to do project/metadata/code resolution.

    295 GitHub stars~1.2k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Module Analyzer Generate Doc

    LeoYeAI/openclaw-master-skills

    Java/Maven single-module deep documentation generator. An agent skill from LeoYeAI/openclaw-master-skills.

    2.2k GitHub stars~3.4k tokensUpdated 2 mo ago
    Agent WorkflowsAuto-check passed
  • 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

More from Taoidle/plan-cascade

  • Go Best Practices

    Taoidle/plan-cascade

    Go coding best practices. An agent skill from Taoidle/plan-cascade.

    133 GitHub stars~541 tokensUpdated 6 mo ago
    Auto-check passed
  • Hybrid Ralph

    Taoidle/plan-cascade

    Hybrid architecture combining Ralph's PRD format with Planning-with-Files' structured approach.

    133 GitHub stars~4.1k tokensUpdated 6 mo ago
    Auto-check: notes
  • Mega Plan

    Taoidle/plan-cascade

    Project-level multi-task orchestration system. An agent skill from Taoidle/plan-cascade.

    133 GitHub stars~3.4k tokensUpdated 6 mo ago
    Auto-check: notes
  • Python Best Practices

    Taoidle/plan-cascade

    Python coding best practices. An agent skill from Taoidle/plan-cascade.

    133 GitHub stars~463 tokensUpdated 6 mo ago
    Auto-check passed
  • Typescript Best Practices

    Taoidle/plan-cascade

    TypeScript/Node.js best practices. An agent skill from Taoidle/plan-cascade.

    133 GitHub stars~534 tokensUpdated 6 mo ago
    Auto-check passed

Works with

Questions about Java Best Practices

What does Java Best Practices do?

Java coding best practices. An agent skill from Taoidle/plan-cascade. Java Best Practices is an agent skill from Taoidle/plan-cascade. Java coding best practices.

When should I use Java Best Practices?

Java Best Practices fits situations like: reviewing Java code (17+).

How do I install Java Best Practices in Claude Code?

Run `npx skills add Taoidle/plan-cascade --skill java-best-practices -a claude-code`. Or copy the skill folder (builtin-skills/java in Taoidle/plan-cascade) 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 Taoidle/plan-cascade --skill java-best-practices -a codex`. Or copy the skill folder (builtin-skills/java in Taoidle/plan-cascade) 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 Taoidle/plan-cascade --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?

SKILL.md names no scripts, command-line tools or credentials: Java Best Practices is instructions for the agent only.

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?

Java Best Practices is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Java Best Practices use?

About 519 tokens (SKILL.md is roughly 2.1k 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: Add Remote Endpoint (nextcloud/android-library, 106 stars), Eclipse Analyze (gradusnikov/eclipse-chatgpt-plugin, 171 stars), Eclipse Edit (gradusnikov/eclipse-chatgpt-plugin, 171 stars) and Edt MCP Architecture (DitriXNew/EDT-MCP, 295 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?

Taoidle (a GitHub user) maintains it in Taoidle/plan-cascade, which has 133 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on March 14, 2026.

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