首页/AI 工程/ai-coding-java-springboot-skills
A

ai-coding-java-springboot-skills

by @OliverAAAAAv
3.5(0)

这是一个为AI编码助手和开发团队设计的Spring Boot后端开发标准库。它提供RESTful API设计、分层架构、数据库、异常处理、日志、性能优化和安全等7大核心技能模块,旨在帮助AI生成更规范、可维护、生产就绪的Java Spring Boot代码,提升开发效率和项目质量。

ai-codingspring-bootjavabackendbest-practicesGitHub
安装方式
git clone https://github.com/OliverAAAAA/ai-coding-java-springboot-skills.git
compare_arrows

Before / After 效果对比

1
使用前

AI助手生成的Spring Boot代码可能缺乏统一标准,存在架构不规范、异常处理不完善、性能问题或安全隐患,导致代码难以维护和上线。

使用后

AI助手遵循本标准库,生成的Spring Boot代码将具备统一规范、清晰分层、健壮的异常处理和安全实践,显著提升代码质量和生产就绪度。

description SKILL.md

Spring Boot Development Standards for AI Coding Assistants

License: MIT Java 17+ Spring Boot 3.x MyBatis Plus

Why Use This?

AI coding assistants generate better code when given clear, structured standards. This project provides 7 battle-tested skill modules that enforce consistent, maintainable, and secure Spring Boot code — whether you're building microservices, RESTful APIs, or monolithic backends.

These are not suggestions — they are baseline requirements. Violations lead to serious maintainability and performance issues in production.

Tech Stack

TechnologyVersionPurpose
Java17+Language runtime
Spring Boot3.xApplication framework
MyBatis Plus3.5.xORM / Data access
Redis6.0+Caching layer

Skill Modules

ModuleWhen to UseKey Standards
API StandardsWriting Controllers, designing endpointsRESTful URLs, unified response format, pagination, DTO/VO patterns
Coding ConventionsWriting business logic, DI, transactionsLayered architecture, @Resource injection, naming conventions
Database DesignCreating tables, writing SQL, MyBatis mappersTable design, entity standards, index design, batch operations
Exception HandlingError handling, error code designException hierarchy, global handler, service-layer strategies
Logging & MonitoringLog output, tracing, metricsLog levels, structured logging, sensitive data masking
PerformanceQuery optimization, caching, high concurrencyN+1 prevention, cursor pagination, cache protection
SecurityAuth, user input, sensitive dataSQL injection prevention, XSS, BCrypt passwords, JWT security

How to Use with AI Coding Tools

Claude Code

Reference the standards directly in your prompts:

Implement the user management module for this Spring Boot project.
Strictly follow ai-coding-java-springboot-skills/skill.md:
- Layering: Controller -> BizManageService -> Service -> Mapper
- Use @Resource injection
- Return unified ApiResponse

OpenCode

Place this repo alongside your project in the same workspace:

You are writing code for a Spring Boot backend project.
Follow the standards in ai-coding-java-springboot-skills/skill.md.

Cursor / Windsurf / Continue / Cline

Create a rules file (e.g., .ai/project-rule.md) in your project root:

This project must follow these development standards:
../ai-coding-java-springboot-skills/skill.md

Task-Based Skill Selection

Load only what you need for the current task:

TaskSkill Module
Writing Controllers / APIsapi-standards
Writing business logiccoding-conventions
Designing tables / SQLdb-design
Handling exceptionsexception-handling
Optimizing performanceperformance
Security controlssecurity-standards
Logging & monitoringlogging-monitoring

Project Structure

ai-coding-java-springboot-skills/
├── skill.md                              # Skill collection overview (entry point)
├── README.md                             # This file (English)
├── docs/
│   └── README_zh.md                      # 中文文档
├── spec/
│   └── springboot-development-spec.md    # Complete development specification
└── references/                           # Detailed technical documentation
    ├── springboot-api-standards.md       # REST API design & documentation
    ├── springboot-coding-conventions.md  # Coding standards & layered architecture
    ├── springboot-db-design.md           # Database design & MyBatis Mapper
    ├── springboot-exception-handling.md  # Exception handling & error codes
    ├── springboot-logging-monitoring.md  # Logging & monitoring standards
    ├── springboot-performance.md         # Performance optimization
    └── springboot-security-standards.md  # Security best practices

Applicable Scenarios

  • Spring Boot + MyBatis Plus + Redis projects
  • Java 17+ backend applications
  • RESTful API design
  • Microservice architectures

Star History

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

contact me

alt text

License

This project is licensed under the MIT License.


Version: 1.0.0

forum用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价

统计数据

安装量12
评分3.5 / 5.0
版本
更新日期2026年4月7日
对比案例1 组

用户评分

3.5(0)
5
0%
4
0%
3
0%
2
0%
1
0%

为此 Skill 评分

0.0

兼容平台

🔧Claude Code
🔧Cursor
🔧Windsurf
🔧Copilot
🔧OpenCode

时间线

创建2026年4月7日
最后更新2026年4月7日