sickn33/agentic-awesome-skills/java
Claude Code and agent skill by sickn33/agentic-awesome-skills
- community
Checking that the SKILL.md file is still in the repository.
Language-specific super-code guidelines for java.
Install
npx vskill@latest install sickn33/agentic-awesome-skills/javaSKILL.md
Java: Idiomatic Efficiency Reference
Apply only within the requested scope and current project conventions. Preserve behavior, ownership, error handling, accessibility and security; examples are independent fragments, not equivalent rewrites in every context. Verify language/library versions and run relevant checks. Required tests and user-facing progress/results take precedence over brevity rules. Do not install dependencies or delete files merely to follow these examples.
When to Use
- Use this skill when the task matches this description: Language-specific super-code guidelines for java.
Table of Contents
- Streams & Collections
- Optional
- Records & Data Classes
- Switch Expressions
- Concurrency
- Error Handling
- Anti-patterns specific to Java
1. Streams & Collections {#streams}
Prefer method references (`Item::isActive`) over equivalent lambdas (`item -> item.isActive()`).
2. Optional {#optional}
3. Records & Data Classes {#records}
Use `record` for any immutable data carrier. Keep builders only for objects with many optional fields.
4. Switch Expressions {#switch}
5. Concurrency {#concurrency}
Prefer `CompletableFuture.allOf()` over blocking `.get()` chains for parallel async work.
6. Error Handling {#errors}
7. Anti-patterns specific to Java {#antipatterns}
| Anti-pattern | Preferred | |
|---|---|---|
new ArrayList<String>() (Java 7+) | new ArrayList<>() (diamond) | |
"string".equals(variable) (Yoda) | Objects.equals(variable, "string") | |
for (int i = 0; i < list.size(); i++) | enhanced for or stream | |
StringBuffer in single-threaded code | StringBuilder | |
e.printStackTrace() | log.error("msg", e) | |
null return for "not found" | Optional<T> return type | |
| Public fields | private + accessor, or record | |
Mutable static fields | avoid; use dependency injection | |
instanceof + cast without pattern matching | pattern matching (Java 16+) |
Limitations
- These are language-specific guidelines and do not cover overall architectural decisions.
- Over-compression might reduce readability; apply judgement.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/super-code/java/SKILL.md
Popularity
- Repository stars
- 48,505
- Repository forks
- 7,052
- 7-day trend score
- 54
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/sickn33/agentic-awesome-skills/java)