java-expert
БесплатноБез исполняемых скриптовНе проверенExpert knowledge of Java 25 features including virtual threads, pattern matching, records, sealed classes, value types, and Project Loom/Valhalla features…
от diegopacheco★ 21 звезда на GitHubОб этом скилле
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
whenclauses
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
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";
};
}
Установить java-expert в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepFAQ
Что делает скилл java-expert?
Expert knowledge of Java 25 features including virtual threads, pattern matching, records, sealed classes, value types, and Project Loom/Valhalla features. Use when the user asks about Java programming, Java 25 features, concurrency, performance optimization, or modern Java idioms.
Как установить скилл java-expert?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл java-expert запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic