edwardzhang/sps-cli/java

Claude Code and agent skill by edwardzhang/sps-cli

Trust tier 3
  • community
Source check pending

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

Java language skill — modern idioms (17+/21 LTS), records, streams, concurrency, testing. Pair with `backend` / `mobile` end skills and `coding-standards` for cross-language principles.

Install

npx vskill@latest install edwardzhang/sps-cli/java

SKILL.md

The same SKILL.md was published earlier as edwardzhang/sps-cli/java.

Java

Modern Java (17 LTS / 21 LTS+). Records, sealed types, switch patterns, virtual threads. Language-focused.

When to load

  • Project primary language is Java 17+ (LTS) or 21+ (virtual threads)
  • Reviewing Java code
  • Backend services (Spring Boot, Quarkus, Helidon, Micronaut)
  • Android (where Kotlin isn't used)
  • JVM interop with Kotlin / Scala

Core principles

  1. Records for data. Replace @Data Lombok classes and hand-written POJOs.
  2. Sealed types + pattern switch for sum types. Replace visitor pattern and instanceof chains.
  3. `var` for locals only. Never in method signatures / fields.
  4. `Optional<T>` for return values, never for fields or parameters.
  5. Virtual threads (21+) for I/O-bound concurrency. Replace manual thread pools and reactive chains where they exist only for thread efficiency.
  6. Unmodifiable collections by default. List.of(...), Map.of(...), Collectors.toUnmodifiableList().
  7. Checked exceptions for recoverable failures in libraries; runtime exceptions for programmer errors. Don't catch-and-rethrow just to convert one kind.
  8. `NullPointerException` is a bug. Don't normalize it with defensive null checks everywhere; design so the type system documents nullability.

How to use references

ReferenceWhen to load
`references/idioms.md`Records, sealed types, streams, Optional, collections, var
`references/concurrency.md`Virtual threads, CompletableFuture, ExecutorService, structured concurrency (preview)
`references/testing.md`JUnit 5, AssertJ, Mockito, Testcontainers

Forbidden patterns (auto-reject)

  • Raw types (List without <T>)
  • Vector, Hashtable, Stack (legacy, synchronized) — use modern collections
  • new Integer(...) etc. — use Integer.valueOf(...)
  • null return where Optional<T> would be expressive
  • Catching Exception / Throwable broadly without re-throw
  • String.format for log messages — use parameterized SLF4J (logger.info("x={}", x))
  • Mutable static fields for business data
  • Thread.sleep in request handlers
  • checkedException.wrap(RuntimeException) without cause chain
  • Anonymous inner classes where a lambda works
  • Date / Calendar / SimpleDateFormat — use java.time.* (since Java 8!)

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

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

Source

Popularity

Repository stars
3
7-day trend score
7

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/edwardzhang/sps-cli/java/badge)](https://verified-skill.com/skills/edwardzhang/sps-cli/java)

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