groq-rate-limits
Skill by jeremylongshore
Implements Groq API rate limit handling with retry backoff, request queuing, and header parsing. It is for developers whose code calls the Groq API and who need to handle 429 errors.
Install groq-rate-limits
Built from the published package, never by AI.
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/groq-rate-limits ~/.claude/skills/groq-rate-limitsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/groq-rate-limits ~/.gemini/antigravity-cli/skills/groq-rate-limitsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The groq-rate-limits skill adds rate limit handling to code that calls the Groq API. It parses the x-ratelimit-* and retry-after headers, and retries 429 and 5xx responses using retry-after when present, otherwise exponential backoff with jitter. Requests can be gated through a p-queue sized to the plan's RPM, and a proactive monitor pauses before limits are reached. Model fallback is included for when one model's limit pool is exhausted.
Groq applies RPM, RPD, TPM and TPD limits at the organization level, and either RPM or TPM can trigger a 429. The skill is for developers building Groq-backed applications who want to avoid unhandled 429 errors and improve request throughput. It is designed for Claude Code and is licensed under MIT. A companion groq-security-basics skill covers API key storage and rotation.
Written from the project's SKILL.md and checked against it.
What it can do
- Parse rate limit headersReads x-ratelimit-* headers into a typed RateLimitInfo and normalizes reset times to milliseconds.
- Retry with backoffWraps API calls to retry 429 and 5xx responses, preferring the retry-after header.
- Request queueGates requests through p-queue sized to the plan's requests per minute.
- Proactive monitorTracks remaining capacity and pauses before limits reach zero.
- Model fallbackSwitches to another model when the preferred model is throttled.
What you need
- A Groq API key (GROQ_API_KEY)
- A Groq account at console.groq.com
- groq-sdk npm package
- p-queue npm package for queuing
- Node.js 18 or later
Try asking
- Add retry with backoff for Groq 429 errors in my project
- Set up a p-queue that caps my Groq requests per minute
- Build a monitor that pauses before Groq rate limits are hit
Good to know
- Groq limits are enforced per organization and depend on the plan.
- Retries apply only to 429 and 5xx; other 4xx errors are not retried.
- The source notes the free tier may be too restrictive for constant use.
Security check
B- Allowed to use Write, Edit without limitsIn
SKILL.md
Checked automatically: skills/.curated/groq-rate-limits/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadWriteEdit
-
SKILL.md6 KB -
references/implementation.md6 KB -
references/reference.md3 KB
Alternatives to groq-rate-limits
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
groq-rate-limits: common questions
Does this handle Groq 429 errors?
Yes. It retries 429 and 5xx responses, using the retry-after header when present and exponential backoff with jitter otherwise.
Which errors are retried?
Only 429 and 5xx responses are retried. Other 4xx errors are treated as not retryable.
How does it avoid hitting the limit in the first place?
It gates requests through a p-queue sized to the plan's RPM and can pause proactively based on remaining capacity from response headers.
How do I install groq-rate-limits?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is groq-rate-limits free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is groq-rate-limits safe to use?
It scores 80 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.
What are alternatives to groq-rate-limits?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
