/klaviyo-pack:klaviyo-core-workflow-afrom klaviyo-pack
Executes Klaviyo primary workflow: create/update profiles, manage lists, subscribe contacts for email/SMS marketing via klaviyo-api SDK.
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.
Primary money-path workflow: create/update profiles, manage lists, and subscribe contacts for email and SMS marketing via the klaviyo-api SDK. This skill covers the six-step path from a raw customer record to a consented, segmentable subscriber. High-level flow lives here; the full code for every step is in references/implementation.md.
klaviyo-install-auth setup so KLAVIYO_PRIVATE_KEY is available in the environment.profiles:read, profiles:write, lists:read, and lists:write.klaviyo-api npm package installed in the project (npm install klaviyo-api).Every call authenticates through a single ApiKeySession built from the private key:
import { ApiKeySession, ProfilesApi, ListsApi } from 'klaviyo-api';
const session = new ApiKeySession(process.env.KLAVIYO_PRIVATE_KEY!);
const profilesApi = new ProfilesApi(session);
const listsApi = new ListsApi(session);
The workflow runs in six steps. Use the linked walkthrough for the complete code of each:
createOrUpdateProfile (upsert) over createProfile so re-syncs don't 409 on an existing email.listsApi.createList(...) returns the listId you use downstream; getLists() enumerates existing lists.createListRelationships adds membership only; it does NOT grant marketing consent.subscribeProfiles records email/SMS marketing consent with a consentTimestamp. This is the correct way to create real subscribers.getProfiles({ filter, sort }) supports equals, greater-than, and contains for segmentation.Full code for all six steps: references/implementation.md.
| Error | Status | Cause | Solution |
|---|---|---|---|
| Duplicate profile | 409 | Email exists | Use createOrUpdateProfile (upsert) |
| Invalid phone | 400 | Wrong format | Use E.164 format: +15551234567 |
| List not found | 404 | Wrong list ID | Verify list ID via getLists() |
| Missing consent | 400 | No consent timestamp | Always include consentTimestamp |
| Rate limited | 429 | >75 req/s burst | See klaviyo-rate-limits |
Three end-to-end scenarios that string the six steps into complete flows are in references/examples.md:
Minimal upsert-then-subscribe skeleton:
const upserted = await profilesApi.createOrUpdateProfile({
data: { type: ProfileEnum.Profile, attributes: { email: '[email protected]' } },
});
await profilesApi.subscribeProfiles({
data: {
type: 'profile-subscription-bulk-create-job',
attributes: { profiles: { data: [{ type: ProfileEnum.Profile, attributes: {
email: '[email protected]',
subscriptions: { email: { marketing: { consent: 'SUBSCRIBED', consentTimestamp: new Date().toISOString() } } },
} }] } },
relationships: { list: { data: { type: ListEnum.List, id: listId } } },
},
});
For event tracking and campaign triggers, see klaviyo-core-workflow-b. To harden against burst limits during bulk imports, see klaviyo-rate-limits.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
klaviyo, email-marketing, cdp, profiles, lists, subscriptions
npx claudepluginhub jeremylongshore/tons-of-skills-marketplace --plugin klaviyo-pack24 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-Other plugins' skills for the same job