Agent skill

Klaviyo Migration Deep Dive

by jeremylongshore in jeremylongshore/tons-of-skills-marketplace

A skill your agent uses when you are moving an email/CDP stack onto Klaviyo — off the deprecated v1/v2 APIs, off a competitor ESP (Mailchimp, SendGrid), or re-platforming gradually with the…

MITAuto-check passedMarketing & SEO

Install Klaviyo Migration Deep Dive

skills CLI
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill klaviyo-migration-deep-dive -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jeremylongshore/tons-of-skills-marketplace klaviyo-migration-deep-dive --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.curated/klaviyo-migration-deep-dive .claude/skills/klaviyo-migration-deep-dive && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
klaviyo-migration-deep-dive
GitHub stars
2.8k
Token cost
~1.6k tokens
SKILL.md length
561 words
Files
3 (incl. references)
Skills in repo
3,342
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when you are moving an email/CDP stack onto Klaviyo — off the deprecated v1/v2 APIs, off a competitor ESP (Mailchimp, SendGrid), or re-platforming gradually with the…

  • Works in 5 steps: Legacy v1/v2 to current API — replace… → API field mapping — rename v1/v2 fields… → Competitor migration — write a transform… → …
  • You are moving an email/CDP stack onto Klaviyo — off the deprecated v1/v2 APIs
  • SKILL.md covers Overview, Prerequisites, Migration Types and Instructions, plus 4 more sections
  • Calls npm; needs KLAVIYO_PRIVATE_KEY

What it does

Klaviyo Migration Deep Dive is an agent skill from jeremylongshore/tons-of-skills-marketplace. Use when you are moving an email/CDP stack onto Klaviyo — off the deprecated v1/v2 APIs, off a competitor ESP (Mailchimp, SendGrid), or re-platforming gradually with the strangler fig pattern — and need field mapping, batch import, and post-migration validation. Trigger with phrases like "migrate to klaviyo", "klaviyo migration", "switch to klaviyo", "klaviyo replatform", "mailchimp to klaviyo", "legacy to klaviyo", "v1 to v2 klaviyo".

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/examples.md` and `references/implementation.md`). Compatibility notes: Designed for Claude Code

It sits in Marketing & SEO, covering Email marketing. It works with Mailchimp and SendGrid. The repository describes itself as: Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com. The licence is MIT.

When your agent uses it

  • You are moving an email/CDP stack onto Klaviyo — off the deprecated v1/v2 APIs
  • Off a competitor ESP (Mailchimp
  • Re-platforming gradually with the strangler fig pattern — and need field mapping
  • Post-migration validation

Example prompts

  • “migrate to klaviyo”
  • “klaviyo migration”
  • “switch to klaviyo”
  • “/klaviyo-migration-deep-dive”

Requirements

  • Node.js
  • A credential in KLAVIYO_PRIVATE_KEY
  • Compatibility (from SKILL.md): Designed for Claude Code
  • Pre-approved tools (allowed-tools): Read, Write, Edit, Bash(npm:*), Bash(node:*)

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Legacy v1/v2 to current API — replace deprecated track / identify / v2 subscribe HTTP calls with the klaviyo-api SDK…
  2. API field mapping — rename v1/v2 fields to the current schema: drop the $ prefix, camelCase everything ($first_name → firstName), and nest…
  3. Competitor migration — write a transform adapter that maps the competitor's contact shape to a Klaviyo profile, then batch-import (50 per…
  4. Strangler fig pattern — route traffic through a MigrationRouter behind a feature flag, ramping Klaviyo from 0% to 100% while optionally…
  5. Post-migration validation — run validateMigration() to compare profile counts, sample data integrity, and list membership against the…

What it can do on your machine

Read from SKILL.md and the folder at commit cfae287. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Bash(npm:*)
    • Bash(node:*)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • developers.klaviyo.com
    • martinfowler.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • KLAVIYO_PRIVATE_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Designed for Claude Code

    From compatibility in the SKILL.md frontmatter.

Context cost

Klaviyo Migration Deep Dive loads about 1.6k tokens when it runs, and up to ~4.9k if it reads all its reference files. Until then it costs about 117 tokens; SKILL.md has 561 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~117
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from jeremylongshore/tons-of-skills-marketplace at commit cfae287, republished under its MIT licence (© jeremylongshore). 561 words, ~1,635 tokens.

Download SKILL.mdSave it as .claude/skills/klaviyo-migration-deep-dive/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
klaviyo-migration-deep-dive
description
Use when you are moving an email/CDP stack onto Klaviyo — off the deprecated v1/v2 APIs, off a competitor ESP (Mailchimp, SendGrid), or re-platforming gradually with the strangler fig pattern — and need field mapping, batch import, and post-migration validation. Trigger with phrases like "migrate to klaviyo", "klaviyo migration", "switch to klaviyo", "klaviyo replatform", "mailchimp to klaviyo", "legacy to klaviyo", "v1 to v2 klaviyo".
allowed-tools
Read, Write, Edit, Bash(npm:*), Bash(node:*)
compatibility
Designed for Claude Code
version
1.7.0
license
MIT
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
saas, klaviyo, email-marketing, cdp

Klaviyo Migration Deep Dive

Overview

Comprehensive guide for migrating to Klaviyo from legacy APIs (v1/v2), competing ESPs (Mailchimp, SendGrid, etc.), or re-platforming with the strangler fig pattern. Covers data migration, API mapping, batch import, and post-migration validation.

This SKILL.md is the high-level workflow. The full, copy-paste code for every step lives in references/implementation.md; worked end-to-end scenarios live in references/examples.md.

Prerequisites

  • Target Klaviyo account configured
  • klaviyo-api SDK installed (npm install klaviyo-api)
  • Source system access for data export
  • Feature flag infrastructure (for gradual rollout)
  • Auth: a Klaviyo private API key (pk_***) exported as KLAVIYO_PRIVATE_KEY — used by the SDK's ApiKeySession. Legacy v1/v2 calls used a public token in the request body; the current REST API uses the private key in the session header. See references/implementation.md.

Migration Types

MigrationComplexityDurationRisk
Klaviyo v1/v2 to current APILow-Medium1-2 weeksLow
Mailchimp/SendGrid to KlaviyoMedium2-4 weeksMedium
Custom ESP to KlaviyoHigh4-8 weeksHigh
Full re-platformHigh2-3 monthsHigh

Instructions

Pick your migration type from the table above, then work the five steps. Each step has full code in references/implementation.md.

  1. Legacy v1/v2 to current API — replace deprecated track / identify / v2 subscribe HTTP calls with the klaviyo-api SDK (createOrUpdateProfile, createEvent, subscribeProfiles). The session skeleton every step builds on:

    typescript
    import { ApiKeySession, ProfilesApi, EventsApi } from 'klaviyo-api';
    
    const session = new ApiKeySession(process.env.KLAVIYO_PRIVATE_KEY!);
    const profilesApi = new ProfilesApi(session);
    const eventsApi = new EventsApi(session);
  2. API field mapping — rename v1/v2 fields to the current schema: drop the $ prefix, camelCase everything ($first_name → firstName), and nest address fields under location. Full mapping table in references/implementation.md.

  3. Competitor migration — write a transform adapter that maps the competitor's contact shape to a Klaviyo profile, then batch-import (50 per batch) with Promise.allSettled, progress logging, and rate-limit delays. Skip suppressed/unsubscribed contacts.

  4. Strangler fig pattern — route traffic through a MigrationRouter behind a feature flag, ramping Klaviyo from 0% to 100% while optionally dual-writing for comparison.

  5. Post-migration validation — run validateMigration() to compare profile counts, sample data integrity, and list membership against the source before decommissioning the legacy system.

Full migration checklist (export → map → import → validate → cut over → decommission) is in references/implementation.md.

Show full SKILL.md (233 more words)Show less

Output

Working through this skill produces:

  • Migrated code — v1/v2 HTTP calls replaced with klaviyo-api SDK calls, or a competitor-to-Klaviyo transform adapter plus a batch-import runner.
  • An import result — { imported, skipped, failed[] } from migrateContacts, with the failed list ready for a targeted retry.
  • A MigrationRouter (for gradual cutovers) that routes a configurable percentage of traffic to Klaviyo behind a feature flag.
  • A validation report — { passed, checks[] } from validateMigration covering profile count, data integrity, and list membership, used as the go/no-go gate before decommissioning the legacy system.

Error Handling

IssueCauseSolution
Duplicate profilesSame email imported twiceUse createOrUpdateProfile (upsert)
Phone format errorsNon-E.164 formatPre-validate and format to E.164 (+<countrycode><subscriber>)
Rate limited during importToo fastReduce batch size, add delays
Missing consent timestampsHistorical dataSet historicalImport: true flag
Template rendering errorsIncompatible template syntaxConvert to Klaviyo Django template syntax

Examples

Worked, end-to-end scenarios are in references/examples.md:

  • Mailchimp export → Klaviyo import — load a CSV, skip suppressed contacts, batch-import with progress output.
  • Cut over a v1 identify call to createOrUpdateProfile, showing the field renames.
  • Feature-flagged cutover — route 10% of events to Klaviyo while campaigns stay legacy.
  • Gate a deployment on a validateMigration pass.

Minimal first cutover — one profile upsert on the current API:

typescript
await profilesApi.createOrUpdateProfile({
  data: {
    type: 'profile',
    attributes: { email: 'user@example.com', firstName: 'Jane', properties: { plan: 'pro' } },
  },
});

Resources

© jeremylongshore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in skills/.curated/klaviyo-migration-deep-dive of jeremylongshore/tons-of-skills-marketplace.

  • SKILL.md
  • references/examples.md
  • references/implementation.md

Open the folder on GitHubat commit cfae287

Compare with similar skills

Klaviyo Migration Deep Dive next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Klaviyo Migration Deep Dive compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Klaviyo Migration Deep Dive this skilljeremylongshore/tons-of-skills-marketplace2.8k—~1.6kAutomated safety check: PassMIT
Email Marketing BibleCosmoBlk/email-marketing-bible330—~4.3kAutomated safety check: PassMIT
Mailchimp Integrationhewi333/Mom-n-Pop-Skills122—~2kAutomated safety check: PassMIT
CLI Anything MailchimpHKUDS/CLI-Anything52k—~2.4kAutomated safety check: PassApache-2.0
14 Email Marketing Globalminhnv0807/ai-business-skills609—~2.4kAutomated safety check: PassMIT
Ecommerce Email Marketing BuilderLeoYeAI/openclaw-master-skills2.2k1 repos~6.2kAutomated safety check: PassMIT

Similar skills

  • Email Marketing Bible

    CosmoBlk/email-marketing-bible

    Email marketing operating manual for AI agents, with hard send-safety gates.

    330 GitHub stars~4.3k tokensUpdated 2 days ago
    Marketing & SEOAuto-check passed
  • Mailchimp Integration

    hewi333/Mom-n-Pop-Skills

    A skill your agent uses when integrating with Mailchimp for audience management, campaigns, and automation.

    122 GitHub stars~2k tokensUpdated 1 mo ago
    Marketing & SEOAuto-check passed
  • CLI Anything Mailchimp

    HKUDS/CLI-Anything

    CLI harness for the Mailchimp Marketing API v3.0 — 303 commands across 30 resource groups (lists, campaigns, reports, automations, ecommerce, templates, and more).

    52k GitHub stars~2.4k tokensUpdated 19 days ago
    Marketing & SEOAuto-check passed
  • 14 Email Marketing Global

    minhnv0807/ai-business-skills

    A skill your agent uses when the user needs email or lifecycle automation — welcome series, nurture, abandoned cart, re-engagement, broadcast, and transactional flows with subject lines…

    609 GitHub stars~2.4k tokensUpdated 29 days ago
    Marketing & SEOAuto-check passed
  • Ecommerce Email Marketing Builder

    LeoYeAI/openclaw-master-skills

    E-commerce email marketing system builder. An agent skill from LeoYeAI/openclaw-master-skills.

    2.2k GitHub starsUsed in 1 repo~6.2k tokens
    Marketing & SEOAuto-check passed
  • Mailchimp

    CraftOS-dev/CraftBot

    Mailchimp Marketing API integration with managed OAuth. An agent skill from CraftOS-dev/CraftBot.

    392 GitHub starsUsed in 1 repo~5.9k tokens
    Marketing & SEOAuto-check passed

More from jeremylongshore/tons-of-skills-marketplace

All 3,342 skills in this repo
  • Performing Security Code Review

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to conduct a security-focused code review using the security-agent plugin.

    2.8k GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check: notes
  • Adapting Transfer Learning Models

    jeremylongshore/tons-of-skills-marketplace

    Build this skill automates the adaptation of pre-trained machine learning models using transfer learning techniques.

    2.8k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Agent Context Loader

    jeremylongshore/tons-of-skills-marketplace

    Execute proactive auto-loading: automatically detects and loads agents.md files.

    2.8k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Aggregating Performance Metrics

    jeremylongshore/tons-of-skills-marketplace

    Aggregate and centralize performance metrics from applications, systems, databases, caches, and services.

    2.8k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Analyzing Capacity Planning

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to analyze capacity requirements and plan for future growth.

    2.8k GitHub stars~947 tokensUpdated today
    Auto-check passed
  • Analyzing Database Indexes

    jeremylongshore/tons-of-skills-marketplace

    Process use when you need to work with database indexing. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~2k tokensUpdated today
    Auto-check passed

Categories

Questions about Klaviyo Migration Deep Dive

What does Klaviyo Migration Deep Dive do?

A skill your agent uses when you are moving an email/CDP stack onto Klaviyo — off the deprecated v1/v2 APIs, off a competitor ESP (Mailchimp, SendGrid), or re-platforming gradually with the…. Klaviyo Migration Deep Dive is an agent skill from jeremylongshore/tons-of-skills-marketplace. Use when you are moving an email/CDP stack onto Klaviyo — off the deprecated v1/v2 APIs, off a competitor ESP (Mailchimp, SendGrid), or re-platforming gradually with the strangler fig pattern — and need field mapping, batch import, and post-migration validation.

When should I use Klaviyo Migration Deep Dive?

Klaviyo Migration Deep Dive fits situations like: you are moving an email/CDP stack onto Klaviyo — off the deprecated v1/v2 APIs; off a competitor ESP (Mailchimp; re-platforming gradually with the strangler fig pattern — and need field mapping; post-migration validation.

How do I install Klaviyo Migration Deep Dive in Claude Code?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill klaviyo-migration-deep-dive -a claude-code`. Or copy the skill folder (skills/.curated/klaviyo-migration-deep-dive in jeremylongshore/tons-of-skills-marketplace) into .claude/skills/klaviyo-migration-deep-dive in your project. Claude Code loads it when a task matches its description.

How do I install Klaviyo Migration Deep Dive in Codex?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill klaviyo-migration-deep-dive -a codex`. Or copy the skill folder (skills/.curated/klaviyo-migration-deep-dive in jeremylongshore/tons-of-skills-marketplace) into .agents/skills/klaviyo-migration-deep-dive in your project. Codex loads it when a task matches its description.

Can I use Klaviyo Migration Deep Dive in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill klaviyo-migration-deep-dive -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/klaviyo-migration-deep-dive, .gemini/skills/klaviyo-migration-deep-dive, .github/skills/klaviyo-migration-deep-dive and .opencode/skills/klaviyo-migration-deep-dive in your project.

What does Klaviyo Migration Deep Dive need to run?

Going by SKILL.md and its folder, Klaviyo Migration Deep Dive needs the command-line tools its instructions call (npm) and credentials named KLAVIYO_PRIVATE_KEY. Our summary lists: Node.js; A credential in KLAVIYO_PRIVATE_KEY. Its frontmatter pre-approves these tools: Read, Write, Edit, Bash(npm:*), Bash(node:*). Compatibility (from SKILL.md): Designed for Claude Code.

Does Klaviyo Migration Deep Dive access the network?

SKILL.md names 2 domains. As links in the text: developers.klaviyo.com and martinfowler.com. This is read from the text; nothing was executed.

Is Klaviyo Migration Deep Dive safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Klaviyo Migration Deep Dive use?

Klaviyo Migration Deep Dive is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Klaviyo Migration Deep Dive use?

About 1.6k tokens (SKILL.md is roughly 6.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.3k tokens, read only when the agent opens those files.

What are the alternatives to Klaviyo Migration Deep Dive?

Skills that share tags, products or a category with Klaviyo Migration Deep Dive: Email Marketing Bible (CosmoBlk/email-marketing-bible, 330 stars), Mailchimp Integration (hewi333/Mom-n-Pop-Skills, 122 stars), CLI Anything Mailchimp (HKUDS/CLI-Anything, 52k stars) and 14 Email Marketing Global (minhnv0807/ai-business-skills, 609 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Klaviyo Migration Deep Dive?

jeremylongshore (a GitHub user) maintains it in jeremylongshore/tons-of-skills-marketplace, which has 2,827 GitHub stars. The repository holds 3,342 skills in this directory. The repository was last updated on October 10, 2026.

Source: jeremylongshore/tons-of-skills-marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.