Agent skill

Groq Core Workflow A

by jeremylongshore in jeremylongshore/tons-of-skills-marketplace

Execute Groq's primary workflow: chat completions with tool use and JSON mode.

MITAuto-check passedAI & LLM Engineering

Install Groq Core Workflow A

skills CLI
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill groq-core-workflow-a -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jeremylongshore/tons-of-skills-marketplace groq-core-workflow-a --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.curated/groq-core-workflow-a .claude/skills/groq-core-workflow-a && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
groq-core-workflow-a
GitHub stars
2.8k
Token cost
~1.5k tokens
SKILL.md length
554 words
Files
3 (incl. references)
Skills in repo
3,342
Repo updated
First seen
Licence
MIT

At a glance

Execute Groq's primary workflow: chat completions with tool use and JSON mode.

  • Works in 5 steps: Chat completion — send system + user… → Tool use / function calling — a… → JSON mode — set response_format: { type:… → …
  • Implementing chat interfaces
  • SKILL.md covers Overview, Prerequisites, Authentication and Model Selection for This…, plus 6 more sections
  • Calls npm; needs GROQ_API_KEY

What it does

Groq Core Workflow A is an agent skill from jeremylongshore/tons-of-skills-marketplace. Execute Groq's primary workflow: chat completions with tool use and JSON mode. Use when implementing chat interfaces, function calling, structured output, or building AI features with Groq's fast inference. Trigger with phrases like "groq chat completion", "groq tool use", "groq function calling", "groq JSON mode".

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/examples.md` and `references/implementation.md`). Compatibility notes: Designed for Claude Code

It sits in AI & LLM Engineering, covering Structured output and tool calling and LLM API integration. The repository describes itself as: Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com. The licence is MIT.

When your agent uses it

  • Implementing chat interfaces
  • Function calling
  • Structured output
  • Building AI features with Groqs fast inference

Example prompts

  • “s fast inference. Trigger with phrases like”
  • “groq tool use”
  • “groq function calling”
  • “/groq-core-workflow-a”

Requirements

  • Node.js
  • A credential in GROQ_API_KEY
  • Compatibility (from SKILL.md): Designed for Claude Code
  • Pre-approved tools (allowed-tools): Read, Write, Edit, Bash(npm:*)

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Chat completion — send system + user messages to
  2. Tool use / function calling — a three-phase loop: send the message with
  3. JSON mode — set response_format: { type: "json_object" } and describe
  4. Structured outputs — use response_format.json_schema with
  5. Multi-turn conversation — accumulate the message history and push each

What it can do on your machine

Read from SKILL.md and the folder at commit cfae287. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Bash(npm:*)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • console.groq.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • GROQ_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Designed for Claude Code

    From compatibility in the SKILL.md frontmatter.

Context cost

Groq Core Workflow A loads about 1.5k tokens when it runs, and up to ~3.2k if it reads all its reference files. Until then it costs about 85 tokens; SKILL.md has 554 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~85
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from jeremylongshore/tons-of-skills-marketplace at commit cfae287, republished under its MIT licence (© jeremylongshore). 554 words, ~1,483 tokens.

Download SKILL.mdSave it as .claude/skills/groq-core-workflow-a/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
groq-core-workflow-a
description
Execute Groq's primary workflow: chat completions with tool use and JSON mode. Use when implementing chat interfaces, function calling, structured output, or building AI features with Groq's fast inference. Trigger with phrases like "groq chat completion", "groq tool use", "groq function calling", "groq JSON mode".
allowed-tools
Read, Write, Edit, Bash(npm:*)
compatibility
Designed for Claude Code
version
1.11.0
license
MIT
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
saas, groq, workflow

Groq Core Workflow A: Chat, Tools & Structured Output

Overview

Primary integration patterns for Groq: chat completions, tool/function calling, JSON mode, and structured outputs. Groq's LPU delivers sub-200ms time-to-first-token, making these patterns viable for real-time user-facing features. This skill walks through five workflow steps; the lean skeleton lives here, and the full copy-paste code lives in references/.

Prerequisites

  • Install the SDK with npm install groq-sdk.
  • Set GROQ_API_KEY in the environment (see Authentication below).
  • Familiarity with the Groq model line-up and which model fits each task.

Authentication

Groq authenticates via an API key. Create one at console.groq.com/keys and export it as GROQ_API_KEY; the SDK reads it automatically, so new Groq() needs no explicit argument. Never hardcode the key — read it from the environment (or a secrets manager) so it stays out of source control.

Model Selection for This Workflow

TaskRecommended ModelWhy
Chat with toolsllama-3.3-70b-versatileBest tool-calling accuracy
JSON extractionllama-3.1-8b-instantFast, accurate for structured tasks
Structured outputsllama-3.3-70b-versatileSupports strict: true schema compliance
Vision + chatmeta-llama/llama-4-scout-17b-16e-instructMultimodal input

Instructions

Work through the five patterns in order. Read the target file, then Write or Edit the integration code into your project.

  1. Chat completion — send system + user messages to groq.chat.completions.create and return choices[0].message.content plus usage. Skeleton below; full example in worked examples.
  2. Tool use / function calling — a three-phase loop: send the message with tools + tool_choice: "auto", execute any returned tool_calls, then send the results back for the final answer. Full code in implementation.
  3. JSON mode — set response_format: { type: "json_object" } and describe the JSON shape in the system prompt. See implementation.
  4. Structured outputs — use response_format.json_schema with strict: true for guaranteed schema compliance (no post-validation). See implementation.
  5. Multi-turn conversation — accumulate the message history and push each assistant reply back onto the stack. See worked examples.

Minimal chat skeleton:

typescript
import Groq from "groq-sdk";
const groq = new Groq();

const completion = await groq.chat.completions.create({
  model: "llama-3.3-70b-versatile",
  messages: [
    { role: "system", content: "You are a concise technical assistant." },
    { role: "user", content: userMessage },
  ],
  temperature: 0.7,
  max_tokens: 1024,
});
// completion.choices[0].message.content, completion.usage
Show full SKILL.md (254 more words)Show less

Output

Each pattern returns a predictable shape:

  • Chat completion — { reply: string, usage: {...} }; usage carries prompt_tokens / completion_tokens for cost metering.
  • Tool use — the final assistant content string, produced after the tool results are fed back; intermediate tool_calls carry function.name and a JSON-string function.arguments.
  • JSON mode — a parsed JavaScript object matching the shape described in the system prompt (parse message.content with JSON.parse).
  • Structured outputs — a parsed object guaranteed to satisfy the declared JSON schema, so no downstream validation is required.
  • Multi-turn — the latest reply string, with conversation state retained in the class instance for the next turn.

Error Handling

ErrorCauseSolution
tool_calls with malformed JSONModel hallucinated argumentsWrap JSON.parse in try/catch, retry with lower temperature
json_object returns non-JSONSystem prompt missing JSON instructionAlways include "respond with JSON" in system prompt
context_length_exceededConversation too longTrim older messages, keep system prompt
Tool call loopModel keeps calling toolsSet tool_choice: "none" on final completion

Examples

The chat skeleton above is the smallest complete call. Two fuller runnable examples live in worked examples:

  • Example 1 — Chat completion with system prompt + rolling history, returning reply and token usage.
  • Example 2 — Multi-turn conversation class that retains context across turns.

For tool use, JSON mode, and strict structured outputs, see full implementation.

Resources

Next Steps

For audio, vision, and speech workflows, see the companion groq-core-workflow-b skill, which covers Whisper transcription, vision inputs, and text-to-speech.

© jeremylongshore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in skills/.curated/groq-core-workflow-a of jeremylongshore/tons-of-skills-marketplace.

  • SKILL.md
  • references/examples.md
  • references/implementation.md

Open the folder on GitHubat commit cfae287

Compare with similar skills

Groq Core Workflow A next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Groq Core Workflow A compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Groq Core Workflow A this skilljeremylongshore/tons-of-skills-marketplace2.8k—~1.5kAutomated safety check: PassMIT
Agnes Free Textkangarooking/agnes-free-model-skills199—~630Automated safety check: PassMIT
Instructor Structured LLM OutputsOrchestra-Research/AI-Research-SKILLs13k6 repos~4.2kAutomated safety check: PassMIT
LLM Integrationyonatangross/orchestkit292—~2.7kAutomated safety check: PassMIT
Venice Chatveniceai/skills144—~5.9kAutomated safety check: PassMIT
Claude Cookbooks Reference2025Emma/vibe-coding-cn23k1 repos~2.2kAutomated safety check: PassMIT

Similar skills

  • Agnes Free Text

    kangarooking/agnes-free-model-skills

    Call the free Agnes text model API for chat completions, streaming answers, coding help, tool-calling experiments, and OpenAI-compatible text generation.

    199 GitHub stars~630 tokensUpdated 4 mo ago
    AI & LLM EngineeringAuto-check passed
  • Instructor Structured LLM Outputs

    Orchestra-Research/AI-Research-SKILLs

    Shows how to pull validated, typed data out of LLM responses with Instructor and Pydantic models, including retries on failure and partial streaming.

    13k GitHub starsUsed in 6 repos~4.2k tokens
    AI & LLM EngineeringAuto-check passed
  • LLM Integration

    yonatangross/orchestkit

    LLM integration patterns for function calling, streaming responses, local inference with Ollama, and fine-tuning customization.

    292 GitHub stars~2.7k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • Venice Chat

    veniceai/skills

    Call POST /chat/completions on Venice. An agent skill from veniceai/skills.

    144 GitHub stars~5.9k tokensUpdated 5 days ago
    AI & LLM EngineeringAuto-check passed
  • Claude Cookbooks Reference

    2025Emma/vibe-coding-cn

    Reference of Claude API examples and guides covering tool use, vision, RAG, classification, summarization, text-to-SQL, prompt caching and agent patterns.

    23k GitHub starsUsed in 1 repo~2.2k tokens
    AI & LLM EngineeringAuto-check passed
  • Gemini API Dev

    google-gemini/gemini-skills

    Official

    A skill your agent uses when writing code that calls the Gemini API for text generation, multi-turn chat, multimodal understanding, image generation, video generation, speech generation (TTS), voice…

    4.3k GitHub stars~5.1k tokensUpdated 4 days ago
    AI & LLM EngineeringAuto-check passed

More from jeremylongshore/tons-of-skills-marketplace

All 3,342 skills in this repo
  • Performing Security Code Review

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to conduct a security-focused code review using the security-agent plugin.

    2.8k GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check: notes
  • Adapting Transfer Learning Models

    jeremylongshore/tons-of-skills-marketplace

    Build this skill automates the adaptation of pre-trained machine learning models using transfer learning techniques.

    2.8k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Agent Context Loader

    jeremylongshore/tons-of-skills-marketplace

    Execute proactive auto-loading: automatically detects and loads agents.md files.

    2.8k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Aggregating Performance Metrics

    jeremylongshore/tons-of-skills-marketplace

    Aggregate and centralize performance metrics from applications, systems, databases, caches, and services.

    2.8k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Analyzing Capacity Planning

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to analyze capacity requirements and plan for future growth.

    2.8k GitHub stars~947 tokensUpdated today
    Auto-check passed
  • Analyzing Database Indexes

    jeremylongshore/tons-of-skills-marketplace

    Process use when you need to work with database indexing. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~2k tokensUpdated today
    Auto-check passed

Questions about Groq Core Workflow A

What does Groq Core Workflow A do?

Execute Groq's primary workflow: chat completions with tool use and JSON mode. Groq Core Workflow A is an agent skill from jeremylongshore/tons-of-skills-marketplace. Execute Groq's primary workflow: chat completions with tool use and JSON mode.

When should I use Groq Core Workflow A?

Groq Core Workflow A fits situations like: implementing chat interfaces; function calling; structured output; building AI features with Groqs fast inference.

How do I install Groq Core Workflow A in Claude Code?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill groq-core-workflow-a -a claude-code`. Or copy the skill folder (skills/.curated/groq-core-workflow-a in jeremylongshore/tons-of-skills-marketplace) into .claude/skills/groq-core-workflow-a in your project. Claude Code loads it when a task matches its description.

How do I install Groq Core Workflow A in Codex?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill groq-core-workflow-a -a codex`. Or copy the skill folder (skills/.curated/groq-core-workflow-a in jeremylongshore/tons-of-skills-marketplace) into .agents/skills/groq-core-workflow-a in your project. Codex loads it when a task matches its description.

Can I use Groq Core Workflow A in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill groq-core-workflow-a -a cursor` (or -a -a, -a or -a for the others). To copy it by hand, put the folder in .cursor/skills/groq-core-workflow-a, .gemini/skills/groq-core-workflow-a, .github/skills/groq-core-workflow-a and .opencode/skills/groq-core-workflow-a in your project.

What does Groq Core Workflow A need to run?

Going by SKILL.md and its folder, Groq Core Workflow A needs the command-line tools its instructions call (npm) and credentials named GROQ_API_KEY. Our summary lists: Node.js; A credential in GROQ_API_KEY. Its frontmatter pre-approves these tools: Read, Write, Edit, Bash(npm:*). Compatibility (from SKILL.md): Designed for Claude Code.

Does Groq Core Workflow A access the network?

SKILL.md names 1 domain. As links in the text: console.groq.com. This is read from the text; nothing was executed.

Is Groq Core Workflow A safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Groq Core Workflow A use?

Groq Core Workflow A is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Groq Core Workflow A use?

About 1.5k tokens (SKILL.md is roughly 5.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.7k tokens, read only when the agent opens those files.

What are the alternatives to Groq Core Workflow A?

Skills that share tags, products or a category with Groq Core Workflow A: Agnes Free Text (kangarooking/agnes-free-model-skills, 199 stars), Instructor Structured LLM Outputs (Orchestra-Research/AI-Research-SKILLs, 13k stars), LLM Integration (yonatangross/orchestkit, 292 stars) and Venice Chat (veniceai/skills, 144 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Groq Core Workflow A?

jeremylongshore (a GitHub user) maintains it in jeremylongshore/tons-of-skills-marketplace, which has 2,827 GitHub stars. The repository holds 3,342 skills in this directory. The repository was last updated on October 10, 2026.

Source: jeremylongshore/tons-of-skills-marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.