voidvec/drogon-claude-plugin/drogon-gen-rate-limiter

Claude Code and agent skill by voidvec/drogon-claude-plugin

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

需要 drogon 限流/防滥用、编写 Hodor 插件配置、自定义 429 拒绝响应或编程式 RateLimiter 时使用。

Install

npx vskill@latest install voidvec/drogon-claude-plugin/drogon-gen-rate-limiter

SKILL.md

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 字段源码核对表、禁止模式清单)。生成代码前先读取该文件。

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/voidvec/drogon-claude-plugin/drogon-gen-rate-limiter/badge)](https://verified-skill.com/skills/voidvec/drogon-claude-plugin/drogon-gen-rate-limiter)

Something wrong with this skill or its page? Tell us.