/groq-pack:groq-ci-integrationfrom groq-pack
Sets up CI/CD pipelines for Groq API integrations with GitHub Actions, including unit tests (mocked), integration tests (live API), and weekly model deprecation checks.
Ships in groq-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Set up CI/CD pipelines for Groq integrations with unit tests (mocked), integration tests (live API), and model deprecation checks. Groq's fast inference makes live integration tests practical in CI -- a completion round-trip takes < 500ms.
The integration has four moving parts. Read this section for the high-level flow, then drill into the reference files for the full copy-paste blocks — the complete workflows and configuration live in references/implementation.md and the full test suite in references/examples.md.
Write .github/workflows/groq-tests.yml with three jobs: unit-tests (mocked
groq-sdk, runs on every PR, no key), integration-tests (live API,
push-to-main only, guarded by if: github.event_name != 'pull_request'), and
a weekly model-check cron that diffs the model IDs the code references against
Groq's live model list. The job skeleton:
# .github/workflows/groq-tests.yml — see references/implementation.md for full file
on:
push: { branches: [main] }
pull_request: { branches: [main] }
schedule:
- cron: "0 6 * * 1" # Weekly model deprecation check
jobs:
unit-tests: # mocked groq-sdk, no API key
integration-tests: # live API, push-to-main only
model-check: # curl /v1/models, flag deprecated IDs
Store a CI-scoped key with gh secret set GROQ_API_KEY --body "gsk_your_ci_key_here". Keep it separate from the production key so it rotates
and tracks CI usage independently.
Add tests/groq.integration.ts gated on a GROQ_INTEGRATION env var (so the
file is a no-op without a key). It asserts model listing, chat completion,
streaming, and JSON mode. Full file:
references/examples.md.
Gate npm publish behind a live production Groq round-trip so a broken key or
deprecated model blocks the release. Full release.yml:
references/implementation.md.
CI best practices: mock groq-sdk in unit tests, run integration tests
only on main push (saves quota), prefer llama-3.1-8b-instant (cheapest,
fastest) with low max_tokens (5-50), add timeout-minutes: 2, and schedule
the weekly deprecation check.
Applying this skill produces the following files in the target repository:
| File | Purpose |
|---|---|
.github/workflows/groq-tests.yml | Unit + integration + weekly model-check jobs |
.github/workflows/release.yml | Tag-triggered release gated on a live Groq check |
tests/groq.integration.ts | GROQ_INTEGRATION-gated live API test suite |
GROQ_API_KEY GitHub secret | CI-scoped key set via gh secret set |
At runtime the workflow reports three independent checks in the GitHub Actions
panel — unit-tests (green without any key), integration-tests (verbose
per-assertion output on push to main), and model-check (a code-vs-Groq
model diff that exits non-zero on any deprecated model ID).
| Issue | Cause | Solution |
|---|---|---|
| Secret not found | GROQ_API_KEY not configured | gh secret set GROQ_API_KEY |
| Integration test timeout | Network issue or rate limit | Increase timeout, add retry |
| Model check fails | Model deprecated | Update model ID in source code |
| Flaky tests | Rate limiting in CI | Add backoff, run integration tests less often |
Set the CI secret and scaffold the workflow. Store a dedicated CI key, then drop in the workflow from the reference file:
gh secret set GROQ_API_KEY --body "gsk_your_ci_key_here"
# copy .github/workflows/groq-tests.yml from references/implementation.md
Run the integration suite locally before pushing. The suite is inert without the flag, so opt in explicitly:
GROQ_INTEGRATION=1 npx vitest tests/groq.integration.ts --reporter=verbose
Full walkthroughs: references/implementation.md (workflows, secrets, release gate) and references/examples.md (complete integration test suite + how to read the CI output).
For deployment patterns — provisioning production keys, environment promotion,
and rollback on a failed Groq health check — see the groq-deploy-integration
skill, which picks up where this CI gate leaves off.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub jeremylongshore/tons-of-skills-marketplace --plugin groq-pack24 skills in this plugin
/groq-common-errorsDiagnose and fix Groq API errors with real error codes and solutions.
Use when encountering Groq errors, debugging failed requests,
or troubleshooting integration issues.
Trigger with phrases like "groq error", "fix groq",
"groq not working", "debug groq", "groq 429".
/groq-core-workflow-aExecute 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".
/groq-Other plugins' skills for the same job