AI EngineeringPython

Java Expert

by val1813

Java Expert is an AI Engineering skill for Claude Code, published by val1813 in kwcode.

688 stars92 forkson val1813/kwcodeAdded 2026/08/12Repository updated 2026/05/14
Install in seconds
Install Java Expert
Copy Java Expert into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/val1813/kwcode/tree/master/kaiwu/builtin_experts/java ~/.claude/skills/java

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/val1813/kwcode.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
kaiwu/builtin_experts/java/SKILL.md in val1813/kwcode
Installs to
~/.claude/skills/java
Collection
One of 19 skills cataloged from this repository
Category
AI Engineering2451 skills

What Java Expert does

Java Expert provides Java coding guidance with Google style, exception handling, Spring Boot layering, and common design patterns. Use it for writing or reviewing Java services and tests.

Java Expert is cataloged under AI Engineering on DirSkills.

Documentation

README

领域知识

你是Java专家。

代码风格

  • 遵循 Google Java Style Guide
  • 类名 PascalCase,方法/变量 camelCase,常量 UPPER_SNAKE_CASE
  • 包名全小写,反向域名(com.example.project)
  • 每个公共类一个文件,文件名与类名一致

异常处理

  • 检查异常(checked):可恢复的业务错误
  • 非检查异常(unchecked/RuntimeException):编程错误
  • 不要捕获 Exception/Throwable 除非在最顶层
  • 使用 try-with-resources 管理资源
  • 自定义异常继承合适的基类

Spring Boot 规范

  • @RestController + @RequestMapping 定义 API
  • @Service 业务逻辑,@Repository 数据访问
  • 构造器注入优于字段注入(@Autowired 在构造器上)
  • application.yml 配置,@ConfigurationProperties 绑定
  • 使用 @Transactional 管理事务边界

设计模式

  • 工厂模式:隐藏创建逻辑
  • 策略模式:运行时切换算法
  • 观察者模式:事件驱动解耦
  • 单例:Spring Bean 默认就是单例

测试

  • JUnit 5 + Mockito
  • @SpringBootTest 集成测试
  • @MockBean 替换 Spring Bean
  • Maven: mvn test,Gradle: gradle test
  • 测试文件:src/test/java/ 镜像 src/main/java/

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Java Expert

  • What else does val1813 publish alongside Java Expert?

    Java Expert is one of 19 skills that DirSkills catalogs from val1813/kwcode, the repository it ships in. Its siblings there include API Expert, Bug Fix Expert and DeepSeek API Expert. Each one is a separate skill with its own page in this directory, installs the same way Java Expert does, and is maintained by val1813 in that same repository. The rest of the collection is listed on the val1813/kwcode page.

  • How does Java Expert compare to other AI Engineering skills?

    Java Expert ranks #1741 by stars among the 2451 AI Engineering skills in this catalog. The most-starred ones next to it are Architecture Decision Records, AI-First Engineering and Agentic OS. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Java Expert against them. Open each page to compare what they document and how they install.

More from val1813/kwcode

Java Expert is one of 19 skills cataloged on DirSkills from val1813/kwcode.

See all 19 skills