跳到正文
FunCoding

code-quality

Review checklist for Java / Spring Boot code - correctness, security, performance, Spring signals, REST semantics, and code smells; project rules are referenced from conventions, not repeated. Use when user says "review code", "check this PR", "refactor", "check API", or before merging changes.

Star
1,473
分类
安全
许可证
Apache-2.0
最近提交
2026年11月27日

skills/code-quality/SKILL.md

在 GitHub 上查看

Code Quality Review Skill

Knowledge for reviewing Java / Spring Boot changes: what to flag and how to recognize it. The review process, scope, and report format belong to the code-reviewer agent; project rules belong to the conventions skill.

No duplication: this skill holds only what no other skill states (generic Java quality, smells, REST semantics, detection signals). Project rules live in conventions, spring-boot, and jpa-patterns; the references here point to them and never restate them, so a rule change is made in one place.

When to Use

  • "review this code" / "code review" / "check this PR"
  • "refactor" / "clean this code" / "improve readability"
  • "review API" / "check endpoints" / "REST review"
  • Before merging a PR or releasing API changes

What to Load

Read only the references that match the changed files.

If the change containsRead
Any Java codereferences/correctness.md, references/spring-conventions.md (signals; rules in conventions)
Controllers, DTOs, OpenAPI, error handlingreferences/api-contract.md
Input handling, auth, config, secrets, actuatorreferences/security.md
Repositories, queries, entity loopsreferences/performance.md
Entities, *.sql migrations, spring.jpa.*, Flywayconventions → Relational Database Schema (Flyway); spring-boot → references/data.md
Any non-trivial logicreferences/smells.md
Any code in a project whose architecture block says style: cqrs (conventions → Architecture Decision): handlers, events, projections, outbox, Kafka listenersevent-driven → references/cqrs.md (Review Signals), and references/kafka.md when the diff touches the outbox or a listener
Any code in a project whose architecture block says style: cqrs-event-sourcing: aggregates, events, upcasters, event store, projections, migrationsevent-driven → references/cqrs.md and references/event-sourcing.md (Review Signals); references/axon.md with event-store: axon
deploy/**, skaffold.yaml, docker-compose.yml, Kubernetes manifestsspring-boot → references/cloud.md (overlays, probes, Compose healthchecks); references/security.md (secrets)

Related skills, loaded only when the diff needs them:

TopicSkill
Project rules (No Lombok, RestClient, Flyway, Problem Details)conventions
Lazy loading, fetching, optimistic lockingjpa-patterns
Test quality, RestTestClient, Testcontainerstesting-patterns
Log levels, MDC, structured logginglogging-patterns
UI contract detailsspring-boot → references/ui-contract.md
Records, sealed types, pattern matchingjava-modern
CQRS and Event Sourcing: handlers, events, outbox, event store, projectionsevent-driven

Severity

  • Critical - security, data loss, crash risk → must fix before merge
  • Important - correctness, performance, maintainability → should fix
  • Code Smell - style, complexity, minor issues → nice to have (always phrased as a heuristic, see references/smells.md)
  • Good - positive feedback worth reinforcing

Non-Goals

  • Formatting, import order, naming style that a formatter or linter enforces
  • Personal taste or rewrites that do not fix a concrete problem
  • Rules the repo contradicts on purpose: when CLAUDE.md / AGENTS.md, conventions, or an existing documented decision overrides a rule here, the repo wins

Quick Reference

CategoryRed flags
Null safetychained calls, Optional.get(), returning null
Exceptionsempty catch, broad catch, lost stack trace
Resourcesmanual close()
Transactionsmulti-step writes without @Transactional, self-invocation
APIwrong verb or status
PerformanceN+1, findAll() without paging, LIKE from user input

相似的 Skill

agent-security-hardening

AFaffaan-m/ECC314k近 7 天新增 3,503 个 star

精选

ponytail-audit

审计整个代码库,找出 bug、安全漏洞和性能瓶颈,获得按重要性排序的通俗报告。

DIDietrichGebert/ponytail202k近 7 天新增 4,226 个 star

gstack

GAgarrytan/gstack143k近 7 天新增 524 个 star

精选

security-and-hardening

按 OWASP Top 10 检查输入处理、登录和依赖,加固代码。

ADaddyosmani/agent-skills122k近 7 天新增 1,421 个 star

doubt-driven-development

ADaddyosmani/agent-skills122k近 7 天新增 1,421 个 star

ruview-rvagent

RUruvnet/RuView106k近 7 天新增 596 个 star