Klaviyo deploy integration
425 plugins, 2,810 skills, 200 agents for Claude Code. Open-source marketplace at tonsofskills.com with the ccpi CLI package manager.
npx -y skills add jeremylongshore/claude-code-plugins-plus-skills --skill klaviyo-deploy-integrationAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
What its author says it does
Copied from the file, not written here
'Deploy Klaviyo integrations to Vercel, Fly.io, and Cloud Run platforms.
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
4.7 KB, ~1.0k tokens by cl100k_base, as published. Nobody here has run it
Klaviyo Deploy Integration
Overview
Deploy Klaviyo-powered applications to Vercel, Fly.io, and Google Cloud Run with proper secrets management and health checks. Every platform follows the same shape — store the private key + webhook secret, wire a config file, deploy, verify. The lean skeleton lives here; full per-platform recipes live in references/platform-deployments.md.
Prerequisites
- Klaviyo production API key (
pk_*) - Platform CLI installed (
vercel,fly, orgcloud) - Application tested with
klaviyo-apiSDK klaviyo-prod-checklistcompleted
Instructions
The workflow is identical across platforms; only the CLI verbs change. Read the target platform's section in references/platform-deployments.md, then:
- Store secrets — inject
KLAVIYO_PRIVATE_KEYandKLAVIYO_WEBHOOK_SIGNING_SECRETvia the platform's secret store (vercel env add,fly secrets set, orgcloud secrets create). Never commit these to the repo. - Write the platform config — use Write/Edit to create
vercel.json,fly.toml, or aDockerfilethat binds the secrets and exposes a health path. See the reference for the exact file contents. - Add the universal health check — expose
src/health.ts(identical on all platforms) at the path each platform probes (/api/healthon Vercel,/healthon Fly.io and Cloud Run). - Deploy — run
vercel --prod,fly deploy, orgcloud run deploy. - Verify —
curlthe health endpoint and confirmservices.klaviyo.connectedistrue.
Vercel skeleton (first example)
vercel env add KLAVIYO_PRIVATE_KEY production # paste pk_*** when prompted
vercel env add KLAVIYO_WEBHOOK_SIGNING_SECRET production
# configure vercel.json (see reference), then:
vercel --prod
curl -s https://your-app.vercel.app/api/health | jq '.services.klaviyo'
Fly.io (fly secrets set + fly.toml + fly deploy) and Cloud Run
(gcloud secrets create + Dockerfile + gcloud run deploy --set-secrets)
follow the same five steps — full commands and config files are in the
reference walkthroughs.
Output
- Application deployed with Klaviyo secrets configured
- Health check endpoint verifying Klaviyo connectivity
- Webhook endpoint with HMAC signature verification
- Platform-specific best practices applied
Error Handling
| Issue | Cause | Solution |
|---|---|---|
| Secret not found at runtime | Missing env config | Verify secret binding in platform |
| Cold start timeout | Klaviyo API slow on first call | Set min_instances=1 |
| Webhook 401 | Wrong signing secret | Verify secret matches Klaviyo dashboard |
| Health check fails | Wrong API key per env | Separate keys for staging/prod |
Examples
Deploy to Fly.io with a health check. Set the two secrets, deploy, and confirm connectivity:
fly secrets set KLAVIYO_PRIVATE_KEY=pk_*** \
KLAVIYO_WEBHOOK_SIGNING_SECRET=whsec_***
fly deploy
curl -s https://my-klaviyo-app.fly.dev/health | jq '.services.klaviyo'
# → { "connected": true, "latencyMs": 142 }
Verify a webhook signature (HMAC-SHA256). Every platform's webhook route
must timing-safe-compare the klaviyo-webhook-signature header against an HMAC
of the raw body keyed with the signing secret — a 401 otherwise. The full
Vercel handler, vercel.json, fly.toml, the Cloud Run Dockerfile, and the
universal src/health.ts are in
references/platform-deployments.md.
For webhook event handling beyond signature verification, see the
klaviyo-webhooks-events skill.
Resources
- Vercel Environment Variables
- Fly.io Secrets
- Cloud Run Secrets
- Klaviyo API Reference
- Full platform walkthroughs — verbatim commands, config files, and code for all three platforms
What ships with it: 1 file
4.5 KB alongside SKILL.md
references/
- platform-deployments.md4.5 KB