本文へ移動
cccskills
無料GitHub で公開

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.

インストール方法を見る

含まれるファイル(4)

  • SKILL.md2.1 KB
  • agents/openai.yaml204 B
  • examples/bad-routes.yml194 B
  • examples/good-routes.yml303 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Use when adding Spring AI-specific model observations, token usage, latency, externally configured cost attribution, advisor telemetry, or protected prompt and completion logging. Use production-observability for general service metrics, health, logs, and OTLP setup.

日本語の概要は準備中です。原文の説明を表示しています。

rrezartprebreza/spring-boot-skills3052026年9月21日 更新

Use when versioning Spring MVC or WebFlux APIs in Spring Boot 3 / Spring Framework 6. Covers explicit URL, header, and media-type strategies, compatibility rules, and deprecation handling.

日本語の概要は準備中です。原文の説明を表示しています。

rrezartprebreza/spring-boot-skills3052026年9月21日 更新

Use when versioning Spring MVC or WebFlux APIs in Spring Boot 4 / Spring Framework 7. Covers built-in mapping versions, request version resolution, defaults, supported versions, and deprecation headers.

日本語の概要は準備中です。原文の説明を表示しています。

rrezartprebreza/spring-boot-skills3052026年9月21日 更新

Use when introducing or correcting grouped Spring Boot configuration, typed property binding, validation, profiles or secret injection. Do not rewrite unrelated single-value configuration.

日本語の概要は準備中です。原文の説明を表示しています。

rrezartprebreza/spring-boot-skills3052026年9月21日 更新

Use when packaging Spring Boot 4 as an OCI image, JVM container, AOT application, or GraalVM native executable. Covers buildpacks, layers, runtime hints, probes, security, and verification.

日本語の概要は準備中です。原文の説明を表示しています。

rrezartprebreza/spring-boot-skills3052026年9月21日 更新

Use when packaging a Spring Boot 3 application as an OCI image or GraalVM native executable. Covers buildpacks, layered images, JVM containers, AOT hints, probes, security, and verification.

日本語の概要は準備中です。原文の説明を表示しています。

rrezartprebreza/spring-boot-skills3052026年9月21日 更新

rrezartprebreza のスキルをすべて見る

このスキルの問題を報告する