taoidle/plan-cascade/java

Claude Code and agent skill by taoidle/plan-cascade

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Java coding best practices. Use when writing or reviewing Java code (17+). Covers modern features, error handling, and patterns.

Install

npx vskill@latest install taoidle/plan-cascade/java

SKILL.md

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);
}

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
132
Repository forks
12
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/taoidle/plan-cascade/java/badge)](https://verified-skill.com/skills/taoidle/plan-cascade/java)

Something wrong with this skill or its page? Tell us.