百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

spring-boot-skills

> 后端框架
开源

适用于 Spring Boot 开发人员的生产级 Claude 代码和 Codex 技能

187 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

适用于 Spring Boot 开发人员的生产级 Claude 代码和 Codex 技能


Why this exists

AI coding agents are great at Python. They hallucinate in Spring Boot.

They generate @Autowired field injection instead of constructor injection. They use ResponseEntity where you have a standard response wrapper. They ignore your existing exception hierarchy and invent a new one. They don't know your project uses Flyway, so they generate schema SQL by hand. They emit pre-GA Spring AI artifact names that no longer exist in Maven Central.

Skills fix this. A skill is a markdown file your agent reads before touching your code. It tells the agent your conventions, your stack, your gotchas — not generic Spring Boot from 2020.

…

This repo is a collection of battle-tested skills. Copy, adapt, drop in.


Concepts

Concept Description
Skills Markdown files loaded into Claude Code or Codex context — tell the agent how to work in your codebase
CLAUDE.md / AGENTS.md Project-level persistent memory — your agent's onboarding doc
MCP Java SDK Official Java SDK for building MCP servers — connect your Spring Boot app to any AI agent
Marketplace plugins Versioned Claude Code and Codex packages for all Boot 3 or Boot 4 skills
Project templates Ready-to-adapt CLAUDE.md and AGENTS.md guidance for Boot 3 and Boot 4 projects
Planned workflows Repeatable commands such as /generate-endpoint, /write-test, and /db-migrate are listed in the roadmap

Skills

The catalog ships in two version trees — pick the folder that matches your stack. Shared topics normally have both flavors; genuinely version-specific topics may live only in the relevant tree.

Folder Target stack Compatibility baseline
skills/spring-boot-4/ Spring Boot 4.x · Spring Framework 7 · Spring Security 7 · Spring Batch 6 · Jackson 3 · Spring AI 2.0 Java 17+; examples use Java 21; Boot 4.0.x and 4.1.x
skills/spring-boot-3/ Spring Boot 3.x · Spring Framework 6 · Spring Security 6 · Spring Batch 5 · Jackson 2 · Spring AI 1.x Java 17+; examples use Java 21

Drop any skill folder into your agent's skills directory. Claude Code users can copy them to .claude/skills/; Codex users can adapt the same SKILL.md folders for .codex/skills/. The catalog below links to the Spring Boot 4 versions — swap spring-boot-4 for spring-boot-3 in any path if you're still on Boot 3.

The version guidance follows the Spring Boot 4 system requirements, the Spring Boot 4 migration guide, and Spring AI's compatibility guidance. Check the official release notes before upgrading a project.

Fast-moving integrations were last verified in August 2026 against Spring Boot 4.1, Spring AI 2.0, MCP Java SDK 2.0, Spring Cloud 2025.1, and Spring Cloud Gateway 5.0. Keep BOM-managed dependency versions together and recheck the linked official sources before adopting a newer release line.

Configuration

Skill Description Tags
configuration-properties Typed binding, startup validation, duration units and secret handling. configuration validation

️ Architecture

Skill Description Tags
layered-architecture Enforces Controller → Service → Repository separation. Prevents business logic leaking into controllers or repositories. architecture
hexagonal-architecture Ports and adapters pattern for Spring Boot. Keeps domain clean of framework dependencies. architecture ddd
domain-driven-design Aggregates, value objects, domain events with commit-safe publication. Includes JPA mapping conventions. ddd jpa
multi-module-maven Parent POM conventions, shared BOM, inter-module dependency rules. Prevents circular deps. maven architecture
spring-modulith Module boundaries, verification and durable event publication. architecture modulith
multi-tenancy Tenant resolution, database/schema isolation, tenant-aware persistence, caches, jobs, and migrations. architecture security data

API Design

Skill Description Tags
rest-api-conventions Your project's response envelope, error codes, pagination contract, versioning strategy. Fill in the template. rest api
openapi-first Generate controllers and DTOs from OpenAPI spec. Uses openapi-generator-maven-plugin. openapi codegen
problem-details-rfc9457 RFC 9457 compliant error responses with Spring's ProblemDetail. Replaces ad-hoc error envelopes. error-handling rest
idempotency-patterns Concurrent retries, scoped request keys, replay and transaction boundaries. api transactions
hateoas Spring HATEOAS link building conventions. Teaches agent when and how to add hypermedia links. hateoas rest

Edge & Reactive

Skill Description Tags
spring-cloud-gateway Secure route design, header hygiene, timeouts, rate limits, retries, and release-train compatibility. gateway spring-cloud security
webflux-reactive-patterns Non-blocking WebFlux, Reactor context, R2DBC, backpressure, cancellation, and reactive tests. webflux reactor r2dbc

️ Data & Persistence

Skill Description Tags
spring-data-jpa Boot 4 JPA with Hibernate 7: entity modeling, Jakarta imports, relationships, projections, N+1 prevention, keyset pagination, and batch writes. jpa hibernate
flyway-migrations Migration naming convention, safe multi-step schema changes, team workflow for concurrent migrations. flyway migrations
spring-data-redis Cache-aside pattern, key naming, TTL strategy, stampede protection, serialization config. redis caching
transactional-patterns @Transactional propagation rules, self-invocation pitfall, after-commit side effects, saga pattern. transactions

Messaging

Skill Description Tags
event-driven-messaging Kafka/RabbitMQ/Pulsar/JMS contracts, idempotent consumers, outbox delivery, retries, and dead letters. messaging kafka rabbitmq

⚙️ Batch & Jobs

Skill Description Tags
spring-batch Spring Batch 6 chunk jobs, JDBC versus resourceless repositories, JobOperator, restartability, reader sort/thread-safety, and transaction boundaries. batch etl

Migration & Deployment

Skill Description Tags
spring-boot-migration Staged Boot 3.5 → 4 migration covering modular starters, Jackson 3, tests, servers, and verification. migration spring-boot-4
container-native-deployment Buildpacks, layered OCI images, JVM containers, GraalVM native images, AOT hints, and probes. containers graalvm aot

Framework 7 Core

Skill Description Tags
api-versioning Spring Framework 7 built-in API versioning: mapping versions, central request resolution, defaults, supported versions, and deprecation headers. rest api versioning
http-interface-clients Boot 4 declarative HTTP clients with @ImportHttpServices, grouped base URLs/timeouts, and RestClient versus WebClient selection. http clients
null-safety JSpecify nullability for Framework 7: @NullMarked, @Nullable, generic and array positions, Kotlin interop, and NullAway. null-safety jspecify
resilience-retry Framework 7 core @Retryable and @ConcurrencyLimit: enablement, backoff, no @Recover, proxy, and transaction pitfalls. resilience retry

Security

Skill Description Tags
spring-security-jwt JWT auth filter chain, access and refresh token validation, RBAC with method security. Opinionated starting point. security jwt
oauth2-resource-server OAuth2 resource server config, JWT claim extraction, scope-based authorization. security oauth2

AI & MCP

Skill Description Tags
spring-ai-integration Spring AI ChatClient, chat memory, RAG pipeline, structured output. Real GA artifact names — no dead pre-GA coordinates. spring-ai llm
mcp-server Build MCP servers with the Java SDK 2.x and Spring AI 2.0 native annotations. Tool registration, Streamable HTTP, and stdio safety. mcp ai-agents
ai-observability Token usage tracking, latency monitoring, prompt/response logging for Spring AI apps. observability spring-ai

Operations

Skill Description Tags
production-observability Actuator, Micrometer, OpenTelemetry/OTLP, health probes, structured logging, and actionable alerts. actuator micrometer opentelemetry

Testing

Skill Description Tags
testing-pyramid Unit → Slice → Integration conventions. @WebMvcTest, @DataJpaTest, @MockitoBean, Testcontainers. testing

⚡ Quick Start

1. Prepare your coding agent

Install Claude Code if needed:

bash
npm install -g @anthropic-ai/claude-code

If you use Codex, confirm the CLI or desktop app command is available:

bash
codex --version

2. Drop a skill into your project

Claude Code:

bash
PROJECT_DIR=/path/to/my-spring-app
mkdir -p "$PROJECT_DIR/.claude/skills"
# Spring Boot 4 project
cp -r skills/spring-boot-4/rest-api-conventions "$PROJECT_DIR/.claude/skills/"
cp -r skills/spring-boot-4/spring-data-jpa "$PROJECT_DIR/.claude/skills/"

# Spring Boot 3 project — same skills, Boot 3 flavor
cp -r skills/spring-boot-3/rest-api-conventions "$PROJECT_DIR/.claude/skills/"

Codex:

bash
PROJECT_DIR=/path/to/my-spring-app
mkdir -p "$PROJECT_DIR/.codex/skills"
# Spring Boot 4 project
cp -r skills/spring-boot-4/rest-api-conventions "$PROJECT_DIR/.codex/skills/"
cp -r skills/spring-b

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Javaai-coding-agentclaudeclaude-aiclaude-code

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类后端框架
定价开源

> 相关工具

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架