groq-migration-deep-dive
Skill by jeremylongshore
Guides a codebase move from OpenAI, Anthropic, or other LLM providers to Groq. It covers SDK swaps, model ID mapping, and a feature-flagged rollout with a benchmark and rollback plan. Aimed at teams replatforming onto Groq or changing Groq model generations.
Install groq-migration-deep-dive
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-migration-deep-dive ~/.claude/skills/groq-migration-deep-diveRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install groq-migration-deep-dive in Claude Code
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-migration-deep-dive ~/.gemini/antigravity-cli/skills/groq-migration-deep-diveAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install groq-migration-deep-dive in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
Groq Migration Deep Dive is a skill for Claude Code that helps move a codebase off OpenAI, Anthropic, or another LLM provider onto Groq, or between Groq model generations. The source says Groq's OpenAI-compatible API keeps the core change small: a different SDK import, different model IDs, and different response metadata. It includes a model ID map that translates OpenAI and Anthropic model names to Groq Llama models, with a fallback default.
The recommended path uses a provider abstraction layer and a groq_migration_pct feature flag. Traffic goes to a small canary first, is benchmarked for quality and speed, then ramps to 100%, with a one-flag rollback to 0%. A scanner sizes the migration before starting, and a benchmark harness and compatibility matrix are kept in reference files. It is intended for developers planning a zero-downtime cutover.
Written from the project's SKILL.md and checked against it.
What it can do
- Swap OpenAI calls to GroqReplaces the OpenAI SDK import, client, and model ID with groq-sdk equivalents.
- Map model IDsTranslates OpenAI and Anthropic model names to Groq models with a safe default.
- Provider abstraction layerWraps GroqProvider and OpenAIProvider behind one getProvider() call.
- Feature-flagged traffic shiftingRamps Groq traffic with a groq_migration_pct flag from canary to 100%.
- Migration scannerCounts OpenAI imports, gpt model IDs, and OpenAI-only features before cutover.
- Latency benchmarkCompares Groq and OpenAI latency, token counts, and speedup per prompt.
- Rollback planReturns all traffic to the original provider by setting the flag to 0%.
What you need
- A Groq API key (GROQ_API_KEY) from console.groq.com
- The groq-sdk npm package
- A feature-flag mechanism that exposes groq_migration_pct
- The existing provider's API key, such as OPENAI_API_KEY
- Node.js 18 or later for the benchmark helper
Try asking
- Migrate this OpenAI chat completion call to Groq
- Map our gpt-4o and gpt-4o-mini model IDs to Groq models
- Set up a groq_migration_pct canary rollout with a rollback flag
Good to know
- Anthropic to Groq model mapping is marked approximate in the source.
- Groq does not offer embeddings or images, so those features stay on OpenAI.
- Output quality may differ, and prompts may need tuning for Llama models.
- Rate limits and pricing differ from OpenAI, per the source's error table.
Security check
B- Allowed to use Write, Edit without limitsIn
SKILL.md
Checked automatically: skills/.curated/groq-migration-deep-dive/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadWriteEditBash(npm:*)Bash(node:*)Bash(kubectl:*)
-
SKILL.md6 KB -
references/examples.md3 KB -
references/implementation.md4 KB
Alternatives to groq-migration-deep-dive
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-migration-deep-dive: common questions
Is the Groq API compatible with OpenAI code?
The source says Groq's OpenAI-compatible API makes migration straightforward. Its example shows the response shape stays the same, so code reading choices[0].message.content is unchanged.
Can I roll back a Groq migration?
Yes. The source describes a groq_migration_pct flag that can be set to 0% for a one-flag rollback while keeping the original provider running.
Which features cannot move to Groq?
The source's error table says Groq does not have embeddings or images. It recommends keeping OpenAI for those features.
How do I install groq-migration-deep-dive?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is groq-migration-deep-dive free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is groq-migration-deep-dive safe to use?
It scores 79 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-migration-deep-dive?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
