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-security-basics

Skill by jeremylongshore

Applies Groq security practices for API key storage, rotation, leak prevention and prompt injection defense. Built for developers who integrate the Groq inference API and want a hardened setup.

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

Install groq-security-basics

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-security-basics ~/.claude/skills/groq-security-basics

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

Step-by-step: install groq-security-basics in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

groq-security-basics is a Claude Code agent skill that walks through six hardening steps for Groq API keys and the data sent to Groq. It covers key storage by environment, a zero-downtime key rotation procedure, and a pre-commit hook plus history scan for leaked gsk_ keys. It also describes a server-side proxy pattern so the key never reaches client code.

The skill adds input sanitization against prompt injection, a hardened system prompt, and audit logging of completions. The source notes that Groq uses a single full-access key type with no scoped tokens, so the guidance focuses on handling keys carefully. It is aimed at developers and teams building on the Groq API who want a security checklist for their integration.

Written from the project's SKILL.md and checked against it.

What it can do

  • Key storage by environmentKeeps GROQ_API_KEY out of source using git-ignored env files and platform secret managers.
  • Key rotation procedureCreates a date-named key, deploys it, verifies it, then deletes the old key.
  • Git leak preventionInstalls a pre-commit hook that blocks staged gsk_ keys and scans the tree and history.
  • Server-side key usageProxies Groq calls through a backend so the key stays off the client.
  • Prompt injection defenseSanitizes user input and uses a system prompt that refuses role changes.
  • Audit loggingLogs token counts, latency and status for every completion.

What you need

  • Groq account at console.groq.com
  • Understanding of environment variable management
  • Secret management solution for production, such as Vault or AWS Secrets Manager

Try asking

  • Scan my project for Groq API keys committed to git history.
  • Set up a pre-commit hook that blocks staged gsk_ keys.
  • Walk me through rotating my Groq API key with no downtime.

Good to know

  • Groq keys have full API access; there are no read-only or scoped keys.
  • Keys cannot be viewed after creation.
  • Rate limits are per organization, not per key.
  • Git hooks are not copied by git clone and must be reinstalled per checkout.

Security check

D
  • Tells the assistant to ignore its instructions or hide actions from youIn skills/.curated/groq-security-basics/SKILL.md: ignore previous instructions
  • Allowed to use Write without limitsIn SKILL.md

Checked automatically: skills/.curated/groq-security-basics/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: ReadWriteGrep

  • SKILL.md7 KB
  • references/examples.md2 KB
  • references/implementation.md3 KB

Alternatives to groq-security-basics

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

groq-security-basics: common questions

Does Groq offer read-only API keys?

No. The source says Groq has no read-only or scoped keys, and every key can call every endpoint.

Does Groq use prompt data for training?

The source says Groq does not store prompt data for training and links to its privacy policy for details.

What should I do if a Groq key is already in git history?

Rotate the key immediately. The source says scrubbing history alone is not enough because the key was exposed.

How do I install groq-security-basics?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is groq-security-basics free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is groq-security-basics safe to use?

It scores 79 of 100. Grades: maintenance A, licence A, quality A. Security check: grade D (tells the assistant to ignore its instructions or hide actions from you). Review the code before you install. How grades work.

What are alternatives to groq-security-basics?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

groq-security-basics Install

Add to stack

Loading.