Agent skill · software engineering · jeremylongshore

groq-hello-world

Create a minimal working Groq chat completion example. Use when starting a new Groq integration, testing your setup after installing the SDK, or learning the basic Groq API request/response pattern before building something larger. Trigger with phrases like "groq hello world", "groq example", "groq quick start", "simple groq code".

Why this skill is useful

Provides a specific example of using the Groq API for chat completions that the AI wouldn't reliably generate on its own.

What it needs

Requires groq-sdk installed locally. Requires groq account access. About 2k tokens when loaded. Last updated 2026-08-07. 2,604 stars on the source repository.

What this skill does

Groq Hello World Overview Build a minimal chat completion with Groq's LPU inference API. Groq uses an OpenAI-compatible endpoint, so the API shape is familiar -- but responses arrive 10-50x faster than GPU-based providers. This skill gets you from an installed SDK to a working, verified request; deeper variants (streaming, Python, model selection) live in references/. Prerequisites groq-sdk installed (npm install groq-sdk) GROQAPIKEY environment variable set Completed groq-install-auth setup Instructions Use Write to create the example file, then run it to confirm your key and SDK work. Start with the single basic request below; reach for the reference variants only once this succeeds. Step 1: Basic Chat Completion (TypeScript) Step 2: Go deeper (references) Once Step 1 returns text, extend it with the moved-out variants: Streaming tokens as they generate, plus the Python equivalent and a model-selection cheat sheet — references/examples.md. Full model catalog (IDs, params, context, speed) and the complete response interface — references/models-and-response.md. Output A successful run prints the assistant's reply text followed by the total token count, e.g.: The underlying API returns an OpenAI-compatible ChatCompletion object: the text is at choices[0].message.content, and usage carries token counts plus four Groq-specific timing fields (queuetime, prompttime, completiontime, totaltime). Full response shape: references/models-and-response.md. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills jeremylongshore/groq-hello-world

View the source on GitHub

Browse the @skills marketplace