From bill-code-reviewer
Use PROACTIVELY when reviewing Java/Spring Boot code quality, Clean Code compliance, or over-design concerns.
How this skill is triggered — by the user, by Claude, or both
Slash command
/bill-code-reviewer:code-reviewsonnetThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Review code with senior Java developer (15+ years experience) standards, focusing on Clean Code and avoiding over-design.
Review code with senior Java developer (15+ years experience) standards, focusing on Clean Code and avoiding over-design.
Don't abstract too early (Rule of Three):
// Bad: Abstract after seeing it once
interface PaymentProcessor { ... }
class CreditCardPaymentProcessor implements PaymentProcessor { ... }
// Only supports credit card anyway
// Good: Wait until multiple payment methods are actually needed
class PaymentService {
public void processCreditCardPayment(...) { ... }
}
YAGNI — No hypothetical design:
// Bad: Fields for "might need later"
class Order {
private PaymentStrategy paymentStrategy; // Might change later?
private ShippingStrategy shippingStrategy; // Might change later?
}
// Good: Solve current problem
class Order {
private String paymentMethod; // Enough for now
}
Avoid meaningless interfaces (single-implementation interfaces add zero value):
// Bad: UserServiceImpl only has one implementation
interface UserService { ... }
class UserServiceImpl implements UserService { ... }
// Good: Extract interface when multiple implementations are needed
class UserService { ... }
@Transactional self-invocation trap: calling an @Transactional method from within the same class bypasses the proxy@Transactional on controller or repository (should be service layer only)@Autowired field injection instead of constructor injection@Transactional on service layer only@Transactional self-invocationIMPORTANT: All output must be in Traditional Chinese (繁體中文)
列出程式碼做得好的地方
| 問題 | 位置 | 影響 | 修正方式 |
|---|---|---|---|
| [問題描述] | [檔案:行號] | [影響] | [修正方式] |
| 問題 | 位置 | 影響 | 修正方式 |
|---|---|---|---|
| [問題描述] | [檔案:行號] | [影響] | [修正方式] |
如果有較大的重構建議,提供 Before/After 程式碼對比
一句話總結程式碼品質和主要改進方向
equals/hashCode 包含所有欄位,導致 Hibernate proxy 比較失敗,應改用 @Getter @Setternpx claudepluginhub xinqilin/claude-dev-toolkit-marketplace --plugin bill-code-reviewerEvaluates code complexity, readability, design principles, error handling, and testability. Designed for use by review orchestrators to assess maintainability.
Enforces universal code quality rules — KISS, DRY, clean code, code review. Use when writing or reviewing any code.
Enforces Java/Spring Boot engineering standards for code generation, refactoring, and review in Chinese. Covers validation, null-safety, Lombok/POJO, exceptions/logging, security, MySQL/ORM, concurrency, testing, and layering.