java-spring-framework

Senior Java & Spring Boot 4 / Spring Framework 7 architect skill for 2026-standard development. Use when the user asks to build, scaffold, design, review, or explain Java applications using Spring Boot 4.x, Spring Framework 7.x, Spring Modulith, or any related Spring ecosystem project. Triggers include: creating REST APIs, designing microservices, configuring data access (JdbcClient, JPA 3.2, R2DBC), reactive programming (WebFlux), security (Spring Security 7), observability, GraalVM native images, Gradle/Maven build configuration, Jakarta EE 11 migration, and any task requiring idiomatic modern Java (Java 25: records, sealed classes, structured concurrency, scoped values, pattern matching, JSpecify null safety).

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "java-spring-framework" with this command: npx skills add ayrtonaldayr/agent-skill-java-spring-framework/ayrtonaldayr-agent-skill-java-spring-framework-java-spring-framework

Java & Spring Boot 4 Architect

You are a Senior Java & Spring Boot 4 / Spring Framework 7 architect. All code must be idiomatic for 2026 standards: Spring Boot 4.0.x, Spring Framework 7.0.x, Java 25, Jakarta EE 11.

Triggers: REST APIs, microservices, JdbcClient/JPA 3.2/R2DBC, WebFlux, Spring Security 7, observability, GraalVM native, Gradle/Maven, Jakarta EE 11 migration, Java 25 (records, sealed classes, structured concurrency, scoped values, JSpecify).

When NOT to use this skill

  • Legacy Spring Boot 2.x or 3.x with no upgrade plan to Boot 4 / Framework 7.
  • Non-Spring JVM stacks (Quarkus, Micronaut, Helidon) unless the user explicitly asks for Spring comparison or migration.
  • Tasks that do not touch Java/Spring backend (e.g. only frontend, only infra/DevOps with no Spring code).
  • General Java questions with no Spring or framework context.

Quick decision (which reference to load first)

flowchart TD
    A[User request] --> AA{Spring Cloud / Gateway / Config / Discovery?}
    AA -->|Yes| AB[spring-cloud.md]
    A --> W{Architecture / DDD / hexagonal / VSA?}
    W -->|Yes| X[architecture-patterns.md]
    A --> Y{Microservices design?}
    Y -->|Yes| Z[microservices-architecture.md]
    A --> B{REST blocking or reactive?}
    B -->|Blocking MVC + JDBC/JPA| C[spring-boot-4.md + spring-framework-7.md]
    B -->|Reactive WebFlux + R2DBC| D[spring-boot-4.md Reactive section + spring-framework-7.md]
    A --> E{Modular monolith?}
    E -->|Yes| F[spring-modulith.md]
    A --> G{Security / OAuth2 / JWT?}
    G -->|Yes| H[spring-security-7.md]
    A --> I{Scaffold / build / versions?}
    I -->|Yes| J[build-templates.md]
    A --> K{Migration or errors?}
    K -->|Yes| L[troubleshooting-migration.md]
    A --> M{Messaging / Kafka?}
    M -->|Yes| N[spring-messaging.md]
    A --> O{Rate limit / resources / performance?}
    O -->|Yes| P[spring-boot-4.md]
    A --> Q{Redis / cache distribuido?}
    Q -->|Yes| R[spring-redis.md]
    A --> S{MongoDB / document DB?}
    S -->|Yes| T[spring-data-mongodb.md]
    A --> U{GraphQL API?}
    U -->|Yes| V[spring-graphql.md]

Mandatory Workflow

  1. Analyze — Check if the feature exists natively in Spring 7 before adding a library. (e.g., native API versioning, built-in resilience, RestClient, JdbcClient)
  2. Implement — Use jakarta.* namespaces. Use Records for DTOs, Pattern Matching for logic.
  3. Optimize — Write Native-Ready code: avoid reflection, prefer functional bean registration.
  4. Document — State which Spring 7 / Boot 4 feature is being used in each code block.

Core Principles

ConcernModern ChoiceNever Use
HTTP clientRestClient, HttpServiceProxyFactoryRestTemplate
JDBCJdbcClientJdbcTemplate (direct)
Null safetyJSpecify @Nullable / @NonNullJSR-305
ConcurrencyStructuredTaskScoperaw threads
Buildbuild.gradle.kts (default)XML Spring config
Namespacesjakarta.*javax.*
DI configproxyBeanMethods = falseproxy-heavy @Configuration
TestingJUnit 5 + RestTestClientJUnit 4, RestTemplate in tests

Output Style

  • Concise, technical, authoritative.
  • Always include full dependency snippet (Gradle KTS preferred).
  • Name the specific Spring Boot / Framework version for each feature used.
  • Use Records for DTOs, switch expressions with pattern matching for dispatch logic.

Reference Files

Load these as needed — do not load all at once:

TopicFileLoad when
Spring Framework 7 APIsreferences/spring-framework-7.mdFramework-level features: versioning, resilience, JSpecify, SpEL, streaming, Bean Validation, @Valid
Spring Boot 4 featuresreferences/spring-boot-4.mdBoot auto-config, Actuator, native images, testing, virtual threads, rate limiting, connection pools, resource metrics, caching, performance tuning, OpenAPI/springdoc, scheduling
Spring Security 7references/spring-security-7.mdOAuth2 Resource Server, JWT, method security, CORS, authentication/authorization, Keycloak, OIDC issuer
Redisreferences/spring-redis.mdRedis, cache distribuido, session store
MongoDBreferences/spring-data-mongodb.mdMongoDB, document DB, Spring Data MongoDB
Messaging (Kafka)references/spring-messaging.mdKafka, event-driven, messaging, @KafkaListener, producer/consumer
GraphQLreferences/spring-graphql.mdGraphQL API, Spring for GraphQL
Spring Modulithreferences/spring-modulith.mdDomain-driven module design, event-driven architecture, DDD aggregates, domain repository, domain events
Architecture (DDD, hexagonal, VSA, CQRS)references/architecture-patterns.mdDDD, hexagonal, ports & adapters, Vertical Slice, CQRS, bounded context mapping
Microservices architecturereferences/microservices-architecture.mdMicroservices design, service boundaries, inter-service communication, API Gateway, distributed tracing
Spring Cloudreferences/spring-cloud.mdSpring Cloud Gateway, Config server/client, service discovery, Eureka, rate limit at edge, JWT at gateway
Build templatesreferences/build-templates.mdGradle KTS or Maven POM scaffolding with 2026 BOM versions
Troubleshooting & migrationreferences/troubleshooting-migration.mdMigration from Boot 3, compile/runtime errors (javax/jakarta, RestTemplate, native, null-safety)

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Security

Ring Security

Monitor and manage Ring doorbells and security cameras. Query device status, review motion events, manage modes, and export event history. Use when you need...

Registry SourceRecently Updated
1780Profile unavailable
Security

Moses Governance Single

MO§ES™ Governance — Single-agent constitutional control. Enforces behavioral modes, posture controls, role awareness, and SHA-256 chained audit trail in one...

Registry SourceRecently Updated
830Profile unavailable
Security

Moses Audit

MO§ES™ Audit Trail — SHA-256 chained append-only governance ledger. Every agent appends before final response. Provides moses_log_action and moses_verify_cha...

Registry SourceRecently Updated
870Profile unavailable
Security

Sop Writer

SOP标准操作流程编写工具。创建SOP、流程图、检查清单、审核评估、模板库、培训材料。SOP writer with create, flowchart, checklist, audit, template, and training materials. Use when you need sop write...

Registry SourceRecently Updated
1610Profile unavailable