groq-local-dev-loop
Skill by jeremylongshore
Configure a local Groq development setup with hot reload, mocked unit tests, and opt-in live tests. Built for developers starting a Groq project who want a fast iteration loop.
Install groq-local-dev-loop
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-local-dev-loop ~/.claude/skills/groq-local-dev-loopRun 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-local-dev-loop ~/.gemini/antigravity-cli/skills/groq-local-dev-loopAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install groq-local-dev-loop in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill sets up a local development workflow for the Groq API. It scaffolds a project with src/groq files for a memoized client, model constants, and completions, plus a tests folder. The client throws a clear error when GROQ_API_KEY is missing and provides a resetClient function for tests.
The skill defines a two-tier test strategy. Unit tests mock groq-sdk with vi.mock, so they run without API calls. Integration tests hit the live API only when GROQ_INTEGRATION=1 is set. The skill also wires a dev script that uses tsx watch for hot reload. It is aimed at developers setting up a Groq environment who want a fast iteration cycle.
Written from the project's SKILL.md and checked against it.
What it can do
- Project structureCreates src/groq client, models and completions files, a tests folder, and env files.
- Package scriptsWires dev (tsx watch), test and test:watch (vitest), and test:integration scripts.
- Singleton clientProvides a lazily memoized getGroqClient() and a resetClient() for tests.
- Model constantsDefines a MODELS map and a DEV_MODEL set to llama-3.1-8b-instant.
- Mocked unit testsUses vi.mock on groq-sdk so unit tests run with zero API calls.
- Gated integration testsRuns live API tests with describe.skipIf, enabled only by GROQ_INTEGRATION=1.
- Environment templateCommits .env.example and git-ignores .env.local to keep keys out of the repo.
What you need
- Groq API key (GROQ_API_KEY)
- groq-sdk npm package
- Node.js 18 or later
- tsx for TypeScript execution
- vitest for testing
Try asking
- Set up a Groq dev environment with hot reload and mocked tests
- Add a memoized Groq client that fails fast when the API key is missing
- Write a vitest unit test that mocks groq-sdk
Good to know
- Live integration tests run only when GROQ_INTEGRATION=1 is set.
- The source notes a Groq free tier of 30 RPM for the 70B and 8B models.
Security check
B- Allowed to use Write, Edit without limitsIn
SKILL.md
Checked automatically: skills/.curated/groq-local-dev-loop/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(pnpm:*)
-
SKILL.md6 KB -
references/examples.md3 KB -
references/implementation.md3 KB
Alternatives to groq-local-dev-loop
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
groq-local-dev-loop: common questions
Do the unit tests call the Groq API?
No. The unit tests mock groq-sdk with vi.mock, so they run with zero API calls.
How do I run the live API tests?
Run npm run test:integration, which sets GROQ_INTEGRATION=1 and runs vitest against the live API.
Which model is used during development?
The skill sets DEV_MODEL to llama-3.1-8b-instant to conserve quota and for speed.
How do I install groq-local-dev-loop?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is groq-local-dev-loop free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is groq-local-dev-loop 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-local-dev-loop?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
