> 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)
curl "https://skillshub.wtf/HoangNguyen0403/agent-skills-standard/spring-boot-microservices?format=md"Spring Boot Microservices Standards
Priority: P0
Implementation Guidelines
Sync Communication (REST)
- Clients: Use Spring Cloud OpenFeign or Http Interfaces (Spring 6).
- Resilience: Wrap calls with Resilience4j (Circuit Breaker).
- Contracts: Define DTOs in a Shared Library (Maven BOM).
- Versioning: Enforce Semantic Versioning on shared libs.
Async Communication (Event-Driven)
- Cloud Stream: Use
java.util.function.Consumer<T>composition. - Idempotency: Consumers MUST handle duplicates (DB constraints).
- Evolution: Add fields only. Never rename/remove used fields.
Anti-Patterns
- Direct DB Access:
**No Shared DB**: Use APIs/Events. - Coupled Entities:
**No Shared Entities**: Use DTOs. - Dist. Monolith:
**No Sync Chains**: Use Async.
References
> related_skills --same-repo
> typescript-tooling
Development tools, linting, and build config for TypeScript. Use when configuring ESLint, Prettier, Jest, Vitest, tsconfig, or any TS build tooling. (triggers: tsconfig.json, .eslintrc.*, jest.config.*, package.json, eslint, prettier, jest, vitest, build, compile, lint)
> typescript-security
Secure coding practices for TypeScript. Use when validating input, handling auth tokens, sanitizing data, or managing secrets and sensitive configuration. (triggers: **/*.ts, **/*.tsx, validate, sanitize, xss, injection, auth, password, secret, token)
> typescript-language
Modern TypeScript standards for type safety and maintainability. Use when working with types, interfaces, generics, enums, unions, or tsconfig settings. (triggers: **/*.ts, **/*.tsx, tsconfig.json, type, interface, generic, enum, union, intersection, readonly, const, namespace)
> typescript-best-practices
Idiomatic TypeScript patterns for clean, maintainable code. Use when writing or refactoring TypeScript classes, functions, modules, or async logic. (triggers: **/*.ts, **/*.tsx, class, function, module, import, export, async, promise)