Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 77
  • 3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-tuning

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install groq-performance-tuning in Claude Code

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 →

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.

groq-performance-tuning Install

Add to stack

Loading.