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/javaSKILL.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
- Records for data. Replace
@DataLombok classes and hand-written POJOs. - Sealed types + pattern switch for sum types. Replace visitor pattern and
instanceofchains. - `var` for locals only. Never in method signatures / fields.
- `Optional<T>` for return values, never for fields or parameters.
- Virtual threads (21+) for I/O-bound concurrency. Replace manual thread pools and reactive chains where they exist only for thread efficiency.
- Unmodifiable collections by default.
List.of(...),Map.of(...),Collectors.toUnmodifiableList(). - Checked exceptions for recoverable failures in libraries; runtime exceptions for programmer errors. Don't catch-and-rethrow just to convert one kind.
- `NullPointerException` is a bug. Don't normalize it with defensive
nullchecks everywhere; design so the type system documents nullability.
How to use references
| Reference | When 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 (
Listwithout<T>) Vector,Hashtable,Stack(legacy, synchronized) — use modern collectionsnew Integer(...)etc. — useInteger.valueOf(...)nullreturn whereOptional<T>would be expressive- Catching
Exception/Throwablebroadly without re-throw String.formatfor log messages — use parameterized SLF4J (logger.info("x={}", x))- Mutable static fields for business data
Thread.sleepin request handlerscheckedException.wrap(RuntimeException)without cause chain- Anonymous inner classes where a lambda works
Date/Calendar/SimpleDateFormat— usejava.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
- SKILL.md in the repositoryCheckingskills/java/SKILL.md
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
[](https://verified-skill.com/skills/edwardzhang/sps-cli/java)