Install any skill in seconds. Free to start, no credit card required.
Get Started Free →doccker/java-dev
Java 开发规范,包含命名约定、异常处理、Spring Boot 最佳实践等
Passed 22 of 22 test cases with the skill, and 19 of 22 without it.
and 1 more in the full report
3 fixed19 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 3 test cases the skill fixed. Same model, same prompt, with and without the skill.
I have a Spring Boot Controller and Service where I iterate over records in a loop to query associated device counts, and I need to add input validation for page, size, and quantity in my request object. Please refactor this Java code to eliminate database calls inside loops and apply standard validation annotations to the request DTO.
| Checked | Without skill | With skill |
|---|---|---|
| Replaces loop-based queries with a batch query outside the loop using a Map lookup | Passed | Passed |
| Annotates the request DTO class with Lombok Data | Missed | Passed |
| Annotates the size parameter with Max 100 constraint | Passed | Passed |
The instructions your model reads when the skill loads.
参考来源: Google Java Style Guide、阿里巴巴 Java 开发手册
# Maven
mvn clean compile # 编译
mvn test # 运行测试
mvn verify # 运行所有检查
# Gradle
./gradlew build # 构建
./gradlew test # 运行测试
| 类型 | 规则 | 示例 |
|---|---|---|
| 包名 | 全小写,域名反转 | com.example.project |
| 类名 | 大驼峰,名词/名词短语 | UserService, HttpClient |
| 方法名 | 小驼峰,动词开头 | findById, isValid |
| 常量 | 全大写下划线分隔 | MAX_RETRY_COUNT |
| 布尔返回值 | is/has/can 前缀 | isActive(), hasPermission() |
public class Example {
// 1. 静态常量
public static final String CONSTANT = "value";
test cases passed, vs 19 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.