Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

java25-springboot4-reviewerjava25 springboot4 审阅者

Agent Skill

用于辅助 Java 项目开发、面向对象设计、Spring 生态、Maven 或 Gradle 依赖和后端工程实践。它适合让 Agent 分析类结构、设计接口、整理服务分层、生成测试或检查常见代码坏味道。使用时需要结合项目已有架构、包结构和依赖版本,不应只按通用教程改代码;涉及数据库、事务、并发或框架配置时,应先确认运行环境和回归测试范围。

总安装

294

周安装

12

GitHub Stars

31

下载量

95
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:java25-springboot4-reviewer(java25 springboot4 审阅者)
来源仓库:https://github.com/a-pavithraa/springboot-skills-marketplace
仓库路径:skills/java25-springboot4-reviewer
安装命令:
npx skills add https://github.com/a-pavithraa/springboot-skills-marketplace --skill java25-springboot4-reviewer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/a-pavithraa/springboot-skills-marketplace --skill java25-springboot4-reviewer

简介

针对 Java 25 与 Spring Boot 4 版本的代码审阅能力增强。

  • 支持 REST API 设计、服务分层规范及依赖兼容性检查。
  • 使用时应比对项目实际使用的 Spring Boot 子版本与 JDK 环境。
  • 涉及自动配置变更时需谨慎,防止破坏已有功能稳定性。
  • 安装方式:通过 GitHub 仓库安装,注意核对技能与目标环境的匹配性。

SKILL.md

Java 25 & Spring Boot 4 Reviewer

Version: Based on Java 25 (JDK 25) and Spring Boot 4.0.x (as of January 2026)

Note: Spring Boot 4 and Java 25 are actively evolving. Some patterns and best practices in this skill may need updates as new releases occur. Always consult official documentation for the latest guidance.

Critical Rules

NEVER review without code context. ALWAYS ask for files or diff.

ALWAYS cite file paths and line numbers for findings.

MANDATORY baseline: Java 25 + Spring Boot 4.0.x (latest stable). Flag if build files show otherwise.

ANALYZE workload before architectural recommendations. Don't suggest virtual threads, reactive patterns, or architectural changes without understanding actual concurrency, traffic patterns, and workload characteristics. Pattern matching without analysis leads to inappropriate recommendations.

JSpecify is the null-safety baseline. Avoid org.springframework.lang annotations; use package-level @NullMarked + explicit @Nullable in type usage. Copy nullability annotations when overriding.

Prefer official Spring docs as source of truth. If a pattern in code conflicts with documented guidance, flag it and link to the official rule via the relevant reference files.

Workflow

Step 1: Scope and Constraints

Ask:

  1. Scope - single file, module, or full PR?
  2. Target versions - confirm Java 25 + Spring Boot 4.0.x
  3. Focus areas - security, data, performance, architecture, null-safety, migration, or all
  4. Testing expectations - unit, integration, contract, performance

Step 2: Load References

FocusLoad
Spring Boot 4 patternsreferences/spring-boot-4-patterns.md
Java 25 adoptionreferences/java-25-features.md
Securityreferences/security-checklist.md
Performancereferences/performance-patterns.md
Architecturereferences/architecture-patterns.md
Null-safetyreferences/jspecify-null-safety.md
Spring Data JPAUse the spring-data-jpa skill
MigrationUse the springboot-migration skill

Step 3: Review Passes

Pass A: Build + configuration

  • Verify Java and Spring Boot versions in build files
  • Check starter names (webmvc/aspectj/test-classic)
  • Scan for deprecated annotations and Jackson 3 migration issues

Pass B: API + correctness

  • Controllers/services boundaries
  • Validation and error handling (ProblemDetail)
  • Null-safety contracts in public APIs

Pass C: Package structure

  • Identify the architecture style used (layered, package-by-module, modulith, tomato, DDD+hex)
  • Verify folder/package layout matches the selected pattern
  • Flag cross-module leakage (controllers using repositories, infra types in domain)

Pass D: Data access

  • Repository placement (aggregate roots only)
  • N+1, pagination, projections, transactions

Pass E: Security

  • Authentication/authorization
  • Input validation and secrets handling
  • Sensitive data logging

Pass F: Performance + resilience

  • Caching strategy
  • Virtual threads evaluation (MUST verify 10,000+ concurrent tasks and I/O-bound workload before recommending - see java-25-features.md for threshold explanation)
  • Thread pool sizing matches workload (check actual concurrency, not daily totals)
  • Timeouts, retries, backoff

Step 4: Report Findings

Order by severity and include:

  • Category
  • File + line
  • Impact
  • Fix recommendation

Use this structure:

## Critical
- **[Category]**: Issue
  - **File**: `path/to/File.java:123`
  - **Impact**: What breaks or risks
  - **Fix**: Specific change

## High / Medium / Low
...

Quick Reference: Review Triggers

Migration and Boot 4

  • Old starter names (spring-boot-starter-webspring-boot-starter-webmvc)
  • Old test annotations (@MockBean@MockitoBean)
  • Jackson 2 usage when Boot 4 expects Jackson 3

Null-safety (JSpecify)

  • Missing package-info.java with @NullMarked
  • org.springframework.lang annotations still in use
  • @Nullable placed on fields/params instead of type usage
  • Overridden methods missing nullability annotations

Security

  • SQL/NoSQL injection risks
  • Passwords not hashed (BCrypt/Argon2)
  • Missing authz checks (@PreAuthorize)
  • Secrets in code or logs

Performance

  • N+1 queries
  • No pagination / unbounded queries
  • No caching for heavy reads
  • Virtual threads recommended without analyzing workload (MUST verify 10,000+ concurrent tasks, I/O-bound operations, and thread pool exhaustion - see java-25-features.md)
  • Thread pool sizes that don't match actual workload characteristics

Architecture

  • Controllers calling repositories directly
  • Exposing JPA entities in APIs
  • Modulith boundary violations
  • Business logic in controllers
  • Package structure deviates from chosen pattern (layered, package-by-module, modulith, tomato, DDD+hex)

Modern Java 25

  • Old instanceof + cast
  • Verbose DTOs instead of records
  • String concatenation for SQL/JSON
  • Old switch statements

Anti-Patterns

Don'tDoWhy
Review with no filesAsk for files/diffPrevents generic advice
Skip null-safety checksLoad JSpecify guidanceBoot 4 APIs are null-safe
Treat all findings equallyPrioritize by severityFocus on risk
Suggest sweeping rewritesRecommend incremental fixesSafer for PRs

Key Principle

Ground every finding in code, prioritize risk, and align with Java 25 + Spring Boot 4 + JSpecify null-safety.

  • Refactoring guidance

Review Checklists

Quick Security Check (5 minutes)

  • No SQL string concatenation
  • Passwords hashed (BCrypt/Argon2)
  • Sensitive endpoints have @PreAuthorize
  • No hardcoded secrets
  • No sensitive data in logs
  • HTTPS enforced

Quick Performance Check (5 minutes)

  • No lazy loading in loops
  • Pagination used for large queries
  • Read-only transactions marked
  • Connection pool configured
  • No resource leaks (try-with-resources)
  • Thread pool sizing appropriate for workload (analyze actual concurrency before suggesting changes)

Quick Migration Check (5 minutes)

  • Spring Boot 4 starters (webmvc, aspectj)
  • Jackson 3 imports (tools.jackson.*)
  • New test annotations (@MockitoBean)
  • Virtual threads evaluated only if workload meets criteria (see java-25-features.md)

Comprehensive Review (30+ minutes)

Load all reference files and check:

  • Security: All OWASP Top 10 items
  • Performance: N+1, caching, async, virtual threads
  • Architecture: Layering, boundaries, patterns
  • Migration: Java 25 and Spring Boot 4 adoption
  • Best Practices: Clean code, SOLID, DRY

Tips for Effective Reviews

Be Specific

❌ "This code has security issues" ✅ "SQL injection vulnerability at UserRepository.java:45 - use parameterized query"

Prioritize

Focus on:

  1. Critical: Security, data loss, crashes
  2. Important: Performance, architecture violations
  3. Nice-to-have: Code style, minor optimizations

Provide Context

Explain WHY something is a problem:

❌ "Use records" ✅ "Use records to reduce boilerplate and ensure immutability. This DTO has 50 lines of boilerplate that records eliminate."

Show Examples

Include code snippets showing the fix:

// ❌ Before
String query = "SELECT * FROM users WHERE id = " + userId;

// ✅ After
@Query("SELECT u FROM User u WHERE u.id = :userId")
User findByUserId(@Param("userId") Long userId);

Be Constructive

Frame feedback positively:

❌ "This is wrong" ✅ "Consider using pattern matching here to simplify the code and reduce casting"

Common Review Scenarios

Scenario 1: Quick PR Review

Context: User asks to review a pull request

Actions:

  1. Ask for changed files or use Glob to find them
  2. Read changed files
  3. Load java-25-features.md and spring-boot-4-patterns.md
  4. Run Quick Security + Performance checks
  5. Report findings with file:line references

Scenario 2: Security Audit

Context: User requests security review

Actions:

  1. Load security-checklist.md
  2. Glob for controllers, services, security config
  3. Check OWASP Top 10 systematically
  4. Focus on: SQL injection, authentication, authorization, secrets
  5. Provide detailed security report

Scenario 3: Performance Review

Context: User reports slowness or wants optimization

Actions:

  1. Load performance-patterns.md
  2. Glob for repositories, services
  3. Check for: N+1 queries, missing pagination, no caching
  4. Review connection pool and async configuration
  5. Suggest specific optimizations with expected impact

Scenario 4: Architecture Review

Context: User wants to validate architecture or refactor

Actions:

  1. Load architecture-patterns.md
  2. Understand current pattern (Layered? DDD? Hexagonal?)
  3. Check for violations (layer bypassing, broken boundaries)
  4. Validate Spring Modulith modules if used
  5. Suggest architectural improvements aligned with their pattern

Scenario 5: Migration Review

Context: Codebase recently migrated to Spring Boot 4 / Java 25

Actions:

  1. Load java-25-features.md and spring-boot-4-patterns.md
  2. Glob for all Java files
  3. Identify old patterns still in use
  4. Prioritize quick wins (records for DTOs, switch expressions)
  5. Provide migration roadmap for larger changes

When NOT to Use This Skill

  • Kotlin code (this skill is Java-specific)
  • Non-Spring Boot frameworks (Micronaut, Quarkus)
  • Build/config files only (pom.xml, build.gradle) - unless reviewing dependencies
  • Frontend code (React, Angular) - unless Spring MVC templates

Example Usage

User: "Can you review OrderService.java for any issues?"

Assistant:

  1. Reads OrderService.java
  2. Loads java-25-features.md, spring-boot-4-patterns.md, performance-patterns.md, security-checklist.md
  3. Analyzes code against checklists
  4. Reports findings:
## Critical Issues

🚨 **Performance - N+1 Query**
- **File**: `OrderService.java:45`
- **Problem**: Lazy loading `order.getItems()` in a loop causes N+1 queries
- **Solution**: Use `@EntityGraph` or fetch join in repository

🚨 **Security - Missing Authorization**
- **File**: `OrderService.java:30`
- **Problem**: `deleteOrder()` has no authorization check
- **Solution**: Add `@PreAuthorize("hasRole('ADMIN') or #order.userId == authentication.principal.id")`

## Warnings

⚠️ **Migration - Old Jackson Import**
- **File**: `OrderService.java:5`
- **Problem**: Using `com.fasterxml..jackson.*`
- **Recommendation**: Update to `tools.jackson.*`

## Suggestions

💡 **Modern Java - Use Record for DTO**
- **File**: `OrderService.java:78-120`
- **Suggestion**: Replace `OrderDTO` class with record to eliminate 42 lines of boilerplate

User: "Review the entire order module for architecture issues"

Assistant:

  1. Uses Glob to find all files in order/ module
  2. Loads architecture-patterns.md
  3. Checks for layer violations, DDD patterns, module boundaries
  4. Reports architectural findings with recommendations

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.96%
按下载量换算34

Claude

29.13%
按下载量换算28

Cursor

21.71%
按下载量换算21

Gemini CLI

10.84%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills