diegopacheco/ai-playground/java-expert

Claude Code and agent skill by diegopacheco/ai-playground

Trust tier 3
  • community
  • ext:[{"type":"template","description":"Custom templates for code generation"}]
Source check pending

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

Expert knowledge of Java 25 features including virtual threads, pattern matching,

Install

npx vskill@latest install diegopacheco/ai-playground/java-expert

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as diegopacheco/ai-playground/java-expert.

Java 25 Expert Skill

Overview

Provides expert guidance on Java 25 language features and best practices.

Key Java 25 Features

Virtual Threads (Project Loom)
  • Use Thread.ofVirtual().start(runnable) for lightweight concurrency
  • Virtual threads are ideal for I/O-bound workloads
  • Use Executors.newVirtualThreadPerTaskExecutor() for thread pools
Pattern Matching
  • Switch expressions with pattern matching
  • Deconstruction patterns for records
  • Guarded patterns with when clauses
Records
  • Immutable data carriers with auto-generated constructors, equals, hashCode, toString
  • Custom compact constructors for validation
Sealed Classes
  • Restrict class hierarchies with sealed, permits
  • Enable exhaustive pattern matching
String Templates (Preview)
  • Template processors like STR."\{value}"
  • Custom template processors

Best Practices

  • Prefer records over plain POJOs for data transfer
  • Use sealed interfaces for algebraic data types
  • Leverage virtual threads for high-throughput servers
  • Use pattern matching to eliminate instanceof casts

Examples

java
record Point(int x, int y) {}
sealed interface Shape permits Circle, Rectangle {}
record Circle(Point center, double radius) implements Shape {}
record Rectangle(Point topLeft, Point bottomRight) implements Shape {}
String describe(Shape shape) {
return switch (shape) {
case Circle c when c.radius() > 10 -> "Large circle";
case Circle c -> "Small circle";
case Rectangle r -> "Rectangle";
};
}

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

7-day trend score
5

Not refreshed yet.

Extension points

  • templateCustom templates for code generation

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/diegopacheco/ai-playground/java-expert/badge)](https://verified-skill.com/skills/diegopacheco/ai-playground/java-expert)

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