This generates unit tests for Spring REST controllers using MockMvc and standalone setup, keeping your tests isolated from the full application context. You get patterns for all the HTTP methods, JsonPath assertions for response validation, and examples covering the annoying edge cases like validation errors, custom headers, and path variables. It mocks service dependencies with Mockito so you're only testing the controller layer's HTTP handling, not business logic. The validation workflow tip is handy: add andDo(print()) when tests fail to see what MockMvc actually returned. Watch out though, standaloneSetup skips some Spring magic like security annotations, so you might need integration tests for those scenarios anyway.
npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill unit-test-controller-layer