Spring boot microservices
Skill ComeOnOliver/skillshub/skills/HoangNguyen0403/agent-skills-standard/spring-boot-microservices
Standards for Feign clients and asynchronous messaging with Spring Cloud Stream. Use when implementing Feign HTTP clients or async event messaging in Spring Boot microservices. (triggers: **/*Client.java, **/*Consumer.java, feign-client, spring-cloud-stream, rabbitmq, resilience4j)From its SKILL.md
npx -y skills add ComeOnOliver/skillshub --skill spring-boot-microservicesAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
1.9 KB, 404 tokens by cl100k_base, as published. Nobody here has run it
Spring Boot Microservices Standards
Priority: P0
Implementation Guidelines
Sync Communication (REST & API Interface)
- Clients: Use
Spring Cloud OpenFeignorHTTP Interfaces(Spring 6/Java 21). - Resilience: Implement
Resilience4jwithCircuit Breaker,Retry (Exponential Backoff), andRateLimiter. Use fallback methods to return cached or default data on failure. Configure timeout values on all Feign clients. - Contracts: Share
DTO Recordsvia aMaven BOMorAPI Contractmodule. - Tracing: Ensure
Micrometerspropagation for Distributed Tracing.
Async Communication (Spring Cloud Stream)
- Architecture: Use
Message-Drivenpatterns withSpring Cloud Stream. - Functions: Define message handlers as
java.util.function.Function,Consumer, orSupplier. - Serialization: Use
JSONorAvrofor events. - Reliability: Implement
Dead Letter Queues(DLQ) andIdempotentconsumers.
Data & Isolation
- DB per Service: NEVER share databases between microservices.
- Shared Libs: Minimize shared logic to shared DTOs/Clients only.
- Discovery: Use
Spring Cloud Gatewayfor routing and auth.
Anti-Patterns
- No Shared DB: Services must communicate via APIs or Events only.
- No Shared Entities: Share DTOs via Maven BOM, never JPA entities.
- No Sync Call Chains: Use async messaging to prevent distributed monolith.
References
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.