Skip to content
Development
Skill

/spring-cloud-gateway

Use when building or changing a Spring Cloud Gateway on Spring Boot 3. Covers route design, authentication, header hygiene, rate limiting, retries, timeouts, observability, and testing.

From plugin
spring-boot-skills
33733 skills

Claude Code

$ npx -y skills add rrezartprebreza/spring-boot-skills --skill spring-cloud-gateway --agent claude-code

SKILL.md

spring-cloud-gateway.SKILL.md
name: spring-cloud-gateway
description: >
  Use when building or changing a Spring Cloud Gateway on Spring Boot 3. Covers route design,
  authentication, header hygiene, rate limiting, retries, timeouts, observability, and testing.

Spring Cloud Gateway

Keep the gateway an edge adapter. Do not move domain workflows into filters.

Compatibility first

  • Select the Spring Cloud release train compatible with the exact Boot 3 minor.
  • Import the Spring Cloud BOM and omit individual Spring Cloud dependency versions.
  • Prefer the reactive gateway unless the project deliberately uses the MVC variant.

Route rules

  • Use stable route IDs and explicit predicates.
  • Strip untrusted forwarding, identity, and internal headers at the edge.
  • Add correlation headers only after removing client-supplied values.
  • Keep path rewriting and host changes visible in route configuration.
  • Set connect and response timeouts globally, with narrow route overrides.

Security and resilience

  • Authenticate at the edge and authorize again in downstream services.
  • Relay tokens only to intended audiences.
  • Rate-limit by trusted identity or API key, not an unverified header.
  • Retry only idempotent operations and only before response commitment.
  • Use circuit breakers for failing dependencies; never hide sustained failure with unlimited retries.

Testing and operations

  • Test predicates, filters, header removal, status mapping, and timeouts.
  • Use WireMock or a containerized upstream for integration tests.
  • Emit route ID, outcome, latency, and upstream metrics with bounded tags.

Examples

  • See `examples/good-routes.yml` and `examples/bad-routes.yml`.

Gotchas

  • Agent trusts `X-User-Id` from the public request - derive identity after authentication.
  • Agent retries POST requests by default - retry only operations proven idempotent.
  • Agent adds business orchestration to a gateway filter - keep domain logic downstream.
  • Agent omits response timeouts - stalled upstreams can exhaust gateway resources.
  • Agent mixes incompatible Spring Cloud and Boot versions - use the official compatibility matrix.
Read more
@rrezartprebreza
Ships withspring-boot-skills

Production-grade Claude Code and Codex skills for Spring Boot developers

Stars on GitHub

Momentum

stars in total
337
Star history of rrezartprebreza/spring-boot-skills on GitHub, a chart by star-history.com

Other skills on spring-boot-skills.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about spring-cloud-gateway.

Which coding agents can use spring-cloud-gateway?
spring-cloud-gateway installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.