一键导入
springboot-clean-architecture
Use this skill when designing, structuring, or refactoring Spring Boot applications using Clean Architecture principles.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use this skill when designing, structuring, or refactoring Spring Boot applications using Clean Architecture principles.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use this skill when building, optimizing, or deploying Docker images for Spring Boot applications.
Use this skill when managing database transactions in Spring Boot applications to ensure data consistency, integrity, and correct transactional boundaries.
Use this skill when designing or refactoring data transfer and mapping in Spring Boot applications to ensure separation between API, domain, and infrastructure models.
Use this skill when handling, structuring, or refactoring error management in Spring Boot applications to ensure consistency, clarity, and separation of concerns.
Use this skill when implementing authentication and authorization in Spring Boot applications using JWT in a secure and scalable way.
Use this skill when designing or refactoring Spring Boot applications to enforce SOLID principles within a Clean Architecture context.
| name | springboot-clean-architecture |
| description | Use this skill when designing, structuring, or refactoring Spring Boot applications using Clean Architecture principles. |
When applying Clean Architecture in Spring Boot:
Structure the application into layers (from inner to outer):
Enforce dependency rule:
Define domain layer:
Define use-cases layer:
Use ports and adapters:
Controllers (interface adapters):
Infrastructure layer:
Data handling:
Dependency injection:
Transactions:
Avoid:
Refactor by:
Ensure:
If business logic depends on frameworks, databases, or controllers, it violates this skill.