Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Configure CI/CD pipelines for Klaviyo integrations with GitHub Actions. Use when setting up automated testing, configuring CI secrets, or integrating Klaviyo SDK tests into your build pipeline. Trigger with phrases like "klaviyo CI", "klaviyo GitHub Actions", "klaviyo automated tests", "CI klaviyo", "klaviyo pipeline".
.claude/skills/jeremylongshore-klaviyo-ci-integration/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 31% | 0% |
| case-12 | ✗→✓ | ▲ Improved | 44% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 45% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 37% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 78% | 0% |
Set up a GitHub Actions CI/CD pipeline for Klaviyo integrations: mocked unit tests on every pull request, gated integration tests against the real Klaviyo API on main-branch pushes, SDK-version verification, and an API connectivity smoke test.
The workflow follows the standard two-job split — a fast, key-free unit-tests job safe to require on every PR, and an integration-tests job gated so real-API calls never run on fork PRs where secrets are unavailable.
klaviyo-api SDK and Vitest configured in the repositoryStore the Klaviyo test credentials as encrypted repository secrets:
bashgh secret set KLAVIYO_PRIVATE_KEY --body "pk_test_***" gh secret set KLAVIYO_WEBHOOK_SIGNING_SECRET --body "whsec_test_***"
Create .github/workflows/klaviyo-ci.yml with two jobs. The essential skeleton:
yamlname: Klaviyo Integration CI on: push: branches: [main] pull_request: branches: [main] jobs: unit-tests: # mocked, runs on every PR, no API key runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: { node-version: '20', cache: 'npm' } - run: npm ci - run: npm test -- --coverage integration-tests: # real API, gated to main-branch pushes only needs: unit-tests if: github.event_name == 'push' && github.ref == 'refs/heads/main' runs-on: ubuntu-latest env: KLAVIYO_PRIVATE_KEY: ${{ secrets.KLAVIYO_PRIVATE_KEY }} KLAVIYO_TEST: '1' steps: [...]
The full workflow — including tsc --noEmit, npm list klaviyo-api version check, the connectivity smoke test, and the branch-protection config — is in the CI workflow reference.
Author two suites the workflow drives:
klaviyo-api SDK (vi.mock) and run with no key.describe.skipIf guard keyed onKLAVIYO_TEST + KLAVIYO_PRIVATE_KEY, so they skip cleanly when no key is present.
Full, runnable examples for both suites — event-tracking unit test and a create-and-clean-up live profile test — are in the test examples reference.
npm list klaviyo-api| Issue | Cause | Solution | |-------|-------|----------| | Secret not found in CI | Missing gh secret set | Add the secret via repository settings | | Integration test 429 | Rate limited in CI | Add delays between tests, use a dedicated test key | | Auth failures in CI | Wrong secret name | Verify the secret name matches the workflow env var | | Test timeout | Slow Klaviyo response | Increase timeout-minutes on the job step |
Set up CI on a fresh repository. Store the test credentials, drop in the workflow, then let the pipeline gate itself:
bashgh secret set KLAVIYO_PRIVATE_KEY --body "pk_test_***" # add .github/workflows/klaviyo-ci.yml (see Step 2 skeleton + full reference) git add .github/workflows/klaviyo-ci.yml && git commit -m "ci: add Klaviyo pipeline" git push # opens a PR → unit-tests run mocked; integration-tests stay gated to main
Run the gated integration suite locally before pushing to main:
bashexport KLAVIYO_TEST=1 export KLAVIYO_PRIVATE_KEY="pk_test_***" npm run test:integration # skipIf guard now active → live API exercised
Both example flows are expanded — full workflow YAML in references/ci-workflow.md and the complete unit + integration suites in references/test-examples.md.
For deployment patterns that build on this pipeline, see the klaviyo-deploy-integration skill in this pack.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 24,254 | 23,957 | -1% | 1 | 1 | 0% | 4,053 | 5,290 | +31% | 0 | 0 | — |
case-12 | fail→pass | 19,019 | 15,240 | -20% | 1 | 1 | 0% | 2,176 | 3,126 | +44% | 0 | 0 | — |
case-02 | fail→pass | 16,138 | 22,460 | +39% | 1 | 1 | 0% | 3,334 | 4,839 | +45% | 0 | 0 | — |
case-03 | fail→pass | 21,909 | 20,547 | -6% | 1 | 1 | 0% | 3,418 | 4,673 | +37% | 0 | 0 | — |
case-04 | fail→pass | 11,774 | 9,793 | -17% | 1 | 1 | 0% | 1,220 | 2,173 | +78% | 0 | 0 | — |
case-05 | pass→pass | 6,119 | 7,869 | +29% | 1 | 1 | 0% | 1,133 | 1,704 | +50% | 0 | 0 | — |
case-06 | fail→fail | 12,003 | 15,370 | +28% | 1 | 1 | 0% | 2,260 | 3,071 | +36% | 0 | 0 | — |
case-07 | fail→pass | 14,186 | 16,700 | +18% | 1 | 1 | 0% | 2,346 | 2,921 | +25% | 0 | 0 | — |
case-08 | pass→pass | 32,383 | 17,099 | -47% | 1 | 1 | 0% | 2,839 | 3,443 | +21% | 0 | 0 | — |
case-09 | fail→pass | 12,100 | 10,213 | -16% | 1 | 1 | 0% | 1,380 | 2,041 | +48% | 0 | 0 | — |
case-10 | fail→fail | 12,265 | 4,885 | -60% | 1 | 1 | 0% | 1,268 | 2,101 | +66% | 0 | 0 | — |
case-11 | fail→pass | 17,334 | 8,865 | -49% | 1 | 1 | 0% | 2,120 | 1,942 | -8% | 0 | 0 | — |
case-13 | fail→pass | 15,590 | 12,708 | -18% | 1 | 1 | 0% | 1,899 | 2,930 | +54% | 0 | 0 | — |
case-14 | pass→pass | 10,648 | 12,715 | +19% | 1 | 1 | 0% | 978 | 2,325 | +138% | 0 | 0 | — |
case-15 | fail→pass | 17,845 | 11,455 | -36% | 1 | 1 | 0% | 2,313 | 2,508 | +8% | 0 | 0 | — |
case-16 | pass→pass | 11,253 | 8,156 | -28% | 1 | 1 | 0% | 1,246 | 1,718 | +38% | 0 | 0 | — |
case-17 | pass→pass | 9,286 | 7,996 | -14% | 1 | 1 | 0% | 871 | 1,749 | +101% | 0 | 0 | — |
case-18 | pass→pass | 11,769 | 7,895 | -33% | 1 | 1 | 0% | 1,115 | 1,698 | +52% | 0 | 0 | — |
case-19 | pass→pass | 16,089 | 24,376 | +52% | 1 | 1 | 0% | 3,160 | 4,298 | +36% | 0 | 0 | — |
case-20 | pass→pass | 16,357 | 19,242 | +18% | 1 | 1 | 0% | 2,903 | 3,957 | +36% | 0 | 0 | — |
case-21 | pass→pass | 14,998 | 12,697 | -15% | 1 | 1 | 0% | 2,016 | 3,230 | +60% | 0 | 0 | — |
case-22 | fail→pass | 18,752 | 6,978 | -63% | 1 | 1 | 0% | 2,091 | 1,516 | -27% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +50 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.