SpringBoot Skills 全景指南

📅 2026/7/10 3:30:59
SpringBoot Skills 全景指南
一、Spring Boot 专用 Agent Skills以下 Skills 专为 Spring Boot 开发设计直接提升 AI Agent 在 Spring Boot 项目中的编码质量。1.1 Dr JSkill — Spring Boot 项目脚手架生成⭐ 251维度说明仓库https://github.com/jdubois/dr-jskill作者Julien DuboisJHipster 创始人功能按 Julien Dubois 最佳实践生成 Spring Boot 4.x 项目脚手架特性Java 25、PostgreSQL、Docker 支持可选 Vue.js / React / Angular / Vanilla JS 前端兼容Claude Code、GitHub Copilot CLI、Windsurf安装克隆到 skills 目录AI Agent 自动发现核心价值JHipster 创始人亲自设计的 Skill生成的项目结构遵循业界最严格的 Spring Boot 规范适合作为新项目起点。1.2 Spring Boot Skills 集合 — 生产级开发规范维度说明仓库https://github.com/rrezartprebreza/spring-boot-skills功能生产级 AI 编码 Agent Skills 集合专为 Spring Boot 日常开发设计核心理念“AI 擅长 Python但在 Spring Boot 上会幻觉。这个 repo 教 Agent 像高级 Spring 工程师一样编码。”包含技能REST API 规范、测试策略、MCP Java SDK、数据库迁移等技能结构每个 skill 包含 SKILL.md conventions.md examples/ templates/安装克隆单个 skill 目录到.claude/skills/即可核心价值每个 Skill 都是约定 示例 模板的完整组合Agent 不仅知道怎么做还能直接复制正确的代码模板。1.3 Spring Boot Skills Marketplace — 渐进式架构模式⭐ 47维度说明仓库https://github.com/a-pavithraa/springboot-skills-marketplace功能Spring Boot 架构模式渐进式 Skills 集合兼容 Claude Code 和 Codex架构模式Layered → Package-by-Module → Modular Monolith → Tomato → DDDHexagonal设计哲学“从简单开始只在复杂度需要时才增加复杂度”包含内容Spring Data JPA 参考、测试 Skills、架构演进路径指南安装npx skills add或手动克隆核心价值避免过度设计。Agent 会根据项目规模推荐合适的架构模式而不是一上来就 DDD。1.4 Spring Boot Engineer — 高级编码 Subagent维度说明仓库https://github.com/VoltAgent/awesome-claude-code-subagents角色高级 Spring Boot 工程师 Subagent专长Spring Boot 3、微服务架构、WebFlux 响应式、Spring Cloud、GraalVM Native工作流架构规划 → 实现 → Spring Boot Excellence 三阶段质量标准88% 测试覆盖率、2.3s 启动时间、GraalVM Native 内存减少 75%核心价值作为独立 Subagent 使用适合让专家做专家的事的多 Agent 协作模式。1.5 Java Architect — 企业级架构 Subagent维度说明仓库https://github.com/VoltAgent/awesome-claude-code-subagents角色企业级 Java 架构师 Subagent专长Java 17 LTS、Spring Boot、微服务、响应式编程、SOLID 原则工作流架构分析 → 企业级实现 → 质量保证质量标准88% 测试覆盖率、2.3s 启动时间、GraalVM Native 内存减少 75%核心价值在复杂系统架构设计阶段调用确保整体技术选型和分层设计合理。二、大型 Skills 集合中的 Spring Boot 相关 Skills以下大型 Skills 集合包含大量与 Spring Boot / Java 开发直接相关的 Skills。2.1 Antigravity Awesome Skills⭐ 38.9k1,480 Skills维度说明仓库https://github.com/sickn33/antigravity-awesome-skills安装npx antigravity-awesome-skills --claude与 Spring Boot 相关的 15 个 SkillsSkill 名称说明适用场景java-architect企业级 Java 架构师系统架构设计、技术选型spring-boot-engineerSpring Boot 3 专家日常开发、微服务实现api-design-principlesREST/GraphQL API 设计原则API 接口设计database-optimization数据库优化查询调优、索引策略tdd-masteryRed-Green-Refactor 测试驱动开发测试编写security-hardening安全加固输入验证、认证模式code-refactoring-refactor-clean重构专家代码清理、SOLID 原则production-code-audit生产级代码审计上线前审查cqrs-implementationCQRS 架构实现读写分离架构ddd-strategic-designDDD 战略设计限界上下文划分ddd-tactical-patternsDDD 战术模式聚合、值对象、领域事件event-sourcing-architect事件溯源架构事件驱动系统postgres-best-practicesPostgreSQL 最佳实践数据库设计sql-optimization-patternsSQL 优化模式慢查询优化monorepo-architect单仓库架构大型多模块 Spring 项目2.2 VoltAgent Awesome Agent Skills⭐ 23.3k1,000 Skills维度说明仓库https://github.com/VoltAgent/awesome-agent-skills安装git clone后手动配置 skills 目录与 Antigravity 类似的精选集合兼容 Claude Code / Codex / Gemini CLI / Cursor。Java 相关 Skills 分类在02-language-specialists/目录下包含 Spring Boot Engineer 和 Java Architect 等角色 Subagent。2.3 Awesome Claude Code Toolkit⭐ 1.8k维度说明仓库https://github.com/rohitg00/awesome-claude-code-toolkit安装克隆后手动配置 skills 目录包含 135 agents 35 curated skills 42 commands 176 plugins。Spring Boot 相关的 Skills 在 API Design、Database Optimization、TDD、Security 等目录下。三、Spring AI 中的 Agent Skills 支持Spring AI 社区已将 Agent Skills 概念集成到 Spring 生态中允许在 Spring Boot 应用内部运行 AI Agent 并加载 Skills。这个就比较有意思了使用springAI相关的skill开发AI Agent3.1 Spring AI Agent Utils⭐ 460维度说明仓库https://github.com/spring-ai-community/spring-ai-agent-utils功能将 Claude Code 的 Skills 概念作为 Spring AI 工具重新实现SkillsJar可将 Skills 打包为 Maven/Gradle 依赖在团队间分发集成方式通过SkillsTool在ChatClient中注册 Skills代码示例javaChatClient chatClient chatClientBuilder.defaultToolCallbacks(SkillsTool.builder().addSkillsDirectory(.claude/skills).build()).defaultTools(FileSystemTools.builder().build()).defaultTools(ShellTools.builder().build()).build();3.2 官方示例在 Spring Boot 中创建 Code Reviewer SkillSpring 官方博客展示了如何在 Spring Boot 应用中定义和加载 Skills维度说明来源Spring AI 官方博客用途在 Spring Boot 应用内创建可复用的 AI Agent Skillbashmkdir -p .claude/skills/code-reviewercat .claude/skills/code-reviewer/SKILL.md EOF---name: code-reviewerdescription: Reviews Java code for best practices, security issues, and Spring Framework conventions.Use when user asks to review, analyze, or audit code.---# Code Reviewer## InstructionsWhen reviewing code:1. Check for security vulnerabilities (SQL injection, XSS, etc.)2. Verify Spring Boot best practices (proper use of Service, Repository, etc.)3. Look for potential null pointer exceptions4. Suggest improvements for readability and maintainability5. Provide specific line-by-line feedback with code examplesEOF四、如何为 Spring Boot 项目编写自己的 Skill4.1 创建步骤bash# 1. 创建 skill 目录mkdir -p .claude/skills/spring-boot-rest-api# 2. 创建 SKILL.mdcat .claude/skills/spring-boot-rest-api/SKILL.md EOF---name: spring-boot-rest-apidescription: 编写 Spring Boot REST API 的最佳实践。当用户要求创建 Controller、DTO 或 REST 端点时自动激活。---# Spring Boot REST API 开发指南## 触发条件- 创建新的 REST Controller- 编写 DTO / VO 类- 设计 API 响应格式## 核心规则1. 使用 RestController RequestMapping2. 所有响应统一包装为 ResultT 格式3. 使用 Valid 进行请求参数校验4. 全局异常处理使用 ControllerAdvice5. 分页查询使用 Pageable 参数## 代码示例见 references/ 目录EOF# 3. 创建参考文件mkdir -p .claude/skills/spring-boot-rest-api/references4.2 编写最佳实践原则说明控制体量SKILL.md 控制在 500 token 以内超出部分放入references/目录按需加载明确触发触发条件用 “当用户要求…时” 的句式正反对比包含正反例对比帮助 Agent 理解什么是好的代码模板复用使用模板文件放在templates/目录供 Agent 复制使用团队共享提交到版本控制让团队共享五、Spring Boot 项目 CLAUDE.md 模板CLAUDE.md是每次对话都加载的项目级上下文配合 Skills 使用效果最佳。markdown# 项目名称## 技术栈- Spring Boot 4.x / Java 25- PostgreSQL JPA/Hibernate- Spring Security JWT- Redis 缓存- Docker Kubernetes## 关键命令-./mvnw spring-boot:run — 启动开发服务器-./mvnw test — 运行测试-./mvnw clean package -DskipTests — 打包## 代码规范- 构造器注入不用 Autowired 字段注入- Service 层不加 Transactional只在需要的方法上加- Entity 不直接暴露给 API用 DTO 转换- 日志用 SLF4J不用 System.out## Skills本项目已安装以下 Skills- spring-boot-rest-apiREST API 开发- spring-boot-testing测试编写- code-reviewer代码审查六、推荐的 Spring Boot Agent Skills 工作流6.1 标准工作流1. 探索阶段让 Agent 读取代码库理解架构 2. 规划阶段使用 /plan 模式Agent 输出实现方案 3. 编码阶段Agent 按规划逐步实现自动加载匹配的 Skills 4. 验证阶段运行测试确认通过 5. 提交阶段Git commit push6.2 多 Agent 协作模式对于复杂 Spring Boot 项目可以按角色分配不同 SkillsAgent 角色职责推荐 Skill架构师设计微服务架构、模块拆分Java Architect开发者编写具体代码Spring Boot Engineer / Dr JSkill测试工程师编写和运行测试TDD Mastery安全审计安全漏洞扫描Security Hardening代码审查代码质量把关Code Reviewer