add-rate-limit

Adds rate-limit policies to .NET Web API endpoints with IP/user partitioning.

1|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/Emmanuelkwaa/NetRockTemplate --skill add-rate-limit-emmanuelkwaa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-rate-limit
Source: https://github.com/Emmanuelkwaa/NetRockTemplate/tree/main/.claude/skills/add-rate-limit
Command: npx skills add https://github.com/Emmanuelkwaa/NetRockTemplate --skill add-rate-limit-emmanuelkwaa

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps protect your API endpoints from abuse and excessive traffic by implementing configurable rate limiting policies.

Core Features & Use Cases

  • Policy Definition: Define custom rate limiting rules with specific permit limits, window durations, and queue sizes.
  • Endpoint Application: Apply these policies to individual API endpoints to control access.
  • Use Case: You can set up a policy to allow only 10 requests per minute from a single IP address to your login endpoint to prevent brute-force attacks.

Quick Start

Add a rate limit policy named 'my-policy' to the API.

Frequently Asked Questions about add-rate-limit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement rate limiting in a .NET Web API to prevent brute-force attacks?

You can implement rate limiting in a .NET Web API by configuring policies with specific permit limits, window durations, and queue sizes. This protects endpoints like login routes by restricting requests from a single IP address to prevent abuse.

What is IP-based partitioning for rate limiting policies?

IP-based partitioning for rate limiting policies categorizes incoming traffic by client IP address. This mechanism ensures that permit limits and window durations are tracked individually per IP, isolating abusive clients without affecting other users.

How do I apply a rate limit policy to specific API endpoints?

To apply a rate limit policy to specific API endpoints, you use endpoint attributes. This applies the configured permit limits, window durations, and queue sizes directly to the targeted routes to control access and manage traffic.

Can I configure a queue for excess requests when rate limiting .NET Web API endpoints?

Yes, you can configure a queue for excess requests when rate limiting .NET Web API endpoints. Policies support defining specific queue sizes to hold incoming requests temporarily within the window duration before returning a 429 Too Many Requests response.

Does rate limiting in .NET automatically return a 429 Too Many Requests response?

Yes, applying rate limiting policies in .NET automatically adds a 429 Too Many Requests response. When a client exceeds the configured permit limit within the window duration, the API rejects the request and returns this specific status code.

What is the best way to limit API requests to 10 per minute in .NET?

The best way to limit API requests to 10 per minute in .NET is to define a custom policy with a permit limit of 10 and a window duration of one minute. You can then apply this policy via attributes to your Web API endpoints.