AgentSkillsCN

backend-spring

在应用/API(控制器、服务、仓库、迁移、测试)中实现或更改 Spring Boot 后端时使用此工具。不适用于前端开发。

SKILL.md
--- frontmatter
name: backend-spring
description: Use this when implementing or changing the Spring Boot backend in apps/api (controllers, services, repositories, migrations, tests). Not for frontend work.

Workflow

  1. Read docs/ARCHITECTURE.md and docs/DATA_MODEL.md first.
  2. Keep layers strict: Controller -> Service -> Repository.
  3. Prefer DTOs at boundaries; never expose persistence entities directly.
  4. Any schema change must include a migration and a brief update to docs/DATA_MODEL.md.
  5. Add at least one test for critical logic (service or repository).