modules/<module>/src/rate-limit/<Name>RateLimiter.ts and its matching test file, and installs the @talosjs/rate-limit dependency if it is missing. The generated class implements the IRateLimiter interface (with check, isLimited, and reset) so you can plug in a custom throttling strategy.
Usage
Examples
Options
| Option | Description | Default |
|---|---|---|
--name | Resource name (the RateLimiter suffix is appended automatically). | Prompted if omitted |
--module | Target module. | shared |
--override | Overwrite an existing file without confirmation. | false |
AI Skill
This command ships a matchingrate-limit:create skill. Your AI agent uses it to generate a new rate limiter class and its test file, then complete a custom request-throttling strategy that implements the IRateLimiter interface from @talosjs/rate-limit.
- Claude
- Codex