Add claude-code-spring module: CLAUDE.md, a path-scoped rule, two skills, four hooks run against real hook JSON, project .mcp.json from the claude mcp CLI, and tests that lint the setup on Spring Boot 4.2.0
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b86yyhhudsSLnwNUFY
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
a620d91d0a
commit
3aa20a1dce
@@ -0,0 +1,16 @@
|
||||
---
|
||||
name: new-endpoint
|
||||
description: Adds a REST endpoint to the orders service the way this project does it (controller, service, tests). Use when asked to add or extend an endpoint.
|
||||
argument-hint: "[what the endpoint should do]"
|
||||
allowed-tools: Bash(mvn *)
|
||||
---
|
||||
|
||||
Add an endpoint for: $ARGUMENTS
|
||||
|
||||
Follow these steps in order.
|
||||
|
||||
1. Read `OrderController` and `OrderService` first and copy their style.
|
||||
2. Put business logic in `OrderService`, a unit test in `OrderServiceTest` first (red), then the code (green).
|
||||
3. Add the controller method and a MockMvc case in `OrderControllerTest`.
|
||||
4. Run `mvn -B -q test`. Do not report done until it is green.
|
||||
5. Reply with the new route, the status codes it returns, and the test names you added.
|
||||
Reference in New Issue
Block a user