java-spring-api
Skill35 starsChanged 6 months agoMITView on GitHub
This skill provides patterns and templates for Java 21 Spring Boot 3.5.x WebFlux REST API development. It should be activated when creating controllers, services, repositories, DTOs, or reactive tests.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- lucasnscr/issue-to-pr-aitheir own version, first seen Oct 25, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- lucasnscr/issue-to-pr-ai★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository157 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- a2ui-angularSkill
- accessibility-auditSkill
- adk-deploy-guideSkill
- adk-dev-guideSkill
- adk-eval-guideSkill
- adk-observability-guideSkill
- agentic-ai-coding-standardSkill
- agentic-ai-devSkill
- ai-auditSkill
- ai-chatSkill
- ai-decision-recordSkill
- ai-incident-responseSkill
- ai-launch-checkSkill
- ai-playbookSkill
- angular-best-practicesSkill
- angularSkill
- angular-spaSkill
- angular-ui-patternsSkill
- api-design-principlesSkill
- app-store-optimizationSkill
- architect-reviewSkill
- architecture-decision-recordsSkill
- architecture-designSkill
- asc-cli-usageSkill
- asc-crash-triageSkill
- asc-id-resolverSkill
- asc-release-flowSkill
- asc-signing-setupSkill
- asc-submission-healthSkill
- asc-testflight-orchestrationSkill
- browser-testingSkill
- changelog-generatorSkill
- claude-actions-auditorSkill
- clean-codeSkill
- codebase-onboardingSkill
- code-explainerSkill
- code-reviewerSkill
- code-simplifierSkill
- comment-analyzerSkill
- database-schema-designerSkill
- ddd-architectSkill
- decision-frameworksSkill
- dedup-code-agentSkill
- deployment-ci-cdSkill
- design-systemSkill
- dockerSkill
- documentation-generationSkill
- domain-finderSkill
- error-detectiveSkill
- eval-guideSkill
- feature-forgeSkill
- firebase-basicsSkill
- firebase-hosting-basicsSkill
- fixing-accessibilitySkill
- fixing-motion-performanceSkill
- flutter-animationsSkill
- flutter-genuiSkill
- flutter-mobileSkill
- flutter-security-expertSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 84
Before generating code, consult these sources for current syntax and APIs:
- Very specific: line 104
Validation errors: Use jakarta.validation annotations on DTO records.
- Very specific: line 106
Not-found errors: Use switchIfEmpty(Mono.error(new ResourceNotFoundException(...))) in services.
- Distinctive: line 113
No JPA in reactive stacks — use R2DBC exclusively
- Distinctive: line 118
After writing Java code, dispatch these reviewer agents:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Iron Law
NO REACTIVE CODE WITHOUT READING reference/spring-boot-conventions.md FIRST — blocking calls inside reactive chains cause thread starvation
Java 21 + Spring Boot 3.5.x WebFlux REST API Skill
Conventions & Rules
For code conventions, package layout, and reactive rules, read
reference/spring-boot-conventions.md
Quick Scaffold — New Spring Boot Project
# Using Spring Initializr via curl
curl https://start.spring.io/starter.zip \
-d type=maven-project \
-d language=java \
-d javaVersion=21 \
-d bootVersion=3.5.0 \
-d dependencies=webflux,r2dbc,postgresql,flyway,validation,actuator,lombok \
-d groupId=com.company \
-d artifactId=my-service \
-d name=my-service \
-o my-service.zip && unzip my-service.zip -d my-serviceProcess
- Scaffold using Spring Initializr or the command above
- Configure pom.xml and application.yml — read
reference/spring-boot-config.md - Create files using templates — read
reference/spring-boot-templates.mdfor DTO, Entity, Repository, Service, Controller, and Test templates - Follow conventions below for package layout and reactive rules
- Write tests with
@SpringBootTest+WebTestClient - Format and check:
mvn spotless:applyor IDE formatter
Key Patterns
| Pattern | Implementation |
| DTOs | Java records with jakarta.validation annotations |
| Entities | Classes with @Table, @Id R2DBC annotations |
| Repositories | Extend ReactiveCrudRepository<T, UUID> |
| Services | @Service + @RequiredArgsConstructor, return Mono/Flux |
| Controllers | @RestController + @RequestMapping("/api/v1/...") |
| Error handling | @ControllerAdvice returning ProblemDetail (RFC 9457) |
| Config | application.yml with ${ENV_VAR:default} placeholders |
| Migrations | Flyway in src/main/resources/db/migration/ (disabled by default; enable with FLYWAY_ENABLED=true) |
Reference Files
| File | Content | Load When |
reference/spring-boot-config.md | pom.xml template, application.yml configuration | Project setup, configuring dependencies |
reference/spring-boot-templates.md | DTO, Entity, Repository, Service, Controller, Test, Error Handler templates | Creating DTOs, services, controllers, entities |
reference/spring-boot-enterprise-errors-security.md | Exception hierarchy, Security (OAuth2/JWT), CORS | Implementing error handling, adding security, configuring CORS |
reference/spring-boot-enterprise-resilience-health.md | Resilience4j, WebClient pool, Health indicators, Swagger | Adding resilience, health checks, API documentation |
reference/spring-boot-rest-service-guide.md | OpenAPI+DDL driven workflow, MapStruct mapping, External service clients, WireMock testing | Designing REST APIs, mapping DTOs, calling external services |
reference/spring-boot-testing-unit.md | BlockHound, Resilience4j testing, test data builders | Writing unit tests, testing reactive streams |
reference/spring-boot-testing-integration.md | Testcontainers, contract testing, WireMock, coverage | Writing integration tests, controller tests |
reference/spring-boot-reactive-debugging.md | Reactor Hooks (onOperatorError, onNextDropped, onErrorDropped), checkpoint patterns, debug mode control | Debugging reactive pipelines, tracing Flux/Mono errors |
reference/spring-boot-security-hardening.md | OWASP dependency scanning, static analysis patterns, HSTS, JWT role extraction, secure logging | Security hardening, JWT auth, dependency scanning |
reference/spring-boot-reactive-patterns.md | Resilience4j operators, Redis reactive, SSE, Spring Cloud Stream, custom operators, threading anti-patterns | Writing reactive endpoints, Flux/Mono, Redis caching, SSE |
reference/spring-boot-design-patterns.md | Builder, Factory (Spring DI), Strategy, Observer (Spring Events), Decorator, Adapter — all with Spring Boot 3.5.x examples | Implementing any of these 6 patterns in Spring Boot code |
reference/spring-reactive-review-checklist.md | Spring reactive review checklist (used by spring-reactive-reviewer agent) | Code review, pre-PR checklist |
reference/java21-advanced-features.md | GraalVM Native Image, structured concurrency (StructuredTaskScope), virtual threads migration guide, JVM tuning (ZGC/G1 for Cloud Run), JMH benchmarking, Spring Modulith, sequenced collections, string templates, record patterns | GraalVM native builds, parallel calls with structured concurrency, JVM performance tuning, modular monolith design |
reference/spring-boot-verification-gates.md | SpotBugs, PMD, Checkstyle Maven commands, 6-phase verification loop, CI gate output template | Pre-PR verification, static analysis, CI/CD gate |
Documentation Sources
Before generating code, consult these sources for current syntax and APIs:
| Source | URL / Tool | Purpose |
| Spring Boot | Context7 MCP | Latest Spring Boot APIs, annotations, configuration |
| Spring Initializr | https://start.spring.io | Project scaffolding with correct dependencies |
Common Commands
mvn spring-boot:run # Run backend
mvn test # Run tests
mvn package # Build JAR
mvn spotless:apply # Format code
mvn clean test -Dspring.profiles.active=test # Run tests with test profile
mvn dependency:tree # Show dependency treeError Handling
Validation errors: Use jakarta.validation annotations on DTO records. Handle via @ControllerAdvice returning ProblemDetail with HttpStatus.BAD_REQUEST (400).
Not-found errors: Use switchIfEmpty(Mono.error(new ResourceNotFoundException(...))) in services.
Duplicate errors: Catch DataIntegrityViolationException in services and convert to 409 Conflict.
Hard Prohibitions
- No
block()calls in reactive chains — all operations must stay non-blocking - No JPA in reactive stacks — use R2DBC exclusively
- Password reset rate limit: 3 attempts per email per hour maximum
Post-Code Review
After writing Java code, dispatch these reviewer agents:
spring-reactive-reviewer— reactive correctness, blocking call detection, R2DBC patternssecurity-reviewer— auth, input validation, secrets management
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

