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:
Ankur Mhatre
2026-11-22 02:05:35 +05:30
co-authored by Claude Sonnet 5.5
parent a620d91d0a
commit 3aa20a1dce
40 changed files with 1175 additions and 0 deletions
@@ -0,0 +1,20 @@
# stop-gate.sh: Stop (run in a throwaway copy)
## Suite green, stop_hook_active=false
input : {"hook_event_name":"Stop","stop_hook_active":false,"last_assistant_message":"Done."}
stdout: (empty)
stderr: (empty)
exit : 0
## Suite red (>= changed to >), stop_hook_active=false
input : {"hook_event_name":"Stop","stop_hook_active":false,"last_assistant_message":"Done."}
stdout: {"decision":"block","reason":"The test suite is red. Fix it before finishing:\n[ERROR] Failures: \n[ERROR] OrderControllerTest.createThenFetch:27 JSON path \"$.total\" expected:<90.0> but was:<100.0>\n[ERROR] OrderServiceTest.tenUnitsGetTenPercentOff:23 \nexpected: 90.00\n but was: 100.00\n[ERROR] Tests run: 9, Failures: 2, Errors: 0, Skipped: 0"}
stderr: (empty)
exit : 0
## Suite still red, stop_hook_active=true (Claude was already pushed back once)
input : {"hook_event_name":"Stop","stop_hook_active":true,"last_assistant_message":"Done."}
stdout: (empty)
stderr: (empty)
exit : 0