drogon-gen-rate-limiter

drogon-gen-rate-limiter is a skill for Claude Code from voidvec/drogon-claude-plugin. It costs 44 tokens per session (585 once invoked), scanned A, original, MIT.

A code generator for limiting requests in Drogon. Rate limiting caps how often a site, user, IP address, or route can be accessed over a time period.

In plain words
What is it for?
Use it to configure global, IP-based, user-based, or route-specific limits with fixed-window, sliding-window, or token-bucket rules.
Why use it?
It helps reduce abuse and repeated login attempts, and can return a consistent HTTP 429 response when a limit is exceeded. It also includes a Redis-based option for multiple service instances.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the drogon plugin — 22 skills, 2 hooks shipped together

Good fit Use it to configure global, IP-based, user-based, or route-specific limits with fixed-window, sliding-window, or token-bucket rules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/voidvec/drogon-claude-plugin/drogon-gen-rate-limiter
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add voidvec/drogon-claude-plugin --skill drogon-gen-rate-limiter
Clone the repo
git clone --depth 1 https://github.com/voidvec/drogon-claude-plugin

Made for: Claude Code.

Or install drogon, the plugin that ships this one along with the rest of its 22 skills, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for drogon-gen-rate-limiter

README.md
[![agentmods](https://agentmods.dev/badge/skills/voidvec/drogon-claude-plugin/drogon-gen-rate-limiter/github.svg)](https://agentmods.dev/skills/voidvec/drogon-claude-plugin/drogon-gen-rate-limiter)
Your own site
<a href="https://agentmods.dev/skills/voidvec/drogon-claude-plugin/drogon-gen-rate-limiter"><img src="https://agentmods.dev/badge/skills/voidvec/drogon-claude-plugin/drogon-gen-rate-limiter/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for drogon-gen-rate-limiter

Your own site · 80×15
<a href="https://agentmods.dev/skills/voidvec/drogon-claude-plugin/drogon-gen-rate-limiter"><img src="https://agentmods.dev/badge/skills/voidvec/drogon-claude-plugin/drogon-gen-rate-limiter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 585 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.00585
Opus 5.5 $0.00018 $0.00234
Sonnet 5.5 $0.00009 $0.00117
Haiku 4.5 $0.00004 $0.00059

Measured 21d ago against content hash d01bdfc1e57e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

drogon-gen-rate-limiter scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 21d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/drogon-gen-rate-limiter/SKILL.md · 41 lines

What it actually says

drogon-gen-rate-limiter

生成 drogon 限流方案:Hodor 插件配置或编程式 RateLimiter 代码。

使用场景

当需要接口限流或防滥用(全站配额、按 IP/用户收紧、敏感路由防暴力破解)、为 429 响应定制统一 JSON 错误 envelope、或多实例部署需要 Redis 分布式限流时,使用此技能生成字段与 API 均对照 v1.9.13 源码核对的配置与代码。

输入参数

  • scope:限流场景——global(全站)/ ip(按来源 IP)/ user(按用户或会话)/ route(特定路由收紧)
  • algorithm:限流类型——fixed_window(固定窗口)/ sliding_window(滑动窗口)/ token_bucket(令牌桶,默认)
  • capacity:时间单元内允许的最大请求数(必填,0 等于不限流)
  • time_unit:时间单元秒数(默认 60)
  • routes:需收紧的路径正则列表,如 ^/oauth2/login(可选)
  • custom_reject:是否自定义 429 响应(默认 true,生成统一错误 envelope + CORS 头)
  • multi_instance:多实例部署改用 Redis 分布式限流(默认 false)

输出

  1. Hodor 插件 config.json plugins 数组段(含 sub_limits 分层配额)
  2. setRejectResponseFactory 自定义 429 响应代码(统一错误 JSON envelope + CORS 头保留)
  3. 需要时:Filter 内嵌 RateLimiter/SafeRateLimiter 模板,或 Redis INCR+EXPIRE 分布式限流

示例

/drogon-gen-rate-limiter scope=ip algorithm=token_bucket capacity=30 time_unit=60 routes=^/api/pay/.*
/drogon-gen-rate-limiter scope=route capacity=3 routes=^/oauth2/login custom_reject=true

参考文件

详细实现指南见 references/code-guide.md(含三方案选型、Hodor 字段源码核对表、禁止模式清单)。生成代码前先读取该文件。

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 21d ago Changed d01bdfc1e57e
  2. 24d ago First seen · 41 lines · 44 tokens per session scan A 4afbef0a4f92

Subscribe to this mod's changes

drogon-gen-rate-limiter is a skill published in the GitHub repository voidvec/drogon-claude-plugin (1 stars, last pushed 19d ago), licensed MIT. It adds 44 tokens to every session and 585 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-22.