backend-dtos
Installation
SKILL.md
Backend DTOs & Contracts
Use this skill when
- Defining request and response shapes
- Separating API contracts from internal entities/domain
- Serialization and back-compat planning
Do not use this skill when
- Internal application objects (use value objects in the domain)
Instructions
- Define explicit DTOs for every request and response.
- Never expose domain entities or ORM models directly.
- Map domain ↔ DTO at the boundary with clear conversion.
- Add example values and validation rules to DTOs.
- Version structural changes to DTOs deliberately.
- Keep field naming consistent with the API style guide.