Java Architect
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.
Java coding rules: style, patterns, security, testing. An agent skill from softspark/ai-toolkit.
$ npx skills add softspark/ai-toolkit --skill java-rules -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install softspark/ai-toolkit java-rules --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/softspark/ai-toolkit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/app/skills/java-rules .claude/skills/java-rules && 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-rules" agent skill from https://github.com/softspark/ai-toolkit/tree/main/app/skills/java-rules into .claude/skills/java-rules/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "java-rules", 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/softspark/ai-toolkit/tree/main/app/skills/java-rulesType 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 softspark/ai-toolkit --skill java-rules -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install softspark/ai-toolkit java-rules --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/softspark/ai-toolkit.git skills-src && mkdir -p .agents/skills && cp -r skills-src/app/skills/java-rules .agents/skills/java-rules && 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-rules" agent skill from https://github.com/softspark/ai-toolkit/tree/main/app/skills/java-rules into .agents/skills/java-rules/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "java-rules", 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 softspark/ai-toolkit --skill java-rules -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install softspark/ai-toolkit java-rules --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/softspark/ai-toolkit.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/app/skills/java-rules .cursor/skills/java-rules && 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-rules" agent skill from https://github.com/softspark/ai-toolkit/tree/main/app/skills/java-rules into .cursor/skills/java-rules/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "java-rules", 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/softspark/ai-toolkit.git --path app/skills/java-rules--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 softspark/ai-toolkit --skill java-rules -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install softspark/ai-toolkit java-rules --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/softspark/ai-toolkit.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/app/skills/java-rules .gemini/skills/java-rules && 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-rules" agent skill from https://github.com/softspark/ai-toolkit/tree/main/app/skills/java-rules into .gemini/skills/java-rules/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "java-rules", 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 softspark/ai-toolkit java-rulesInstalls 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 softspark/ai-toolkit --skill java-rules -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/softspark/ai-toolkit.git skills-src && mkdir -p .github/skills && cp -r skills-src/app/skills/java-rules .github/skills/java-rules && 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-rules" agent skill from https://github.com/softspark/ai-toolkit/tree/main/app/skills/java-rules into .github/skills/java-rules/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "java-rules", 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 softspark/ai-toolkit --skill java-rules -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install softspark/ai-toolkit java-rules --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/softspark/ai-toolkit.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/app/skills/java-rules .opencode/skills/java-rules && 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-rules" agent skill from https://github.com/softspark/ai-toolkit/tree/main/app/skills/java-rules into .opencode/skills/java-rules/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "java-rules", 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-rulesJava coding rules: style, patterns, security, testing. An agent skill from softspark/ai-toolkit.
Java Rules is an agent skill from softspark/ai-toolkit. Java coding rules: style, patterns, security, testing. Triggers: .java, pom.xml, build.gradle, Spring, Spring Boot, JPA, Hibernate, JUnit, Maven, Gradle.
Its SKILL.md is about 3.1k 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 Backend & APIs, covering Backend development, ORMs and data access and Unit testing. It works with Java, Gradle, Spring Boot and JUnit. The repository describes itself as: Professional-grade AI coding toolkit: 94 skills, 44 agents, multi-platform (Claude, Cursor, Windsurf, Copilot, Gemini, Cline, Roo Code, Aider, Augment, Antigravity, Codex CLI… The licence is Apache-2.0.
Read from SKILL.md and the folder at commit d64db2b. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
ReadFrom allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
mvnFrom 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 Rules loads about 3.1k tokens when it runs. Until then it costs about 41 tokens; SKILL.md has 1,468 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 softspark/ai-toolkit at commit d64db2b, republished under its Apache-2.0 licence (© softspark). 1,468 words, ~3,141 tokens.
.claude/skills/java-rules/SKILL.md (or your agent's skills folder).These rules come from app/rules/java/ in ai-toolkit. They cover
the project's standards for coding style, frameworks, patterns,
security, and testing in Java. Apply them when writing or
reviewing Java code.
static final).com.company.project).I prefix on interfaces.record for immutable data carriers. No need for Lombok in most cases.sealed classes/interfaces for restricted hierarchies.if (obj instanceof String s) instead of cast.switch expressions with arrow syntax and exhaustiveness.""") for multiline strings (SQL, JSON, HTML).var for local variables when the type is obvious from the right-hand side.Optional<T> for return types that may be absent. Never for fields or params.List.of(), Map.of(), Set.of() for immutable collections.Stream for collection transformations. Avoid streams for simple iterations.final on classes not designed for extension.private constructors + static factory methods for controlled instantiation.@Override on every overridden method.null. Use Collections.emptyList() or List.of().@SuppressWarnings sparingly and with specific warning names.final for parameters and local variables where practical.@Nullable / @NonNull from JSpecify or JetBrains.Objects.requireNonNull() at public API boundaries.null from collections or arrays. Return empty.Optional for genuinely optional return values.@param, @return, @throws tags for public API methods.toString(), and equals().@RestController for REST APIs. Return ResponseEntity for status control.@Valid + Jakarta Bean Validation for request validation.@Profile) for environment-specific configuration.application.yml over application.properties for readability.JpaRepository.@Query with JPQL for custom queries. Use native queries only when needed.@EntityGraph to prevent N+1 queries in associations.Specification for dynamic query building.@Transactional at the service layer, not repository.SecurityFilterChain bean configuration (not WebSecurityConfigurerAdapter).@PreAuthorize / @Secured for method-level authorization.new BCryptPasswordEncoder().FetchType.LAZY by default on all associations.@BatchSize or @Fetch(FetchMode.SUBSELECT) to avoid N+1.@Version for optimistic locking on entities.log.info("User {} created", userId).IllegalArgumentException).AppException -> NotFoundException, etc.Exception or Throwable broadly. Catch specific types.try-with-resources for all AutoCloseable resources.record for immutable value objects (Java 16+).List.copyOf(), Map.copyOf() to create unmodifiable copies.private final. No setters unless mutation is required.Optional<T> as return type for methods that may not return a value.optional.map(...).orElseThrow(...). Avoid isPresent() + get().Optional for fields, method parameters, or collection elements.Optional.empty() over null. Use Optional.ofNullable() at boundaries.filter, map, collect.Collectors.toUnmodifiableList() for immutable results.for loop for simple iterations that do not transform data.Stream.of() or IntStream.range() for generating sequences.@Component, @Service, @Repository for Spring-managed beans.ExecutorService and CompletableFuture for async operations.virtual threads (Java 21+) for I/O-bound concurrent work.ConcurrentHashMap, AtomicInteger for thread-safe operations.synchronized blocks when possible -- use higher-level concurrency.ReentrantReadWriteLock for read-heavy shared state.null from methods -- use Optional or empty collections.@NotNull, @Size, @Email).@Valid on controller parameters to trigger validation automatically.CriteriaBuilder or Specifications for dynamic queries.@Query(value = "... WHERE id = :id", nativeQuery = true).PreparedStatement if using JDBC directly. Never Statement with concatenation.BCryptPasswordEncoder) for password hashing.@AuthenticationPrincipal to access the current user in controllers.@PreAuthorize("hasRole('ADMIN')") for role-based access control.th:utext with user data.Content-Type headers explicitly on responses.ObjectInputStream (RCE risk).@JsonIgnoreProperties(ignoreUnknown = true).enableDefaultTyping().mvn verify -P owasp-check.dependencyManagement to control transitive dependency versions.mvn dependency:tree for unexpected transitive dependencies.@Value("${secret}") with env var placeholders, not hardcoded values.Authorization or session tokens.FooTest.java in src/test/java/ mirroring source package.FooIT.java or use @Tag("integration").src/test/java/.../support/ or TestUtils.java.@Nested classes to group related tests within a test class.@DisplayName for human-readable test descriptions.@BeforeEach for setup, @AfterEach for cleanup.@ParameterizedTest with @ValueSource, @CsvSource, @MethodSource.assertThat(actual).isEqualTo(expected) over JUnit assertions.assertThatThrownBy(() -> ...).isInstanceOf(FooException.class).assertThat(list).hasSize(3).extracting("name").contains("Ada").@Mock + @ExtendWith(MockitoExtension.class) for injection.when().thenReturn() for stubbing. verify() for interaction checking.@InjectMocks to auto-inject mocks into the class under test.ArgumentCaptor to inspect complex arguments.@SpringBootTest sparingly -- it starts the full context. Prefer slices.@WebMvcTest for controller tests, @DataJpaTest for repository tests.@TestConfiguration for test-specific bean overrides.@Sql annotation to load test data from SQL files.junit.jupiter.execution.parallel.enabled=true.@SpringBootTest only when integration context is needed.© softspark, Apache-2.0. 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 app/skills/java-rules of softspark/ai-toolkit.
Open the folder on GitHubat commit d64db2b
Java Rules 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 Rules this skillsoftspark/ai-toolkit | 179 | — | ~3.1k | Automated safety check: Pass | Apache-2.0 | |
| Java ArchitectJeffallan/claude-skills | 12k | — | ~1.5k | Automated safety check: Pass | MIT | |
| Groovy 5 Developer Guideapache/grails-core | 2.9k | — | ~3k | Automated safety check: Pass | Apache-2.0 | |
| Dotnet Backend Patternswshobson/agents | 40k | 7 repos | ~6.6k | Automated safety check: Pass | MIT | |
| Spring Bootpiomin/claude-ai-spring-boot | 1.3k | — | ~2k | Automated safety check: Pass | Apache-2.0 | |
| Grails Developer Guideapache/grails-core | 2.9k | — | ~4.9k | Automated safety check: Pass | Apache-2.0 |
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.
apache/grails-core
Guidance for Groovy 5 work in Grails projects: syntax, closures, traits, DSLs, metaprogramming, Spock tests, static compilation and Java 21 integration.
wshobson/agents
Master C/.NET backend development patterns for building robust APIs, MCP servers, and enterprise applications.
piomin/claude-ai-spring-boot
Spring Boot 3.x development - REST APIs, JPA, Security, Testing, and Cloud-native patterns.
apache/grails-core
Guides building Grails web applications and REST APIs with GORM, controllers, services, views, plugins and Spock and Geb testing.
SpillwaveSolutions/agent-brain
Modern Python coaching covering language foundations through advanced production patterns.
softspark/ai-toolkit
Prepare or verify a project QA environment with source identity, readiness, browser access, evidence paths and owned cleanup.
softspark/ai-toolkit
Accessibility validator: WCAG 2.1 AA, EN 301 549, EAA. An agent skill from softspark/ai-toolkit.
softspark/ai-toolkit
Analyzes code quality, complexity, patterns across codebase.
softspark/ai-toolkit
Drives a brief, specification, issue or existing PR through implementation, review, tests and QA to a ready PR.
softspark/ai-toolkit
Direct technical voice for docs, README, user-facing text. An agent skill from softspark/ai-toolkit.
softspark/ai-toolkit
Detect/generate/debug CI pipeline config (GitHub Actions, GitLab CI).
Works with
Categories
Java coding rules: style, patterns, security, testing. An agent skill from softspark/ai-toolkit. Java Rules is an agent skill from softspark/ai-toolkit. Java coding rules: style, patterns, security, testing.
Java Rules fits situations like: tasks that involve Backend development; tasks that involve ORMs and data access; tasks that involve Unit testing.
Run `npx skills add softspark/ai-toolkit --skill java-rules -a claude-code`. Or copy the skill folder (app/skills/java-rules in softspark/ai-toolkit) into .claude/skills/java-rules in your project. Claude Code loads it when a task matches its description.
Run `npx skills add softspark/ai-toolkit --skill java-rules -a codex`. Or copy the skill folder (app/skills/java-rules in softspark/ai-toolkit) into .agents/skills/java-rules 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 softspark/ai-toolkit --skill java-rules -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-rules, .gemini/skills/java-rules, .github/skills/java-rules and .opencode/skills/java-rules in your project.
Going by SKILL.md and its folder, Java Rules needs the command-line tools its instructions call (mvn). Its frontmatter pre-approves these tools: Read.
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 Rules is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.1k tokens (SKILL.md is roughly 13k 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 Rules: Java Architect (Jeffallan/claude-skills, 12k stars), Groovy 5 Developer Guide (apache/grails-core, 2.9k stars), Dotnet Backend Patterns (wshobson/agents, 40k stars) and Spring Boot (piomin/claude-ai-spring-boot, 1.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
softspark (a GitHub user) maintains it in softspark/ai-toolkit, which has 179 GitHub stars. The repository holds 112 skills in this directory. The repository was last updated on October 7, 2026.
Source: softspark/ai-toolkit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.