Java
ericrisco/rsc-harness
A skill your agent uses when writing, reviewing or refactoring modern Java (21+, 25 LTS) — records and sealed interfaces as algebraic data types, exhaustive pattern-matching switch over instanceof…
Modern Java (17/21+ LTS) idioms: records, sealed classes, pattern matching switch, Optional hygiene, streams, and JUnit 5 testing.
$ npx skills add irahardianto/awesome-agv --skill java-idioms -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install irahardianto/awesome-agv java-idioms --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/irahardianto/awesome-agv.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/java-idioms .claude/skills/java-idioms && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "java-idioms" agent skill from https://github.com/irahardianto/awesome-agv/tree/main/.agents/skills/java-idioms into .claude/skills/java-idioms/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "java-idioms", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/irahardianto/awesome-agv/tree/main/.agents/skills/java-idiomsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add irahardianto/awesome-agv --skill java-idioms -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install irahardianto/awesome-agv java-idioms --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/irahardianto/awesome-agv.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/java-idioms .agents/skills/java-idioms && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "java-idioms" agent skill from https://github.com/irahardianto/awesome-agv/tree/main/.agents/skills/java-idioms into .agents/skills/java-idioms/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "java-idioms", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add irahardianto/awesome-agv --skill java-idioms -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install irahardianto/awesome-agv java-idioms --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/irahardianto/awesome-agv.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/java-idioms .cursor/skills/java-idioms && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "java-idioms" agent skill from https://github.com/irahardianto/awesome-agv/tree/main/.agents/skills/java-idioms into .cursor/skills/java-idioms/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "java-idioms", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/irahardianto/awesome-agv.git --path .agents/skills/java-idioms--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add irahardianto/awesome-agv --skill java-idioms -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install irahardianto/awesome-agv java-idioms --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/irahardianto/awesome-agv.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/java-idioms .gemini/skills/java-idioms && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "java-idioms" agent skill from https://github.com/irahardianto/awesome-agv/tree/main/.agents/skills/java-idioms into .gemini/skills/java-idioms/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "java-idioms", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install irahardianto/awesome-agv java-idiomsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add irahardianto/awesome-agv --skill java-idioms -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/irahardianto/awesome-agv.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/java-idioms .github/skills/java-idioms && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "java-idioms" agent skill from https://github.com/irahardianto/awesome-agv/tree/main/.agents/skills/java-idioms into .github/skills/java-idioms/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "java-idioms", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add irahardianto/awesome-agv --skill java-idioms -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install irahardianto/awesome-agv java-idioms --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/irahardianto/awesome-agv.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/java-idioms .opencode/skills/java-idioms && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "java-idioms" agent skill from https://github.com/irahardianto/awesome-agv/tree/main/.agents/skills/java-idioms into .opencode/skills/java-idioms/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "java-idioms", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
java-idiomsModern Java (17/21+ LTS) idioms: records, sealed classes, pattern matching switch, Optional hygiene, streams, and JUnit 5 testing.
Java Idioms is an agent skill from irahardianto/awesome-agv. Modern Java (17/21+ LTS) idioms: records, sealed classes, pattern matching switch, Optional hygiene, streams, and JUnit 5 testing. Use when writing, refactoring, or reviewing Java core logic, domain models, or libraries. Pair with spring-boot-idioms for Spring services.
Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development, covering Backend development and Refactoring. It works with Java, JUnit and Spring Boot. The repository describes itself as: Comprehensive sets of standards and practices designed to elevate the capabilities of AI coding agents. The licence is MIT.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 9e997ba. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
mvngradleFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Java Idioms loads about 1.5k tokens when it runs. Until then it costs about 71 tokens; SKILL.md has 273 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from irahardianto/awesome-agv at commit 9e997ba, republished under its MIT licence (© irahardianto). 273 words, ~1,485 tokens.
.claude/skills/java-idioms/SKILL.md (or your agent's skills folder).Java rewards clarity, type safety, and robust ecosystem tooling. Modern Java (17+ LTS) favors records, sealed classes, and pattern matching. Idiomatic Java = clean, readable, framework-aware.
Scope: Java coding idioms. Test naming: .agents/rules/testing-strategy.md. Logging:
@.agents/skills/logging-implementation/SKILL.md.
Records for immutable data carriers:
// ✅ Concise, immutable, auto-generated equals/hashCode/toString
public record CreateTaskRequest(String title, Priority priority) {}
// ❌ Verbose boilerplate POJO
public class CreateTaskRequest { /* getters, setters, equals, hashCode... */ }Sealed classes for constrained hierarchies:
public sealed interface TaskResult permits Success, Failure, Pending {}
public record Success(Task task) implements TaskResult {}
public record Failure(String reason) implements TaskResult {}
public record Pending(String taskId) implements TaskResult {}Pattern matching with switch:
return switch (result) {
case Success(var task) -> ResponseEntity.ok(task);
case Failure(var reason) -> ResponseEntity.badRequest().body(reason);
case Pending(var id) -> ResponseEntity.accepted().body(id);
};Text blocks for queries and templates:
String query = """
SELECT t.id, t.title, t.priority
FROM tasks t
WHERE t.user_id = ?
ORDER BY t.created_at DESC
""";Virtual threads (21+) for I/O-bound work:
try (var executor = Executors.newVirtualThreadPerTaskExecutor()) {
executor.submit(() -> fetchUser(userId));
executor.submit(() -> fetchTasks(userId));
}Domain exception hierarchies — never raw Exception:
public abstract class DomainException extends RuntimeException {
protected DomainException(String message) { super(message); }
}
public class NotFoundException extends DomainException {
private final String resource;
private final String resourceId;
public NotFoundException(String resource, String resourceId) {
super(String.format("%s '%s' not found", resource, resourceId));
this.resource = resource;
this.resourceId = resourceId;
}
}Never catch Exception broadly — catch specific exceptions. Never swallow exceptions silently.
Optional for nullable returns — never for parameters:
// ✅ Return type
public Optional<Task> findById(String id) { ... }
// ❌ Parameter — use overloading or @Nullable instead
public void process(Optional<String> filter) { ... }Program to interfaces, inject via constructor:
// ✅ Interface in consumer package
public interface TaskStorage {
Task getById(String id);
void save(Task task);
}
// ✅ Constructor injection (Spring auto-wires)
@Service
public class TaskService {
private final TaskStorage storage;
public TaskService(TaskStorage storage) { this.storage = storage; }
}Prefer constructor injection over @Autowired field injection. No field injection — ever.
static final).TaskService not ITaskService. userId not strUserId.com.example.task not com.example.task_management.Test naming, pyramid: .agents/rules/testing-strategy.md. Java-specific tooling below.
JUnit 5 + AssertJ:
@Test
void calculateDiscount_returnsZero_whenNoItems() {
var result = calculator.calculateDiscount(List.of(), coupon);
assertThat(result).isEqualTo(0.0);
}@ParameterizedTest for table-driven tests:
@ParameterizedTest
@CsvSource({"low,1", "medium,5", "high,10"})
void priorityScore_mapsCorrectly(String priority, int expected) {
assertThat(Priority.score(priority)).isEqualTo(expected);
}Mockito for mocking — never PowerMock:
@ExtendWith(MockitoExtension.class)
class TaskServiceTest {
@Mock TaskStorage storage;
@InjectMocks TaskService service;
}TestContainers for integration tests — real DB, no in-memory substitutes for critical paths.
Must pass zero warnings/errors before commit. See .agents/rules/code-idioms-and-conventions.md.
| Tool | Purpose | Command |
|---|---|---|
google-java-format | Canonical formatting | google-java-format --replace src/**/*.java |
SpotBugs | Bug detection | mvn spotbugs:check or gradle spotbugsMain |
Error Prone | Compile-time bug detection | Compiler plugin |
Checkstyle | Style enforcement | mvn checkstyle:check |
SonarQube | Comprehensive analysis | CI integration |
OWASP Dependency-Check | CVE scanning | mvn dependency-check:check |
© irahardianto, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/java-idioms of irahardianto/awesome-agv.
Open the folder on GitHubat commit 9e997ba
Java Idioms next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Java Idioms this skillirahardianto/awesome-agv | 157 | — | ~1.5k | Automated safety check: Pass | MIT | |
| Javaericrisco/rsc-harness | 156 | — | ~4.6k | Automated safety check: Pass | MIT | |
| Java Rulessoftspark/ai-toolkit | 179 | — | ~3.1k | Automated safety check: Pass | Apache-2.0 | |
| Spring Bootpiomin/claude-ai-spring-boot | 1.3k | — | ~2k | Automated safety check: Pass | Apache-2.0 | |
| Java ArchitectJeffallan/claude-skills | 12k | — | ~1.5k | Automated safety check: Pass | MIT | |
| Java TestingHoangNguyen0403/agent-skills-standard | 570 | — | ~1k | Automated safety check: Pass | MIT |
ericrisco/rsc-harness
A skill your agent uses when writing, reviewing or refactoring modern Java (21+, 25 LTS) — records and sealed interfaces as algebraic data types, exhaustive pattern-matching switch over instanceof…
softspark/ai-toolkit
Java coding rules: style, patterns, security, testing. An agent skill from softspark/ai-toolkit.
piomin/claude-ai-spring-boot
Spring Boot 3.x development - REST APIs, JPA, Security, Testing, and Cloud-native patterns.
Jeffallan/claude-skills
Builds Spring Boot 3.x services on Java 21 with domain-driven design, WebFlux, JPA tuning and Spring Security using OAuth2 and JWT, verified by Maven or Gradle builds.
HoangNguyen0403/agent-skills-standard
Testing standards using JUnit 5, AssertJ, Mockito, Cucumber, and Spring Boot integration tests for Java.
apache/grails-core
Guidance for Groovy 5 work in Grails projects: syntax, closures, traits, DSLs, metaprogramming, Spock tests, static compilation and Java 21 integration.
irahardianto/awesome-agv
Commits to one bold aesthetic direction, sets up a CSS token system for it, then builds the interface in Vue or plain HTML using those tokens.
irahardianto/awesome-agv
Profile-driven performance optimization protocol. An agent skill from irahardianto/awesome-agv.
irahardianto/awesome-agv
Coding conventions for Angular 19 and later: standalone components, signals, OnPush change detection, lazy routes and where RxJS still belongs.
irahardianto/awesome-agv
Rules for designing CI/CD pipelines in layers: universal lint, test and scan stages, container builds with SBOM attestation, and GitOps for orchestrated deployments.
irahardianto/awesome-agv
Hono lightweight web framework patterns: type-safe route handlers, middleware composition, Zod validation, and RPC clients for Cloudflare Workers, Node, or Bun.
irahardianto/awesome-agv
Mobile E2E testing patterns — Flutter integrationtest, Patrol, Maestro, golden testing, device matrix, and test data management.
Works with
Categories
Modern Java (17/21+ LTS) idioms: records, sealed classes, pattern matching switch, Optional hygiene, streams, and JUnit 5 testing. Java Idioms is an agent skill from irahardianto/awesome-agv. Modern Java (17/21+ LTS) idioms: records, sealed classes, pattern matching switch, Optional hygiene, streams, and JUnit 5 testing.
Java Idioms fits situations like: reviewing Java core logic; tasks that involve Backend development; tasks that involve Refactoring.
Run `npx skills add irahardianto/awesome-agv --skill java-idioms -a claude-code`. Or copy the skill folder (.agents/skills/java-idioms in irahardianto/awesome-agv) into .claude/skills/java-idioms in your project. Claude Code loads it when a task matches its description.
Run `npx skills add irahardianto/awesome-agv --skill java-idioms -a codex`. Or copy the skill folder (.agents/skills/java-idioms in irahardianto/awesome-agv) into .agents/skills/java-idioms in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add irahardianto/awesome-agv --skill java-idioms -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/java-idioms, .gemini/skills/java-idioms, .github/skills/java-idioms and .opencode/skills/java-idioms in your project.
Going by SKILL.md and its folder, Java Idioms needs the command-line tools its instructions call (mvn and gradle).
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Java Idioms is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.5k tokens (SKILL.md is roughly 5.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Java Idioms: Java (ericrisco/rsc-harness, 156 stars), Java Rules (softspark/ai-toolkit, 179 stars), Spring Boot (piomin/claude-ai-spring-boot, 1.3k stars) and Java Architect (Jeffallan/claude-skills, 12k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
irahardianto (a GitHub user) maintains it in irahardianto/awesome-agv, which has 157 GitHub stars. The repository holds 34 skills in this directory. The repository was last updated on October 5, 2026.
Source: irahardianto/awesome-agv on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.