/klaviyo-pack:klaviyo-debug-bundlefrom klaviyo-pack
Collects Klaviyo debug evidence into a redacted tarball for support tickets. Captures SDK version, API connectivity, rate limits, and error logs.
Ships in klaviyo-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.
Collect all diagnostic information needed for a Klaviyo support ticket into one redacted, shareable tarball: SDK version, API connectivity, auth result, rate limit status, recent errors, and environment config. Every secret (API keys, emails, phone numbers, webhook secrets) is redacted before packaging, so the bundle is safe to attach to a ticket.
The workflow builds a single shell script (klaviyo-debug-bundle.sh) in five
steps, then runs it. The full script and a programmatic TypeScript alternative
live in the reference files linked below.
klaviyo-api SDK installed (npm list klaviyo-api to confirm).KLAVIYO_PRIVATE_KEY environment variable set to a private API key.logs/,
/var/log/app/).curl, tar, and python3 available on the host.Assemble the five blocks below (verbatim from the reference) into one
klaviyo-debug-bundle.sh, make it executable, and run it from your application
root so the log-collection step can find logs/.
klaviyo-debug-YYYYMMDD-HHMMSS/ and a summary.txt header.klaviyo-api SDK version, and a redacted API-key presence check.GET /api/accounts/ (captures the HTTP code), rate-limit headers, and the Klaviyo status page.tar -czf the dir, remove the working copy, print the tarball path.The skeleton of step 1:
#!/bin/bash
# klaviyo-debug-bundle.sh
set -euo pipefail
BUNDLE_DIR="klaviyo-debug-$(date +%Y%m%d-%H%M%S)"
mkdir -p "$BUNDLE_DIR"
See the full shell implementation for all five steps verbatim. To collect the same signals as a structured object (SDK version, connectivity, latency) instead of a tarball, use the TypeScript helper in examples.
klaviyo-debug-YYYYMMDD-HHMMSS.tar.gz containing:
summary.txt -- Environment, SDK version, API key status, connectivityrate-limits.txt -- Current rate limit header valuesapi-response.json -- Account API response (confirms auth)recent-errors.txt -- Redacted error logsALWAYS redacted: API keys (pk_***), email addresses, phone numbers, webhook secrets.
Safe to include: error/HTTP status codes, SDK and runtime versions, stack traces (with PII redacted), rate limit header values, Klaviyo account ID.
The bundle is designed to never abort on a single failed probe — each check records its failure into the summary rather than exiting, so you always get a complete picture. Read the results with this triage:
KLAVIYO_PRIVATE_KEY: NOT SET — the connectivity and rate-limit steps are
skipped. Export the key and re-run before attaching the bundle.API Auth Test: HTTP 401 — key is invalid or revoked. Rotate the key.API Auth Test: HTTP 403 — key lacks scope for /api/accounts/. Grant the
scope in Klaviyo account settings.API Auth Test: HTTP 429 — you are rate limited; inspect rate-limits.txt
and see the klaviyo-rate-limits skill.API Auth Test: HTTP 000 or DNS resolve ... FAILED — no response reached
Klaviyo (DNS, outbound firewall, or TLS). Fix connectivity before ticketing.recent-errors.txt empty — no matching log dir was found; pass your real
log path by adding it to the for logdir in ... loop in step 4.summary.txt and confirm no unredacted pk_ prefix
or email survived — the script prints a reminder to do this.See the examples reference for the full HTTP-code decision matrix.
HTTP 200 / All Systems Operational summary lines.collectKlaviyoDebugInfo() from a health
check to return SDK version, connectivity, and latency as an object.API Auth Test: HTTP NNN line to a next
action (200 healthy → check logs; 401 → rotate key; 429 → rate limits).Full runnable code for all three is in examples.
For rate limit issues surfaced by the bundle (HTTP 429, retry-after headers),
see the klaviyo-rate-limits skill for backoff and quota-management guidance.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
klaviyo, email-marketing, debugging, support-bundle, api-diagnostics
24 skills in this plugin
/klaviyo-ci-integrationConfigure 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".
/klaviyo-common-errorsDiagnose and fix common Klaviyo API errors and exceptions.
Use when encountering Klaviyo 4xx/5xx errors, debugging failed requests,
or troubleshooting SDK integration issues.
Trigger with phrases like "klaviyo error", "fix klaviyo",
"klaviyo not working", "debug klaviyo", "klaviyo 400", "klaviyo 429".
/klaviyo-core-workflow-aExecute Klaviyo primary workflow: profiles, lists, and subscriptions.
Use when creating/updating profiles, managing lists, subscribing contacts,
or syncing customer data to Klaviyo for email/SMS marketing.
Trigger with phrases like "klaviyo profiles", "klaviyo lists",
"klaviyo subscribe", "add contacts to klaviyo", "klaviyo customer data".
/klaviyo-core-workflow-bExecute the Klaviyo secondary workflow: event tracking, segments, and campaigns.
Use when you need to track customer events, query or size segments, build and send
email campaigns, or inspect metric-triggered flows through the Klaviyo API.
Trigger with phrases like "klaviyo events", "klaviyo segments", "klaviyo campaigns",
"track klaviyo event", "klaviyo flow trigger".
/klaviyo-cost-tuningOptimize Klaviyo costs through plan selection, contact management, and usage monitoring.
Use when analyzing Klaviyo billing, reducing active profile costs,
or implementing usage monitoring and budget alerts.
Trigger with phrases like "klaviyo cost", "klaviyo billing",
"reduce klaviyo costs", "klaviyo pricing", "klaviyo expensive", "klaviyo budget".
/klaviyo-data-handlingImplement Klaviyo data privacy, GDPR/CCPA compliance, and PII handling patterns.
Use when handling profile data, implementing right-to-deletion, configuring
data retention, or ensuring compliance with privacy regulations.
Trigger with phrases like "klaviyo data", "klaviyo PII",
"klaviyo GDPR", "klaviyo data retention", "klaviyo privacy", "klaviyo CCPA",
"klaviyo delete profile", "klaviyo data privacy".
npx claudepluginhub jeremylongshore/tons-of-skills-marketplace --plugin klaviyo-packOther plugins' skills for the same job