groq-multi-env-setup
Skill by jeremylongshore
Configures Groq API access across development, staging, and production. It sets a model, retry count, and logging level per environment, with a separate API key for each. It is for developers who run Groq in more than one environment.
Install groq-multi-env-setup
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-multi-env-setup ~/.claude/skills/groq-multi-env-setupRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/groq-multi-env-setup ~/.gemini/antigravity-cli/skills/groq-multi-env-setupAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install groq-multi-env-setup in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill sets up the Groq API for development, staging, and production. It uses a single config module that picks a model, retry count, timeout, and logging level based on NODE_ENV. Development uses llama-3.1-8b-instant with verbose logs and one retry. Staging and production use llama-3.3-70b-versatile, with 3 and 5 retries.
Each environment gets its own API key from a suitable source. Development reads a git-ignored .env.local file. Staging uses CI/CD secrets, and production uses a secret manager such as AWS Secrets Manager, GCP Secret Manager, or HashiCorp Vault. The skill also covers Docker Compose profiles, a verify script that does a live round-trip, and rate limit checks through response headers. It is aimed at developers who deploy Groq-based Node.js apps.
Written from the project's SKILL.md and checked against it.
What it can do
- Environment model selectionPicks the Groq model, retries, and logging level based on NODE_ENV.
- Config moduleBuilds a config/groq.ts file with a per-environment configs record and key validation.
- Environment-aware serviceWraps Groq calls, logs only when logging is enabled, and surfaces retry-after on 429 responses.
- Secret sourcingShows how to load keys from .env.local, CI/CD secrets, or a secret manager per environment.
- Docker Compose profilesInjects a separate key per environment, using an env var for dev and staging and a Docker secret for prod.
- Verify scriptRuns scripts/verify-groq-env.ts to print the resolved config and test a live connection.
- Rate limit inspectionReads x-ratelimit-* response headers to check limits for each key.
What you need
- Groq account with API keys from console.groq.com
- Node.js project with the groq-sdk package
- NODE_ENV set to development, staging, or production
- Secret store such as GitHub Actions, AWS Secrets Manager, GCP Secret Manager, or HashiCorp Vault
Try asking
- Set up Groq config for dev, staging, and production in this project
- Create a config/groq.ts that picks the model by NODE_ENV
- Write a verify script that checks my Groq key for production
Good to know
- The source does not describe any tools beyond the setup files and scripts it generates.
- Development can hit free tier rate limits, according to the error table.
- Deployment pipeline steps are handled by a separate groq-deploy-integration skill.
Security check
B- Allowed to use Write, Edit without limitsIn
SKILL.md
Checked automatically: skills/.curated/groq-multi-env-setup/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadWriteEditBash(aws:*)Bash(gcloud:*)Bash(vault:*)
-
SKILL.md7 KB -
references/implementation.md5 KB -
references/secrets-and-deployment.md2 KB
Alternatives to groq-multi-env-setup
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
groq-multi-env-setup: common questions
Which Groq model does the skill use in each environment?
Development uses llama-3.1-8b-instant. Staging and production both use llama-3.3-70b-versatile, according to the environment table.
How does it keep production keys out of development?
It recommends separate Groq organizations per environment. Dev reads a git-ignored .env.local file, and production pulls from a secret manager.
How do I check that an environment is set up correctly?
Run the verify-groq-env.ts script with the target NODE_ENV. It prints the resolved model and retries and runs a live connection test.
How do I install groq-multi-env-setup?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is groq-multi-env-setup free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is groq-multi-env-setup safe to use?
It scores 80 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-multi-env-setup?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
