Nov 5, 2026

Give Claude Code 18 Java Engineering Skills

A 1k-star, MIT-licensed collection of 18 Java skills — code review, Spring Boot patterns, JPA, security audit — validated against the Agent Skills spec in CI, with a routing eval that caught its own misrouting.

#tutorial#developer-tools#architecture

Ask a general coding agent to review a Java PR and you get generic advice: it does not know your conventions, your framework idioms, or what a real concurrency review should check. claude-code-java, a 1k-star MIT-licensed repository, ships eighteen skills built for Java/Maven work — and it treats the routing problem, not just the content, as something to test.

Why This Skill Matters

The repo is a collection of reusable skills (structured markdown files that give an agent domain knowledge and workflows), plus project templates, MCP server configurations, and setup scripts. Every skill follows the Agent Skills specification and is validated against it in CI; the skills are developed and tested with Claude Code, and the README states the project is not affiliated with Anthropic.

The eighteen skills break into four groups. Workflow: git-commit, changelog-generator, issue-triage. Code quality: java-code-review, api-contract-review, concurrency-review, performance-smell-detection, test-quality, maven-dependency-audit, security-audit. Architecture and design: architecture-review, solid-principles, design-patterns, clean-code. Framework and data: spring-boot-patterns, java-migration, jpa-patterns, logging-patterns.

The distinctive part is the routing section. An agent picks a skill from its name and description and nothing else; with eighteen of them the descriptions compete, and the failure is quiet — the wrong skill loads and answers plausibly anyway. The repo's scripts/eval-routing.sh runs prompts against the same list an agent receives and reports where one lands somewhere other than expected. It found a real defect on its first run: the prompt "this class does too much, split it" reached clean-code rather than solid-principles. Sharpening three descriptions moved the set from 17 of 18 prompts routed correctly to 20 of 20.

Installation

Skills only, no clone:

npx skills@latest add decebals/claude-code-java

The README documents the flags: --list shows the skills first, --skill <name> installs only some, --global installs at user level, and --copy gets files instead of symlinks.

For the full workspace — skills plus generated CLAUDE.md, MCP configuration, and project settings — clone the repo and run the setup script against your project:

git clone https://github.com/decebals/claude-code-java.git ~/projects/claude-code-java
cd ~/projects/claude-code-java
chmod +x scripts/*.sh
./scripts/setup-project.sh ~/projects/your-java-project

That creates .claude/ with symlinked skills, generates CLAUDE.md, and configures settings. A manual alternative is documented too: copy or symlink the skill folders you want into your project's .claude/skills/.

Real Workflow: Review a Spring Boot Change

Requirements: an agent that reads Agent Skills (developed and tested with Claude Code), Java 11 or newer — Java 17+ recommended — Maven or Gradle, and Git.

cd ~/projects/your-java-project
claude

# Skills load automatically based on context, or invoke directly:
> /git-commit
> /java-code-review

Skills also load automatically from context: say "check thread safety" and the router reaches concurrency-review; "N+1 problem" or "LazyInitializationException" routes to jpa-patterns; "upgrade to Java 21" routes to java-migration. Each mapping above is one the README lists verbatim in its trigger table.

The same skills do double duty: the README documents skill-review, a reusable GitHub Actions workflow published on the same GitHub account that evaluates pull requests against this skill set as its single source of truth, with skill-review-sandbox as a working example.

Tips

  • Start small: incremental adoption is one of the repo's stated purposes — install the two or three skills your team actually needs, then expand.
  • The templates/ directory holds CLAUDE.md.template, mcp-config.json.template, MCP_CONFIG.md.template, and settings.json.template (pre-approved commands), so the workspace setup stays inspectable.
  • A GitHub MCP server is an optional requirement for the issue-triage workflow.
  • Success metrics are left to you: the README suggests tracking token reduction, time savings, and reuse across projects — for token and time savings it publishes no benchmark numbers of its own.
  • The docs directory goes beyond the skills themselves: design principles, safe workflows, red flags, and a guide for creating new skills.

When Not to Use This

The skills are tailored for Java/Maven development; a polyglot repo or a non-JVM backend needs a different collection. The routing eval measures the skill set against its own prompt cases — the README does not claim it predicts routing on your prompts or your agent. And the repo does not bundle runtime tooling: these are knowledge and workflow files, so an agent that cannot read Agent Skills gets nothing from them.


See the leaderboard for more skills.