Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

Agent skill · Audited from source

Groq Core Workflow A

skill · jeremylongshore/claude-code-plugins-plus-skillsMIT licenceAudited 8 Oct 2026 · source 4f83675ca38a

★ 2,823pushed todayversion 1.11.0
✓SAFEGrade B · 89/100 · 8 Oct 2026 · 4f83675
2,823repo stars · whole jeremylongshore/claude-code-plugins-plus-skills

Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit 4f83675ca38a and found no filesystem, network or shell access and no hard-coded secrets. What it does: Execute Groq's primary workflow: chat completions with tool use and JSON mode.

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “Groq Core Workflow A (jeremylongshore/claude-code-plugins-plus-skills)”. Retrieved 8 Oct 2026. https://modelsatlas.com/skills/jeremylongshore/groq-core-workflow-a

Trust audit

Audit 0.4.1 · source read 8 Oct 2026

Trust score89/100✓SAFE B
0 critical0 high0 medium0 low0 info

SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.

What the source does

  • FilesystemNone observedNo reads or writes in the source
  • NetworkNone observedNo outbound calls in the source
  • ShellNone observedNo commands run in the source
  • DependenciesPinnedNothing floats
  • SecretsNone foundNo keys in source

Five audit layers

LayerWhat we checkResultFindings
L0 ProvenanceRepo owner, licence, archive status, activityPASS0
L1 Static sourceSecrets, path traversal, supply chain, hidden codePASS0
L2 InstructionsPrompt injection, authority framing, hidden directivesPASS0
L3 InventoryThe files and declarations match the sourcePASS0
L4 SandboxRun in isolation and watch behaviourSKIPPED why0

Gates applied: no behavioural pass.

Findings (0)

No findings at any severity. We re-audit when the source changes.

Audit 0.4.1 · source sha 4f83675ca38a · 8 Oct 2026Report an issue or request a re-scan

Provenance

Who published it, and what the verdict is pinned to

What it tells the agent

Full source on GitHub ↗

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

---
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:*)
version: 1.11.0
license: MIT
author: Jeremy Longshore <[email protected]>
tags:
- saas
- groq
- workflow
compatibility: Designed for Claude Code
---
# 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

| Task | Recommended Model | Why |
|------|------------------|-----|
| Chat with tools | `llama-3.3-70b-versatile` | Best tool-calling accuracy |
| JSON extraction | `llama-3.1-8b-instant` | Fast, accurate for structured tasks |
| Structured outputs | `llama-3.3-70b-versatile` | Supports `strict: true` schema compliance |
| Vision + chat | `meta-llama/llama-4-scout-17b-16e-instruct` | Multimodal 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](references/examples.md).
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](references/implementation.md).
3. **JSON mode** — set `response_format: { type: "json_object" }` and describe
   the JSON shape in the system prompt. See
   [implementation](references/implementation.md).
4. **Structured outputs** — use `response_format.json_schema` with
   `strict: true` for guaranteed schema compliance (no post-validation). See
   [implementation](references/implementation.md).
5. **Multi-turn conversation** — accumulate the message history and push each
   assistant reply back onto the stack. See
   [worked examples](references/examples.md).

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

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

| Error | Cause | Solution |
|-------|-------|----------|
| `tool_calls` with malformed JSON | Model hallucinated arguments | Wrap `JSON.parse` in try/catch, retry with lower temperature |
| `json_object` returns non-JSON | System prompt missing JSON instruction | Always include "respond with JSON" in system prompt |
| `context_length_exceeded` | Conversation too long | Trim older messages, keep system prompt |
| Tool call loop | Model keeps calling tools | Set `tool_choice: "none"` on final completion |

## Examples

The chat skeleton above is the smallest complete call. Two fuller runnable
examples live in [worked examples](references/examples.md):

- **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](references/implementation.md).

## Resources

- [Groq Tool Use Docs](https://console.groq.com/docs/tool-use)
- [Groq Structured Outputs](https://console.groq.com/docs/structured-outputs)
- [Groq Text Generation](https://console.groq.com/docs/text-chat)
- [Full implementation](references/implementation.md) — tool use, JSON mode, structured outputs
- [Worked examples](references/examples.md) — chat completion, multi-turn conversation

## 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.

Excerpt, first 5,928 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.

Install

Pinned to the audited commit 4f83675

Download folder ↗
git clone https://github.com/jeremylongshore/claude-code-plugins-plus-skills
git -C claude-code-plugins-plus-skills checkout 4f83675ca38a

The author documents no install command, so this uses the repository directly. Our verdict covers commit 4f83675ca38a only.

Works in which agents?

What its own text says, not a test

AgentStatusMore
Claude CodeMentioned in its text, not testedSkills for Claude Code · About Claude Code
“Mentioned” means the skill’s text names the agent. We have not run it there.

Audit history

Every audit, every source change

  1. ✓SAFE B 89 / 100

    first audit · source 4f83675ca38a

README badge

For maintainers · shows the latest audit

ModelsAtlas: SAFE BMODELSATLASSAFE · B
[![ModelsAtlas: SAFE B](https://modelsatlas.com/skills/jeremylongshore/groq-core-workflow-a/badge.svg)](https://modelsatlas.com/skills/jeremylongshore/groq-core-workflow-a/)

The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.

Add this badge to your README

[![ModelsAtlas: SAFE B](https://modelsatlas.com/skills/jeremylongshore/groq-core-workflow-a/badge.svg)](https://modelsatlas.com/skills/jeremylongshore/groq-core-workflow-a/)

Questions about Groq Core Workflow A

What does the Groq Core Workflow A skill do?
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
Is Groq Core Workflow A safe to install?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.
What can Groq Core Workflow A access on my machine?
The audit observed no filesystem, network or shell use at all in its source.
Which assistants does Groq Core Workflow A work with?
Its documentation mentions claude-code. That is what the text claims, not a compatibility test we ran.
How current is this page?
The grade is for one exact copy of the source (4f83675ca38a), read on 2026-10-08. The repository is watched, and a new audit runs when it changes — this is the first audit.

Sources

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.