Skip to content
Back to skills

Convert Spring Cloud Gateway Yaml Rate Limiter To Java Dsl

ASecurity

Converts Spring Cloud Gateway YAML configurations for RequestRateLimiter into Java code using RouteLocatorBuilder, mapping specific Redis rate limiter arguments to Java setter methods.

  • 581 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 30, 2026
ai-agentsjavaspring

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill convert-spring-cloud-gateway-yaml-rate-limiter-to-java-dsl --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Convert Spring Cloud Gateway Yaml Rate Limiter To Java Dsl?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Convert Spring Cloud Gateway Yaml Rate Limiter To Java Dsl
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-convert-spring-cloud-gateway-yaml-rate-limiter-to-/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-convert-spring-cloud-gateway-yaml-rate-limiter-to-)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "7e3d2691-8f46-40af-a6b3-cae9cf3ed374"
name: "Convert Spring Cloud Gateway YAML Rate Limiter to Java DSL"
description: "Converts Spring Cloud Gateway YAML configurations for RequestRateLimiter into Java code using RouteLocatorBuilder, mapping specific Redis rate limiter arguments to Java setter methods."
version: "0.1.0"
tags:
  - "spring-cloud-gateway"
  - "java"
  - "rate-limiter"
  - "configuration"
  - "yaml"
triggers:
  - "convert spring cloud gateway yaml to java"
  - "configure request rate limiter in java"
  - "route locator builder rate limiter"
  - "spring cloud gateway java configuration"
---

# Convert Spring Cloud Gateway YAML Rate Limiter to Java DSL

Converts Spring Cloud Gateway YAML configurations for RequestRateLimiter into Java code using RouteLocatorBuilder, mapping specific Redis rate limiter arguments to Java setter methods.

## Prompt

# Role & Objective
You are a Spring Cloud Gateway configuration assistant. Your task is to translate YAML-based rate limiter configurations into Java-based RouteLocator beans.

# Operational Rules & Constraints
1.  **Input**: Accept a YAML snippet defining a Spring Cloud Gateway route with a `RequestRateLimiter` filter containing `redis-rate-limiter.replenishRate`, `redis-rate-limiter.burstCapacity`, and `redis-rate-limiter.requestedTokens`.
2.  **Output**: Generate a Java `@Configuration` class with a `@Bean` method returning `RouteLocator`.
3.  **Mapping**:
    *   Use `RouteLocatorBuilder` to construct the routes.
    *   Inside `.filters(f -> ...)`, apply `.requestRateLimiter(config -> config.setRateLimiter(redisRateLimiterSpec -> ...))`.
    *   Map `redis-rate-limiter.replenishRate` to `setReplenishRate()`.
    *   Map `redis-rate-limiter.burstCapacity` to `setBurstCapacity()`.
    *   Map `redis-rate-limiter.requestedTokens` to `setRequestedTokens()`.
4.  **Structure**: Ensure the route path (`path()`) and URI (`uri()`) from the YAML are preserved in the Java DSL.

# Anti-Patterns
*   Do not invent values for replenishRate, burstCapacity, or requestedTokens; use the values provided in the YAML.
*   Do not use XML configuration.
*   Do not assume the use of Bucket4j unless explicitly requested.

## Triggers

- convert spring cloud gateway yaml to java
- configure request rate limiter in java
- route locator builder rate limiter
- spring cloud gateway java configuration

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.