groq-performance-tuning
Skill by jeremylongshore
Optimize Groq API performance with model selection, caching, streaming and parallel requests. Built for developers whose Groq integrations feel slow or need more throughput.
Install groq-performance-tuning
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-performance-tuning ~/.claude/skills/groq-performance-tuningRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install groq-performance-tuning in Claude Code
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-performance-tuning ~/.gemini/antigravity-cli/skills/groq-performance-tuningAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install groq-performance-tuning in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
Groq Performance Tuning is an agent skill for making Groq API calls faster in an application. It walks through six tuning levers: model selection by speed tier, reducing token count, streaming for perceived speed, caching deterministic responses, parallel requests under a rate-limit-aware queue, and benchmarking candidate models. The skill provides a tiered model map, a streaming helper that reports time to first token and tokens per second, and an LRU cache keyed by a SHA-256 hash.
The skill points to reference files with copy-pasteable code for each step and worked examples. It requires a Groq API key in GROQ_API_KEY, Node.js 18 or later, and the groq-sdk package. It is aimed at developers with slow Groq responses, caching needs, or throughput goals. For cost tuning, the source points to a separate groq-cost-tuning skill.
Written from the project's SKILL.md and checked against it.
What it can do
- Model selection by speed tierMaps each call site to a faster or higher-quality Groq model using a SPEED_MAP.
- Token reductionTrims system prompts and sets max_tokens to the expected output size.
- Streaming with metricsStreams output chunks and returns TTFT, total time and tokens per second.
- Deterministic cachingCaches repeat temperature 0 requests in an LRU cache keyed by a SHA-256 hash.
- Rate-limit-aware parallel queueRuns bulk requests through p-queue with capped concurrency and per-minute volume.
- Model benchmarkingMeasures candidate models against a real prompt and reports average latency and tokens per second.
What you need
- Groq API key set as GROQ_API_KEY
- Node.js 18 or later
- groq-sdk npm package
- lru-cache and p-queue npm packages for caching and parallelism
Try asking
- Use groq-performance-tuning to add a tiered model map to my Groq client
- Help me add an LRU cache for repeated temperature 0 Groq calls
- Set up a rate-limit-aware p-queue for 500 Groq requests
Good to know
- The benchmark figures in the source depend on prompt size and server load.
- Parallel requests must be capped to avoid 429 rate limit errors.
- Full code is in reference files rather than in the skill body.
Security check
B- Allowed to use Write, Edit without limitsIn
SKILL.md
Checked automatically: skills/.curated/groq-performance-tuning/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadWriteEdit
Alternatives to groq-performance-tuning
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
groq-performance-tuning: common questions
What does groq-performance-tuning change in a Groq integration?
It applies six levers: model choice, shorter prompts, streaming, caching, parallel requests and benchmarking. The source says model choice and caching usually give the biggest wins.
Which Groq models does the skill recommend?
It recommends llama-3.1-8b-instant for latency-critical paths, llama-3.3-70b-versatile for quality-sensitive paths, and llama-3.3-70b-specdec for 70b quality at higher throughput.
Does the skill handle cost optimization?
No. The source says cost optimization is covered by the separate groq-cost-tuning skill.
How do I install groq-performance-tuning?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is groq-performance-tuning free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is groq-performance-tuning safe to use?
It scores 77 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-performance-tuning?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
