npx skills add sickn33/agentic-awesome-skills --skill java --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Java: Idiomatic Efficiency Reference ## When to Use - Use this skill when the task matches this description: Language-specific super-code guidelines for java. ## Table of Contents 1. [Streams & Collections](#streams) 2. [Optional](#optional) 3. [Records & Data Classes](#records) 4. [Switch Expressions](#switch) 5. [Concurrency](#concurrency) 6. [Error Handling](#errors) 7. [Anti-patterns specific to Java](#antipatterns) --- ## 1. Streams & Collections {#streams} ```java // ❌ Imperative accumulation List<String> result = new ArrayList<>(); for (Item item : items) { if (item.isActive()) result.add(item.getName().toUpperCase()); } // ✅ List<String> result = items.stream() .filter(Item::isActive) .map(item -> item.getName().toUpperCase()) .toList(); // Java 16+; use .collect(Collectors.toList()) before ``` ```java // ❌ Manual grouping Map<String, List<Item>> grouped = new HashMap<>(); for (Item item : items) { grouped.computeIfAbsent(item.getCategory(), k -> new ArrayList<>()).add(item); } // ✅ Map<String, List<Item>> grouped = items.stream() .collect(Collectors.groupingBy(Item::getCategory)); ``` ```java // ❌ Manual sum int total = 0; for (Order o : orders) total += o.getAmount(); /
- When to Use
- Table of Contents
- 1. Streams & Collections {#streams}
- 2. Optional {#optional}
- 3. Records & Data Classes {#records}
- 4. Switch Expressions {#switch}
- 5. Concurrency {#concurrency}
- 6. Error Handling {#errors}
- 7. Anti-patterns specific to Java {#antipatterns}
- Limitations
What does the java skill do?
Language-specific super-code guidelines for java.
How do I install it?
Run `npx skills add sickn33/agentic-awesome-skills --skill java --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From sickn33/agentic-awesome-skills, a repository with 44,414 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.