Review Gamsung Commerce Java DTOs in Claude Code
Organize API Request and Response records and their factory mappings according to the project's layer rules.
中文Install in Claude Code
The Gamsung Commerce workspace in Claude Code. Check the project's Java version and existing interface-layer DTOs.
- Review `.claude/skills/dto-design/SKILL.md` and its requirements at the pinned GitHub commit.
- Create `.claude/skills/dto-design/` in your project and save the reviewed file as `.claude/skills/dto-design/SKILL.md`.
- Start Claude Code from that project's root, then select `/dto-design` in the slash menu.
Example task
Design a fictional rehearsal query response. The domain fixture is `{info:'RehearsalInfo',id:14,title:'Evening practice'}`. Expose id and title while using the existing readonly domain data.What to check
At the interface layer, `RehearsalV1Dto.Response.Detail.from(info)` should map to `{id:14,title:'Evening practice'}`. Keep the domain type intact and let the controller convert request inputs to application commands.
Original SKILL.md on GitHub · Updated
Frequently asked question
Which layer should perform the domain-to-response DTO mapping?
Keep DTOs in the interface layer, where a Response record factory can convert the domain Info. The controller converts incoming Request records to application commands.