Commandkit ratelimit

From neplextech/commandkit · View interactive version

Commandkit ratelimit is an AI agent skill from the GitHub repository neplextech/commandkit. Configure advanced abuse protection with @commandkit/ratelimit. Use for runtime defaults, command-level policy, directive usage, storage strategy, and user-facing cooldown behavior.

How to use this skill

Skill file

CommandKit Ratelimit Plugin

Activation guidance

Use when protecting commands from abuse while keeping user UX

predictable.

Required filesystem expectations

Execution workflow

  1. Define runtime defaults with configureRatelimit.
  2. Register plugin in config.
  3. Apply command-level overrides or directive-based limits.
  4. Configure memory/redis/fallback storage based on deployment.
  5. Validate limited responses and retry timing.

Guardrails

Reference index

| Name | Description |

| --------------------------------------------- | --------------------------------------------------- |

| references/00-filesystem-structure.md | Required ratelimit bootstrap/config file placement. |

| references/01-runtime-config.md | Runtime defaults and initialization pattern. |

| references/02-plugin-setup.md | Plugin wiring and startup ordering expectations. |

| references/03-command-metadata-ratelimit.md | Command-level metadata policy examples. |

| references/04-use-ratelimit-directive.md | Function directive usage and error handling. |

| references/05-storage-options.md | Memory/Redis storage strategy and deployment fit. |

Tool index

| Name | Description |

| ------------------------------------- | ----------------------------------------------------------------- |

| tools/generate-ratelimit-config.mjs | Prints a baseline configureRatelimit() runtime config template. |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.