What problem does it solve? Setting up Spring Security correctly is error-prone: deprecated APIs, misconfigured CORS, weak password encoding, and inconsistent JWT handling lead to vulnerable Spring Boot APIs. This Skill provides standardized, production-oriented patterns for securing REST APIs. ## Core Features & Use Cases - SecurityFilterChain Configuration: Modern Spring Security 6+ setup with stateless sessions, CSRF handling, CORS, and role-based URL authorization. - JWT Authentication: Complete token provider, authentication filter, refresh token flow, and UserDetailsService implementation. - Method-Level Security: @PreAuthorize patterns with SpEL expressions and custom permission evaluators for fine-grained authorization. - Use Case: When building a new Spring Boot REST API, use this Skill to scaffold the full security layer—SecurityConfig, JWT filter, auth controller with register/login/refresh endpoints—following consistent best practices. ## Quick Start Ask the AI to set up JWT-based Spring Security for your Spring Boot project using the spring-security skill.