add-rate-limit

Adds configurable rate-limit policies to .NET Web API projects via C# edits.

230|29|Updated Dec 25, 2025
One-click install
npx skills add https://github.com/fpindej/netrock --skill add-rate-limit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-rate-limit
Source: https://github.com/fpindej/netrock/tree/main/.claude/skills/add-rate-limit
Command: npx skills add https://github.com/fpindej/netrock --skill add-rate-limit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps protect your web API from abuse and ensures fair usage by implementing rate limiting policies, preventing excessive requests from single users or IP addresses.

Core Features & Use Cases

  • Policy Definition: Define custom rate limit policies with configurable limits and windows.
  • Endpoint Application: Apply rate limiting to specific API endpoints.
  • Partitioning: Supports partitioning by IP address for unauthenticated endpoints and by user identity for authenticated endpoints.
  • Use Case: Protect your login endpoint from brute-force attacks by limiting login attempts per user or IP address.

Quick Start

Add a new 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 project?

You can implement rate limiting in a .NET Web API by defining custom policies with configurable limits, registering them in your C# source files, and applying them to specific endpoints to control request frequency.

Can I apply rate limiting to specific endpoints to prevent brute-force attacks?

Yes, you can apply rate limiting to specific endpoints like login routes to prevent brute-force attacks by limiting request attempts per authenticated user or IP address.

How does rate limiting partitioning work for unauthenticated and authenticated users?

Rate limiting partitioning controls request frequency by grouping limits per IP address for unauthenticated endpoints and by user identity for authenticated endpoints, ensuring fair API usage.

What is a fixed window rate limiting policy in a .NET Web API?

A fixed window rate limiting policy is a strategy that restricts the number of allowed requests within a specific, configurable time frame for clients accessing a .NET Web API.

Do I need to modify C# source files to configure API security and rate limits?

Yes, configuring API security and rate limits requires modifications to your C# source files to define the rate limit policies, handle the service registration, and apply the attributes to endpoints.

Does this rate limiting approach support both per-user and per-IP request throttling?

Yes, this rate limiting approach supports both per-user and per-IP request throttling by partitioning authenticated endpoints by user identity and unauthenticated endpoints by IP address.